Professional Documents
Culture Documents
Kishore
http://appsdba.info
Contents
1> How to do Single Node cloning on Single machine -2
2> Single Node Cloning Steps -3
3> Profile Option Name Changes at Site Level after Cloning -6
4> Issues and solutions while cloning in Solaris Environment for R12 env. -7
Note: The bottom line is, your source and target are the same machine, it is very bit
difficult to understand but just think, you are simulating Single node cloning
without actually having the one more machine.
The second solution is having VMWARE, you can have two operating system on the
same machine and practice cloning
Author – A.Kishore
http://appsdba.info
After installing the Rapid Clone and AutoConfig patches, you are ready to clone an
instance.
Use Rapid Clone to create template files for cloning on the source system. After the
source system is copied to the target, Rapid Clone updates these templates to contain the
new target system configuration settings. Rapid Clone will not change the source system
configuration.
Note: Here you shutdown the database (normal or immediate) and the application, most
of the times I faced issues, guys will miss this step, if you don’t shutdown your database
in normal or immediate, you can never recover your database. Now, you re-install the
operating system
target node by executing the following steps in the order listed. Ensure the
application tier files copied to the target system are owned by the target
APPLMGR user, and that the database tier files are owned by the ORACLE user.
a. Copy the application tier file system
Log on to the source system application tier nodes as the APPLMGR user.
Shut down the application tier server processes
Copy the following application tier directories from the source
node to the target application tier node:
<APPL_TOP>
<OA_HTML>
<OA_JAVA>
<OA_JRE_TOP>
<COMMON_TOP>/util
<COMMON_TOP>/clone
<COMMON_TOP>/_pages (when this directory exists)
<806 ORACLE_HOME>
<iAS ORACLE_HOME>
b. Copy the database tier file system
Log on to the source system database node as the ORACLE user.
Perform a normal shutdown of the source system database
Copy the database (DBF) files from the source to the target system
Copy the source database ORACLE_HOME to the target system
Start up the source Applications system database and application
tier processes
3. Configure the Target System
Execute the following commands to configure the target system. You will be
prompted for the target system specific values (SID, Paths, Ports, etc)
a. Configure the target system database server
Log on to the target system as the ORACLE user and type the following
commands to configure and start the database:
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbTier
b. Configure the target system application tier server nodes
Log on to the target system as the APPLMGR user and type the following
commands:
cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier
Author – A.Kishore
http://appsdba.info
Finishing Tasks
This section lists tasks that may be necessary depending on your implementation and the
intended use of the cloned system.
Issues and solutions while cloning in Solaris Environment for R12 environment
DEV2 Database Duplication using RMAN with NO CATALOG was started and
completed successfully the next day morning.
Database was up and running after the archive logs were applied at the end of the
Duplication Process. Made the LOG File Switch and opened the database. Added a
TEMP DataFile to the Temporary tablespace. Since it is a Test Instance, made the
database to NO Archive Log Mode.
Now that the Database is up and running fine, the APPLICATION Cloning was kicked
off. Deleted the APPS file system and copied the Production File System to the
corresponding location. Once done, followed the Metalink DOC : Cloning Oracle
Applications Release 12 with Rapid Clone -- Note:406982.1.
Started off with the adcfgclone.pl from $COMMON_TOP/clone/bin dir. There are couple
of errors which came in the following order :
[PROFILE PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /ORCLL1/oracle/dev2/inst/apps/DEV2_stride01s-prod/admin/install
afcpctx.sh INSTE8_PRF 137
The afcpctx.sh failed because of missing lib files in 10.1.2 OH/lib and 10.1.2 OH/lib32
directories. Also due to the wrong path pointed by these variables (like ldflags pointing to
the Prod instance). Once these are taken care of, run adcfgclone.pl again.
Some times following errors might come in spite of the adcfgclone.pl ran successfully.
This results in the apps services not getting started. Like the OPMN process do not start
and end with status 2 (error). This happens due to the missing file in the 10.1.2 OH/bin32
directory.
The error is:
Author – A.Kishore
http://appsdba.info
This issue is due to the libclntsh.so.10.1 library not being present under the lib32 folder.
Setting the oracle home to 10.1.3 then running that ./bin/genclntsh helps:
If you run with the -32 option it updates the ./lib32 version of libclntsh.so.10.1
if you run without the -32 option it updates the ./lib version of libclntsh.so.10.1
( and similarly if it was set to 10.1.2,libclntsh.so.10.1 will be created in 10.1.2/lib )
So,
$10.1.3_OH/bin/genclntsh -32
Setting the correct oracle home to 10.1.3 then running that ./bin/genclntsh helps:
If you run with the -32 option it updates the ./lib32 version of libclntsh.so.10.1
If you run without the -32 option it updates the ./lib version of libclntsh.so.10.1
( and similarly if it was set to 10.1.2, libclntsh.so.10.1 will be created in 10.1.2/lib )
Reference : 413109.1
Make FNDSM trigger and clean FND_NODES table and run autoconfig in apps tier. This
should take care of the ICM problem.
Now, if we observe the following error is observed in the log file of adcfgclone.
To overcome this run AutoConfig on DB tier and then on Apps tier. This should take care
of this problem. This happens because we did not run autoconfig on DB tier after the
RMAN Duplication.
SCRIPT RETURNED:
########################################################################
##
Generate Tns Names
########################################################################
##
Logfile: /ORCLL1/oracle/dev2/inst/apps/DEV2_stride01s-
prod/admin/log/NetServiceHandler.log
Classpath :
/ORCLL1/oracle/dev2/apps/apps_st/comn/java/lib/appsborg2.zip:/ORCLL1/oracle/dev2/
apps/apps_st/comn/java/classes
Now, all seem to be fine and the all running at APPS Tier and DB Tier.
With this, the single node cloning comes to an end successfully.
Author – A.Kishore
http://appsdba.info