<?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/oracle/</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="/computers/databases/ibmdb2/">IBM DB2</link>
      <link xlink:type="simple" xlink:href="/computers/databases/mysql/">MySQL</link>
      <link xlink:type="simple" xlink:href="index.xml">Oracle</link>
      <link xlink:type="simple" xlink:href="/computers/databases/sqlserver/">SQL Server</link>
   </navigation>
   <section id="body" type="body">
      <pages name="rman">
         <title>RMAN</title>
         <label>RMAN</label>
         <navigation where="up">
            <link xlink:type="simple" xlink:href="index.xml">Oracle</link>
         </navigation>
         <h1>Recovery Manager (RMAN)</h1>
         <page id="N102E9" name="rman">
            <title>RMAN</title>
            <label>RMAN</label>
            <description/>
            <subpage id="N102F0" name="rman1a">
               <h1>How to connect to an RMAN Catalog</h1>
               <blockcode>
                  <l>export ORACLE_SID=<i>targetsvc</i>​</l>
                  <l>rman target / catalog <i>username</i>/<i>password</i>@<i>catsvc</i>​</l>
                  <br/>
                  <l>export ORACLE_SID=<i>catsvc</i>​</l>
                  <l>rman target <i>username</i>/<i>password</i>@<i>targetsvc</i> catalog <i>username</i>/<i>password</i>​</l>
               </blockcode>
               <p>
                  <i>targetsvc</i> is the service name of the target database.
                  <i>catsvc</i> is the service name for the database where the RMAN catalog resides.
               </p>
               <blockcode>
                  <l>list backup of database archivelog all;</l>
               </blockcode>
            </subpage>
            <subpage id="N10326" name="rman1b">
               <h1>RMAN-06059: expected archive log not found</h1>
               <blockcode>
                  <l class="output">RMAN-06059: expected archived log not found, loss of archived log compromises recoverability</l>
                  <l class="output">ORA-19625: error identifying file /<i>archlogpath</i>/arch<i>sid</i>_<i>nnnn</i>.arc</l>
                  <l class="output">ORA-27037: unable to obtain file status</l>
                  <l class="output">IBM AIX RISC System/6000 Error: 2: No such file or directory</l>
               </blockcode>
               <h1>Compare archive logs in RMAN to ones on disk</h1>
               <blockcode>
                  <l>list archivelog all;</l>
                  <l>list archivelog like '/<i>archlogpath</i>/arch<i>sid</i>_<i>n</i>%.arc';</l>
                  <l class="output">List of Archived Log Copies</l>
                  <l class="output">Key     Thrd Seq     S Low Time  Name</l>
                  <l class="output">------- ---- ------- - --------- ----</l>
                  <l class="output">
                     <i>nnnnnn</i>  1    <i>nnnn</i>    A <i>dd-MON-yy</i> /<i>archlogpath</i>/arch<i>sid</i>_<i>nnnn</i>.arc</l>
                  <l class="output">...</l>
                  <l>host 'ls -l /<i>archlogpath</i>';</l>
               </blockcode>
               <h1>Delete all missing archive logs</h1>
               <p>DO NOT do <code>crosscheck archivelog all</code> with tape backups or archived logs,
                  only disk backups or logs, where RMAN can successfully verify the existence of the files.
                  Otherwise all backups or archived logs will become <span class="outlined">EXPIRED</span>.
               </p>
               <blockcode>
                  <l>list expired archivelog all;</l>
                  <l class="output">specification does not match any archive log in the recovery catalog</l>
                  <br/>
                  <l>crosscheck archivelog like '/<i>archlogpath</i>/arch<i>sid</i>_<i>n</i>%.arc';</l>
                  <l>crosscheck archivelog all;</l>
                  <br/>
                  <l>list expired archivelog all;</l>
                  <l class="output">List of Archived Log Copies</l>
                  <l class="output">Key     Thrd Seq     S Low Time  Name</l>
                  <l class="output">------- ---- ------- - --------- ----</l>
                  <l class="output">
                     <i>nnnnnn</i>  1    <i>nnnn</i>    X <i>dd-MON-yy</i> /<i>archlogpath</i>/arch<i>sid</i>_<i>nnnn</i>.arc</l>
                  <l class="output">...</l>
                  <br/>
                  <l>delete expired archivelog all;</l>
                  <l class="output">Do you really want to delete the above objects (enter YES or NO)?</l>
               </blockcode>
            </subpage>
            <updated local="2007-04-24">Tuesday April 24, 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>

