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 > clone database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-07, 01:49
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile clone database

if we use

backup database livedb
and then

restore database livedb

then we can tranfer database to any machine

but if we require to transfer database with name livedbtest which
contains the same contents of live

not by export load command
Reply With Quote
  #2 (permalink)  
Old 08-17-07, 02:23
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
you can restore db aa into db bb (into..)
if on the same machine and specific paths are being used, then redirected restore is needed. see doc for restore and redirect
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 08-17-07, 07:17
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile

Quote:
Originally Posted by guyprzytula
you can restore db aa into db bb (into..)
if on the same machine and specific paths are being used, then redirected restore is needed. see doc for restore and redirect
yes this is working fine If we want to change schema name for tables

then what we have to do
Reply With Quote
  #4 (permalink)  
Old 08-17-07, 07:35
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
SCHEMA_MAP option in db2move or SYSPROC.ADMIN_COPY_SCHEMA
if u r on V9
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #5 (permalink)  
Old 08-17-07, 07:38
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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