Presentation is loading. Please wait.

Presentation is loading. Please wait.

Migrating Commonspot Sites Paul Houle Peter Hoyt Library Systems Thanks: James Reidy, Surinder Ghangas.

Similar presentations


Presentation on theme: "Migrating Commonspot Sites Paul Houle Peter Hoyt Library Systems Thanks: James Reidy, Surinder Ghangas."— Presentation transcript:

1 Migrating Commonspot Sites Paul Houle Peter Hoyt Library Systems Thanks: James Reidy, Surinder Ghangas

2 Context Support 21 unit libraries and many projects Copia, our primary web server has > 50 virtual hosts Commonspot sites up and running: Transition to Fatherhood Public Services Committee Under development: Mann Library ASTEC (Engineering, Math & Physical Sciences and Vet) NY Aerial Photos

3 Hardware Sun Fire V440 Solaris 9 StorEdge 6130 Array fibre channel

4 Software Solaris 9 Oracle 9.2.0.6 Cold Fusion MX 6.1 Enterprise Edition (Jrun 4) Apache 2 CommonSpot 4.5sp2 CornellCustomAuthZ

5 Two Instances SPOT http port 80 /spot/ apache spot jrun SPOT oracle SPOTTEST http port X /spottest/ apache spottest jrun SPOTTEST oracle

6 Database Structure SPOT SPOTTEST SITES USERSSITES USERS SITE A

7 The problem… SPOTTEST.usersSPOT.users SPOTTEST.pages

8 Stages 1.Find missing users in production system 2.Add missing users to production system 3.Create mapping of test -> production user ids 4.Get database schema dump 5.Extract list of user id fields 6.Update user ids

9 Schema Dump CREATE TABLE "PSA_SITE"."APPROVAL" ( "PAGEID" NUMBER(12,0) NOT NULL ENABLE, "CONTROLID" NUMBER(12,0) NOT NULL ENABLE, "ITEMID" NUMBER(12,0) DEFAULT 0, "USERGROUPID" NUMBER(12,0) NOT NULL ENABLE, "APPROVALTABLELIST" NVARCHAR2(255) NOT NULL ENABLE, "STATUS" NUMBER(12,0) DEFAULT 0, "APPROVALDATE" VARCHAR2(20), "APPROVALLEVEL" NUMBER(3,0) DEFAULT 0, "APPROVEDBY" NUMBER(12,0) DEFAULT 0, CONSTRAINT "PK__APPROVAL" PRIMARY KEY ("PAGEID", "CONTROLID", "ITEMID","USERGROUPID","APPROVALTABLELIST") )

10 Heuristics I KEEP COLUMNSAUTHORCHANGEBYCREATORDELETEDBYGROUPOWNERREQUESTUSER STOP COLUMNS ATTRIBORDER CATEGORY CONTROLID CHARID CONTROLLIST ELEMENTID ITEM MASK PAGE QUERYID SORTORDER TYPE VERSION HEIGHT DROP TABLES AVAILABLECONTROLS CATEGOR FORMAT LANGUAGE SITEPAGES SYSTEM TRANSACT

11 Heuristics II Group ids start with 1,000,000 Look at values to see if a column contains user id’s Is it numeric? Do the numbers match users and groups? LIST columns, ex. *.ITEMUSERGROUPLIST Format: “7,12,55”

12 Commonspot Software Configuration: James Reidy (jgr25@cornell.edu)jgr25@cornell.edu Apache, Jrun, CFMX, SAMBA: Paul Houle (ph18@cornell.edu)ph18@cornell.edu Oracle, Backups, Unix admin: Surinder Ghangas (sg14@cornell.edu)sg14@cornell.edu General Questions: Oya Rieger (oyr1@cornell.edu)oyr1@cornell.edu http://commonspot.library.cornell.edu/


Download ppt "Migrating Commonspot Sites Paul Houle Peter Hoyt Library Systems Thanks: James Reidy, Surinder Ghangas."

Similar presentations


Ads by Google