Okay I got the rollforward with the timestamp value to work, so thank you for that information.
I'm trying to get the option with rollfoward (specify OVERFLOW LOG PATH and NORETRIEVE options) to work. I'm trying different things as tests and documenting.
I did this:
dbtest$ db2 backup db test online to /db2_backup/dbtest/db include logs
Backup successful. The timestamp for this backup image is : 20110203120755
dbtest$ db2 restore db test from . taken at 20110203120755 replace existing
SQL2539W Warning! Restoring to an existing database that is the same as the
backup image database. The database files will be deleted.
DB20000I The RESTORE DATABASE command completed successfully.
Then I removed the logs:
dbtest$ cd /db2_data/test/logs/NODE0000
dbtest$ ls
S0000000.LOG S0000002.LOG S0000004.LOG S0000006.LOG S0000008.LOG S0000010.LOG S0000012.LOG S0000014.LOG
S0000001.LOG S0000003.LOG S0000005.LOG S0000007.LOG S0000009.LOG S0000011.LOG S0000013.LOG SQLLPATH.TAG
dbtest$ rm *.LOG
Then I restored the logs from the backup:
db2 restore db test logs from . taken at 20110203120755 logtarget /db2_data/test/logs/NODE
DB20000I The RESTORE DATABASE command completed successfully.
Now I'm trying to do a RF as you suggested but I might be doing it wrong too. I'm getting an error. Can you explain this and let me know what I'm going wrong?
db2 rollforward db test to end of logs and stop overflow logs path /db2_data/test/logs/NODE0000 noretrieve
Here is the error:
SQL0104N An unexpected token "logs" was found following "OVERFLOW". Expected
tokens may include: "LOG". SQLSTATE=42601
I want different options on how to restore from the backup or at a specific point in time...
Thank you so much for your help and please be patient with me, I'm not experienced with this...yet
