1. Preclone ở server source
$ Source biến môi trường
$ echo $FILE_EDITION xuất ra chữ “run”
$ cd <INS_TOP>/admin/scripts
$ perl adpreclone.pl appsTier
COPY “Run Edition File System” to the Target “Run Edition File System”
$ tar -cvf <newfile> <sourcefile>
scp Desktop/sample_example.txt root@<IP TARGET>:/home/remote_dir
2. Giải nén server target
tar xvfz apps_xxx.tgz –C <path>
VD:
tar -xvf /home/source/apps_12210_fresh.tgz -C /home/u04/TEST/apps
QUAN TRỌNG, phân quyền sở hữu file oraInventory cho user app và xóa nội dung trong thư mục này
3. Clone Apps
cd <APPS Location>/EBSapps/comn/clone/bin
perl adcfgclone.pl appsTier dualfs
Nhập password APPS, WEBLOGIC
CÁC THÔNG SỐ CẦN NHẬP SẼ HIỆN RA VÀ DBA ĐIỀN VÀO
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [erp] : (CÓ THỂ THAY ĐỔI)
Target System Database SID : <PDB SID> (CÓ THỂ THAY ĐỔI)
Target System Database Server Node [erp] : (CÓ THỂ THAY ĐỔI)
Target System Database Domain Name : <HOSTNAME DATABASE> (CÓ THỂ THAY ĐỔI)
Target System Base Directory : /u01/oracle/PROD/apps/ (CÓ THỂ THAY ĐỔI)
Target System Base Directory set to /u01/oracle/PROD/apps
Target System Current File System Base set to /u01/oracle/PROD/apps/fs2
Target System Other File System Base set to /u01/oracle/PROD/apps/fs1
Target System Fusion Middleware Home set to /u01/oracle/PROD/apps/fs2/FMW_Home
Target System Other File System Fusion Middleware Home set to /u01/oracle/PROD/apps/fs1/FMW_Home
Target System Web Oracle Home set to /u01/oracle/PROD/apps/fs2/FMW_Home/webtier
Target System Other File System Web Oracle Home set to /u01/oracle/PROD/apps/fs1/FMW_Home/webtier
Target System Appl TOP set to /u01/oracle/PROD/apps/fs2/EBSapps/appl
Target System Other File System Appl TOP set to /u01/oracle/PROD/apps/fs1/EBSapps/appl
Target System COMMON TOP set to /u01/oracle/PROD/apps/fs2/EBSapps/comn
Target System Other File System COMMON TOP set to /u01/oracle/PROD/apps/fs1/EBSapps/comn
Target System Instance Home Directory [/u01/oracle/PROD/apps] : (CÓ THỂ THAY ĐỔI)
Target System Current File System Instance Top set to /u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp
Do you want to preserve the Display [erptest:0.0] (y/n) : n
Target System Display [erp:0.0] :
Target System Root Service [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want the target system to have the same port values as the source system (y/n) [y] ? : n (CÓ THỂ THAY ĐỔI)
Target System Port Pool [0-99] : 0 (CÓ THỂ THAY ĐỔI)
Checking the port pool 0
done: Port Pool 0 is free
Report file located at /u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp/admin/out/portpool.lst
Target System proxy port [80] :
UTL_FILE_DIR on database tier consists of the following directories.
- /u01/oracle/PROD/db/temp/PROD
- /u01/oracle/PROD/db/19.0.0/appsutil/outbound/PROD_erpdb
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 (CÓ THỂ THAY ĐỔI)
The new APPL_TOP context file has been created :
/u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp/appl/admin/PROD_erp.xml
Check Clone Context logfile /u01/oracle/PROD/apps/fs2/EBSapps/comn/clone/bin/CloneContext_0729111744.log for details.
Creating Patch file system context file…..
Log file located at /u01/oracle/PROD/apps/fs2/EBSapps/comn/clone/bin/CloneContextPatch_0729111924.log
Target System Other File System Instance Top set to /u01/oracle/PROD/apps/fs1/inst/apps/PROD_erp
Target System Port Pool [0-99] : 1 (CÓ THỂ THAY ĐỔI)
Thời gian thông thường để clone APPS xong khoảng từ 2h -3h
[Application] Clone Apps R12.2
1. Preclone ở server source
$ Source biến môi trường
$ echo $FILE_EDITION xuất ra chữ “run”
$ cd <INS_TOP>/admin/scripts
$ perl adpreclone.pl appsTier
COPY “Run Edition File System” to the Target “Run Edition File System”
$ tar -cvf <newfile> <sourcefile>
scp Desktop/sample_example.txt root@<IP TARGET>:/home/remote_dir
2. Giải nén server target
tar xvfz apps_xxx.tgz –C <path>
VD:
tar -xvf /home/source/apps_12210_fresh.tgz -C /home/u04/TEST/apps
QUAN TRỌNG, phân quyền sở hữu file oraInventory cho user app và xóa nội dung trong thư mục này
3. Clone Apps
cd <APPS Location>/EBSapps/comn/clone/bin
perl adcfgclone.pl appsTier dualfs
Nhập password APPS, WEBLOGIC
CÁC THÔNG SỐ CẦN NHẬP SẼ HIỆN RA VÀ DBA ĐIỀN VÀO
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [erp] : (CÓ THỂ THAY ĐỔI)
Target System Database SID : <PDB SID> (CÓ THỂ THAY ĐỔI)
Target System Database Server Node [erp] : (CÓ THỂ THAY ĐỔI)
Target System Database Domain Name : <HOSTNAME DATABASE> (CÓ THỂ THAY ĐỔI)
Target System Base Directory : /u01/oracle/PROD/apps/ (CÓ THỂ THAY ĐỔI)
Target System Base Directory set to /u01/oracle/PROD/apps
Target System Current File System Base set to /u01/oracle/PROD/apps/fs2
Target System Other File System Base set to /u01/oracle/PROD/apps/fs1
Target System Fusion Middleware Home set to /u01/oracle/PROD/apps/fs2/FMW_Home
Target System Other File System Fusion Middleware Home set to /u01/oracle/PROD/apps/fs1/FMW_Home
Target System Web Oracle Home set to /u01/oracle/PROD/apps/fs2/FMW_Home/webtier
Target System Other File System Web Oracle Home set to /u01/oracle/PROD/apps/fs1/FMW_Home/webtier
Target System Appl TOP set to /u01/oracle/PROD/apps/fs2/EBSapps/appl
Target System Other File System Appl TOP set to /u01/oracle/PROD/apps/fs1/EBSapps/appl
Target System COMMON TOP set to /u01/oracle/PROD/apps/fs2/EBSapps/comn
Target System Other File System COMMON TOP set to /u01/oracle/PROD/apps/fs1/EBSapps/comn
Target System Instance Home Directory [/u01/oracle/PROD/apps] : (CÓ THỂ THAY ĐỔI)
Target System Current File System Instance Top set to /u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp
Do you want to preserve the Display [erptest:0.0] (y/n) : n
Target System Display [erp:0.0] :
Target System Root Service [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want the target system to have the same port values as the source system (y/n) [y] ? : n (CÓ THỂ THAY ĐỔI)
Target System Port Pool [0-99] : 0 (CÓ THỂ THAY ĐỔI)
Checking the port pool 0
done: Port Pool 0 is free
Report file located at /u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp/admin/out/portpool.lst
Target System proxy port [80] :
UTL_FILE_DIR on database tier consists of the following directories.
- /u01/oracle/PROD/db/temp/PROD
- /u01/oracle/PROD/db/19.0.0/appsutil/outbound/PROD_erpdb
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 (CÓ THỂ THAY ĐỔI)
The new APPL_TOP context file has been created :
/u01/oracle/PROD/apps/fs2/inst/apps/PROD_erp/appl/admin/PROD_erp.xml
Check Clone Context logfile /u01/oracle/PROD/apps/fs2/EBSapps/comn/clone/bin/CloneContext_0729111744.log for details.
Creating Patch file system context file…..
Log file located at /u01/oracle/PROD/apps/fs2/EBSapps/comn/clone/bin/CloneContextPatch_0729111924.log
Target System Other File System Instance Top set to /u01/oracle/PROD/apps/fs1/inst/apps/PROD_erp
Target System Port Pool [0-99] : 1 (CÓ THỂ THAY ĐỔI)
Thời gian thông thường để clone APPS xong khoảng từ 2h -3h