参考文档
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)
环境如下:
HOST | HOSTNAME | IP | OS |
SOURCE | EBS | 192.168.3.194 | OEL5.6 64Bit |
TARGET | EBST | 192.168.3.200 | OEL5.6 64Bit |
一. 目标端的准备工作
可以参照:
完成其中的如下步骤:
2. 创建相关用户和目录4. 配置Yum源6. 检查SELinux状态7. 关闭iptables8. 调整主机名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 sysdbaSQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql apps完成后切换回applmgr用户使用adpatch应用补丁92390892. Apply the latest AutoConfig template patch# PatchID: 8919489使用adpatch应用以下补丁p8919489_R12.TXK.B_R12_GENERIC.zipp8919489_R12.TXK.B_R12_zhs.zip3. Apply the latest Rapid Clone patches使用adpatch应用以下补丁p9171651_R12.OAM.B_R12_GENERIC.zipp9833058_R12.OAM.B_R12_GENERIC.zipp12404574_R12.OAM.B_R12_GENERIC.zipp12598630_R12.OAM.B_R12_GENERIC.zipp15969020_R12.OAM.B_R12_GENERIC.zipp16958896_R12.OAM.B_R12_GENERIC.zipp13942692_R12.OAM.B_R12_GENERIC.zipp18991480_R12.OAM.B_R12_GENERIC.zipp17889841_R12.OAM.B_R12_GENERIC.zipp18835102_R12.OAM.B_R12_GENERIC.zip4. Run AutoConfig on the application tiers[applmgr@EBS ~]$ $INST_TOP/admin/scripts/adautocfg.sh5. 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.zip6. Run AutoConfig on the database tier[oracle@EBS ~]$ $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh7. Run AutoConfig on the application tiers[applmgr@EBS ~]$ $INST_TOP/admin/scripts/adautocfg.sh8. Maintain Snapshot InformationadadminMaintain 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 dbTier2. Prepare the source system application tier for cloning[applmgr@EBS ~]$ cd $INST_TOP/admin/scripts[applmgr@EBS scripts]$ perl adpreclone.pl appsTier3. 退出维护模式adadminChange Maintenance Mode → Disable Maintenance Mode4. 关闭数据库及监听[oracle@EBS ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME[oracle@EBS EBS_ebs]$ ./addbctl.sh stop ; ./addlnctl.sh stop ebs5. Copy the source system to the target system# 将以下目录及文件传送到目标端# 我采用的是打包压缩 → 传送 → 解压的方式APP层:$APPL_TOP$COMMON_TOP$ORACLE_HOME$IAS_ORACLE_HOMEDB层:$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 optionsRapid 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 settingsIf the new cloned system needs to utilize different printers, update the target system with the new printer settings now.3. Update Workflow configuration settingsCloning 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 settingSource 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_PARAMETERSIf 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 configurationIf 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