You are on page 1of 3

International Business Machines Corporation IBM Maximo 7 Upgrade Database Restore For Oracle

Created by: Mike Salverson IBM GBS Mike.salverson@us.ibm.com

IBM Corporation (hereafter referred to as IBM) believes that the contents of this document are valuable and could damage its business if revealed to its competitors. Accordingly, all pages of this proposal have been submitted in confidence. The data presented thereon contain trade secrets and/or privileged or confidential information. Such data shall be used only for evaluation purposes. However, if a contract is awarded to IBM as a result of, or in connection with, the submission of this document, the customer shall have the right to use or disclose the data contained herein to the extent provided in the contract.

IBM Maximo 7 Database Restore - Oracle.doc

Revision History:
Rev 1.0 2.0 Date Reason 15 SEP 2010 Initial Document Creation 15 JUN 2011 Updated SQL scripts Author Mike Salverson Mike Salverson

1. Overview
The purpose of this document is to detail the steps for connecting an upgraded database or existing database from an existing Maximo 7 environment into another Maximo 7 environment of the same version level. In this document, Destination refers to the database to be overwritten, while Source references the database to copy

2. DBA Procedures
a) Backup the Destination database in the environment using switches full=y direct=y b) Logon the Destination database and run the following SQL statements: create table system.maxprop as select * from maximo.maxprop; create table system.maxpropvalue as select * from maximo.maxpropvalue; select count(*) from system.maxprop; select count(*) from maximo.maxprop; < ensure the totals match> select count(*) from system.maxpropvalue; select count(*) from maximo.maxpropvalue; < ensure the totals match> c) d) e) f) Logon the Destination database as user SYSTEM and run drop user maximo cascade; Create the maximo id and grant the necessary privileges by executing the createmaximoes.sql script Import the Source database as user SYSTEM using switch "fromuser=maximo touser=maximo" Logon the Destination database and run the following SQL statements: truncate table maximo.maxprop; alter table maximo.maxprop modify changeby varchar2(30); alter table maximo.maxprop modify maxpropid number; insert into maximo.maxprop (changeby, changedate, description, domainid, encrypted, globalonly, instanceonly, liverefresh, masked, maximodefault, maxpropid, maxtype, nullsallowed, onlinechanges, propname, rowstamp, securelevel, userdefined) select changeby, changedate, description, domainid, encrypted, globalonly, instanceonly,liverefresh, masked, maximodefault, maxpropid, maxtype, nullsallowed, onlinechanges, propname, rowstamp, securelevel, userdefined from system.maxprop; truncate table maximo.maxpropvalue; insert into maximo.maxpropvalue (changeby, changedate, encryptedvalue, maxpropvalueid, propname, propvalue, serverhost, servername, rowstamp) select changeby, changedate, encryptedvalue, maxpropvalueid, propname, propvalue, serverhost, servername, rowstamp from system.maxpropvalue; commit;

Page 2 of 3

IBM Maximo 7 Database Restore - Oracle.doc

3. WebSphere / Maximo Administrator Procedures


a) b) c) d) e) f) g) h) i) j) k) l) m) n) o) p) q) r) s) t) u) v) w) Open a CMD prompt and navigate to D:\ibm\smp\maximo\tools\maximo Execute configdb.bat Execute updatedb.bat Open Windows Explorer and navigate to folder D:\ibm\SMP\maximo\deployment\default Create a new folder and move the existing EAR files into the new folder Open a CMD prompt and navigate to D:\ibm\SMP\maximo\deployment Execute buildMEAear.bat to build the Maximo EAR file Execute buildUIear.bat to build the Maximo Help EAR file Close the CMD prompt Login to the WebSphere console Stop the WAS UI Cluster, MAXIMOMEA JVM and RMI JVM (if exists) Uninstall the MAXIMOMEA and MAXIMO_UI applications Install the MAXIMOMEA application using the EAR file created in step 3.g above Install the MAXIMO_UI application using the EAR file created in step 3.h above In Windows Explorer, navigate to folder D:\ibm\WebSphere\AppServer\profiles\ctgAppSrv01 Delete folders temp, tranlog, wstemp In Windows Explorer, navigate to folder D:\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\logs\ Create a new sub-folder and move all the files from step 2.q above into the new sub-folder Close Windows Explorer Start the MAXIMOMEA JVM Start the RMI JVM (if exists) Start the WAS UI Cluster (Ripplestart) Log into the Maximo 7 application using maxadmin credentials

Page 3 of 3

You might also like