<?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: using a variable in the RMAN backup format parameter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694387#M843213</link>
    <description>Harry,&lt;BR /&gt;&lt;BR /&gt;ORACLE_BACKUP=/db/oracle01/netbackup/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the .rcv for RMAN. Using $ORACLE_BACKUP vs. ${ORACLE_BACKUP} made no difference.&lt;BR /&gt;&lt;BR /&gt;Thanks...Peter&lt;BR /&gt;&lt;BR /&gt;connect target ...&lt;BR /&gt;connect rcvcat ...&lt;BR /&gt;run {&lt;BR /&gt;# Hot database level 0 whole backup&lt;BR /&gt;allocate channel t1 type disk;&lt;BR /&gt;backup&lt;BR /&gt;  incremental level 0&lt;BR /&gt;  skip inaccessible&lt;BR /&gt;  tag hot_db_bk_level0&lt;BR /&gt;  filesperset 5&lt;BR /&gt;  # recommended format&lt;BR /&gt;  format '$ORACLE_BACKUP/bk_%s_%p_%t'&lt;BR /&gt;    (database);&lt;BR /&gt;  sql 'alter system archive log current';&lt;BR /&gt;  # backup all archive logs&lt;BR /&gt;  backup&lt;BR /&gt;   filesperset 20&lt;BR /&gt;   format '$ORACLE_BACKUP/al_%s_%p_%t'&lt;BR /&gt;   (archivelog all&lt;BR /&gt;    delete input);&lt;BR /&gt;}</description>
    <pubDate>Mon, 01 Apr 2002 18:48:48 GMT</pubDate>
    <dc:creator>Peter Heinemann</dc:creator>
    <dc:date>2002-04-01T18:48:48Z</dc:date>
    <item>
      <title>using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694385#M843211</link>
      <description>In the interest of maintainability, I'm trying to use an environment variable that contains the file system path in the format parameter.  I've found that RMAN is able to interpret the $ORACLE_HOME and $ORACLE_BASE variables, but others give the error:&lt;BR /&gt;&lt;BR /&gt;RMAN-03006: non-retryable error occurred during execution of command: backup&lt;BR /&gt;RMAN-07004: unhandled exception during command execution on channel t1&lt;BR /&gt;RMAN-10035: exception raised in RPC: ORA-07217: sltln: environment variable cannot be evaluated.&lt;BR /&gt;RMAN-10031: ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.BACKUPPIECECREATE&lt;BR /&gt;&lt;BR /&gt;Is there any more specific documentation about what variables are supported within RMAN? (I've found nothing in the manuals beyond the excerpt I included below.)  Does anyone know if the "port-specific directory" mentioned in the excerpt below can be modified/customized?&lt;BR /&gt;I've posted this on OTN as well.&lt;BR /&gt;&lt;BR /&gt;Thanks....&lt;BR /&gt;Peter &lt;BR /&gt;&lt;BR /&gt;format 'format_string' &lt;BR /&gt; specifies the filename to use for the backup piece. Any name that is legal as a sequential filename on the platform is allowed, provided that each backup piece has a unique name. If backing up to disk, then any legal disk filename is allowed, provided it is unique. If you do not specify the format parameter, RMAN stores the backup pieces in a port-specific directory ($ORACLE_HOME/dbs on UNIX).</description>
      <pubDate>Mon, 01 Apr 2002 13:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694385#M843211</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2002-04-01T13:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694386#M843212</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Can you post the environment variable and the assignment you used?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Apr 2002 13:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694386#M843212</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-01T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694387#M843213</link>
      <description>Harry,&lt;BR /&gt;&lt;BR /&gt;ORACLE_BACKUP=/db/oracle01/netbackup/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's the .rcv for RMAN. Using $ORACLE_BACKUP vs. ${ORACLE_BACKUP} made no difference.&lt;BR /&gt;&lt;BR /&gt;Thanks...Peter&lt;BR /&gt;&lt;BR /&gt;connect target ...&lt;BR /&gt;connect rcvcat ...&lt;BR /&gt;run {&lt;BR /&gt;# Hot database level 0 whole backup&lt;BR /&gt;allocate channel t1 type disk;&lt;BR /&gt;backup&lt;BR /&gt;  incremental level 0&lt;BR /&gt;  skip inaccessible&lt;BR /&gt;  tag hot_db_bk_level0&lt;BR /&gt;  filesperset 5&lt;BR /&gt;  # recommended format&lt;BR /&gt;  format '$ORACLE_BACKUP/bk_%s_%p_%t'&lt;BR /&gt;    (database);&lt;BR /&gt;  sql 'alter system archive log current';&lt;BR /&gt;  # backup all archive logs&lt;BR /&gt;  backup&lt;BR /&gt;   filesperset 20&lt;BR /&gt;   format '$ORACLE_BACKUP/al_%s_%p_%t'&lt;BR /&gt;   (archivelog all&lt;BR /&gt;    delete input);&lt;BR /&gt;}</description>
      <pubDate>Mon, 01 Apr 2002 18:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694387#M843213</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2002-04-01T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694388#M843214</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Try replacing the Apostrophes (') with QUOTES ("):&lt;BR /&gt;&lt;BR /&gt;See the difference:&lt;BR /&gt;[root]pbctst: echo format '$ORACLE_BACKUP/bk_%s_%p_%t'&lt;BR /&gt;format $ORACLE_BACKUP/bk_%s_%p_%t&lt;BR /&gt;[root]pbctst: export ORACLE_BACKUP=CRAZY&lt;BR /&gt;[root]pbctst: echo format '$ORACLE_BACKUP/bk_%s_%p_%t'&lt;BR /&gt;format $ORACLE_BACKUP/bk_%s_%p_%t&lt;BR /&gt;[root]pbctst: echo format $ORACLE_BACKUP/bk_%s_%p_%t  &lt;BR /&gt;format CRAZY/bk_%s_%p_%t&lt;BR /&gt;[root]pbctst: echo format "$ORACLE_BACKUP/bk_%s_%p_%t"&lt;BR /&gt;format CRAZY/bk_%s_%p_%t&lt;BR /&gt;[root]pbctst:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 01 Apr 2002 18:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694388#M843214</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-01T18:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694389#M843215</link>
      <description>That kind of symbol substitution works find within the shell, but in RMAN itself it stops.  Only the ORACLE_HOME and ORACLE_BASE seem to be interpretable.&lt;BR /&gt;&lt;BR /&gt;Any other thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;BR /&gt;...Peter</description>
      <pubDate>Wed, 03 Apr 2002 13:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694389#M843215</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2002-04-03T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694390#M843216</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;format "${ORACLE_BACKUP}/bk_%s_%p_%t"&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;format ${ORACLE_BACKUP}"/bk_%s_%p_%t"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 03 Apr 2002 13:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694390#M843216</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-03T13:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694391#M843217</link>
      <description>Harry,&lt;BR /&gt;&lt;BR /&gt;It's working now;  problem ended up being with variable definitions within various parts of the "su -c" command.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Wed, 03 Apr 2002 18:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694391#M843217</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2002-04-03T18:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in the RMAN backup format parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694392#M843218</link>
      <description>Congratulations! Too bad you can't assign yourself points :-))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 03 Apr 2002 18:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-variable-in-the-rman-backup-format-parameter/m-p/2694392#M843218</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-04-03T18:25:07Z</dc:date>
    </item>
  </channel>
</rss>

