EBS克隆–db和app分开在两个服务器上

联系:QQ(5163721)

标题:EBS克隆–db和app分开在两个服务器上

作者:Lunar©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]

本次的环境:
源:DB和APP在同一台机器上,数据库 11.2.0.4,EBS 12.2
目标: DB和APP在不同服务器上,数据库 11.2.0.4,EBS 12.2

EBS 12.2有一个新特性,online patch的功能,因此,app上会有两个应用目录,比如fs1和fs2,其中fs1为run instance,而fs2为patch instance,这样patch的时候,他可以先patch fs2,然后fs2切换为run instance,而fs1再切换为patch instance来apply patch。
具体操作大致步骤如下:
 克隆时,先克隆db,再克隆app
 磁盘空间要求:Oracle Fusion Middleware cloning tools require 6GB in /tmp and 6GB under $COMMON_TOP.
 在做prepare clone的过程中,source系统的数据库必须是处于running状态
 prepare clone过程中,source系统的应用可以处于running状态
 每次source系统的更新都应该重新执行prepare clone操作,如增加datafile、apply patch
 如果source系统未及时更新prepare clone,而已经把文件copy到了target系统,则可以在source系统中执行prepare clone操作,然后将prepare clone操作所更新的文件覆盖至target系统。

prepare clone操作更新文件目录如下(也就是在源系统上先执行prepare clone,然后把下面的分拣分别用db用户和app用户copy到对应的目标系统上):
dbtier:$ORACLE_HOME/appsutil/clone
apptier:$COMMON_TOP/clone

标准克隆(standard cloning)的过程主要是2个:
standard cloning process for Application Tier basically involves the following two key processes:
1. 从源环境的run fs拷贝到目标系统的run fs:(Copy Application Tier node from the Source “Run Edition File System” to the Target “Run Edition File System”).(即,从源系统上克隆fs1到目标系统的fs1,源系统的fs1就是其run fs,目标系统的fs1也是其run fs)
2. 从目标系统的run fs拷贝到目标系统的patch fs:(Copy the Application Tier node from the Target “Run Edition File System” to the Target “Patch Edition File System”).(即,使用目标上已经克隆好的fs1,进行克隆,克隆到目标系统的fs2。目标系统的fs1为run fs,fs2为patch fs)

然后,执行db的clone:

[oracrp3@ebscrp3 CRP3_ebscrp3]$ perl adpreclone.pl dbTier

                     Copyright (c) 2011, 2014 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adpreclone Version 120.31.12020000.16

Enter the APPS User Password:     ------这里输入口令 apps
Running:
perl /u01/crp3/db/11.2.0/appsutil/bin/adclone.pl java=/u01/crp3/db/11.2.0/appsutil/jre mode=stage stage=/u01/crp3/db/11.2.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/crp3/db/11.2.0/appsutil/CRP3_ebscrp3.xml showProgress 


Beginning database tier Stage - Fri Oct 17 19:26:48 2014
-------开始执行预克隆的时间
/u01/crp3/db/11.2.0/appsutil/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/u01/crp3/db/11.2.0/oui -classpath /u01/crp3/db/11.2.0/lib/xmlparserv2.jar:/u01/crp3/db/11.2.0/jdbc/lib/ojdbc6.jar:/u01/crp3/db/11.2.0/appsutil/java:/u01/crp3/db/11.2.0/oui/jlib/OraInstaller.jar:/u01/crp3/db/11.2.0/oui/jlib/ewt3.jar:/u01/crp3/db/11.2.0/oui/jlib/share.jar:/u01/crp3/db/11.2.0/oui/jlib/srvm.jar:/u01/crp3/db/11.2.0/jlib/ojmisc.jar   oracle.apps.ad.clone.StageDBTier -e /u01/crp3/db/11.2.0/appsutil/CRP3_ebscrp3.xml -stage /u01/crp3/db/11.2.0/appsutil/clone -tmp /tmp -method CUSTOM    -showProgress
APPS Password : 
Log file located at /u01/crp3/db/11.2.0/appsutil/log/CRP3_ebscrp3/StageDBTier_10171926.log

  -     50% completed       

Completed Stage...
Fri Oct 17 19:27:24 2014    -----完成预克隆的时间
[oracrp3@ebscrp3 CRP3_ebscrp3]$       

接下来在,app的fs1(run instance)上使用adpreclone.pl执行fs1的预克隆:

[applcrp3@ebscrp3 scripts]$ perl adpreclone.pl appsTier

                     Copyright (c) 2011, 2014 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adpreclone Version 120.31.12020000.16

Enter the APPS User Password:       ---输入口令 apps
Enter the Weblogic AdminServer password :   ---输入口令 manager0

 Checking the status of the Oracle WebLogic Administration Server....

 Running perl /u01/crp3/app/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml -servername=AdminServer -promptmsg=hide  

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/crp3/app/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/crp3/app/fs1/EBSapps/comn/util/jdk64 mode=stage stage=/u01/crp3/app/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml showProgress 



 Setting the wls environment 

Beginning application tier Stage - Fri Oct 17 19:57:05 2014
----开始执行克隆的时间

/u01/crp3/app/fs1/EBSapps/comn/util/jdk64/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/crp3/app/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/crp3/app/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/crp3/app/fs1/EBSapps/comn/java/classes:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/crp3/app/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/crp3/app/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/crp3/app/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/crp3/app/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.StageAppsTier -e /u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml -stage /u01/crp3/app/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM   -showProgress -nopromptmsg 

Log file located at /u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/admin/log/clone/StageAppsTier_10171957.log


3.2.1.5	回到lunar-app的会话
假设中途这个操作中断了,不要紧,因为我们是在screen中执行的,只需要输入 screen -r lunar-app,就回到了那个中断的会话:
[root@ebscrp3 ~]# screen -ls
There is a screen on:
        15219.lunar-app (Detached)
1 Socket in /var/run/screen/S-root.

[root@ebscrp3 ~]# screen -r lunar-app
Enter the APPS User Password:
Enter the Weblogic AdminServer password :

 Checking the status of the Oracle WebLogic Administration Server....

 Running perl /u01/crp3/app/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml -servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/crp3/app/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/crp3/app/fs1/EBSapps/comn/util/jdk64 mode=stage stage=/u01/crp3/app/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml showProgress



 Setting the wls environment

Beginning application tier Stage - Fri Oct 17 19:57:05 2014
----开始执行克隆的时间

/u01/crp3/app/fs1/EBSapps/comn/util/jdk64/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/crp3/app/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/crp3/app/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/crp3/app/fs1/EBSapps/comn/java/classes:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/crp3/app/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/crp3/app/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/crp3/app/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/crp3/app/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/crp3/app/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.StageAppsTier -e /u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/appl/admin/CRP3_ebscrp3.xml -stage /u01/crp3/app/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM   -showProgress -nopromptmsg

Log file located at /u01/crp3/app/fs1/inst/apps/CRP3_ebscrp3/admin/log/clone/StageAppsTier_10171957.log

  \     20% completed

Completed Stage...
Fri Oct 17 20:11:44 2014   ----完成app预克隆的时间
[applcrp3@ebscrp3 scripts]$      

接下来,要把相应的文件分别拷贝到目标的db服务器和相应的app服务器上。
在文件copy的过程中,source系统的ebs 数据库跟应用都必须处于停止状态,否则很容易造成数据文件的不一致而导致clone失败。

执行tar命令:
 [root@ebscrp3 db]#
[oracrp3@ebscrp3 crp3]$ tar -czvf db_20141017.tar.gz db/

该目录中的内容如下:
[root@ebscrp3 db]# pwd
/u01/crp3/db
[root@ebscrp3 db]# ll
total 8
drwxr-xr-x 85 oracrp3 dba 4096 Oct 15 22:50 11.2.0    -----oracle二进制文件
drwxr-xr-x  3 oracrp3 dba 4096 Oct 16 14:30 data      ------oracle db的datafile

[applcrp3@ebscrp3 fs1]$ tar -czvf EBSapps_20141017.tar.gz  EBSapps/

在目标服务器上执行预安装,即准备环境,具体请参考《EBS克隆–从已有的tar包克隆一套EBS(db和app在同一台机器上)
执行clone之前,比如先reboot主机,否则会报错
下面是clone的过程,同《EBS克隆–从已有的tar包克隆一套EBS(db和app在同一台机器上)》类似:

[orastu@ebsdba1 bin]$ perl adcfgclone.pl dbTier

                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.35

Enter the APPS password :  口令apps

Running:
/u01/stu/db/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/stu/db/11.2.0/appsutil/clone/jlib/java:/u01/stu/db/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/ojdbc5.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/obfuscatepassword.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/ojmisc.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/java:/u01/stu/db/11.2.0/appsutil/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/stu/db/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_5959.lst -stage /u01/stu/db/11.2.0/appsutil/clone  2> /tmp/adcfgclone_5959.err; echo $? > /tmp/adcfgclone_5959.res

Log file located at /u01/stu/db/11.2.0/appsutil/clone/bin/CloneContext_1021134628.log

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [ebsdba1] : 

Target Instance is RAC (y/n) [n] : 

Target System Database SID : STU    一般SID都填写大写

Target System Base Directory : /u01/stu/db         

Target System utl_file_dir Directory List : /u01/stu/temp

Number of DATA_TOP's on the Target System [1] : 

Target System DATA_TOP Directory 1 [/u01/crp3/db/data] : /u01/stu/db/data

Target System RDBMS ORACLE_HOME Directory [/u01/stu/db/11.2.0] : 

Do you want to preserve the Display [ebscrp3:0.0] (y/n)  : Y

Do you want the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 6

Checking the port pool 6
done: Port Pool 6 is free
Report file located at /u01/stu/db/11.2.0/appsutil/temp/portpool.lst
Complete port information available at /u01/stu/db/11.2.0/appsutil/temp/portpool.lst

Creating the new Database Context file from :
  /u01/stu/db/11.2.0/appsutil/clone/context/db/adxdbctx.tmp

The new database context file has been created :
  /u01/stu/db/11.2.0/appsutil/STU_ebsdba1.xml

Log file located at /u01/stu/db/11.2.0/appsutil/clone/bin/CloneContext_1021134628.log
Check Clone Context logfile /u01/stu/db/11.2.0/appsutil/clone/bin/CloneContext_1021134628.log for details.

Running Rapid Clone with command:
Running:
perl /u01/stu/db/11.2.0/appsutil/clone/bin/adclone.pl java=/u01/stu/db/11.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/stu/db/11.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/stu/db/11.2.0/appsutil/STU_ebsdba1.xml showProgress contextValidated=true


Beginning database tier Apply - Tue Oct 21 13:47:44 2014

/u01/stu/db/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/stu/db/11.2.0/oui -classpath /u01/stu/db/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/ojdbc6.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/java:/u01/stu/db/11.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/oui/share.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/oui/srvm.jar:/u01/stu/db/11.2.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /u01/stu/db/11.2.0/appsutil/STU_ebsdba1.xml -stage /u01/stu/db/11.2.0/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/stu/db/11.2.0/appsutil/log/STU_ebsdba1/ApplyDBTier_10211347.log
  |      0% completed       Determining Source system database type ("single" or "rac").
Source system indentified as being of type "single"!
  /     15% completed       

Completed Apply...
Tue Oct 21 13:54:41 2014

Starting database listener for STU:
Running:
/u01/stu/db/11.2.0/appsutil/scripts/STU_ebsdba1/addlnctl.sh start STU
Logfile: /u01/stu/db/11.2.0/appsutil/log/STU_ebsdba1/addlnctl.txt

You are running addlnctl.sh version 120.4


Starting listener process STU ...


Listener STU has already been started.


addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/stu/db/11.2.0/appsutil/log/STU_ebsdba1/addlnctl.txt for more information ...  


Do you want to change the password for all EBS Schemas? (y/n) [n]) : 

Do you want to change the apps password? (y/n) [n]) : 

Do you want to change the sys and system passwords? (y/n) [n]) : 
[orastu@ebsdba1 bin]$

之后,修改环境变量,并创建db的启停脚本

启动脚本:
[orastu@ebsdba1 ~]$ cat startDB.sh 
$ORACLE_HOME/appsutil/scripts/STU_ebsSTU/addlnctl.sh start STU
$ORACLE_HOME/appsutil/scripts/STU_ebsSTU/addbctl.sh start

停止脚本:
[orastu@ebsdba1 ~]$ 
[orastu@ebsdba1 ~]$ cat stopDB.sh 
$ORACLE_HOME/appsutil/scripts/STU_ebsdba1/addbctl.sh stop immediate
$ORACLE_HOME/appsutil/scripts/STU_ebsdba1/addlnctl.sh stop STU

[orastu@ebsdba1 ~]$

在目标app服务器上执行app的run fs(FS1)的adcfgclone:

[applstu@ebsdba2 bin]$ perl adcfgclone.pl appsTier

                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.35

Enter the APPS password :  口令是apps
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt

Enter the Weblogic AdminServer password :  口令是manager0
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource


Do you want to add a node (yes/no) [no] : 


Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojdbc5.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/stu/app/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_11407.lst -stage /u01/stu/app/fs1/EBSapps/comn/clone  2> /tmp/adcfgclone_11407.err; echo $? > /tmp/adcfgclone_11407.res

Log file located at /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1022140108.log

Target System File Edition type [run] : 

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [ebsdba2] : 

Target System Database SID : STU

Target System Database Server Node [ebsdba2] : ebsdba1

Target System Database Domain Name [800best.com] : 

Target System Base Directory : /u01/stu/app

Target System Base Directory set to /u01/stu/app

--以下是自动创建的目录:
Target System Current File System Base set to /u01/stu/app/fs1

Target System Other File System Base set to /u01/stu/app/fs2

Target System Fusion Middleware Home set to /u01/stu/app/fs1/FMW_Home

Target System Web Oracle Home set to /u01/stu/app/fs1/FMW_Home/webtier

Target System Appl TOP set to /u01/stu/app/fs1/EBSapps/appl

Target System COMMON TOP set to /u01/stu/app/fs1/EBSapps/comn

Target System Instance Home Directory [/u01/stu/app] : 

Target System Instance Top set to /u01/stu/app/fs1/inst/apps/STU_ebsdba2

Do you want to preserve the Display [ebscrp3:0.0] (y/n)  : y

Target System Root Service [enabled] : 

Target System Web Administration [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

Target System Port Pool [0-99] : 6

Checking the port pool 6
done: Port Pool 6 is free
Report file located at /u01/stu/app/fs1/inst/apps/STU_ebsdba2/admin/out/portpool.lst
Complete port information available at /u01/stu/app/fs1/inst/apps/STU_ebsdba2/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /u01/stu/temp
3. /u01/stu/db/11.2.0/appsutil/outbound/STU_ebsdba1
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2

Creating the new APPL_TOP Context file from :
  /u01/stu/app/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp

The new APPL_TOP context file has been created :
  /u01/stu/app/fs1/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml

Log file located at /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1022140242.log
Check Clone Context logfile /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1022140242.log for details.

Running Rapid Clone with command:
Running:
perl /u01/stu/app/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u01/stu/app/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/stu/app/fs1/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml showProgress contextValidated=true



FMW Pre-requisite check log file location : /u01/stu/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Running: /u01/stu/app/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/stu/app/fs1/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml -stage /u01/stu/app/fs1/EBSapps/comn/clone -log /u01/stu/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Wed Oct 22 14:03:29 2014

/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/share.jar:/u01/stu/app/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/stu/app/fs1/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml -stage /u01/stu/app/fs1/EBSapps/comn/clone    -showProgress -nopromptmsg 
Log file located at /u01/stu/app/fs1/inst/apps/STU_ebsdba2/admin/log/clone/ApplyAppsTier_10221403.log
  -    100% completed       

Completed Apply...
Wed Oct 22 14:29:58 2014


 Executing command: /u01/stu/app/fs1/EBSapps/10.1.2/bin/sqlplus @/u01/stu/app/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/truncate_ad_nodes_config_status.sql


Do you want to startup the Application Services for STU? (y/n) [n] : 

Services not started

[applstu@ebsdba2 bin]$

将/u01/stu/app/fs1/中的EBSapps拷贝到fs2目录中。
运行fs2相应目录下的adcfgclone来配置fs2的克隆:

[applstu@ebsdba2 bin]$ perl adcfgclone.pl appsTier

                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adcfgclone Version 120.63.12020000.35

Enter the APPS password :  输入口令apps
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt

Enter the Weblogic AdminServer password :  输入口令manager0
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u01/stu/app/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource


Do you want to add a node (yes/no) [no] : 


Running:
/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojdbc5.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/stu/app/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_4255.lst -stage /u01/stu/app/fs1/EBSapps/comn/clone  2> /tmp/adcfgclone_4255.err; echo $? > /tmp/adcfgclone_4255.res

Log file located at /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1023163359.log

Target System File Edition type [run] : patch

Enter the full path of Run File System Context file : /u01/stu/app/fs1/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml

--下面的目录为自动创建的目录:
Provide the values required for creation of the new APPL_TOP Context file.

Target System Fusion Middleware Home set to /u01/stu/app/fs2/FMW_Home

Target System Web Oracle Home set to /u01/stu/app/fs2/FMW_Home/webtier

Target System Appl TOP set to /u01/stu/app/fs2/EBSapps/appl

Target System COMMON TOP set to /u01/stu/app/fs2/EBSapps/comn

Target System Instance Top set to /u01/stu/app/fs2/inst/apps/STU_ebsdba2

Target System Port Pool [0-99] : 7

Checking the port pool 7
done: Port Pool 7 is free
Report file located at /u01/stu/app/fs2/inst/apps/STU_ebsdba2/admin/out/portpool.lst
Complete port information available at /u01/stu/app/fs2/inst/apps/STU_ebsdba2/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /u01/stu/temp
3. /u01/stu/db/11.2.0/appsutil/outbound/STU_ebsdba1
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2

Creating the new APPL_TOP Context file from :
  /u01/stu/app/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp

The new APPL_TOP context file has been created :
  /u01/stu/app/fs2/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml

Log file located at /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1023163359.log
Check Clone Context logfile /u01/stu/app/fs1/EBSapps/comn/clone/bin/CloneContext_1023163359.log for details.

Running Rapid Clone with command:
Running:
perl /u01/stu/app/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u01/stu/app/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/stu/app/fs2/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml showProgress contextValidated=true



FMW Pre-requisite check log file location : /u01/stu/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Running: /u01/stu/app/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/stu/app/fs2/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml -stage /u01/stu/app/fs1/EBSapps/comn/clone -log /u01/stu/app/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

Beginning application tier Apply - Thu Oct 23 16:34:56 2014

/u01/stu/app/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/stu/app/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/java:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/oui/share.jar:/u01/stu/app/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/stu/app/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/stu/app/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/stu/app/fs2/inst/apps/STU_ebsdba2/appl/admin/STU_ebsdba2.xml -stage /u01/stu/app/fs1/EBSapps/comn/clone    -showProgress -nopromptmsg 
Log file located at /u01/stu/app/fs2/inst/apps/STU_ebsdba2/admin/log/clone/ApplyAppsTier_10231634.log

  /    100% completed       

Completed Apply...
Thu Oct 23 16:56:32 2014

Looking for incomplete CLONE record in ad_adop_session_patches table

The CLONE record status is no rows selected

Updating incomplete CLONE record to COMPLETED
[applstu@ebsdba2 bin]$

修改app的环境变量,并配置启、停服务器的脚本:

cat startApp.sh 
$INST_TOP/admin/scripts/adstrtal.sh apps/apps<<EOF
manager0
EOF

cat stopApp.sh 
$INST_TOP/admin/scripts/adstpall.sh apps/apps<<EOF
manager0
EOF
此条目发表在 安装、克隆、迁移 分类目录,贴了 , , 标签。将固定链接加入收藏夹。

EBS克隆–db和app分开在两个服务器上》有 1 条评论

  1. 李科胜 说:

    您好,有个问题想要请问一下:
    Oracle数据库已经在一个服务器节点上正常安装,并且已经打开。

    在另一个clone安装应用时,
    [applprod@ebsapp01 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.56
    Enter the APPS password :
    Enter the Weblogic AdminServer password :
    Do you want to add a node (yes/no) [no] :

    Running: Context clone…
    Log file located at /u01/prod/app/fs1/EBSapps/comn/clone/bin/CloneContext_0822162521.log
    Provide the values required for creation of the new APPL_TOP Context file.
    Target System Hostname (virtual or normal) [ebsapp01] :
    Target System Database SID : PROD
    Target System Database Server Node [ebsapp01] : ebsdb01
    Target System Database Domain Name [ebs.com] :
    报错:
    ERROR: Failed to execute FMW pre-requisite check
    Java.io.FileNotFoundException: /etc/oraInst.loc (No such file or directory)
    应用节点没有连接到数据库节点上,读取不了相应的文件等。
    数据库节点和应用节点之间的连接我只是简单配了一下hosts,并且两台服务器之间是能ping通的,但我是不是没配其他的,所以两者就对应不上?

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注