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 > udb redirect restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-05, 11:30
tubdba tubdba is offline
Registered User
 
Join Date: Aug 2004
Posts: 18
udb redirect restore

Hi

- we´ve been struggling with some problems concerning redirect restore.

we´re trying to move some 60GB TS from one DB to another.

db2 "RESTORE DATABASE JDBXG001 tablespace(fmtxxgsod01l) FROM "/data/db_bkp/db2mua" TAKEN AT 20051124144121 INTO WDBXG001 redirect WITHOUT prompting"

we receive

SQL2560N The target database is not identical to the source database for a
restore from a table space level backup. SQLSTATE=58004
d290341@tokyo:~/mysqls> db2 ? sql2560n


SQL2560N The target database is not identical to the source
database for a restore from a table space level
backup.

Explanation:

For a restore from a table space level backup, the target
database must be either the original database from which the
backup is taken or a new database.

User Response:

Specify the correct target database and resubmit the utility
command.


But wdbxg001 is a non existing "new database" !!!
The backup is a full offline backup taken on our source-db xdbxg001

Is it possible to do a redirect restore for a single ts only ??

Our second try was restoring the sourcedb into a non existing targetdb wdbxg001 completely.
- the target db was created
- during set ts-stmts we received "Bad path name", where the reason was lack of authorization for writing into target-path.

We need to restore 1 TS out of 18 of our source-db to an existing target-db including another 25 ts, which should not been involved or influenced by the redirect restore.

Does the restore utility support this functionality ?


Of course there is still the possebility to create the ts to be moved within the target db and fill it via import or load, but we want to save time ....

We are running on a Suse Linux Server with UDB for Linux

DB21085I Instance uses "32" bits and DB2 code release "SQL08022" with
level identifier "03030106".
Informational tokens are "DB2 v8.1.0.88", "s050422", "MI00105", and FixPak "9".
Product is installed at "/opt/IBM/db2/V8.1".

Is there some literature describing the complete functionality of restore and valid combinations of restore parms ?

Any ideas ?
willi (tubdba)

Last edited by tubdba; 11-24-05 at 11:51.
Reply With Quote
  #2 (permalink)  
Old 11-24-05, 16:37
wangzhonnew wangzhonnew is offline
Registered User
 
Join Date: Nov 2005
Location: Toronto
Posts: 65
This is expected behavior since we don t support tablespace level
restore into another database.
Please refer to this url (Using restore) :
http://publib.boulder.ibm.com/infoce...n/t0006242.htm
Restrictions
The following restrictions apply to the restore utility:
...
You can restore a table space only if the table space currently exists,
and if it is the same table space; "same" means that the table space was
not dropped and then recreated between the backup and the restore
operation.)
...
The reason is that DB2 needs to keep everything consistent and this
restriction is to ensure that you cannot mix tablespaces from different
databases.
__________________
IBM Certified DBA for DB2 UDB
IBM Certified Database Developer for DB2 UDB
DB2 Tech Support, IBM Toronto Software Lab
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