一、克隆简介
需要克隆的情况分为以下几种:
标准克隆 -复制现有的Oracle E-Business Suite系统,例如,以针对生产系统的副本测试更新。
系统扩展 -向Oracle E-Business Suite系统中添加新计算机,以提供处理增加的工作负载的能力。
系统转换 -更改系统数据或文件系统,包括诸如平台迁移,配置高可用性体系结构之类的操作
二、必备任务
注意事项:
1、 如果EBS与Oracle Access Manager 11gR2集成,参考文档:1614793.1
2、 请确保adop处于cleanup完成阶段
$adop -status 查看都为compeleted
3、 运行fs_clone以与另一个文件系统同步,以避免在下一个修补周期中需要执行同步。
adop phase=fs_clone
直到completed
三、系统验证
1、 验证源系统空间情况 :建议数据空间大于等于500G
$COMMON_TOP 的目录剩余空间6G以上
/TMP目录 剩余空间6G以上
2、 验证目标系统上的OS要求:参考文档:1320300.1
3、验证oraInventory:
注意/etc/oraInst.loc文件的配置,必须指向应用和db用户都能访问的oraInventory。
oraInst.loc文件位置:
(1) Oracle Solaris SPARC(64位):/var/opt/oracle (2)Linux x86‐64:/etc (3)IBM AIX on Power Systems(64位): /etc (4)HP‐UX :/var/opt/oracle oraInst.loc文件内容确认:inventory_loc=/oracle/oraInventory
四、准备工作
1、 应用层执行autoconfig;
[root@ebsdev ~]# su - appldev [appldev@ebsdev scripts]$ sh /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adautocfg.sh
2、数据库层同步appsutil【将应用服务服务器的appsutil文件拷贝到数据库服务器目录】,示例脚本如下:
(1)登录应用服务器,生成appsutil.zip文件
[root@ebsdev ~]# su - appldev perl $AD_TOP/bin/admkappsutil.pl [appldev@ebsdev scripts]$ perl $AD_TOP/bin/admkappsutil.pl Starting the generation of appsutil.zip Log file located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/log/MakeAppsUtil_06191430.log output located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/out/appsutil.zip MakeAppsUtil completed successfully.
(2)记录上述生成zip文件绝对路径。
/data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/out/appsutil.zip
(3)登录oracle用户oradev,备份原来的appsutil.zip文件,
[root@ebsdev ~]#su ‐ oradev [oradev@ebsdev ~]$ cd $ORACLE_HOME [oradev@ebsdev 12.1.0]$ mv appsutil.zip appsutil.zip.20200619
(4)拷贝appsutil.zip到$ORACLE_HOME
[oradev@ebsdev ~]$ cd $ORACLE_HOME [oradev@ebsdev ~]$ cp /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/out/appsutil.zip $ORACLE_HOME/
(5)解压并覆盖(注意,此处覆盖即可,原来的appsutil下有一些文件,在新备的下面是没有的, 如adautocfg.sh)最新的appsutil.zip到$ORACLE_HOME下。
unzip ‐o appsutil.zip sh $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh
3、数据层执行etcc
执行后,无任何补丁需要打,可进行下一步
4、应用层维护快照信息:adadmin 2 4 2 1
注:第一次配置时,需要填一些信息,一路回车即可【见下列日志】,直到要求输入system和apps密码,会出现管理界面
如下为日志:
adadminliangwangzhong.com:8888/…0/06/adadmin.txt
五、标准克隆任务
标准克隆的三个阶段:
- 1、为数据库层和应用程序层准备源系统。
- 2、将数据库层和应用程序层节点都从源系统复制到目标系统。
- 3、为数据库层和应用程序层配置目标系统
1、为数据库层和应用程序层准备源系统。
1.1 准备要克隆的源系统数据库层
su ‐ oradev cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME perl adpreclone.pl dbTier
1.2 准备要克隆的源系统应用程序层
su ‐ appldev cd $INST_TOP/admin/scripts perl adpreclone.pl appsTier
1.3 (仅Windows) 关闭应用层服务。
1.4 预克隆将创建融合中间件及其组件的完整压缩存档
重点:R12.2 预克隆将创建融合中间件及其组件的完整压缩存档,如下所示:
(1)Oracle WebLogic Server主页,Oracle Web Tier Utilities主页,Oracle Common Utilities主页和Oracle E‐Business Suite主页的压缩存档位置:<COMMON_TOP>/clone/FMW/FMW_Home.jar
(2) WebLogic域的压缩存档位置:$COMMON_TOP/clone/FMW/WLS/EBSdomain.jar
(3)WebLogic域的配置模板位置:$COMMON_TOP/clone/FMW/WLS/plan/moveplan.xml
(4)Oracle Web Tier / Oracle HTTP Server配置实例的压缩档案位置:$COMMON_TOP/clone/FMW/OHS/ohsarchive.jar
(5)Oracle HTTP Server配置实例的配置模板位置:$COMMON_TOP/clone/FMW/OHS/moveplan.xml
2、 目标端用户环境创建
首先见如下链接:https://www.topunix.com/post-2733.html
根据上述链接进行环境创建:
把环境建好【用户需要进行必要调整,本次测试为开发机克隆,所以都用开发机的配置及目录】
--DB层参数调整 [root@localhost ~]# echo "oracle soft nproc 2047" >>/etc/security/limits.conf [root@localhost ~]# echo "oracle hard nproc 16384" >>/etc/security/limits.conf [root@localhost ~]# echo "oracle soft nofile 1024" >>/etc/security/limits.conf [root@localhost ~]# echo "oracle hard nofile 65536" >>/etc/security/limits.conf [root@localhost ~]# echo "oracle soft memlock 475215729" >>/etc/security/limits.conf [root@localhost ~]# echo "oracle hard memlock 475215729" >>/etc/security/limits.conf [root@localhost ~]# echo "* hard nofile 65536" >>/etc/security/limits.conf [root@localhost ~]# echo "* soft nofile 4096" >>/etc/security/limits.conf [root@localhost ~]# echo "* hard nproc 16384" >>/etc/security/limits.conf [root@localhost ~]# echo "* soft nproc 2047" >>/etc/security/limits.conf [root@localhost ~]# echo "* hard stack 16384" >>/etc/security/limits.conf [root@localhost ~]# echo "* soft stack 10240" >>/etc/security/limits.conf [root@localhost ~]# echo "session required pam_limits.so" >>/etc/pam.d/login [root@localhost ~]# [root@localhost ~]# vi /etc/profile if [ $USER = "oradev" ] ; then if [ $SHELL = "/bin/ksh" ]; then ulimit ‐p 16384 ulimit ‐n 65536 else ulimit ‐u 16384 ‐n 65536 fi umask 022 fi 生效配置:source /etc/profile --用户配置 说明:ebs预安装包会创建applmgr和oracle用户,先移除这两个用户 userdel applmgr userdel oracle cd /home rm -rf applmgr oracle cd /var/mail rm -rf applmgr oracle --创建用户及组 /usr/sbin/groupadd oinstall /usr/sbin/groupadd dba /usr/sbin/groupadd asmadmin /usr/sbin/groupadd asmdba /usr/sbin/groupadd asmoper /usr/sbin/groupadd oper /usr/sbin/useradd -g oinstall -G dba,asmdba,asmadmin,oper -d /home/oradev -m oradev groupadd applgrp useradd -g applgrp -G dba,oinstall -d /home/appldev appldev --用户安全性配置 vi /etc/security/limits.d/20‐nproc.conf oradev - nproc unlimited appldev - nproc unlimited 说明:检查nobody用户设置,如果noboy用户不存在,创建它 cat /etc/passwd|grep nobody useradd nobody(如果不存在,通过此命令创建) --修改Preinstall.conf vi /etc/security/limits.d/oracle-ebs-server-R12-preinstall.conf %s/oracle/oradev/g ‐‐用oradev替换oracle %s/applmgr/appldev/g ‐‐用appldev替换applmgr --建安装文件夹 vi /etc/oraInst.loc inventory_loc=/data/u01/dev/oraInventory inst_group=oinstall mkdir -p /data/u01/dev/oraInventory mkdir -p /data/u01/dev/devap mkdir -p /data/u01/dev/devdb chmod -fR 777 /u01/dev/oraInventory chmod -R 777 /data/ chown -R appldev:oinstall /data/u01/dev/devap chown -R oradev:oinstall /data/u01/dev/devdb
3、源系统复制节点到目标系统
将数据库层和应用程序层节点都从源系统复制到目标系统
注意:复制到目标系统,应用层需要授予applmgr用户权限,数据库层需要授予oracle权限复制到目标系统的两种方法:
a、此方法可以在复制时保留软链接
cp ‐prfH /Source_dir/db/ /target/db
b、tar包方式(推荐),范例如下:
tar ‐czvf devdb.`date +%y%m%d.%H%M`.tar.gz 12.1.0 data archive tar ‐czvf devapfs1.`date +%y%m%d.%H%M`.tar.gz /u01/dev/devap/fs1/EBSapps
3.1 复制数据库层文件系统
(1)、以appldev用户身份登录到“源”应用程序层节点,然后:关闭应用程序层进程。
[appldev@ebsdev ~]$ adstpall.sh apps/welcome
(2)、以oradev用户身份登录到“源系统”数据库节点,然后:
a、对源系统数据库执行正常关闭。
[oradev@ebsdev ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME [oradev@ebsdev ebsdev_ebsdev]$ ./addlnctl.sh stop ebsdev [oradev@ebsdev ebsdev_ebsdev]$ ./addbctl.sh stop 或直接sqlplus / as sysdba ,SQL>shutdown immediate
b、将源系统数据库的数据库文件.dbf复制到目标系统【即/data/u01/dev/devdb/data文件夹】。
c、将源系统数据库ORACLE_HOME复制到目标系统【即/data/u01/dev/devdb/12.1.0文件夹】。
d、将源系统数据库下的archive 复制到目标系统【即/data/u01/dev/devdb/archive文件夹】。
上述b、c 、d直接将/data/u01/dev/devdb的文件夹打包并传输
[oradev@ebsdev devdb]$ tar -czvf devdb.`date +%y%m%d.%H%M`.tar.gz 12.1.0 data archive
d、启动源应用程序系统数据库和应用程序层进程。
启动方式:https://www.topunix.com/post-2672.html#1-3
(3)以oracle用户身份登录到“目标系统”数据库节点,然后:
删除数据库ORACLE_HOME中的oraInst.loc文件(如果存在)。
3.2 复制应用层文件系统
将应用程序层文件系统从源“运行版文件系统”复制到目标“运行版文件系统”
(1)登录源端服务器用户appldev,打包fs1(运行版文件系统)下的EBSapps(注:不需要打包其他文件如FMW,inst等,也不需要其他fs2等,后面会自动创建)
[appldev@ebsdev devap]$ tar ‐czvf devapfs1.`date +%y%m%d.%H%M`.tar.gz /u01/dev/devap/fs1/EBSapps
(2)传输打包文件到目标端
[appldev@ebsdev devap]$ scp devap_fs1.200623.1446.tar.gz root@172.18.1.241:/data/u01/dev/devap
(3)目标端解压打包文件
[appldev@ebsdev devap]$ tar -zxf devap_fs1.200623.1446.tar.gz
4、 为数据库层和应用程序层配置目标系统
4.1 配置目标系统数据库服务器
(1)执行克隆数据库
[root@ebsdev ~]# su ‐ oradev [oradev@ebsdev ~]$ cd $ORACLE_HOME/appsutil/clone/bin---【/data/u01/dev/devdb/12.1.0/appsutil/clone/bin】 [oradev@ebsdev bin]$ perl adcfgclone.pl dbTier Copyright (c) 2002, 2015 Oracle Corporation Redwood Shores, California, USA Oracle E-Business Suite Rapid Clone Version 12.2 adcfgclone Version 120.63.12020000.60 Enter the APPS password :apps密码 Running: Context clone... Log file located at /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/CloneContext_0623154914.log Provide the values required for creation of the new Database Context file. Target System Hostname (virtual or normal) [ebsdev] :默认回车 Target Instance is RAC (y/n) [n] :默认回车 Target System Database SID : ebsdev 手动指定 Target System Base Directory : /data/u01/dev/devdb 手动指定 Role separation is supported y/n [n] ? :默认回车 Target System utl_file_dir Directory List : /tmp 手动指定 Number of DATA_TOP's on the Target System [1] :默认回车 Target System DATA_TOP Directory 1 [/data/u01/dev/devdb/data] :默认回车 Target System RDBMS ORACLE_HOME Directory [/data/u01/dev/devdb/12.1.0] :默认回车 Do you want to preserve the Display [ebsdev:0.0] (y/n) : y默认回车 Target System Port Pool [0-99] : 10手动指定 Checking the port pool 10 done: Port Pool 10 is free Report file located at /data/u01/dev/devdb/12.1.0/appsutil/temp/portpool.lst The new database context file has been created : /data/u01/dev/devdb/12.1.0/appsutil/ebsdev_ebsdev.xml Check Clone Context logfile /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/CloneContext_0623155248.log for details. Running Rapid Clone with command: Running perl /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/adclone.pl java=/data/u01/dev/devdb/12.1.0/appsutil/clone/bin/../jre mode=apply stage=/data/u01/dev/devdb/12.1.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/data/u01/dev/devdb/12.1.0/appsutil/ebsdev_ebsdev.xml showProgress contextValidated=true Beginning database tier Apply - Tue Jun 23 15:55:07 2020 /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/data/u01/dev/devdb/12.1.0/oui -classpath /data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/xmlparserv2.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/ojdbc6.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/java:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/oui/OraInstaller.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/oui/ewt3.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/oui/share.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/oui/srvm.jar:/data/u01/dev/devdb/12.1.0/appsutil/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyDBTier -e /data/u01/dev/devdb/12.1.0/appsutil/ebsdev_ebsdev.xml -stage /data/u01/dev/devdb/12.1.0/appsutil/clone -showProgress APPS Password : Log file located at /data/u01/dev/devdb/12.1.0/appsutil/log/ebsdev_ebsdev/ApplyDBTier_06231555.log - 50% completed Completed Apply... Tue Jun 23 16:01:30 2020 Starting database listener for ebsdev: Running: /data/u01/dev/devdb/12.1.0/appsutil/scripts/ebsdev_ebsdev/addlnctl.sh start ebsdev Logfile: /data/u01/dev/devdb/12.1.0/appsutil/log/ebsdev_ebsdev/addlnctl.txt You are running addlnctl.sh version 120.4 Starting listener process ebsdev ... Listener ebsdev has already been started. addlnctl.sh: exiting with status 0 addlnctl.sh: check the logfile /data/u01/dev/devdb/12.1.0/appsutil/log/ebsdev_ebsdev/addlnctl.txt for more information ... Do you want to change the password for all EBS Schemas? (y/n) [n]) : n 手动指定 Do you want to change the password for sysadmin user? (y/n) [n]) : n 手动指定 Do you want to change the apps password? (y/n) [n]) : n 手动指定 Do you want to change the sys and system passwords? (y/n) [n]) : n 手动指定 Running ETCC to check status of DB technology patches... +===============================================================+ | Copyright (c) 2005, 2019 Oracle and/or its affiliates. | | All rights reserved. | | Oracle E-Business Suite Release 12.2 | | Database EBS Technology Codelevel Checker | +===============================================================+ Using context file from command line argument: /data/u01/dev/devdb/12.1.0/appsutil/ebsdev_ebsdev.xml Starting Database EBS Technology Codelevel Checker, Version 120.70 Tue Jun 23 16:02:26 CST 2020 Log file for this session : /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/log/checkDBpatch_13797.log Identifying database release. Database release set to 12.1.0.2. Connecting to database. Database connection successful. Database ebsdev is in READ WRITE mode. Identifying APPS and APPLSYS schema names. - APPS schema : APPS - APPLSYS schema : APPLSYS Checking for DB-ETCC results table. Table to store DB-ETCC results already exists in the database. Checking if InMemory option is enabled. InMemory option is not enabled in the database. Bugfix file /data/u01/dev/devdb/12.1.0/appsutil/etcc/db/onprem/txk_R1220_DB_base_bugs.xml : 120.0.12020000.46 This file will be used for identifying missing bugfixes. Mapping file /data/u01/dev/devdb/12.1.0/appsutil/etcc/db/onprem/txk_R1220_DB_mappings.xml : 120.0.12020000.21 This file will be used for mapping bugfixes to patches. [WARNING] DB-ETCC: Bugfix XML file (/data/u01/dev/devdb/12.1.0/appsutil/etcc/db/onprem/txk_R1220_DB_base_bugs.xml) is more than 30 days old. Check if a newer version is available in patch 17537119. Checking Bugfix XML file for 12.1.0.2 Obtained list of bugfixes to be applied and the list to be rolled back. Now checking Database ORACLE_HOME. The opatch utility is version 12.2.0.1.14. DB-ETCC is compatible with this opatch version. Found patch records in the inventory. Checking Mapping XML file for 12.1.0.2 All the required one-off bugfixes are present in Database ORACLE_HOME. Stored Technology Codelevel Checker results in the database ebsdev successfully. Finished checking fixes for Oracle Database: Tue Jun 23 16:02:33 CST 2020 Log file for this session: /data/u01/dev/devdb/12.1.0/appsutil/clone/bin/log/checkDBpatch_13797.log ===============================================================================
(2)克隆完成后,设置ora用户新的环境变量;
[oradev@ebsdev ~]$ vi .bash_profile
. /data/u01/dev/devdb/12.1.0/ebsdev_ebsdev.env
(3)清理节点信息:
apps用户登陆sqlplus后, [oradev@ebsdev ~]$ sqlplus apps/welcome; 执行: SQL>exec fnd_conc_clone.setup_clean; SQL>commit;
(4)完成后执行数据库层autoconfig.
$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh appspass=apps密码
注意:
数据库版本为12C Release 1 (R12.2.6和R12.2.7默认此版本数据库),在adcfgclone.pl执行完成后在sqlnet_ifile.ora中添加以下行:
[oradev@ebsdev ebsdev_ebsdev]$ vi $ORACLE_HOME/network/admin/ebsdev_ebsdev/sqlnet_ifile.ora a、如果初始化参数SEC_CASE_SENSITIVE_LOGON设置为FALSE SQLNET.ALLOWED_LOGON_VERSION_SERVER = 8 b、如果SEC_CASE_SENSITIVE_LOGON设置为TRUE SQLNET.ALLOWED_LOGON_VERSION_SERVER = 10
4.2 配置目标系统应用程序层
[appldev@ebsdev devap]$cd $COMMON_TOP/clone/bin——————————COMMON_TOP=/data/u01/dev/devap/fs1/EBSapps/comn perl adcfgclone.pl appsTier dualfs 克隆详情: [appldev@ebsdev bin]$ perl adcfgclone.pl appsTier dualfs Copyright (c) 2002, 2015 Oracle Corporation Redwood Shores, California, USA Oracle E-Business Suite Rapid Clone Version 12.2 adcfgclone Version 120.63.12020000.60 Enter the APPS password :apps密码 Enter the Weblogic AdminServer password :wls密码 Do you want to add a node (yes/no) [no] : Running: Context clone... Log file located at /data/u01/dev/devap/fs1/EBSapps/comn/clone/bin/CloneContext_0624090837.log Provide the values required for creation of the new APPL_TOP Context file. Target System Hostname (virtual or normal) [ebsdev] : Target System Database SID : ebsdev Target System Database Server Node [ebsdev] :默认回车 Target System Database Domain Name [*.com] :默认回车 Target System Base Directory : /data/u01/dev/devap 手动输入 Target System Base Directory set to /data/u01/dev/devap 自动生成 Target System Current File System Base set to /data/u01/dev/devap/fs1 自动生成 Target System Other File System Base set to /data/u01/dev/devap/fs2 自动生成 Target System Fusion Middleware Home set to /data/u01/dev/devap/fs1/FMW_Home 自动生成 Target System Other File System Fusion Middleware Home set to /data/u01/dev/devap/fs2/FMW_Home 自动生成 Target System Web Oracle Home set to /data/u01/dev/devap/fs1/FMW_Home/webtier 自动生成 Target System Other File System Web Oracle Home set to /data/u01/dev/devap/fs2/FMW_Home/webtier 自动生成 Target System Appl TOP set to /data/u01/dev/devap/fs1/EBSapps/appl 自动生成 Target System Other File System Appl TOP set to /data/u01/dev/devap/fs2/EBSapps/appl 自动生成 Target System COMMON TOP set to /data/u01/dev/devap/fs1/EBSapps/comn 自动生成 Target System Other File System COMMON TOP set to /data/u01/dev/devap/fs2/EBSapps/comn 自动生成 Target System Instance Home Directory [/data/u01/dev/devap] :默认回车 Target System Current File System Instance Top set to /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev自动生成 Do you want to preserve the Display [ebsdev:1.0] (y/n) : y 手动选择 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] :默认回车 Target System Port Pool [0-99] : 20 手动选择--网站端口:8020 Checking the port pool 20 done: Port Pool 20 is free Report file located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/out/portpool.lst RC-40201: Unable to connect to Database ebsdev. Enter the Database listener port [1541] : 1531 数据库端口 UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /tmp 3. /data/u01/dev/devdb/12.1.0/appsutil/outbound/ebsdev_ebsdev 4. /usr/tmp Choose a value which will be set as APPLPTMP value on the target node [1] : 2 手动选择 The new APPL_TOP context file has been created : /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/appl/admin/ebsdev_ebsdev.xml Check Clone Context logfile /data/u01/dev/devap/fs1/EBSapps/comn/clone/bin/CloneContext_0624090837.log for details. Creating Patch file system context file..... Log file located at /data/u01/dev/devap/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0624090920.log Target System Other File System Instance Top set to /data/u01/dev/devap/fs2/inst/apps/ebsdev_ebsdev Target System Port Pool [0-99] : 21 手动选择--网站端口:8021 Checking the port pool 21 done: Port Pool 21 is free Report file located at /data/u01/dev/devap/fs2/inst/apps/ebsdev_ebsdev/admin/out/portpool.lst The new APPL_TOP context file has been created : /data/u01/dev/devap/fs2/inst/apps/ebsdev_ebsdev/appl/admin/ebsdev_ebsdev.xml Check Clone Context logfile /data/u01/dev/devap/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0624090920.log for details. FMW Pre-requisite check log file location : /data/u01/dev/devap/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log Running: FMW pre-req check... Configuring: Run file system.... LogFile located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/log/clone/run/RCloneApplyAppstier_06240909.log Configuring: Patch file system.... LogFile located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/log/clone/patch/RCloneApplyAppstier_06240930.log Do you want to startup the Application Services for ebsdev? (y/n) [n] : y 手动选择 Do you want to startup the Application Services for ebsdev? (y/n) [n] : y手动选择 Starting application Services for ebsdev: You are running adstrtal.sh version 120.24.12020000.11 The logfile for this session is located at /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adstrtal.log Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/jtffmctl.sh start Timeout specified in context file: 100 second(s) script returned: **************************************************** You are running jtffmctl.sh version 120.3.12020000.4 Validating Fulfillment patch level via /data/u01/dev/devap/fs1/EBSapps/comn/java/classes Fulfillment patch level validated. Starting Fulfillment Server for ebsdev on port 9320 ... jtffmctl.sh: exiting with status 0 .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adopmnctl.sh start Timeout specified in context file: 100 second(s) script returned: **************************************************** You are running adopmnctl.sh version 120.0.12020000.2 Starting Oracle Process Manager (OPMN) ... adopmnctl.sh: exiting with status 0 adopmnctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adopmnctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adapcctl.sh start Timeout specified in context file: 100 second(s) script returned: **************************************************** You are running adapcctl.sh version 120.0.12020000.6 Starting OPMN managed Oracle HTTP Server (OHS) instance ... adapcctl.sh: exiting with status 0 adapcctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adapcctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adnodemgrctl.sh start -nopromptmsg Timeout specified in context file: -1 second(s) script returned: **************************************************** You are running adnodemgrctl.sh version 120.11.12020000.12 Calling txkChkEBSDependecies.pl to perform dependency checks for ALL MANAGED SERVERS Perl script txkChkEBSDependecies.pl got executed successfully Starting the Node Manager... Refer /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adnodemgrctl.txt for details NodeManager log is located at /data/u01/dev/devap/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1 adnodemgrctl.sh: exiting with status 0 adnodemgrctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adnodemgrctl.txt for more information ... .end std out. *** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS *** Log File = /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/rgf/TXK/txkChkEBSDependecies_Wed_Jun_24_11_57_31_2020/txkChkEBSDependecies_Wed_Jun_24_11_57_31_2020.log .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adalnctl.sh start Timeout specified in context file: 100 second(s) script returned: **************************************************** adalnctl.sh version 120.3.12020000.4 Checking for FNDFS executable. Starting listener process APPS_ebsdev. adalnctl.sh: exiting with status 0 adalnctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adalnctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adcmctl.sh start Timeout specified in context file: 1000 second(s) script returned: **************************************************** You are running adcmctl.sh version 120.19.12020000.7 Starting concurrent manager for ebsdev ... Starting ebsdev_0624@ebsdev Internal Concurrent Manager Default printer is noprint adcmctl.sh: exiting with status 0 adcmctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adcmctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/adadminsrvctl.sh start -nopromptmsg Timeout specified in context file: -1 second(s) script returned: **************************************************** You are running adadminsrvctl.sh version 120.10.12020000.10 Starting WLS Admin Server... Refer /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adadminsrvctl.txt for details AdminServer logs are located at /data/u01/dev/devap/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsdev/servers/AdminServer/logs adadminsrvctl.sh: exiting with status 0 adadminsrvctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adadminsrvctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg Timeout specified in context file: -1 second(s) script returned: **************************************************** You are running admanagedsrvctl.sh version 120.14.12020000.11 Starting forms_server1... Server specific logs are located at /data/u01/dev/devap/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsdev/servers/forms_server1/logs admanagedsrvctl.sh: exiting with status 0 admanagedsrvctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adformsctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg Timeout specified in context file: -1 second(s) script returned: **************************************************** You are running admanagedsrvctl.sh version 120.14.12020000.11 Starting oafm_server1... Server specific logs are located at /data/u01/dev/devap/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsdev/servers/oafm_server1/logs admanagedsrvctl.sh: exiting with status 0 admanagedsrvctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adoafmctl.txt for more information ... .end std out. .end err out. **************************************************** Executing service control script: /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg Timeout specified in context file: -1 second(s) script returned: **************************************************** You are running admanagedsrvctl.sh version 120.14.12020000.11 Starting oacore_server1... Server specific logs are located at /data/u01/dev/devap/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsdev/servers/oacore_server1/logs admanagedsrvctl.sh: exiting with status 0 admanagedsrvctl.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adoacorectl.txt for more information ... .end std out. .end err out. **************************************************** All enabled services for this node are started. adstrtal.sh: Exiting with status 0 adstrtal.sh: check the logfile /data/u01/dev/devap/fs1/inst/apps/ebsdev_ebsdev/logs/appl/admin/log/adstrtal.log for more information ...
六、重要:克隆失败后的处理
rm -rf fs2/* fs_ne/*
r m -rf fs1/FMW_HOME fs1/inst
删除oraInventory/ContextXMSL/inventory.xml 文件中新增的ap home
克隆失败的原因:可能是在打包fs1时,FWM会提示存在,无法继续克隆,克隆只需要将fs1中的EBSapps拷贝过来即可
七、克隆失败,修复故障后的处理
重要:克隆失败,修复故障后,继续执行之前克隆的方法
R12.2克隆过程中会有一条类似命令,直接执行此命令可直接克隆而不必重新输入参数
perl /u01/crp3/crp3db/12.1.0/appsutil/clone/bin/adclone.pl
java=/u01/crp3/crp3db/12.1.0/appsutil/clone/bin/../jre mode=apply stage=/u0
1/crp3/crp3db/12.1.0/appsutil/clone component=dbTier method=CUSTOM
dbctxtg=/u01/crp3/crp3db/12.1.0/appsutil/ebscrp3_ebscrp3.xml showProgress c
ontextValidated=true
*命令无法执行,执行到最后提示没有带密码参数
八、重要:克隆和AutoConfig日志文件位置
1、 adpreclone.pl (预克隆) 日志:
数据库层:$ORACLE_HOME/appsutil/log/<context>/StageDBTier_<timestamp>.log
应用程序层:$INST_TOP/admin/log/StageAppsTier_<timestamp>.log
2、 admkappsutil.pl 日志:
应用程序层:$INST_TOP/admin/log/MakeAppsUtil_<timestamp>.log
3、 adcfgclone.pl (克隆) 日志:
数据库层:$ORACLE_HOME/appsutil/log/<context>/ApplyDBTier_<timestamp>.log
应用程序层:$INST_TOP/admin/log/ApplyAppsTier_<timestamp>.log
4、adconfig 日志:
数据库层:
$ORACLE_HOME/appsutil/log/<context>/<timestamp>/adconfig.log
$ORACLE_HOME/appsutil/log/<context>/<timestamp>/NetServiceHandler.log
应用层:$INST_TOP/admin/log/<timestamp>/adconfig.log
$INST_TOP/admin/log/<timestamp>/NetServiceHandler.log
文章评论