<?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: Script archive log transfer to standby db in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898179#M820473</link>
    <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;To compare two directories, you can use 'dircmp(1)'.  Have a look at its man pages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 06 Feb 2003 11:29:04 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2003-02-06T11:29:04Z</dc:date>
    <item>
      <title>Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898173#M820467</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have just setup a standby db (Oracle 8.0.5) and everything works fine but I would like to script the transfer for archive log files from one computer to the other.   Please submit any scripts to do this.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Thu, 06 Feb 2003 09:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898173#M820467</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-06T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898174#M820468</link>
      <description>you have few options here.&lt;BR /&gt;&lt;BR /&gt;1 you have remsh/rlogin enabled for the user. (Not secure)&lt;BR /&gt;2 ftp.(not so secure)&lt;BR /&gt;ftp -in hostname &amp;lt;&amp;lt; EOF&lt;BR /&gt;user username password&lt;BR /&gt;bin&lt;BR /&gt;cd /dir_you want&lt;BR /&gt;put file_you_want&lt;BR /&gt;close&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Put this in script and run it at the time you want.&lt;BR /&gt;&lt;BR /&gt;3 Scp - secure copy. a part of ssh.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 09:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898174#M820468</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-02-06T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898175#M820469</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I did this last year at my old employer.&lt;BR /&gt;&lt;BR /&gt;Basic Steps to follow,...&lt;BR /&gt;&lt;BR /&gt;Check if another copy of this script is already running&lt;BR /&gt;Check if any logs to transfer (keep a record of the last log transferred)&lt;BR /&gt;&lt;BR /&gt;Check if connection to remote server is available&lt;BR /&gt;&lt;BR /&gt;Build list of files to transfer&lt;BR /&gt;&lt;BR /&gt;For each file to transfer&lt;BR /&gt;     Compress and relocate (ftp, rcp, or ssh)&lt;BR /&gt;     Check File arrived at remote site&lt;BR /&gt;     Update record of last log transferred&lt;BR /&gt;end loop&lt;BR /&gt;&lt;BR /&gt;At the standby server end, you are going to have to ensure that the logs you apply are in sequence and alerts if anything if wrong.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Thu, 06 Feb 2003 09:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898175#M820469</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-02-06T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898176#M820470</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;4. you can use nfs, it's easy to script, you only need the copy-command, maybe a little bit slow.&lt;BR /&gt;&lt;BR /&gt;5. Do you have EMC? There's a software from EMC called timefinder to split VG's and mount them on other hosts, very quick and expensive.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 06 Feb 2003 09:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898176#M820470</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-02-06T09:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898177#M820471</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If Oracle is not archiving logs automatically to the standby site, then manually transfer the logs to the desired location on the standby host using an appropriate operating system utility for transferring binary data. For example, enter: &lt;BR /&gt;&lt;BR /&gt;Using NFS:&lt;BR /&gt;&lt;BR /&gt;% cp /oracle/arc_dest/*.arc /standby/arc_dest&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or Remote command:&lt;BR /&gt;% rcp remote_server:/oracle/arc_dest/*.arc /standby/arc_dest&lt;BR /&gt;&lt;BR /&gt;Both assuming you have a high speed LAN interconnecting the servers. (otherwise, you may have to use compression/decompression techniques to reduce the size of the files for faster transmission.&lt;BR /&gt;&lt;BR /&gt;After you have transferred the log files, you would issue a RECOVER statement to place the standby database in manual recovery mode. &lt;BR /&gt;&lt;BR /&gt;For example, execute one of the following statements: &lt;BR /&gt;&lt;BR /&gt;RECOVER STANDBY DATABASE # uses location for logs specified in&lt;BR /&gt;                   # initialization parameter file&lt;BR /&gt;RECOVER FROM '/logs' STANDBY DATABASE # specifies nondefault location&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that: As Oracle generates archived redo logs, you must continually transfer and apply them to the standby database to keep it current. &lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 11:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898177#M820471</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-02-06T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898178#M820472</link>
      <description>Thanks everybody, but the bit I need help on is how to compare the 2 directories and copy across only the new files.&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Thu, 06 Feb 2003 11:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898178#M820472</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-06T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898179#M820473</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;To compare two directories, you can use 'dircmp(1)'.  Have a look at its man pages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 06 Feb 2003 11:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898179#M820473</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-02-06T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898180#M820474</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;If you keep a record of the last Redo Log 'shipped' to the remote site by your script, and perform an 'll -lt *.dbf |head -n 2' on your local archive directory, this will give you the information you require.&lt;BR /&gt;&lt;BR /&gt;Note: My version of this also detected the last Archive Log applied by the Standby Database ('archive log list' in svrmgrl), and confirmed the sequential number for the Redo Logs (in case the Redo Log Archiving Tools you use delete the Redo Log before you can ship it to the Remote site).&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Thu, 06 Feb 2003 11:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898180#M820474</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-02-06T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898181#M820475</link>
      <description>If you want to avoid redundant file transfers you might consider rsync&lt;BR /&gt;&lt;BR /&gt;see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Networking/Admin/rsync-2.5.5/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Networking/Admin/rsync-2.5.5/&lt;/A&gt;</description>
      <pubDate>Thu, 06 Feb 2003 14:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898181#M820475</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-02-06T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898182#M820476</link>
      <description>resync sounds nice but it seems to only be available on 11.   I am still using 10.20.   I am creating a script to try to solve the problem.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Thu, 06 Feb 2003 15:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898182#M820476</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-06T15:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898183#M820477</link>
      <description>If anybody is interested this is the script I created. Seems to work OK so far.&lt;BR /&gt;&lt;BR /&gt;John.&lt;BR /&gt;&lt;BR /&gt;livelogno()&lt;BR /&gt;{&lt;BR /&gt;remsh ptihp1 'ls -t /archive/oradata/PAULIVE/*.ARC | head -n 1 | cut -c 37-46'&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;stdbylogno()&lt;BR /&gt;{&lt;BR /&gt;ls -t /archive/oradata/PAULIVE/*.ARC | head -n 1 | cut -c 37-46&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;livelogcount=`livelogno`&lt;BR /&gt;stdbylogcount=`stdbylogno`&lt;BR /&gt;filestocopy=`expr $livelogcount - $stdbylogcount`&lt;BR /&gt;echo $livelogcount&lt;BR /&gt;echo $stdbylogcount&lt;BR /&gt;echo $filestocopy&lt;BR /&gt;&lt;BR /&gt;for arcfile in `remsh ptihp1 'ls -t /archive/oradata/PAULIVE/*.ARC' | head -n $filestocopy`&lt;BR /&gt;do&lt;BR /&gt;        echo $arcfile&lt;BR /&gt;        echo `rcp ptihp1:$arcfile $arcfile`&lt;BR /&gt;done</description>
      <pubDate>Thu, 06 Feb 2003 15:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898183#M820477</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-06T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898184#M820478</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Here is the script that I wrote to do what you are talking about.  It assumes that you are running with OFA standards (/var/opt/oracle/arch/&lt;SID&gt;/ as a log directory).  You will need to change lines 18 and 43 (if not-OFA).  Otherwise, it should work.  If you want, I can post the script to apply the logs to the standby database as well.  &lt;BR /&gt;&lt;BR /&gt;Brian&lt;/SID&gt;</description>
      <pubDate>Thu, 06 Feb 2003 18:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898184#M820478</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-02-06T18:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898185#M820479</link>
      <description>Forgot attachment.  Sorry.</description>
      <pubDate>Thu, 06 Feb 2003 18:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898185#M820479</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-02-06T18:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898186#M820480</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;Thanks for the script. My one works but it is probably not the best.   I now have 3 scripts 1) to swithch logs on the current system 2) copy log files 3) import log files.  All work but I have no logging or error checking so all scripts posted are useful.&lt;BR /&gt;&lt;BR /&gt;As you can see my scripting knowledge is basic and I have a question on your script.   Take for example the copy file line&lt;BR /&gt;&lt;BR /&gt;rcp ${j} ${2}:${3}&lt;BR /&gt;&lt;BR /&gt;What do the {} do?&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Fri, 07 Feb 2003 09:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898186#M820480</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-07T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898187#M820481</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I am doing just what you are asking.&lt;BR /&gt;On the Primary Server:&lt;BR /&gt;I force a log switch.&lt;BR /&gt;I copy the archive logs to a safe directory and another directory for the standby server to pickup and write a file there is only there when there are files for the Standby server to get. Then I remove the files from the Archive Log directory.&lt;BR /&gt;&lt;BR /&gt;On the Standby Server:&lt;BR /&gt;The scripts checks to see if there are new files get. When there is it gets them from the primary server and then copies then to a save directory and to the archive log directory. Then it tells Oracle to do the "recover standby database". Then it removes the flag from the Primary server so it will get new files ready.&lt;BR /&gt;&lt;BR /&gt;There are many other things that happen in these scripts. Files are compressed; the program will not run if the primary or standby processes are already running. It checks to see what the last log# was so when the standby was updated the log# should match on both servers. Much more.&lt;BR /&gt;&lt;BR /&gt;I'm using rsync, ssh, sftp and gzip. And the two servers are 1000 miles apart. Oh! 1600km&lt;BR /&gt;Also using Oracle 8.0.5 and HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;I'm in the process of rewriting the scrip to clean it up. Would like to see it? &lt;BR /&gt;&lt;BR /&gt;Marty &lt;BR /&gt;</description>
      <pubDate>Fri, 07 Feb 2003 14:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898187#M820481</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2003-02-07T14:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898188#M820482</link>
      <description>Marty,&lt;BR /&gt;&lt;BR /&gt;I am allways willing to learn something so I would like to see your scripts.  However I am using HP-UX 10.20 and I don't think rsync is available.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Fri, 07 Feb 2003 16:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898188#M820482</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2003-02-07T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script archive log transfer to standby db</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898189#M820483</link>
      <description>The "{}" (brackets) around a variable mean that only the information inside the brackets will be parsed.  &lt;BR /&gt;&lt;BR /&gt;ie: Run the following:&lt;BR /&gt;&lt;BR /&gt;export ORACLE=temp&lt;BR /&gt;export ORACLE_SID=BLAH&lt;BR /&gt;echo ${ORACLE_SID}&lt;BR /&gt;echo ${ORACLE}_SID&lt;BR /&gt;&lt;BR /&gt;It is a good idea to use brackets around the variable just to make sure that something doesn't get parsed that you dont want to get parsed.  &lt;BR /&gt;&lt;BR /&gt;I will also post the apply script.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Fri, 07 Feb 2003 21:37:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-archive-log-transfer-to-standby-db/m-p/2898189#M820483</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-02-07T21:37:58Z</dc:date>
    </item>
  </channel>
</rss>

