First of all, as the error message says the timestmap you are providing is wrong, so check that. Second here are the commands to do redirect restore...these are generic and you should edit them to your needs...
--===========================
-- Restore database redirect
--===========================
1. Restore using the redirect option
e.g.
RESTORE DATABASE PROD
FROM d:\backup
INTO MTEST
NEWLOGPATH d:\TEST\logs
REDIRECT
;
2. Set tablespace containers
e.g.
set tablespace containers for 0 using (path 'd:\TEST\syscat\')
;
set tablespace containers for 1 using (path 'd:\TEST\tmp\')
;
set tablespace containers for 2 using (path 'd:\TEST\user1\')
;
3. Continue the restore process
e.g.
restore database PROD continue
4. Rollforward Query Status
e.g.
rollforward database PROD query status
5. Rollforward the database
e.g.
rollforward database TEST to <timestamp> and complete overflow log path 'd:\dir-name'
Hope this helps.
dollar
Quote:
Originally posted by Darsh
DB2 version = 6.1
Operating sys = NT 4.0
There are two different Servers.
Production & Test.
I took online backup of the Production database.
While I took this backup, I provided location of the TEST Servers's backup folder.
Becuase I don't have sufficient space on Production box to keep any extra backup.
Now, I want to Restore Production database backup to the Test Server - Database and I'm using this command.
(1) RESTORE DATABASE SIEBPDB FROM F:\\DBBackup TAKEN AT 20040123143142 WITH 2 BUFFERS BUFFER 1024 WITHOUT PROMPTING
OR
RESTORE DATABASE SIEBTDB FROM D:\\DBBackup\Siebpdb.0\Db2\Node0000\Catn0000 TAKEN AT 20040123143142 WITH 2 BUFFERS BUFFER 1024 WITHOUT PROMPTING
Getting this error for both commands:
Error : SQL2542N No match for a database image file was found based on the source
database alias and timestamp provided.
How to come out from this problem ?
Please advice.
|