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 > Creating a new DB2 instance from an old active instance in Control Center

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-11, 23:22
xs2 xs2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 5
Red face Creating a new DB2 instance from an old active instance in Control Center

Hi All

Is it possible to create a new DB2 instance with all schema and datat from an old yet active instance in Control Center.

I tried doing the backup of that old instance and then tried to create a new DB from that backup.But the problem is ,now both instances points to the same Tablespace.

Is it possible to like get the backup from one DB and then create a new DB and use that backup to have that schema and data but in new Tablespace.

Is it possible in Control Center or thorugh commands.?

I do not want to drop my old DB instance, I just want to create a new one from the old one.

DB2 V 9.7

Last edited by xs2; 12-11-11 at 23:29. Reason: new line added
Reply With Quote
  #2 (permalink)  
Old 12-12-11, 01:54
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
an instance is just a user-environment where a db can be created and run
you can not backup an instance
you can create as many instances as you need/can
a db can be restored in a different instance
be more specific with the provided information so we see the picture..
__________________
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 12-12-11, 06:20
xs2 xs2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 5
Ok..
I want to create a DB with same schema,Data whats there in another DB say DB1 .

is there any way to like take backup of DB1 and restore that image in DB2 , such that both DB do not share the same tablespace.

Hope its clear now..
Reply With Quote
  #4 (permalink)  
Old 12-12-11, 06:32
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
yes it is
have a look at redirected restore
RESTORE DATABASE - IBM DB2 9.7 for Linux, UNIX, and Windows
__________________
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
  #5 (permalink)  
Old 12-13-11, 01:48
xs2 xs2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 5
Thanks.

Is there any guide or set of process/commands that needs to be followed?
Reply With Quote
  #6 (permalink)  
Old 12-13-11, 02:06
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
__________________
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
  #7 (permalink)  
Old 12-20-11, 03:12
xs2 xs2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 5
thanks..!!
Reply With Quote
Reply

Tags
backup, db2, tablespace

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