<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml11_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/computers/databases/ibmdb2/</path>
   <site>How To Guides</site>
   <logo xlink:type="simple" xlink:href="/images/howtohome.jpg" media="screen" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguides.jpg" media="print" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguidesmobile.jpg" media="handheld" width="150" height="17">How To Guides</logo>
   <navigation where="sections">
      <label>How To Guides</label>
      <link xlink:type="simple" xlink:href="/business/index.xml">Business</link>
      <link xlink:type="simple" xlink:href="/computers/index.xml">Computers</link>
      <link xlink:type="simple" xlink:href="/computers/databases/index.xml">Databases</link>
      <link xlink:type="simple" xlink:href="/internet/index.xml">Internet</link>
      <link xlink:type="simple" xlink:href="/mobile/index.xml">Mobile</link>
      <link xlink:type="simple" xlink:href="/money/index.xml">Money</link>
      <link xlink:type="simple" xlink:href="/movies/index.xml">Movies</link>
      <link xlink:type="simple" xlink:href="/computers/os/index.xml">Operating Systems</link>
   </navigation>
   <navigation where="up">
      <link xlink:type="simple" xlink:href="../../">Computers</link>
      <link xlink:type="simple" xlink:href="../">Databases</link>
   </navigation>
   <navigation where="subsections">
      <link xlink:type="simple" xlink:href="/computers/databases/design.xml">Design</link>
      <link xlink:type="simple" xlink:href="/computers/databases/tuning.xml">Tuning</link>
      <link xlink:type="simple" xlink:href="/computers/databases/derby/">Apache Derby</link>
      <link xlink:type="simple" xlink:href="index.xml">IBM DB2</link>
      <link xlink:type="simple" xlink:href="/computers/databases/mysql/">MySQL</link>
      <link xlink:type="simple" xlink:href="/computers/databases/oracle/">Oracle</link>
      <link xlink:type="simple" xlink:href="/computers/databases/sqlserver/">SQL Server</link>
   </navigation>
   <section id="body" type="body">
      <pages name="restore">
         <title>How To Restore DB2 TableSpaces</title>
         <label>Restore</label>
         <navigation where="up">
            <link xlink:type="simple" xlink:href="index.xml">IBM DB2</link>
         </navigation>
         <h1>How To Restore DB2 TableSpaces</h1>
         <page id="N101DE" name="restore">
            <title>How To Restore DB2 TableSpaces</title>
            <label>Restore</label>
            <description/>
            <subpage id="N101E5" name="restore">
               <ol>
                  <li>Determine the approximate date and time of the restore point.
                  </li>
                  <li>Restore a backup of the BSDS that was taken after the restore point,
                     During the restore, rename the dataset to something different than the current active BSDS.
                     <blockcode>
                        <l>//<i>USRNAME</i>A JOB CLASS=A,MSGCLASS=X,NOTIFY=<i>USRNAME</i>
                        </l>
                        <l>//STEP1   EXEC PGM=ADRDSSU,REGION=0M</l>
                        <l>//SYSPRINT DD  SYSOUT=*</l>
                        <l>//TAPE01   DD  DSN=<i>BACKUP.DATASET</i>,VOL=SER=(006596),</l>
                        <l>//             DISP=(OLD,KEEP),UNIT=3590-1,LABEL=(1,SL)</l>
                        <l>//DISK01   DD  UNIT=SYSDA,DISP=OLD</l>
                        <l>//SYSIN    DD  *</l>
                        <l>  RESTORE DATASET(INCLUDE(DB2PROD.BSDS01.**)) -</l>
                        <l>          RENAMEUNCONDITIONAL(<i>USRNAME</i>) -</l>
                        <l>          INDDNAME(TAPE01) -</l>
                        <l>          OUTDDNAME(DISK01) -</l>
                        <l>          CATALOG</l>
                        <l>//</l>
                     </blockcode>
                  </li>
                  <li>Run the LOGMAP utility to get the log RBAs at the checkpoints.
                     <blockcode>
                        <l>//DEVDRGSA JOB CLASS=A,MSGCLASS=X,NOTIFY=DEVDRGS</l>
                        <l>//LOGMAP  EXEC PGM=DSNJU004,REGION=0M</l>
                        <l>//SYSUT1   DD  DSN=DEVDRGS.BSDS01,DISP=SHR</l>
                        <l>//SYSPRINT DD  SYSOUT=*</l>
                        <l>//</l>
                     </blockcode>
                     Select the RBA of the desired restore point.
                     If the checkpoint queue in the report does not span the entire range of time between
                     backups of the BSDS, increase CHKFREQ in DSNZPARMs or back up the BSDS more frequently.
                  </li>
                  <li>Using the <span class="outlined">DSN1LOGP</span> utility or a log analzyer, adjust
                     the RBA of the restore point, if necessary, to avoid any units of work in progress.
                  </li>
               </ol>
            </subpage>
            <updated local="2007-04-30">Monday April 30, 2007</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2006 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
   <ids urchin="UA-779578-2"/>
</document>

