CLONING OF ORACLE APPS – MANUAL CLONING
File System is Same(FRESH CLONING)
PREREQUISITES :
Database must be in Archive log mode and running.
All the services must be running.
Stage 1 (SOURCE-SIDE)
In this Stage we need to Copy the Database files , Techstacks and APPL_TOP and COMMON_TOP. In this we copy the below five tops from Source to Target.
DATA_TOP
DB_TOP
APPL_TOP
COMMON_TOP
ORA_TOP
Source Server : 192.168.0.202
Target Server : 192.168.0.204
COPY THE FIVE TOPS FROM SOURCE TO TARGET AS BELOW :
Put the Tablespaces in Begin Backup mode and Copy the DATA_TOP from source to target. For this in 9i database we need to generate Dynamic SQL as below.
SQL > spool hot.sql
SQL > select ‘alter tablespace ‘|| tablespace_name||’ begin backup;’ from
dba_tablespaces;
SQL > spool off
---------------Now run the above sql
SQL > @hot.sql
Now check whether the tablespaces are in Begin backup or not and now perform copying the datafiles from source to server.
----------Now backup the controlfile to Trace in case if we want to change the DB-Name .
SQL > alter database backup controlfile to trace;
----------Copy the Traced controlfile to target server.
----------Now perform the log switch for couple of times to generate the archives.
SQL > alter system switch logfile;
[app@linux2 ~] scp –r proddata app@192.168.0.204:/oraAPP/app/.
Copy the DB_TOP from source to target.
[app@linux2 ~] scp –r proddb app@192.168.0.204:/oraAPP/app/.
Copy the APPL_TOP from source to target.
[app@;inux2 ~] scp –r prodappl app@192.168.0.204:/oraAPP/app.
Copy the COMMON_TOP from source to target.
[app@linux2 ~] scp –r prodcomn app@192.168.0.204:/oraAPP/app.
Copy the ORA_TOP from source to target.
[app@linux2 ~] scp –r prodora app@192.168.0.204:/oraAPP/app.
Note : As we are using the same FILE SYSTEM on source and target, there is no need to take the backup of controlfile to trace.
Stage 2 (TARGET SIDE)
In this stage we clone the Database. Perform hot clone steps if we are changing the DB-Name.
Stage 3 (TARGET SIDE)
DATABASE TIER:
Edit the Context File. Edit the below options.
• Hostname
• Port Numbers (if required)
• SID (if required)
Rename the XML file. Before renaming the file its better to take the Backup of this file.
[app@linux4 ~] cd $ORACLE_HOME/appsutil
[app@linux4 ~] mv app_linux2.xml app_linux4.xml
Edit the Hostname for XML file in the script which runs the AUTOCONFIG.
[app@linux4 ~] cd $ORACLE_HOME/appsutil/scripts/app_linux2
[app@linux4 ~] vi adautocfg.sh
Before running the Autoconfig , we need to add TEMPFILE for Temporary tablespace and assign that Tablespace to Database. For this set the environment manually for the database and connect to SQLPLUS and create tempfile.
[app@linux4 ~] sqlplus
SQL > alter tablespace temp add
tempfile ‘/oraAPP/app/appdata/temp.dbf’ size 2000m;
SQL > alter database default temporary tablespace temp;
Run the AUTOCONFIG.
[app@linux4 ~] cd $ORACLE_HOME/appsutil/scripts/app_linux2
[app@linux4 ~] ./adautocfg.sh
Result : autoconfig completed successfully without errors. If any errors check for logfile.
Log file Location : $ORACLE_HOME/appsutil/log/app_linux2/mm_dd_yy/adconfig.log
APPLICATION TIER:
Edit the Context File. Edit the below options.
• Hostname
• Port Numbers (if required)
• SID (if required)
Rename the XML file. Before renaming the file its better to take the Backup of this file.
[app@linux4 ~] cd $APPL_TOP/admin
[app@linux4 ~] mv app_linux2.xml app_linux4.xml
Edit the Hostname for XML file in the script which runs the AUTOCONFIG.
[app@linux4 ~] cd $COMMON_TOP/admin/scripts/app_linux2
[app@linux4 ~] vi adautocfg.sh
Run the AUTOCONFIG.
[app@linux4 ~] cd $COMMON_TOP/admin/scripts/app_linux2
[app@linux4 ~] ./adautocfg.sh
Result : autoconfig completed successfully without errors. If any errors check for logfile.
Log file Location : $APPL_TOP/admin/app_linux2/log/mm_dd_yy/adconfig.log
Stage 3 (POST STEPS)
Retire the Unnecessary Application Users.
Update Non-Site level profiles.(if necessary)
Update Printer settings. (if necessary)
Update Workflow components. (if necessary)
Clear Cache in COMMON_TOP/_pages.
Start Services.
NOTE : In Real Time we need to perform some steps after before running the Autoconfig on Application Tier. The steps are as bellows.
We need to run the below script as apps user. we need to download this script from metalink.
[app@linux2 ~] sqlplus
SQL > conn apps/apps
SQL > @?/RAPIDMAGIC/admin/cmclean.sql.
Purge fnd_nodes.
SQL > exec fnd_conc_clone.setup_clone();
Sunday, January 4, 2009
Subscribe to:
Post Comments (Atom)
HAI TELLME WHAT IS RAPID CLONE? WHAT IS THE DIFFERNCE BETWEEN RAPID CLONE AND MANUAL CLONING?
ReplyDelete