120 likes | 216 Views
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
E N D
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 fibre channel StorEdge 6130 Array
Software • Solaris 9 • Oracle 9.2.0.6 • Cold Fusion MX 6.1 Enterprise Edition (Jrun 4) • Apache 2 • CommonSpot 4.5sp2 • CornellCustomAuthZ
Two Instances SPOT SPOTTEST http port X http port 80 /spot/ apache /spottest/ apache spot jrun spottest jrun SPOT oracle SPOTTEST oracle
Database Structure SPOT SITES USERS SPOTTEST SITE A SITES USERS
The problem… SPOTTEST.users SPOT.users SPOTTEST.pages
Stages • Find missing users in production system • Add missing users to production system • Create mapping of test -> production user ids • Get database schema dump • Extract list of user id fields • 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 COLUMNS AUTHOR CHANGEBY CREATOR DELETEDBY GROUP OWNER REQUEST USER 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 (jgr25@cornell.edu) Apache, Jrun, CFMX, SAMBA: Paul Houle (ph18@cornell.edu) Oracle, Backups, Unix admin: Surinder Ghangas (sg14@cornell.edu) General Questions: Oya Rieger (oyr1@cornell.edu) http://commonspot.library.cornell.edu/