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 > altering schema name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-06, 15:21
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
altering schema name

Hi All,

I just did a redirected restore using online backup image of the production database and restoring it to our test database on the test server. The restore went fine but the schema for the traget database is overwritten with the source database schema.

is it possible to alter the schema name on the target database back to what it was? Is there a command for this.

ENV: Db2 v8.1 FP 7a, AIX

Thanks

Anks
Reply With Quote
  #2 (permalink)  
Old 08-18-06, 16:43
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Can you get away with defining aliases for each table,view? CREATE ALIAS TEST.TX for PROD.TX ; where TX is table name; Using tabname in syscat tables,you can create a sql to create multiple CREATE alias statements.
__________________
mota
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