Oracle E-Business Suite 12.1.1 Rapid Clone



參考文檔


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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章