19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BACKUP SYSTEM<br />

During backup <strong>DB2</strong> records the “recovery base log point” (RBLP) in the header page of<br />

DBD01. The RBLP is identified as the most recent system checkpoint prior to a backup log<br />

point, and the point at which <strong>DB2</strong> starts scanning logs during a RESTORE SYSTEM recovery<br />

operation. <strong>DB2</strong> updates its BSDS (boot strap data set) with backup version in<strong>for</strong>mation and<br />

can keep track of up to 50 backup versions. In the case of data sharing the submitting<br />

member records the backup version in its BSDS and also in the SCA. This in<strong>for</strong>mation is also<br />

recorded in DFSMShsm control data sets.<br />

Note that in <strong>DB2</strong> V8, the SET LOG SUSPEND command also writes the RBLP to the DBD01<br />

header page.<br />

Concurrency and compatibility<br />

BACKUP SYSTEM can run concurrently with any other utility; however, it must wait <strong>for</strong> the<br />

following <strong>DB2</strong> events to complete be<strong>for</strong>e the copy can begin:<br />

► Extending data sets<br />

► Writing 32 KB pages <strong>for</strong> page sets with a VSAM CISZE that is different from the <strong>DB2</strong> page<br />

size<br />

► Writing close page set control log records<br />

► Creating data sets (<strong>for</strong> table spaces, indexes, and so <strong>for</strong>th)<br />

► Deleting data sets (<strong>for</strong> dropping tables spaces, indexes, and so <strong>for</strong>th)<br />

► Renaming data sets (<strong>for</strong> online reorganizing of table spaces, indexes, and so <strong>for</strong>th during<br />

the SWITCH phase)<br />

Only one BACKUP SYSTEM job can be running at one time.<br />

The log write latch is not obtained by the BACKUP SYSTEM utility, as is done by the SET<br />

LOG SUSPEND command. There<strong>for</strong>e, using the BACKUP SYSTEM utility should be less<br />

disruptive in most cases. There is no need to suspend logging when using the BACKUP<br />

SYSTEM utility, since <strong>DB2</strong> is now in control of taking the volume copies, where you are in<br />

charge of initiating copying the data in the case of using -SET LOG SUSPEND.<br />

RESTORE SYSTEM<br />

Use the RESTORE SYSTEM utility only when you want to recover a subsystem or data<br />

sharing group to an arbitrary point-in-time. The utility restores only the database copy pool of<br />

a data only or full system backup, and then applies logs until it reaches a point in the log equal<br />

to the log truncation point specified in a point-in-time conditional restart control record<br />

(SYSPITR CRCR) created with DSNJU003. You cannot explicitly name the backup to use <strong>for</strong><br />

recovery. That is implicitly determined by the log truncation point used to create the SYSPITR<br />

CRCR. Similar to the Recovery utility, Restore can optionally use the Fast Log Apply (FLA)<br />

option. As restore will be the only task running in <strong>DB2</strong>, we strongly advise you to enable Fast<br />

Log Apply in order to accelerate the recovery process.<br />

RESTORE SYSTEM LOGONLY can run without a BACKUP SYSTEM backup and can run<br />

with z/<strong>OS</strong> 1.3. By using this option, you indicate that the database volumes have already<br />

been restored using DFSMShsm or other means, and the restore phase will be skipped. A<br />

backup made in a SET LOG SUSPEND/RESUME cycle is required because SET LOG<br />

SUSPEND updates the RBLP in the DBD01 header page.<br />

<strong>DB2</strong> V8 Fast Log Apply behavior<br />

Fast Log Apply was introduced in <strong>DB2</strong> V6. It is activated by specifying a non-zero value <strong>for</strong><br />

the DSNZPARM parameter LOGAPSTG. The acceptable values are 0 to 100 MB with 100<br />

220 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!