473,386 Members | 1,694 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,386 software developers and data experts.

restore db2 backup with include logs

Hi,
i made an attempt to restore a online backup made with include logs option.
But when i rollforward the db, i can't pout it online because it always ned
log file. I tried the option to rollforward to end of logs and to point in
time.
In the doc, it is said taht with 'include logs', i can restore without any
log file.
Someone know how can i stop the rollforward pending status ?

regards
Nov 12 '05 #1
6 11519
Paul:

Can you please answer these questions?

1. When running restore, did you use the [LOGTARGET directory] option
to retrieve the included logs?
2. Did you rollforward using these log files?
3. If you did, then did you atltest rollforward to the minimum PIT
recovery ?

If all of above is true, then you should be able to issue rollforward
complete and bring DB online.

Note:
a. If LOGRETAIN/USEREXIT is enabled, then an ONLINE backup will force a
rollforward.
b. If LOGRETAIN/USEREXIT is enabled, an OFFLINE backup will NOT force
rollforward.

HTH

Vijay

Nov 12 '05 #2

"paul" <no****@nomail.com> wrote in message
news:3810FD4EAD8AD611A50D00805F0DA7FA07C22E2E@DUN-COM-NEWS02...
Hi,
i made an attempt to restore a online backup made with include logs
option.
But when i rollforward the db, i can't pout it online because it always
ned
log file. I tried the option to rollforward to end of logs and to point in
time.
In the doc, it is said taht with 'include logs', i can restore without any
log file.
Someone know how can i stop the rollforward pending status ?

regards

When you include the logs, DB2 only includes the logs active during the
on-line backup. It is not possible to include future logs (created after the
backup) in a backup, since they have not been created yet as of when the
backup is created.

So including the logs in the backup only guarantees that you can restore the
on-line backup without rolling forward (previously you could not even do
that without the logs active during the on-line backup).

As noted by another poster, if you have all the logs created after the
backup on a directory somewhere, you can point to them and roll forward.
Nov 12 '05 #3
Hi
thx for your comments
i missed the logtarget option. I tried with this and it works.
I thought that it was like mssql and we didn't need to issue the rollforward
statement.
I wonder why ibm can't put an option in the 'restore' command to bring
automatically the database online without issuing manually rollforward
in the case the logs are included in the backup image.

regards


"UDBDBA" <vi***********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Paul:

Can you please answer these questions?

1. When running restore, did you use the [LOGTARGET directory] option
to retrieve the included logs?
2. Did you rollforward using these log files?
3. If you did, then did you atltest rollforward to the minimum PIT
recovery ?

If all of above is true, then you should be able to issue rollforward
complete and bring DB online.

Note:
a. If LOGRETAIN/USEREXIT is enabled, then an ONLINE backup will force a
rollforward.
b. If LOGRETAIN/USEREXIT is enabled, an OFFLINE backup will NOT force
rollforward.

HTH

Vijay

Nov 12 '05 #4
In article <3810FD4EAD8AD611A50D00805F0DA7FA07C2FF02@DUN-COM-NEWS02>,
paul (no****@nomail.com) says...
Hi
thx for your comments
i missed the logtarget option. I tried with this and it works.
I thought that it was like mssql and we didn't need to issue the rollforward
statement.
I wonder why ibm can't put an option in the 'restore' command to bring
automatically the database online without issuing manually rollforward
in the case the logs are included in the backup image.

regards


Check the recover database command
Nov 12 '05 #5
I haven't gotten the chance to play around with inline logs yet. But I am
assuming that as in previous online backups, you still have to rollforward
though logs to cover the time it took to make the backup, so that you would
be consistently at the point the database was at when the backup completed.

"Gert van der Kooij" <ge**@invalid.nl> wrote in message
news:MP************************@news.xs4all.nl...
In article <3810FD4EAD8AD611A50D00805F0DA7FA07C2FF02@DUN-COM-NEWS02>,
paul (no****@nomail.com) says...
Hi
thx for your comments
i missed the logtarget option. I tried with this and it works.
I thought that it was like mssql and we didn't need to issue the
rollforward
statement.
I wonder why ibm can't put an option in the 'restore' command to bring
automatically the database online without issuing manually rollforward
in the case the logs are included in the backup image.

regards


Check the recover database command

Nov 12 '05 #6
Hi Paul ,

In case your logretain is = capture , it worked for me .
restore db MYDB from /home/db2inst1/bck01/savdatabase taken at
20050601020001;

rollforward db MYDB to end of logs and complete overflow log path
(/home/db2inst1/bck01/database/db2inst1/db2inst1/NODE0000/SQL00003/SQLOGDIR);

I tried "rollforward db MYDB to end of logs and complete;" but it
didn't work .

In fact , I don't know why .

Anyway you'll need to try some combination in order to make it work .

Best way the manual and internet :

http://dbforums.com/t670401.html

http://publib.boulder.ibm.com/infoce...e/r0001978.htm

Best of luck ,

Regards ,

Andy the beginner in DB2.

paul a écrit :
Hi,
i made an attempt to restore a online backup made with include logs option.
But when i rollforward the db, i can't pout it online because it always ned
log file. I tried the option to rollforward to end of logs and to point in
time.
In the doc, it is said taht with 'include logs', i can restore without any
log file.
Someone know how can i stop the rollforward pending status ?

regards


Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tram | last post by:
I am setting up a job to automatically restore the standby database. This is to test our tape backups. I need to passon the latest full backup and log file names to the tape system to extract the...
1
by: Eugene F | last post by:
Is there a way to determine if a backup image includes logs, i.e. was produced by BACKUP DB command with INCLUDE LOGS option Thanks, -Eugene
4
by: Brian D | last post by:
In MS SQL 2005 when you do a Full Backup does it also backup and truncate the transaction logs or do I need to back the transaction logs up separately? Thanks. Brian
1
by: GM | last post by:
We have received a backup file that is 6G in size. The log file is about 74G while the MDF is about 5 G when we restored. Is there a way to run a SQL script to restore the .BAK file without...
5
by: Nasif | last post by:
Hello All I am currently doing a project on MS SQL Server 2005 where I am in need of table level backup/restore. I know about FILEGROUP. But in our project using FILEGROUP is not feasible. As...
1
by: heyzulu59 | last post by:
How can I tell if a backup image was created using the include logs option?
2
by: alex250374 | last post by:
Hi all, db2 9.1 fixpak 0 aix 5.3 I have a big problem every time I start an online backup with include logs via veritas comes out an error!!! The db2diag shows:...
1
harshadd
by: harshadd | last post by:
http://images.orkut.com/orkut/photos/OgAAAPCx9BDT2K9eZgmdGn5dAG_oKl7hf_SnAM8q4fIPozZ1oOIYdzAwHLfBA1HFlX6F04O5kWMQGYlUiHs7NbwPm10Am1T1UJ6Eoc0OhIb-Tkbf1rcJlIni46gd.jpg Pls see the above error I am...
1
by: prakash mhatre | last post by:
I want to restore backup from mapped network drive which i have shared in MSSQL server 2003. I have mapped a network drive & given sharing to the folder. I am using a batch file to restore...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.