If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Schema issue after restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-11, 11:17
ssatish.81 ssatish.81 is offline
Registered User
 
Join Date: Mar 2011
Posts: 41
Schema issue after restore

Hello Experts,

I have a situatuation .

We are currently in SAP ECC 6.0 EHP4, AIX 6.1 and DB2 9.7 . As per the SAP recommendation we have kept our schema id's as sapsid . Recently we did one DB2 restore from our QAS to SBX system .Everything went fine except the schema id change . As per the note 713524 I understand that db2 does not support the schema name change . Currently what I did is created a sapqas in SBX system and changed the environment variable . My question is there any ways we can overcome this and what is the best practice for doing DB restore in DB2 environment .

Appreciate your help .

Regards
Satish
Reply With Quote
  #2 (permalink)  
Old 08-23-11, 02:58
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
sorry for the answer : no
there is no procedure to restore a db and change at the same time the schema of objects
this has to be done with utilities if needed : db2look- export/load..
but I understand for an sap db with xxxx objects, this is not easy..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-23-11, 06:18
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There is an administrative stored procedure to copy all the objects of a schema and to create new schema, and then another one to delete the old schema. I have used it before, but don't recall the name. One of limitations of it is that it does not set the indentiy columns or sequences to the proper next value when the new schema is created.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On