Oracle 8i | Oracle 9i | Oracle 10g | Oracle 11g | Oracle 12c | Miscellaneous | PL/SQL | SQL | Oracle RAC | Oracle Apps | Linux

Cloning Oracle Application Server (AS10g) Instances

Prepare Clone

On the source server, prepare and archive the AS10g installation using the following steps.

Set up the PERL5LIB and PATH environment variables correctly.

export ORACLE_HOME=/u01/app/oracle/oas_home/10.1.3
export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3:$ORACLE_HOME/perl/lib/site_perl/5.8.3:
export PERL5LIB=$PERL5LIB:$ORACLE_HOME/perl/lib/site_perl/5.8.3/i686-linux-thread-multi:$PERL5LIB
export PATH=$ORACLE_HOME/perl/bin:$PATH

Note. Check the version of Perl present in the Oracle installation. In AS10g version 10.1.2 is will probably be Perl 5.6.1, while in AS10g version 10.1.3 it will probably be Perl 5.8.3. Change the paths in the PERL5LIB setting accordingly.

Run the "prepare_clone.pl" script.

cd $ORACLE_HOME/clone/bin
perl prepare_clone.pl ORACLE_HOME=/u01/app/oracle/oas_home/10.1.3

Create and archive of the entire Oracle home.

cd $ORACLE_HOME
tar cf - * | gzip > /u01/as10g_home.tar.gz

Clone

On the destination server, clone the AS10g installation using the following steps.

Copy the archive from the source server to the destination sever.

cd /u01
scp oracle@source-server.example.com:/u01/as10g_home.tar.gz .

Make a home directory on the destination server to hold the Oracle installation and extract the archive into it.

mkdir -p /u01/app/oracle/oas_home/10.1.3
cd /u01/app/oracle/oas_home/10.1.3
tar -xvzf /u01/as10g_home.tar.gz

Set up the PERL5LIB and PATH environment variables correctly.

export ORACLE_HOME=/u01/app/oracle/oas_home/10.1.3
export PERL5LIB=$ORACLE_HOME/perl/lib/5.8.3:$ORACLE_HOME/perl/lib/site_perl/5.8.3:
export PERL5LIB=$PERL5LIB:$ORACLE_HOME/perl/lib/site_perl/5.8.3/i686-linux-thread-multi:$PERL5LIB
export PATH=$ORACLE_HOME/perl/bin:$PATH

Note. Check the version of Perl present in the Oracle installation. In AS10g version 10.1.2 is will probably be Perl 5.6.1, while in AS10g version 10.1.3 it will probably be Perl 5.8.3. Change the paths in the PERL5LIB setting accordingly.

Run the "clone.pl" script.

cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME=/u01/app/oracle/oas_home/10.1.3 ORACLE_HOME_NAME=as_home \
  -instance as_home -ias_admin_old_pwd myPassword -ias_admin_new_pwd myPassword

Run the "root.sh" script to complete the installation.

/u01/app/oracle/oas_home/10.1.3/root.sh

For more information see:

Hope this helps. Regards Tim...

Back to the Top.