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 > Mkae my Backup faster : )

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-09, 14:16
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Mkae my Backup faster : )

Running DB2 9.5 LUW I have a quad CPU 3 GHZ with 4GB of RAM.

Here is my backup code:
Code:
CONNECT TO PRODDM user db2admin using db2admin;
QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS;
SELECT current timestamp FROM sysibm.sysdummy1; 
CONNECT RESET;
BACKUP DATABASE PRODDM user db2admin using db2admin TO "\\kocudb01\Backups\" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
CONNECT TO PRODDM user db2admin using db2admin;
SELECT current timestamp FROM sysibm.sysdummy1;
CONNECT RESET;
takes about 90 mins to back up 80GB (to the same box)

Can anyone help me tweek my code to make the backup run faster ? ? (ie..more buffer, bigger buffer etc... )
Reply With Quote
  #2 (permalink)  
Old 05-27-09, 15:30
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Please see the following:
DB2 Backup with TSM Optimization


Use multiple target devices if possible (ie. network drives). Target devices are almost always the bottleneck. The more target devices, the faster backup will go.
Reply With Quote
  #3 (permalink)  
Old 05-27-09, 15:32
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Our current need is to backup to the local server where the backup is then written off to tape. no way to make it faster increasing buffers etc...?
Reply With Quote
  #4 (permalink)  
Old 05-27-09, 15:40
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Please use the following general guidelines:
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

Increase parallelism if you have multiple tablespaces. Specifying multiple targets (directories) on the local server should help. Please check the link for other parameters.
Reply With Quote
  #5 (permalink)  
Old 05-27-09, 16:13
db2udbgirl db2udbgirl is offline
Registered User
 
Join Date: Mar 2006
Location: Tuticorin, India
Posts: 100
Bella, Is it a good idea to double the UTIL_HEAP_SZ and half the DBHEAP during backup to improve the performance ?

DB2 Manual doesn't recommend it but I read it in few other forums. Any thoughts on this ?
Reply With Quote
  #6 (permalink)  
Old 05-27-09, 16:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
IN 9.5 DBHEAP and UTIL_HEAP_SZ should be set to automatic.
__________________
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
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