Professional Documents
Culture Documents
Cloning 11510 (All Types)
Cloning 11510 (All Types)
Prerequisites
Verify Source and target nodes versions
OUI version
OUI version should be 2.2.0.19.0.
To check OUI version of 9i ORACLE_HOME edit
/u01/oraclone/clonedb/9.2.0/appsoui/oui/oraparam.ini
If OUI version is not accurate then apply the following patch 5035661
PERL version
Perl version should be 5.005. To check the version, give perl –v at command
prompt.
JRE
Jre should be 1.1.8.
JDK
JDK verison should be 1.3.
Zip
Zip version should be 2.3.
What?
AutoConfig is a tool that supports automated configuration of an Applications
instance. When AutoConfig runs on the Application tier, it uses information from
the Applications Context file to generate all configuration files and update
database profiles. When AutoConfig runs on the Database tier, it uses information
from the Database Context file to generate all configuration files used on the
Database tier.
Using RapidClone
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.
a) Log on to the source system application tier nodes as the APPLDB01 user.
• Shut down the application tier server processes
• Copy the following application tier directories from the source node to
the target application tier node:
b) Copy the database tier file system
Log on to the source system database node as the ORDB01 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
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 ORACLONE 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 APPLCLONE user and type the following
commands:
cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier
Post Steps:
o Change APPS and SYSADMin Password using FNDCPASS utility.
o Relink Oracle Applications.
o Update Snapshot.
On Applications Tier
[applclone@ocvmrh2149 bin]$ perl adcfgclone.pl appsTier
Enter the APPS password [APPS]:
apps
First Creating a new context file for the cloned system.
The program is going to ask you for information about the new system:
Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Target system database SID [db01]:clone
Target system database server node [ocvmrh2144]:ocvmrh2149
Target system database domain name [us.oracle.com]:
Does the target system have more than one application tier server node (y/n) [y] ?:n
Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:
Target system APPL_TOP mount point
[/u01/app/apdb01/db01appl]:/u01/apps/applclone/cloneappl
Target system COMMON_TOP directory
[/u01/app/apdb01/db01comn]:/u01/apps/applclone/clonecomn
Target system 8.0.6 ORACLE_HOME directory
[/u01/app/apdb01/db01ora/8.0.6]:/u01/apps/applclone/cloneora/8.0.6
Target system iAS ORACLE_HOME directory
[/u01/app/apdb01/db01ora/iAS]:/u01/apps/applclone/cloneora/iAS
Do you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:nTarget system
Display [ocvmrh2149:0.0]:
Enter the Database listener port [1527]:1529
Database port is 1529
Do you want the middle-tier services on the target system to have the same port values as
the source system (y/n) [y] ?:n
Clone Context uses the same port pool mechanism as the Rapid Install.
Once you choose a port pool, Clone Context will validate the port availability.
Enter the port pool to be used for the target system middle-tier services [0-99]:
8
Checking the port pool 8
done: Port Pool 8 is free
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
2. /usr/tmp
3. /u01/apps/oraclone/clonedb/9.2.0/appsutil/outbound/clone_ocvmrh2149
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1]:
Creating the new APPL_TOP Context file from :
/u01/apps/applclone/cloneappl/ad/11.5.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149.xml
Log file located at
/u01/apps/applclone/clonecomn/clone/bin/CloneContext_04251215.log
Running Rapid Clone with command:
perl /u01/apps/applclone/clonecomn/clone/bin/adclone.pl
java=/u01/apps/applclone/clonecomn/clone/bin/../jre mode=apply
stage=/u01/apps/applclone/clonecomn/clone/bin/.. component=appsTier
method=CUSTOM
appctxtg=/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149.xml merge
showProgress contextValidated=true
Beginning application tier Apply - Wed Apr 25 00:17:55 2007
Log file located at
/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2149/log/ApplyAppsTier_04251217.
log
Completed Apply...
Wed Apr 25 00:53:08 2007
Beginning APPSIAS_clone registration to central inventory...
ORACLE_HOME NAME : APPSIAS_clone
ORACLE_HOME PATH : /u01/apps/applclone/cloneora/iAS
Using Inventory location in /etc/oraInst.loc
Log file located at /etc/oraInventory/logs/OracleHomeCloner_04251253.log
ORACLE_HOME /u01/apps/applclone/cloneora/iAS was registered successfully.
Executing merge appl top for JRI merge
Post Steps:
o Change APPS and SYSADMin Password using FNDCPASS utility.
o Relink Oracle Applications.
o Update Snapshot.
Provide the values required for creation of the new Database Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:
Target System database name [db01]: clone
Target system RDBMS ORACLE_HOME directory
[/u01/apps/oradb01/db01db/9.2.0]:/u01/app/oraclone/clonedb/9.2.0
Target system utl_file accessible directories list [/usr/tmp]:
Number of DATA_TOP's on the target system [1]:
Target system DATA_TOP 1 [/u01/apps/oradb01/db01data]:/u01/app/oraclone/clonedata
Do you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:n
Target system Display [ocvmrh2149:0.0]:
Do you want to preserve the port values from the source system on the target system (y/n)
[y] ?:n
Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.
Enter the port pool number [0-99]:
6
Checking the port pool 6
done: Port Pool 6 is free
Database port is 1527
Creating the new Database Context file from :
/u01/app/oraclone/clonedb/9.2.0/appsutil/template/adxdbctx.tmp
The new database context file has been created :
/u01/app/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml
Log file located at
/u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/CloneContext_04230929.log
Running Rapid Clone with command:
perl /u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/adclone.pl
java=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/../jre mode=apply
stage=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone/bin/.. component=dbTier
method=CUSTOM
dbctxtg=/u01/app/oraclone/clonedb/9.2.0/appsutil/clone_ocvmrh2149.xml showProgress
contextValidated=true
Beginning database tier Apply - Mon Apr 23 09:32:25 2007
Log file located at
/u01/app/oraclone/clonedb/9.2.0/appsutil/log/clone_ocvmrh2149/ApplyDBTier_0423093
2.log
Completed Apply...
Mon Apr 23 09:38:28 2007
Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Target system database SID [db01]:clone
Target system database server node [ocvmrh2144]:ocvmrh2149
Target system database domain name [us.oracle.com]:
Does the target system have more than one application tier server node (y/n) [n] ?:y
Does the target system application tier utilize multiple domain names (y/n) [n] ?:
Target system concurrent processing node [ocvmrh2144]:ocvmrh2149
Target system administration node [ocvmrh2144]:ocvmrh2149
Target system forms server node [ocvmrh2144]:
Target system web server node [ocvmrh2144]:
Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:
Target system APPL_TOP mount point
[/u01/apps/appldb01/db01appl]:/u01/apps/applclone/cloneappl
Target system COMMON_TOP directory
[/u01/apps/appldb01/db01comn]:/u01/apps/applclone/clonecomn
Target system 8.0.6 ORACLE_HOME directory
[/u01/apps/appldb01/db01ora/8.0.6]:/u01/apps/applclone/cloneora/8.0.6
Target system iAS ORACLE_HOME directory
[/u01/apps/appldb01/db01ora/iAS]:/u01/apps/applclone/cloneora/iAS
Do you want to preserve the Display set to ocvmrh2144:0.0 (y/n) [y] ?:n
Target system Display [ocvmrh2144:0.0]:
Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.
Enter the port pool number [0-99]:
6
Checking the port pool 6
done: Port Pool 6 is free
Web Listener port is 8006
Complete port information available at
/u01/apps/applclone/cloneappl/admin/out/clone_ocvmrh2144/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
2. /usr/tmp
3. /u01/app/oraclone/clonedb/9.2.0/appsutil/outbound/clone_ocvmrh2149
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1]:
Backing up /u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml to
/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml.bak
Creating the new APPL_TOP Context file from :
/u01/apps/appldb01/db01appl/ad/11.5.0/admin/template/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml
Log file located at
/u01/apps/applclone/clonecomn/clone/bin/CloneContext_04241217.log
Running Rapid Clone with command:
perl /u01/apps/applclone/clonecomn/clone/bin/adclone.pl
java=/u01/apps/applclone/clonecomn/clone/bin/../jre mode=apply
stage=/u01/apps/applclone/clonecomn/clone/bin/.. component=appsTier
method=CUSTOM
appctxtg=/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144.xml showProgress
contextValidated=true
Beginning application tier Apply - Tue Apr 24 00:20:09 2007
Log file located at
/u01/apps/applclone/cloneappl/admin/clone_ocvmrh2144/log/ApplyAppsTier_04241220.
log
- 38% completed
Completed Apply...
Tue Apr 24 00:31:26 2007
Beginning APPSIAS_clone registration to central inventory...
ORACLE_HOME NAME : APPSIAS_clone
ORACLE_HOME PATH : /u01/apps/applclone/cloneora/iAS
Using Inventory location in /etc/oraInst.loc
Log file located at /u01/oracle9i/oraInventory/logs/OracleHomeCloner_04241231.log
RC-00123: Warning: ORACLE_HOME APPSIAS_clone already exists inside the
inventory
Starting application Services for clone:
Running:
/u01/apps/applclone/clonecomn/admin/scripts/clone_ocvmrh2144/adstrtal.sh
APPS/<appspwd>
After cloning when we look at the OAM screen, we realized that concurrent processing
server and admin server was running on both the nodes (ocvmrh2144, ocvmrh2149),
According to the configuration db, cps, admin are supposed to be only in ocvmrh2149
While web, forms are supposed to be in ocvmrh2144
To solve this
We checked the fnd_nodes table and it shows cps and admin on both the nodes.
We took a backup of fnd_nodes table and executed this command
EXEC FND_CONC_CLONE.SETUP_CLEAN;
Commit;
This script clears the fnd_nodes table.after this we ran the autoconfig on both the nodes
and bounced the db.
Autoconfig would insert all the data into the fnd_nodes table.
The rectified information can be seen in the OAM screen.
b) Log on to the source system application tier nodes as the APPLDB01 user.
• Shut down the application tier server processes
• Copy the following application tier directories from the source node to
the target application tier nodes:
b) Copy the database tier file system
Log on to the source system database node as the ORDB01 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
Post Steps:
o Change APPS and SYSADMin Password using FNDCPASS utility.
o Relink Oracle Applications.
o Update Snapshot.