<?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: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901001#M96643</link>
    <description>if you database is in archive log mode, you can copy it without close it&lt;BR /&gt;&lt;BR /&gt;first put it 'begin backup mode'&lt;BR /&gt;copy all file :dbf, redo, make your new ctl file&lt;BR /&gt;and copy the archivelog file since the begin of copy&lt;BR /&gt;&lt;BR /&gt;flag_arch=/tmp/Arch_${NEW_ORACLE_SID}&lt;BR /&gt;rm -f ${flag_arch}&lt;BR /&gt;touch ${flag_arch}&lt;BR /&gt; &lt;BR /&gt; find ${ACTUAL_DIR} -type f -newer ${flag_arch} -exec scp {} ${NEW_SERVER}:${NEW_DIR} \&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;make a recover&lt;BR /&gt;&lt;BR /&gt;and make end backup.&lt;BR /&gt;</description>
    <pubDate>Tue, 21 Nov 2006 04:55:55 GMT</pubDate>
    <dc:creator>PAVIC Thierry</dc:creator>
    <dc:date>2006-11-21T04:55:55Z</dc:date>
    <item>
      <title>Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900995#M96637</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have 2 system with same filesystem structure. I need to clone my database that I want to copy all the dbf, ctl files from one system to another. I am not supposed to make use of rcp.&lt;BR /&gt;&lt;BR /&gt;I tried using scp -r find /u01/oradata/omc/srs_1 -name "*.dbf" oracle@system2:${PWD}&lt;BR /&gt;from system2.&lt;BR /&gt;&lt;BR /&gt;Althogh it tried copying files across it created a new directory under /u01/oradata/omc/omc/srs_1/srs_1/ and then copied all the files.&lt;BR /&gt;&lt;BR /&gt;I dont want to rely on this command. Please give me any other command that does a clean copying of all dbf files within another system.&lt;BR /&gt;&lt;BR /&gt;For example on system1, I have&lt;BR /&gt;/u01/oradata/omc/srs_1/srs_1_a.dbf&lt;BR /&gt;/u01/oradata/omc/srs_2/srs_1_a.dbf&lt;BR /&gt;/u01/oradata/omc/ctl/ctl01.ctl&lt;BR /&gt;&lt;BR /&gt;I want to copy all of these files to system2 which has same file structure and on the same area.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Srikanth A</description>
      <pubDate>Mon, 20 Nov 2006 05:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900995#M96637</guid>
      <dc:creator>Srikanth Arunachalam</dc:creator>
      <dc:date>2006-11-20T05:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900996#M96638</link>
      <description>Hi,&lt;BR /&gt;you could combine find and tar to backup your files with absolute pathnames and copy the tar file. Beware of the normal 2Gb limit.&lt;BR /&gt;That way once you tar -x on the target machine the files are written to their proper locations.</description>
      <pubDate>Mon, 20 Nov 2006 05:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900996#M96638</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-20T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900997#M96639</link>
      <description>Or, if you want to use ${PWD} you have to cd to /u01/oradata/omc then run scp command. Otherwise, use absolute path instead of ${PWD}.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yang&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:43:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900997#M96639</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-11-20T05:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900998#M96640</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;from system 1 under ksh or bash&lt;BR /&gt;&lt;BR /&gt;scp $(find /u01/oradata/omc \( -name "*.dbf" -o -name "*.ctl" \) -print ) oracle@system2:/&lt;BR /&gt;&lt;BR /&gt;Jean-Yves</description>
      <pubDate>Mon, 20 Nov 2006 05:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900998#M96640</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-11-20T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900999#M96641</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The scp command doesnt work. It is trying to copy everything in the root directory!!!.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Srikanth A&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2006 06:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3900999#M96641</guid>
      <dc:creator>Srikanth Arunachalam</dc:creator>
      <dc:date>2006-11-20T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901000#M96642</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;second try :&lt;BR /&gt;scp $(find /u01/oradata/omc \( -name "*.dbf" -o -name "*.ctl" \) -print ) oracle@system2:/u01/oradata/omc&lt;BR /&gt;&lt;BR /&gt;Jean-Yves Picard</description>
      <pubDate>Mon, 20 Nov 2006 07:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901000#M96642</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-11-20T07:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901001#M96643</link>
      <description>if you database is in archive log mode, you can copy it without close it&lt;BR /&gt;&lt;BR /&gt;first put it 'begin backup mode'&lt;BR /&gt;copy all file :dbf, redo, make your new ctl file&lt;BR /&gt;and copy the archivelog file since the begin of copy&lt;BR /&gt;&lt;BR /&gt;flag_arch=/tmp/Arch_${NEW_ORACLE_SID}&lt;BR /&gt;rm -f ${flag_arch}&lt;BR /&gt;touch ${flag_arch}&lt;BR /&gt; &lt;BR /&gt; find ${ACTUAL_DIR} -type f -newer ${flag_arch} -exec scp {} ${NEW_SERVER}:${NEW_DIR} \&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;make a recover&lt;BR /&gt;&lt;BR /&gt;and make end backup.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2006 04:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901001#M96643</guid>
      <dc:creator>PAVIC Thierry</dc:creator>
      <dc:date>2006-11-21T04:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901002#M96644</link>
      <description>hi Srikanth,&lt;BR /&gt;&lt;BR /&gt;the ideal method would be to use the Duplicate option in RMAN.&lt;BR /&gt;&lt;BR /&gt;If you have metalink access, please refer to note: 388431.1 - "Creating a Duplicate Database on a New Host".&lt;BR /&gt;&lt;BR /&gt;The steps listed in the note are:&lt;BR /&gt;1.  Backup the primary database.&lt;BR /&gt;&lt;BR /&gt;2.  Determine how much disk space will be required.&lt;BR /&gt;&lt;BR /&gt;3.  Ensuring you have enough space on your target server.&lt;BR /&gt;&lt;BR /&gt;4.  Making the backup available for the duplicate process.&lt;BR /&gt;&lt;BR /&gt;5.  Creating the init.ora &amp;amp; administration directories for the duplicate database.&lt;BR /&gt;&lt;BR /&gt;6.  Ensuring SQL*NET connections to primary database and RMAN catalog are working.&lt;BR /&gt;&lt;BR /&gt;7.  Prepare RMAN duplicate script.&lt;BR /&gt;&lt;BR /&gt;8.  Execute the RMAN script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 21 Nov 2006 07:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901002#M96644</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-11-21T07:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Single cmdline shell for copying all dbf's, ctl file recursively from one system to another.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901003#M96645</link>
      <description>believe it or not, I don't like tar.  I like cpio.&lt;BR /&gt;-----------------------------&lt;BR /&gt;Copy boxA:/dir1/A to boxA:/dir342/A.&lt;BR /&gt;&lt;BR /&gt;On box A&lt;BR /&gt;cd /dir1&lt;BR /&gt;find A -print | cpio -pdumvc /dir342/.&lt;BR /&gt;&lt;BR /&gt;---------------------------------&lt;BR /&gt;Copy boxA:/dir1/A to BOXB:/dir342/A.&lt;BR /&gt;On BOXB&lt;BR /&gt;make sure directory /dir342 exists and has the correct permissions. &lt;BR /&gt;&lt;BR /&gt;On box A&lt;BR /&gt;cd /dir1&lt;BR /&gt;find A -print | cpio -odumvc | /usr/bin/ssh user@BOXB \&lt;BR /&gt; "cd /dir342;/usr/bin/cpio -idumvc"&lt;BR /&gt;&lt;BR /&gt;man find&lt;BR /&gt;man cpio&lt;BR /&gt;man ssh&lt;BR /&gt;&lt;BR /&gt;steve</description>
      <pubDate>Tue, 21 Nov 2006 13:16:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/single-cmdline-shell-for-copying-all-dbf-s-ctl-file-recursively/m-p/3901003#M96645</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2006-11-21T13:16:26Z</dc:date>
    </item>
  </channel>
</rss>

