Upload
narendra-reddy
View
9
Download
0
Tags:
Embed Size (px)
DESCRIPTION
GDSGDSFFG DFGDSGDFG FDSGFDSG
Citation preview
Home Oracle Apps DBA R12 Cloning
Cloning
Cloning
Cloning creates an identical copy of an existing Oracle Applications system. There are various reasons for cloning an Oracle Applications system such as:
Creating a copy of the production system for testing updates. Migrating an existing system to new hardware. Creating a stage area to reduce patching downtime
Clone the E-Business Suite for Release 12(12.0.6) with Oracle Applications. In this post, we cover the pre-clone steps required to perform a successful clone for Oracle Applications R12 (12.0.6). As an Apps DBA, the ability to quickly produce clones is mandatory to be a successful EBS DBA. The following post will show details on how to clone.
First, we need to pre-clone the database tier and then we run the pre-clone script for the apps tier. Both the Sequence and syntax are critical here and the clone will fail.
A) Pre-clone for Database
B) Pre-clone for Application
C) Shutdown Database & Listener
D) Copy Data from Source Node To Target Node
E) Cloning the Database Tier
F) Cloning the Applications Tier
G) Verification
A) Pre-clone for Database
The pre-clone script for database and apps tier is called adpreclone.pl. It lives under the $ORACLE_HOME/appsutil/scripts/ directory on the database tier. In my scenario the path is
cd /d01/oracle/VIS/db/tech_st/10.2.0/appsutil/scripts/
Wednesday, 02 February 2011 04:51 Oracle Zones
MAIN MENU
Home
Oracle Apps DBA
11i
R12
Stage Area
Create
Installation
Start and Stop
Services
Patching
Backup
Recovery
Cloning
Display
FNDCPASS
Menu
Responsibilities and
User
Reports
Intregiration
Web ADI
Oracle Database
Administration
search...
Page 1 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
$ perl adpreclone.pl dbTier
Enter the APPS password for the script to execute
It runs for a few minutes and then completes without errors
B) Pre-clone For Application
The pre-clone script for apps tier is located under the $INST_TOP/admin/scripts or $ADMIN_SCRIPTS_HOME directory and is called adpreclone.sh. To execute it we logon as oracle user and run, in my scenario the path is
cd /d01/oracle VIS/inst/apps/VIS_learnozs/admin/scripts/
$ perl adpreclone.pl appsTier
Enter the APPS password
Oracle Application
Server
RAC
Page 2 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
This will run for a short time maybe 5-10 minutes and then complete. Verify that your preclone ran without errors. Check the log file generated by the adpreclone.sh script for the apps tier to ensure no errors have occurred
C) Shutdown Database & Listener
On the database tier, login as the oracle OS user and shutdown both the listener and database,
Shutdown listener
$ cd /d01/oracleVIS/db/tech_st/10.2.0/appsutil/scripts/VIS_learnozs/
./addlnctl.sh stop VIS
Page 3 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
$ cd /d01/oracleVIS/db/tech_st/10.2.0/appsutil/scripts/VIS_learnozs/
./addbctl.sh stop immediate
D) Copy Data from Source Node To Target Node
Copy the application tier file system
Before we use Rapid Clone script (adcfgclone.pl) we need to copy over the database and application tier files. Copy the application tier directories from the source node to
Page 4 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
the target application tier node.
So this means that for the Apps tier you need to copy over the $INST_TOP, $COMMON_TOP, $APPL_TOP, 10.1.2 ORACLE_HOME, and 10.1.3 ORACLE_HOME directories and files
Copy the database node file system
Copy the database (.dbf) files from the source system to the target system, copy the source database ORACLE_HOME to the target system
E) Cloning the Database Tier
Run the clone script for db tier this is called adcfgclone.pl
$ cd /d01/oracle/VIS/db/tech_st/10.2.0/appsutil/clone/bin/
$ perl adcfgclone.pl dbTier
Enter the password for APPS then hit the key
Once we enter the choices for the prompt settings the clone will begin for the db tier. You will need to enter settings for your target clone data file location (DATA_TOP) as well as database tier ORACLE_HOME location, and other settings such as port pool.
Page 5 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 6 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
When it finishes you should see a successful screen like below:
Page 7 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
F) Cloning the Applications Tier
Now that our database tier has been cloned its time to clone the apps tier to the new target! We run the adfgclone.pl script on the source apps tier as shown below
The cloning script for the apps tier lives under the following directory: $ cd $INST_TOP/clone/bin Login as the applmgr OS user and we run it with the following syntax:
$cd /d01/oracle/VIS/apps/apps_st/comn/clone/bin/
perl adcfgclone.pl appsTier
Enter the password for APPS then hit the key
Choose 0 for port pool like we did earlier for db tier clone, a complete list is given below:
Page 8 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 9 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 10 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 11 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 12 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
G) Verification
For verfication please go to Window Explorer and write below address
http:learnonzs.oraclezones.com:8000
Page 13 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Page 14 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...
Successfully R12 cloning has been done
Best of Luck ……………………..!
Last Updated on Saturday, 02 July 2011 10:09
Copyright © 2012 Oracle Zones. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
Page 15 of 15Cloning
2/23/2012http://www.oraclezones.com/cms/index.php?option=com_content&view=article&id=60&I...