<?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 oracle procedure help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935530#M762777</link>
    <description>hi all.&lt;BR /&gt;thank you all help to me. I appreciate that.&lt;BR /&gt;&lt;BR /&gt;I want to oracle hot backup to use oracle procedure&lt;BR /&gt;&lt;BR /&gt;As below is the procedure and I want that after coping '.dbf' file, system switch logfile, controlfile and coping archive log file, sequentially.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; select 'alter tablespace '|| tablespace_name ||' begin backup;'||chr(10)||&lt;BR /&gt;  2  '!cp '||file_name ||' /oradata1/hotbackup/hot_bk'||chr(10)||&lt;BR /&gt;  3  'alter tablespace '|| tablespace_name ||' end backup;'&lt;BR /&gt;  4  from dba_data_files&lt;BR /&gt;  5  where status &amp;lt;&amp;gt; 'INVALID'&lt;BR /&gt;  6  /&lt;BR /&gt;alter tablespace SYSTEM begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/system01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace SYSTEM end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace UNDOTBS1 begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/undotbs01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace UNDOTBS1 end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace SYSAUX begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/sysaux01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace SYSAUX end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace USERS begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/users01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace USERS end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace AGRIEDU begin backup;&lt;BR /&gt;!cp /oradata/IAEIS_DATAFILE/agriedu01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace AGRIEDU end backup;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; 'alter system switch logfile;'&lt;BR /&gt;SP2-0734: unknown command beginning "'alter sys..." - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE'&lt;BR /&gt;SP2-0734: unknown command beginning "'ALTER DAT..." - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; !cp /oradata1/Archive /oradata1/hotbackup/hot_bk/Archivelog'&lt;BR /&gt;&lt;BR /&gt;but&lt;BR /&gt;two commands are issuing "unkwon command'&lt;BR /&gt;'alter system switch logfile;'&lt;BR /&gt;'ALTER DATABASE BACKUP CONTROLFILE TO TRACE'&lt;BR /&gt;why it echos error like that?&lt;BR /&gt;how can I run the script to execute without any errors&lt;BR /&gt;&lt;BR /&gt;4 conditions are needed.&lt;BR /&gt;&lt;BR /&gt;1.Coping *.dbf file&lt;BR /&gt;2.system switch logfile&lt;BR /&gt;3.controlfile to trace&lt;BR /&gt;4.Coping archive log file.&lt;BR /&gt;&lt;BR /&gt;Any helps are available. Thank you in advance.</description>
    <pubDate>Wed, 31 Jan 2007 05:41:56 GMT</pubDate>
    <dc:creator>file system</dc:creator>
    <dc:date>2007-01-31T05:41:56Z</dc:date>
    <item>
      <title>oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935530#M762777</link>
      <description>hi all.&lt;BR /&gt;thank you all help to me. I appreciate that.&lt;BR /&gt;&lt;BR /&gt;I want to oracle hot backup to use oracle procedure&lt;BR /&gt;&lt;BR /&gt;As below is the procedure and I want that after coping '.dbf' file, system switch logfile, controlfile and coping archive log file, sequentially.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; select 'alter tablespace '|| tablespace_name ||' begin backup;'||chr(10)||&lt;BR /&gt;  2  '!cp '||file_name ||' /oradata1/hotbackup/hot_bk'||chr(10)||&lt;BR /&gt;  3  'alter tablespace '|| tablespace_name ||' end backup;'&lt;BR /&gt;  4  from dba_data_files&lt;BR /&gt;  5  where status &amp;lt;&amp;gt; 'INVALID'&lt;BR /&gt;  6  /&lt;BR /&gt;alter tablespace SYSTEM begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/system01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace SYSTEM end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace UNDOTBS1 begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/undotbs01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace UNDOTBS1 end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace SYSAUX begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/sysaux01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace SYSAUX end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace USERS begin backup;&lt;BR /&gt;!cp /oradata/IAEIS/users01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace USERS end backup;&lt;BR /&gt;&lt;BR /&gt;alter tablespace AGRIEDU begin backup;&lt;BR /&gt;!cp /oradata/IAEIS_DATAFILE/agriedu01.dbf /oradata1/hotbackup/hot_bk&lt;BR /&gt;alter tablespace AGRIEDU end backup;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; 'alter system switch logfile;'&lt;BR /&gt;SP2-0734: unknown command beginning "'alter sys..." - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE'&lt;BR /&gt;SP2-0734: unknown command beginning "'ALTER DAT..." - rest of line ignored.&lt;BR /&gt;SQL&amp;gt; !cp /oradata1/Archive /oradata1/hotbackup/hot_bk/Archivelog'&lt;BR /&gt;&lt;BR /&gt;but&lt;BR /&gt;two commands are issuing "unkwon command'&lt;BR /&gt;'alter system switch logfile;'&lt;BR /&gt;'ALTER DATABASE BACKUP CONTROLFILE TO TRACE'&lt;BR /&gt;why it echos error like that?&lt;BR /&gt;how can I run the script to execute without any errors&lt;BR /&gt;&lt;BR /&gt;4 conditions are needed.&lt;BR /&gt;&lt;BR /&gt;1.Coping *.dbf file&lt;BR /&gt;2.system switch logfile&lt;BR /&gt;3.controlfile to trace&lt;BR /&gt;4.Coping archive log file.&lt;BR /&gt;&lt;BR /&gt;Any helps are available. Thank you in advance.</description>
      <pubDate>Wed, 31 Jan 2007 05:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935530#M762777</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-01-31T05:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935531#M762778</link>
      <description>Hy&lt;BR /&gt;&lt;BR /&gt;Why have these two commands quotes?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 31 Jan 2007 05:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935531#M762778</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-01-31T05:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935532#M762779</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need to eradicat the opening and closing quote on the command;&lt;BR /&gt;&lt;BR /&gt;and end up with a line like this&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;alter system switch logfile;&lt;BR /&gt;&lt;BR /&gt;same for alter db backup cntrfile cmd,&lt;BR /&gt;no quotes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2007 05:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935532#M762779</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2007-01-31T05:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935533#M762780</link>
      <description>Hi,&lt;BR /&gt;as you are at the SQL prompt you dshould not have quotes around your statement.&lt;BR /&gt;See your first part of your post:&lt;BR /&gt;select 'alter tablespace ...&lt;BR /&gt;&lt;BR /&gt;Are you running this as script. I suspect your formatting is not correct.</description>
      <pubDate>Wed, 31 Jan 2007 05:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935533#M762780</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-31T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935534#M762781</link>
      <description>Thank  you all .&lt;BR /&gt;I need to delete quotes, and run the script.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 03:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935534#M762781</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2007-02-02T03:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: oracle procedure help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935535#M762782</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;If you are running Oracle 8i or higher, please consider moving to RMAN for backup.&lt;BR /&gt;&lt;BR /&gt;It is much efficient and prevents you from making errors and also forgetting important datafiles from being backed up.&lt;BR /&gt;&lt;BR /&gt;Hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sat, 03 Feb 2007 00:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-procedure-help/m-p/3935535#M762782</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-02-03T00:35:08Z</dc:date>
    </item>
  </channel>
</rss>

