Migrating Commonspot Sites Paul Houle Peter Hoyt Library Systems Thanks: James Reidy, Surinder Ghangas
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
Hardware Sun Fire V440 Solaris 9 StorEdge 6130 Array fibre channel
Software Solaris 9 Oracle Cold Fusion MX 6.1 Enterprise Edition (Jrun 4) Apache 2 CommonSpot 4.5sp2 CornellCustomAuthZ
Two Instances SPOT http port 80 /spot/ apache spot jrun SPOT oracle SPOTTEST http port X /spottest/ apache spottest jrun SPOTTEST oracle
Database Structure SPOT SPOTTEST SITES USERSSITES USERS SITE A
The problem… SPOTTEST.usersSPOT.users SPOTTEST.pages
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
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") )
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
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”
Commonspot Software Configuration: James Reidy Apache, Jrun, CFMX, SAMBA: Paul Houle Oracle, Backups, Unix admin: Surinder Ghangas General Questions: Oya Rieger