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 > netbackup for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 14:18
dbaapc dbaapc is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
netbackup for DB2

Hi everybody
I would like to know which commands on db2
are necesary to make an online & offline backup in order to donīt affect the applications which uses the db2 in real time.

In netbackup terms there are a script which
do the backup, this script is
"db2 backup database sample $MY_SCHED load $MY_LIB open 4 sessions buffer 1024"

where my lib= nbdb2.sl (for 32-bits db2)

but there are not any command to put the database on backup mode, like logretain on, or user exit, so I donīt know which sequence use for each case (online and off line) in addition to the netbackup script.
I appreciate your help and suggestion for this
regards
Aaron
Reply With Quote
  #2 (permalink)  
Old 02-11-04, 14:27
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: netbackup for DB2

You would need to turn log retain on and setup a userexit to do online backups.

db2 udpate db cfg for <instance> using LOGRETAIN yes;
db2 udpate db cfg for <instance> USEREXIT on;


Then you'll need to run an offline backup. Nothing can be accessing or connect to the db during this time. If time is a factor, run your offline to /db2/null and then run an online to whatever device you normally back up too.

you then could backup your db with

db2 backup database <instance> online use adsm open 2 sessions 4 buffers parallelism 2
or
db2 backup database <instance> online to < your device>

Your backup can and probably cause a litlle system slow down.


rember, you cannot have anything connected to the DB during the offline backup.
__________________
David Quigley
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 14:29
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: netbackup for DB2

Should be run backup to /dev/null if your using UNIX or a dummy file
__________________
David Quigley
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