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 > DB2 Online backup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-10, 01:39
LittlePig LittlePig is offline
Registered User
 
Join Date: Aug 2010
Posts: 5
DB2 Online backup

Hi,

Can someone tell me what will be the impact if I will start taking online backups with option - exclude logs?
Now the logs are included(even if the include logs option is not given) and this is creating a lot of retrieve operations during the online backup.

What is the impact for restore time?
Is there any other impact?

Any reply will be appreciated.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 08-28-10, 04:23
welyngj welyngj is offline
Registered User
 
Join Date: Feb 2004
Posts: 15
I think it won't waste a lot of time.
if the archive log is very large ,maybe need a lot of time.
Reply With Quote
  #3 (permalink)  
Old 08-30-10, 03:56
db2cap db2cap is offline
Registered User
 
Join Date: May 2010
Posts: 87
I wont make a huge difference but why to invest unnecessay time in executing rollforwards when we are priviledged to include logs in the backup image itself.
May I know the need to exclude logs while taking online backup? How is that going to help you?
Reply With Quote
  #4 (permalink)  
Old 08-30-10, 08:52
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Including the logs into the backup image will not rollforward the database automatically; you will still have to extract the logs and run the ROLLFORWARD command. The benefit of including the logs is that the backup image becomes self-contained; you don't need any other files to restore and rollforward the database to a consistent state.
Reply With Quote
  #5 (permalink)  
Old 09-10-10, 17:15
LittlePig LittlePig is offline
Registered User
 
Join Date: Aug 2010
Posts: 5
Quote:
Originally Posted by db2cap View Post
I wont make a huge difference but why to invest unnecessay time in executing rollforwards when we are priviledged to include logs in the backup image itself.
May I know the need to exclude logs while taking online backup? How is that going to help you?
Hey, thanks for your reply!

I want to exclude the logs from the backup because of 2 reasons(we are talking about more dbs):
- there are retrieves of the logs during the online backup which are canceling other sessions using drives when all drives are in use (retrieve operation has higher priority)
- we get also this error during one online backup:
SQL2428N The BACKUP did not complete because one or more of the requested log files could not be retrieved.
Reply With Quote
  #6 (permalink)  
Old 09-10-10, 18:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I'm not sure what your question is. If it is "how to not include the logs" - use the EXCLUDE LOGS option. It's curios how much information one can find in the reference manual.
Reply With Quote
  #7 (permalink)  
Old 09-10-10, 20:07
LittlePig LittlePig is offline
Registered User
 
Join Date: Aug 2010
Posts: 5
Hey again n_i!
I started the thread with this question:
"Can someone tell me what will be the impact if I will start taking online backups with option - exclude logs?"
I am curious mostly about restore time impact.
Reply With Quote
  #8 (permalink)  
Old 09-10-10, 20:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If by impact, you mean elapsed time, then you will have to run a test yourself to find out. There are too many variables to consider that may vary from one db and activity level to another.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #9 (permalink)  
Old 09-10-10, 20:32
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by LittlePig View Post
I started the thread with this question:
"Can someone tell me what will be the impact if I will start taking online backups with option - exclude logs?"
There will be no impact to restore, because by default the logs are not extracted. There will be impact to rollforward, however, because you will have to extract the logs from the backup image first.
Reply With Quote
  #10 (permalink)  
Old 09-11-10, 12:06
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by LittlePig View Post
what will be the impact if I will start taking online backups with option - exclude logs?"
No impact as long as you have the required logs stored somewhere else. Online backups are useless without those logs.
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