参考文档


Cloning Oracle Applications Release 12 with Rapid Clone (文档 ID 406982.1)

Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 (文档 ID 387859.1)



环境如下:


HOSTHOSTNAMEIPOS
SOURCEEBS192.168.3.194OEL5.6 64Bit
TARGETEBST192.168.3.200OEL5.6 64Bit



一.    目标端的准备工作


可以参照:    Oracle Enterprise Linux 5.6安装Oracle E-Business Suite R12


完成其中的如下步骤:


2.   创建相关用户和目录
4.   配置Yum源
6.   检查SELinux状态
7.   关闭iptables
8.   调整主机名
9.   修改内核参数
10.  修改用户资源限制
12.  安装必须的RPM包
13.  检查软件需求
14.  安装补丁
15.  重启服务器



二.    源端准备工作


1.   Apply the latest AD patch

#    PatchID:     9239089

#    打补丁时保证数据库打开,数据库监听打开,应用层服务关闭.之前由于做冷备份,我的数据库和应用均处于关闭状态,使用如下命令打开数据库和监听

[oracle@EBS ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
[oracle@EBS EBS_ebs]$ ./addbctl.sh start
[oracle@EBS EBS_ebs]$ ./addlnctl.sh start ebs

使用adadmin工具打开维护模式

Change Maintenance Mode → Enable Maintenance Mode

解压补丁包

unzip p9239089_R12.AD.B_R12_LINUX.zip

进入解压目录

cd 9239089/

#     应用该补丁需要完成如下前置任务

[applmgr@EBS 9239089]$ cp admin/adgrants.sql /tmp;chmod g+rwx /tmp/adgrants.sql

切换到oracle用户

[oracle@EBS ~]$ mkdir $ORACLE_HOME/appsutil/admin
[oracle@EBS ~]$ cp /tmp/adgrants.sql $ORACLE_HOME/appsutil/admin
[oracle@EBS ~]$ sqlplus / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql apps

完成后切换回applmgr用户使用adpatch应用补丁9239089


2.   Apply the latest AutoConfig template patch

#    PatchID:     8919489

使用adpatch应用以下补丁

p8919489_R12.TXK.B_R12_GENERIC.zip
p8919489_R12.TXK.B_R12_zhs.zip


3.   Apply the latest Rapid Clone patches

使用adpatch应用以下补丁

p9171651_R12.OAM.B_R12_GENERIC.zip
p9833058_R12.OAM.B_R12_GENERIC.zip
p12404574_R12.OAM.B_R12_GENERIC.zip
p12598630_R12.OAM.B_R12_GENERIC.zip
p15969020_R12.OAM.B_R12_GENERIC.zip
p16958896_R12.OAM.B_R12_GENERIC.zip
p13942692_R12.OAM.B_R12_GENERIC.zip
p18991480_R12.OAM.B_R12_GENERIC.zip
p17889841_R12.OAM.B_R12_GENERIC.zip
p18835102_R12.OAM.B_R12_GENERIC.zip


4.     Run AutoConfig on the application tiers

[applmgr@EBS ~]$ $INST_TOP/admin/scripts/adautocfg.sh


5.     Synchronize appsutil on the database tier nodes

[applmgr@EBS ~]$ perl $AD_TOP/bin/admkappsutil.pl
[applmgr@EBS ~]$ cp $INST_TOP/admin/out/appsutil.zip /tmp ; chmod g+rwx /tmp/appsutil.zip

切换到oracle用户

[oracle@EBS ~]$ cd $ORACLE_HOME
[oracle@EBS 11.1.0]$ cp /tmp/appsutil.zip .
[oracle@EBS 11.1.0]$ unzip -o appsutil.zip


6.     Run AutoConfig on the database tier

[oracle@EBS ~]$ $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh


7.     Run AutoConfig on the application tiers

[applmgr@EBS ~]$ $INST_TOP/admin/scripts/adautocfg.sh


8.     Maintain Snapshot Information

adadmin

Maintain Applications Files menu → Maintain snapshot information → Update current view snapshot → Update Complete APPL_TOP



三.    开始克隆


1.     Prepare the source system database tier for cloning

[oracle@EBS ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
[oracle@EBS EBS_ebs]$ perl adpreclone.pl dbTier


2.     Prepare the source system application tier for cloning

[applmgr@EBS ~]$ cd $INST_TOP/admin/scripts
[applmgr@EBS scripts]$ perl adpreclone.pl appsTier


3.     退出维护模式

adadmin
Change Maintenance Mode → Disable Maintenance Mode


4.     关闭数据库及监听

[oracle@EBS ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
[oracle@EBS EBS_ebs]$ ./addbctl.sh stop ; ./addlnctl.sh stop ebs


5.     Copy the source system to the target system

#    将以下目录及文件传送到目标端
#    我采用的是打包压缩 → 传送 → 解压的方式

APP层:

$APPL_TOP
$COMMON_TOP
$ORACLE_HOME
$IAS_ORACLE_HOME

DB层:

$ORACLE_HOME以及所有的数据文件,控制文件,在线日志(*.dbf).


6.     Configure the target system database server

[oracle@EBST bin]$ pwd
/u01/app/oracle/EBST/db/tech_st/11.1.0/appsutil/clone/bin
[oracle@EBST bin]$ perl adcfgclone.pl dbTier
 
 
7.     Configure the target system application tier server nodes

[applmgr@EBST bin]$ pwd
/u01/app/oracle/EBST/apps/apps_st/comn/clone/bin
[applmgr@EBST bin]$ perl adcfgclone.pl appsTier



四.    克隆后任务


这部分任务视环境而定,可以参考Cloning Oracle Applications Release 12 with Rapid Clone (文档 ID 406982.1) Section 3: Finishing Tasks


1.    Update profile options

Rapid Clone updates only site level profile options. If any other profile options are set to instance specific values, you must update them manually.


2.    Update printer settings

If the new cloned system needs to utilize different printers, update the target system with the new printer settings now.


3.    Update Workflow configuration settings

Cloning an Oracle Applications instance will not update the host and instance-specific information used by Oracle Workflow. Review the tables and columns listed in Table 4 to check for any instance-specific data in the Workflow configuration on the target system.


4.    Verify the APPLCSF variable setting

Source the APPS environment and review that the variable APPLCSF (identifying the top-level directory for concurrent manager log and output files) points to a suitable directory. To modify it, change the value of the s_applcsf variable in the context file and then run AutoConfig.


5.    Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS

If the target system is in a different domain name than the source system and SESSION_COOKIE_DOMAIN was not null in the source system, update that value to reflect the new domain name.

6.    Re-Implement SSL and SSO configuration

If the Source System was SSL or SSO enabled, and the Target is wished to be SSL or SSO enabled, then reconfigure the Target by following the SSL/SSO documentation. Otherwise, if the Target is wished to be non-SSL or non-SSO, then follow the same SSL/SSO documentation to undo the SSL/SSO setup.




The End