473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Don't want to rollforward

5
Hello,

This is a newbie question on an old db.

In DB2 (v7.2) logretain and trackmod are turned on.

Backup schedule is full offline backup, on Sunday, and incremental backups on all other days.

I want to restore a backup without rolling forward (scenario says that I've lost the log files). I tried the following command:

[HTML]db2 restore db TEST incremental automatic from g:\backup taken at 20080303100000 to f: into TEST without rolling forward[/HTML]

Which results in a msg that says a roll forward is required following the restore and nothing happens!

If the without roll forward key words are not available in v7 then what do I use??

Any ideas?

Thanks
Mar 6 '08 #1
4 3954
docdiesel
297 Expert 100+
Hi,

try a
Expand|Select|Wrap|Line Numbers
  1. ROLLFORWARD DATABASE mydb COMPLETE  (or STOP, it's the same)
This completes the rollforward recovery process by rolling back any incomplete transactions and turning off the rollforward pending state of the database.

Regards,

Bernd
Mar 6 '08 #2
mycita
5
Bernd,

Thanks for the quick reply.

db2 rollforward db cdctest complete and db2 rollforward db cdctest stop resulted in: [HTML]SQL1276N Database "TEST" cannot be brought out of rollforward pending state until roll-forward has passed a point in time greater than or equal to "2008-03-06-18.11.17.000000", because node "0" contains information later than the specified time.[/HTML]

So that's what I did and it worked.

Does that mean the 'With rolling forward' is not available in v7 or that something quirky is going on?

By the same token what is wrong with this:

Expand|Select|Wrap|Line Numbers
  1. G:\>db2 backup db TEST online incremental to h:\backup\test include logs
  2. SQL0104N  An unexpected token "include" was found following "<identifier>".
  3. Expected tokens may include:  "END-OF-STATEMENT".  SQLSTATE=42601
Thank you again!
Mar 6 '08 #3
docdiesel
297 Expert 100+
Hi,

as far as I remember there was a "without rolling forward" in v 7.2, but no "backup ... include logs". The latter one was introduced within some v8 DB2. Quiet a time ago that I last used v7.

Doing online backups always forces a rollforward when restoring the db because when taking the backup the db was inconsistent. This leads to the fact that you need the logs that were "online" (in use) when the db was backuped.

There's the possibility to migrate the logs to a safe place once they are offline, means closed. DB2 brings some examples of this so called "userexit" with itself in C code, for compiling and using e.g. TSM for storing the logs. This userexit also automatically fetches the logs when restoring the db. I tried this with v7.2 and it worked fine.

Another possibility should be the "secondlogpath" setting, but I never tried this one.

Regards,

Bernd
Mar 6 '08 #4
mycita
5
Thanks for the time and advise
Mar 6 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Raquel | last post by:
I have asked a similar question before, but am still not very clear on this......expecting some insights on this one.... Ok, so these are the two pieces of information regarding archived logs...
3
by: Raquel | last post by:
During a ROLLFORWARD recovery, are the log datasets copied from the archive log directory to the active log directory? I know the log datasets are copied from archive log directory to active log...
1
by: Steven | last post by:
Ok W2K DB2 v8.1 fix pack 5. On production I took a an online backup of production and copied it over to my staging environment. restored the production database on top of staging database...
0
by: GB | last post by:
In a log shipping scenario I would like to be able to test my database and set it back manually in roll forward pending state, is it possible ? What I would like to do in detail: - On the...
2
by: shenanwei | last post by:
DB2 V8.1.5 on Windows. When I execute ROLLFORWARD after a Restore. C:\db2 ROLLFORWARD db sample to END OF LOGS overflow log path(C:\LOGS\) Rollforward Status Input database alias ...
3
by: t2581 | last post by:
Hi , I run restore with rollforward In job in output, last commited transaction time less then backup image time Is it normal ? RESTORE DATABASE PRICE_V8 FROM "E:\BACKUP" TAKEN AT...
3
by: t2581 | last post by:
Hi, we are daily restore db "PRICE" with rollforward from server A into PRICE on server B Usually we restore from backup with timestamp of ~ 02:00 AM and applying logs till 7 AM (30-50...
3
by: dotyet | last post by:
Hi Everyone, I am in a very strange situation, and am looking for suggestions to tackle it. I have a 10 gig database on 64-bit windows 2003 running platform. The database has about 5 gigs of...
2
by: satish mullapudi | last post by:
Hi, Am facing a tough situation & the scenario goes like this: I have scheduled online backup on a db. The online backup is scheduled to run daily at 12 in the night. Now am to restore the same db...
0
by: shorti | last post by:
We are running DB2 UDB 8.1 fp 14 on AIX using archival logging and online backups. I was running some disaster tests and found my database restore was not restoring to the latest active log. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.