Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How best to move oracle9 db and binaries between similiar unix servers?

Re: How best to move oracle9 db and binaries between similiar unix servers?

From: Arjun Choubey <appsdbac_at_yahoo.com>
Date: 11 Jul 2003 16:18:20 -0700
Message-ID: <9eb0fea5.0307111518.758e0ac3@posting.google.com>


First of all verify with Unix admin about ssh . if you have ssh or similar then use following sql to generate the command. Edit the spooled file and add wait after xx number of lines to run the jobs at a time in background ( depends on server) . This is much much faster due to block size of 256 K. The default block size is 8k . We tested with blocks of 8k-1028 but the best result was with 256K . This scripts starts tar file , transfer the files on another server and extract the file on another server . Every things happens in parallel . We use this command on regular basis on Unix to copy the files from production to development , test , stage etc. and have no issues

set pages 0
set lines 200
spool ssh.ksh

select 'tar cbf 256 - '||file_name||' | ssh oracle_at_usscora1000 '||' "(cd '||' /; tar xvbpf 256 - )'||'" &' from dba_data_files
/

spool off

Received on Fri Jul 11 2003 - 18:18:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US