Sample File
Sample File
Sample File
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.
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
Page 3 of 3