Monday, May 11, 2015

Discoverer 10g Cloning

Pre-clone Steps:
============

Assuming the EBS is already restored. 

1) Login on Source Discoverer (Solaris) Machine as discoverer user, 

There is no need to shutdown the services

$ export ORACLE_HOME=/u01/product/10gR2
$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
$ cd $ORACLE_HOME/clone/bin
$ chmod 755 prepare_clone.pl
$ ./prepare_clone.pl
Clone log file location: /u01/product/10gR2/clone/logs/clone.log
Error log file location: /u01/product/10gR2/clone/logs/error.log

2. Copy the Discoverer directory to the target machine.

3. Get the ias_admin_old_pwd as it is necessary as input for the clone


Clone Steps
=========

1) Login to target machine as root and set the inventory locations as:

mkdir /etc/oraInventory
chmod -R 777 /etc/oraInventory
chown -R applmgr:dba /etc/oraInventory

touch /etc/oratab

chmod a+rw /etc/oratab
chown applmgr:dba /etc/oratab

echo 'inventory_loc=/etc/oraInventory' > /etc/oraInst.loc
chown applmgr:dba /etc/oraInst.loc

2) Rename the old inventory directory, which is copied from source.

3) Start the clone activity

$ export ORACLE_HOME=/u01/product/10gR2
$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
$ cd $ORACLE_HOME/clone/bin
$ perl clone.pl ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=discodr -instance TESTDR -ias_admin_old_pwd welcome -ias_admin_new_pwd secret

Note: If the error occurs during the clone, clean the oraInventory directory and restart the clone process, otherwise the clone process will fail.

Post Clone Steps
============

1) Remove Old dbc files from $ORACLE_HOME/discoverer/secure

2) Copy new dbc file from the application node to $ORACLE_HOME/discoverer/secure

3) Change the old servername to new server name in httpd.conf

4) Stop the Discoverer services 

    $ORACLE_HOME/opmn/bin/opmnctl stopall

5) Start the Dicoverer services.

    $ORACLE_HOME/opmn/bin/opmnctl startall

No comments:

Post a Comment