ORACLE R12 clone log on liunx

saa發表於2009-06-30

R12 clone log on liunx by saashang 2009/06/30 22:43

r12.0.4
referrence doc :
406982.1 Cloning Oracle Applications Release 12 with Rapid Clone.mht
387859.1 Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12.mht


Section 1: Prerequisites

first read 406982.1 doc and check patch number must patched ex. 7164226

adduser -g dba -p appldev appldev
adduser -g dba -p oradev oradev

su - applmgr
cd $AD_TOP/bin
adadmin
adpatch

start source database and stop app service
su - oracle
cd $ORACLE_HOME/appsutil/scripts
./addlnctl.sh start PROD
./addbctl.sh start PROD

Run AutoConfig on the Application Tiers
sh /admin/scripts/adautocfg.sh

su - applmgr
cd $INST_TOP/admin/scripts
./adautocfg.sh


Run AutoConfig on the Database Tier
sh /appsutil/scripts//adautocfg.sh

su - oracle
cd $ORACLE_HOME/appsutil/scripts/PROD_saa
./adautocfg.sh


Section 2: Clone Oracle Applications Release 12
Prepare the Source System
Prepare the source system database node for cloning
Log on to the source system as the ORACLE user. and run the following commands:
cd /appsutil/scripts/
perl adpreclone.pl dbTier

su - oracle
cd $ORACLE_HOME/appsutil/scripts/PROD_saa
perl adpreclone.pl dbTier

Prepare the source system application tier for cloning
Log on to the source system as the APPLMGR user, and run the following commands on each node that contains an APPL_TOP:
cd /admin/scripts
perl adpreclone.pl appsTier

su - applmgr
cd $INST_TOP/admin/scripts
perl adpreclone.pl appsTier


stop source database

su - oracle
cd $ORACLE_HOME/appsutil/scripts
./addlnctl.sh stop PROD
./addbctl.sh stop immediate PROD


Copy the Source System to the Target System

Copy the application tier file system

cd /d01/oracle/DEV
nohup cp -rf /d01/oracle/PROD/apps ./ &
nohup cp -rf /d01/oracle/PROD/inst ./ &

Copy the database node file system

nohup cp -rf /d01/oracle/PROD/db ./ &

nohup chown -r appldev.dba apps &
nohup chown -r appldev.dba inst &
nohup chown -r oradev.dba inst &


Configure the Target System

Configure the target system database server
Log on to the target system as the ORACLE user and enter the following commands to configure and start the database:
cd /appsutil/clone/bin
perl adcfgclone.pl dbTier

su - oradev
cd /d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/bin
perl adcfgclone.pl dbTier

[oradev@saa bin]$ perl adcfgclone.pl dbTier

Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.20.12000000.11

Enter the APPS password : apps
Running:
/d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/jlib/java:/d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_11448.lst -stage /d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone 2> /tmp/adcfgclone_11448.err; echo $? > /tmp/adcfgclone_11448.res

Log file located at /d01/oracle/DEV/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_02201737.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [saa] : saa
Target Instance is RAC (y/n) [n] : n

Target System Database SID : DEV

Target System Base Directory : /d01/oracle/DEV/db/tech_st/10.2.0

Target System utl_file_dir Directory List : /usr/temp

Number of DATA_TOP's on the Target System [1] :

Target System DATA_TOP Directory 1 [/d01/oracle/PROD/db/apps_st/data] :/d01/oracle/DEV/db/apps_st/data
Target System RDBMS ORACLE_HOME Directory [/d01/oracle/DEV/db/tech_st/10.2.0/db/tech_st/10.2.0] : /d01/oracle/DEV/db/tech_st/10.2.0

Configure the target system application tier server nodes
Log on to the target system as the APPLMGR user and type the following commands:
cd /clone/bin
perl adcfgclone.pl appsTier

cd /d01/oracle/DEV/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier
[appldev@saa bin]$ perl adcfgclone.pl appsTier

Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.20.12000000.12

Enter the APPS password : apps

Running:
/d01/oracle/DEV/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -cp /d01/oracle/DEV/apps/apps_st/comn/clone/jlib/java:/d01/oracle/DEV/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/d01/oracle/DEV/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /d01/oracle/DEV/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_11604.lst -stage /d01/oracle/DEV/apps/apps_st/comn/clone 2> /tmp/adcfgclone_11604.err; echo $? > /tmp/adcfgclone_11604.res
Log file located at /d01/oracle/DEV/apps/apps_st/comn/clone/bin/CloneContext_0220173928.log

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [saa] :

Target System Database SID : DEV

Target System Database Server Node [saa] :

Target System Database Domain Name [shang.com.cn] :

Target System Base Directory :/d01/oracle/DEV
Target System Tools ORACLE_HOME Directory [/d01/oracle/DEV/apps/tech_st/10.1.2] :

Target System Web ORACLE_HOME Directory [/d01/oracle/DEV/apps/tech_st/10.1.3] :

Target System APPL_TOP Directory [/d01/oracle/DEV/apps/apps_st/appl] :

Target System COMMON_TOP Directory [/d01/oracle/DEV/apps/apps_st/comn] :

Target System Instance Home Directory [/d01/oracle/DEV/inst] :

Target System Root Service [enabled] :

Target System Web Entry Point Services [enabled] :

Target System Web Application Services [enabled] :

Target System Batch Processing Services [enabled] :

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9976/viewspace-1023656/,如需轉載,請註明出處,否則將追究法律責任。

相關文章