<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shell script using Oracle's RMAN in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210546#M168422</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may try with force.&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;FORCE&lt;BR /&gt; Deletes specified files (whether or not they exist on the media) and removes repository records. RMAN ignores any I/O errors for the deleted objects. RMAN displays the number of deleted objects at the end of the job.&lt;BR /&gt; &lt;BR /&gt;NOPROMPT&lt;BR /&gt; Deletes specified files without first listing the files or prompting for confirmation. The DELETE NOPROMPT command still displays each item as it is deleted. By default, DELETE displays files and then prompts for confirmation. If the user confirms, then RMAN shows each item as it is deleted. If you are running commands from a command file, then NOPROMPT is the default.&lt;BR /&gt; &lt;BR /&gt;EXPIRED&lt;BR /&gt; Removes only files whose status in the repository is EXPIRED. RMAN marks backups and copies as expired when you run a CROSSCHECK command and the files are absent or inaccessible. To determine which files are expired, run a LIST EXPIRED command. &lt;BR /&gt;&lt;BR /&gt;Note: Beginning in Oracle9i, RMAN's default behavior is to prompt for confirmation when you run DELETE EXPIRED. In prior releases, RMAN did not prompt.&lt;BR /&gt; &lt;BR /&gt;BACKUP&lt;BR /&gt; Deletes backup sets, backup pieces, and proxy copies. By default, RMAN deletes backups of the whole database. Specify the EXPIRED option to remove only backups that are marked EXPIRED in the repository. The KEY column of the LIST output indicates the primary key usable in the CHANGE and DELETE commands.&lt;BR /&gt; &lt;BR /&gt;COPY&lt;BR /&gt; Deletes datafile copies, archived redo logs, and image copies of archived redo logs. By default, DELETE ... COPY removes copies of all files in the database. Specify the EXPIRED option to remove only copies that are marked EXPIRED in the repository&lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Fri, 05 Mar 2004 11:05:15 GMT</pubDate>
    <dc:creator>Michael Schulte zur Sur</dc:creator>
    <dc:date>2004-03-05T11:05:15Z</dc:date>
    <item>
      <title>shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210543#M168419</link>
      <description>I wrote a shell script to delete the expired archive logs from the RMAN repository.  I used the command:&lt;BR /&gt;delete expired archivelogs all;&lt;BR /&gt;&lt;BR /&gt;The command return 2 different results:&lt;BR /&gt;&lt;BR /&gt;1) when it find expired archivelogs, it ask for confirmation:&lt;BR /&gt;&lt;BR /&gt;Do you really want to delete the above objects (enter YES or NO)?&lt;BR /&gt;&lt;BR /&gt;2) when it didn't find expired archivelogs, it return a message:&lt;BR /&gt;&lt;BR /&gt;specification does not match any archive log in the recovery catalog&lt;BR /&gt;&lt;BR /&gt;My script look like this:&lt;BR /&gt;&lt;BR /&gt;rman target sys/pwd@PRCV catalog rman/rman@DRMAN &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;allocate channel for delete type disk;&lt;BR /&gt;delete expired archivelog all;&lt;BR /&gt;YES&lt;BR /&gt;release channel;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;I worked fine if it find expired archivelogs.  Otherwise it returned error message because it couldn't recognize "YES".  How to make the script work under either conditions?&lt;BR /&gt;&lt;BR /&gt;Any help on this will be greatly appreciated.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 09:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210543#M168419</guid>
      <dc:creator>Jian Wu</dc:creator>
      <dc:date>2004-03-05T09:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210544#M168420</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;delete noprompt expired archivelogs all;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 05 Mar 2004 10:34:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210544#M168420</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2004-03-05T10:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210545#M168421</link>
      <description>Duncan:  Thanks, but it didn't work.  I don't think "noprompt" is supported by RMAN.  Since the "delete ..." command is excuted within RMAN, it must be supported by RMAN.  I asked Oracle if there is a way to suppress the confirmation, and the anwser is none.  What I have in mind is to build a condition, such as if it returns records do "YES", otherwise, skip it.  But don't know how to do it within the context of RMAN.</description>
      <pubDate>Fri, 05 Mar 2004 10:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210545#M168421</guid>
      <dc:creator>Jian Wu</dc:creator>
      <dc:date>2004-03-05T10:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210546#M168422</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may try with force.&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;FORCE&lt;BR /&gt; Deletes specified files (whether or not they exist on the media) and removes repository records. RMAN ignores any I/O errors for the deleted objects. RMAN displays the number of deleted objects at the end of the job.&lt;BR /&gt; &lt;BR /&gt;NOPROMPT&lt;BR /&gt; Deletes specified files without first listing the files or prompting for confirmation. The DELETE NOPROMPT command still displays each item as it is deleted. By default, DELETE displays files and then prompts for confirmation. If the user confirms, then RMAN shows each item as it is deleted. If you are running commands from a command file, then NOPROMPT is the default.&lt;BR /&gt; &lt;BR /&gt;EXPIRED&lt;BR /&gt; Removes only files whose status in the repository is EXPIRED. RMAN marks backups and copies as expired when you run a CROSSCHECK command and the files are absent or inaccessible. To determine which files are expired, run a LIST EXPIRED command. &lt;BR /&gt;&lt;BR /&gt;Note: Beginning in Oracle9i, RMAN's default behavior is to prompt for confirmation when you run DELETE EXPIRED. In prior releases, RMAN did not prompt.&lt;BR /&gt; &lt;BR /&gt;BACKUP&lt;BR /&gt; Deletes backup sets, backup pieces, and proxy copies. By default, RMAN deletes backups of the whole database. Specify the EXPIRED option to remove only backups that are marked EXPIRED in the repository. The KEY column of the LIST output indicates the primary key usable in the CHANGE and DELETE commands.&lt;BR /&gt; &lt;BR /&gt;COPY&lt;BR /&gt; Deletes datafile copies, archived redo logs, and image copies of archived redo logs. By default, DELETE ... COPY removes copies of all files in the database. Specify the EXPIRED option to remove only copies that are marked EXPIRED in the repository&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 11:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210546#M168422</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-05T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210547#M168423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this should work too:&lt;BR /&gt;delete noprompt expired archivelog all;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 11:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210547#M168423</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-05T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210548#M168424</link>
      <description>My situation is the actual files were deleted from the OS.  Here I only need to remove the registry from the repository.&lt;BR /&gt;When I do "noprompt", I got:&lt;BR /&gt;RMAN&amp;gt; delete noprompt expired archivelogs all;&lt;BR /&gt;&lt;BR /&gt;RMAN-00571: ===========================================================&lt;BR /&gt;RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&lt;BR /&gt;RMAN-00571: ===========================================================&lt;BR /&gt;RMAN-00558: error encountered while parsing input commands&lt;BR /&gt;RMAN-01005: syntax error: found "identifier": expecting one of: "archivelog, backup, backuppiece, ba&lt;BR /&gt;ckupset, copy, controlfilecopy, datafilecopy, proxy"&lt;BR /&gt;RMAN-01008: the bad identifier was: archivelogs&lt;BR /&gt;RMAN-01007: at line 2 column 26 file: standard input</description>
      <pubDate>Fri, 05 Mar 2004 11:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210548#M168424</guid>
      <dc:creator>Jian Wu</dc:creator>
      <dc:date>2004-03-05T11:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210549#M168425</link>
      <description>Jian,&lt;BR /&gt;&lt;BR /&gt;in case you didn't notice. In my last post the archivelog has no s at the end. ;-)&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 11:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210549#M168425</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-05T11:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: shell script using Oracle's RMAN</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210550#M168426</link>
      <description>Michael:  Thanks, you are absolutely right!  It worked after I corrected the error.  It's amazing that Oracle analyst didn't know the option "noprompt".  Thanks again.&lt;BR /&gt;&lt;BR /&gt;Duncan - your response was actually correct, except that there is an extra "s" after archivelog.  Thanks!</description>
      <pubDate>Fri, 05 Mar 2004 12:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-using-oracle-s-rman/m-p/3210550#M168426</guid>
      <dc:creator>Jian Wu</dc:creator>
      <dc:date>2004-03-05T12:21:33Z</dc:date>
    </item>
  </channel>
</rss>

