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 > migration of DB to new server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-06, 20:04
sivakumar_db2 sivakumar_db2 is offline
Registered User
 
Join Date: May 2006
Posts: 4
Question migration of DB to new server

The requirement is to move DB from one instance in one server to another instance of another server. When I tried to use the restore option using the backup of the old DB in new server, I am able to get the all required tables/SP/etc. But there is one problem. the default schema owner is the instance owner. So in new DB, all tables are generated with old instance owner name as schema name.

So how to change the schema for these tables or what is the right procedure of migration of the DBs from one instance to another?

Thanks in advance.

Siva
IBM Certified deployment professional
Reply With Quote
  #2 (permalink)  
Old 05-07-06, 04:08
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
migrate

the only way I see, is export and import with create option, so you could change the schema - or export all - run db2look - modify output - create all objects - load all data
__________________
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 05-07-06, 05:50
sivakumar_db2 sivakumar_db2 is offline
Registered User
 
Join Date: May 2006
Posts: 4
Smile db2move option

Thanks for the reply. I tried the following, as the suggestion says.
1. db2move export old db
2. db2look old db
3. db2 -tvf to generate all DB2 objects in new DB
4. db2move import new db.
( before step 4, i changed the db2move.lst to refer to new schema)
It seems to be working fine.

Regards,
Siva
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