首页 > 代码库 > EBS R12.2.3克隆

EBS R12.2.3克隆

EBS 12.2已经释放快一年时间了,对于12.2的clone与之前的12.1及11i有非常大差别,在此记录一下。供小伙伴们參考。。。。

环境信息:

EBS: 12.2.3

DB: 11.2.0.3

OS: Linux 6.3

1、server准备工作


1) 建立用户
groupadd  dba
useradd  -g dba -d /home/oratest -m oratest
useradd  -g dba -d /home/appltest -m appltest

# id oratest
uid=500(oratest) gid=500(dba) groups=500(dba)
# id appltest
uid=501(appltest) gid=500(dba) groups=500(dba)

2) 检查Linux版本号和Kernel信息
[root@HBCOREAPP6 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \r on an \m
3) 检查RPM包
Linux6下须要安装的rpm包例如以下列:
 下面软件包(或软件包的版本号)不属于操作系统分发介质的一部分,须要为Oracle Linux 6 和 RHEL 6分别下载并手工安装在应用层(from http://oss.oracle.com/projects/compat-oracle/files/Enterprise_Linux/)
 
 openmotif21-2.1.30-11.EL6.i686 (32-bit)1
 xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386 (32-bit)
 下面软件包必须在应用层和数据库层上通过Oracle Linux 6 或者 RHEL 6 安装介质上安装:
binutils-2.20.51.0.2-5.20.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
compat-libstdc++33-3.2.3-69.el6.i686
gcc-4.4.5-6.el6.x86_64
gcc-c++-4.4.5-6.el16.x86_64
glibc-2.12-1.7.el6.i686 (32-bit)
glibc-2.12-1.7.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
glibc-devel-2.12-1.7.el6.i686 (32-bit)
glibc-devel-2.12-1.7.el6.x86_64
libgcc-4.4.4-13.el6.i686
libgcc-4.4.4-13.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libstdc++-4.4.4-13.el6.x86_64
libXi-1.3-3.el6.i686
libXp-1.0.0-15.1.el6.i686
libXp-1.0.0-15.1.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-0.3.107-10.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
make-3.81-19.el6.x86_64
gdbm-1.8.0-36.el6.i686
gdbm-1.8.0-36.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
compat-glibc-2.5-46.2.x86_64              
compat-glibc-headers-2.5-46.2.x86_64
 此外,对于执行11gR2的数据库层,例如以下RPMs被须要安装在数据库层:
compat-libcap1-1.10-1.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
elfutils-libelf-devel-0.148.1-el6.x86_64
libaio-devel-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
unixODBC-2.2.14-11.el6.i686
unixODBC-devel-2.2.14-11.el6.i686
xorg-x11-utils-7.4-8
或者在数据库节点,我们能够安装例如以下软件包。软件包从http://linux.oracle.com或者http://public-yum.oracle.com下载
oracle-rdbms-server-11gR2-preinstall.x86_64
全部的rpm包安装完毕后运行命令:
ldconfig –v
4) 系统软件需求
下面工具应该在执行Rapid Install的用户root、数据库层用户oratest和应用层用户appltest的PATH环境变量中:
ar, gcc, g++, ld, ksh, make,linux32, X Display Server
用which命令来检查ar, gcc, g++, ld, ksh, make是否在PATH中:
# which ar gcc g++ ld ksh make linux32
5) 改动内核设置/etc/sysctl.conf
/etc/sysctl.conf中加入例如以下内容
fs.aio-max-nr = 1048576
fs.file-max = 6815744
#kernel.shmall = 2097152
#kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 256 32000 100 142
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
改动完后执行命令:
sysctl -p
6) 改动DNS解析參数
 /etc/resolv.conf 增加:
options attempts:5
options timeout:15
7) 确认主机名
/etc/hosts
192.168.2.6        hbcoreapp6.hbins.com  hbcoreapp6
注:hosts文件内容格式例如以下:
[ip_address] [node_name].[domain_name] [node_name]
8) 改动/etc/security/limits.conf
/etc/security/limits.conf加入例如以下内容:
@dba       soft    nproc   2047
@dba       hard    nproc   16384
@dba       soft    nofile  4096
@dba       hard    nofile  65536
@dba       hard    stack   16384
@dba       soft    stack   10240

9) patch 6078836(linux5和linux6)
此patch在/rpm文件夹下
cd /app/rpm/6078836
mv /usr/lib/libdb.so.2 /usr/lib/libdb.so.2.6078836
cp libdb.so.2 /usr/lib

10) libXtst.so.6(linux5和linux6)
# unlink /usr/lib/libXtst.so.6
# ln -s /usr/X11R6/lib/libXtst.so.6.1 /usr/lib/libXtst.so.6

11) selinux

/etc/selinux/config
--> SELINUX=disabled

service iptables status
防火墙已停
12) swap检查
一般swap设置为内存的一到两倍。假设内存较大。则至少swap要设置为16G
top - 15:07:50 up 7 days,  1:24,  5 users,  load average: 1.30, 1.27, 1.13
Tasks: 733 total,   2 running, 730 sleeping,   1 stopped,   0 zombie
Cpu(s):  2.2%us,  1.0%sy,  0.0%ni, 96.5%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  33007244k total, 20963068k used, 12044176k free,   411684k buffers
Swap: 33554424k total,   390624k used, 33163800k free,  5422140k cached
当前swap符合条件
13) 检查Linux线程模式
Linux 线程模式必须是NPTL
# getconf GNU_LIBPTHREAD_VERSION
NPTL 2.21.4
14) reboot linux
重新启动linux
reboot


2、克隆EBS測试环境


通过克隆的方式进行EBS測试环境的搭建。
上传解压此处省略
1) 将解压出来的EBSapps放到/app/12.2.3/apps/fs1中
#mv EBSapps /app/12.2.3/apps/fs1/
#chown –R appltest:dba /app/12.2.3/apps
2) 将解压出来的db放到/app/12.2.3下
#mv db /app/12.2.3/
#chown –R oratest:dba /app/12.2.3/db
3) 编辑/etc/oraInst.loc
编辑/etc/oraInst.loc。改动为:
inventory_loc=/app/12.2.3/oraInventory
inst_group=dba
创建oraInventory文件夹
mkdir -p /app/12.2.3/oraInventory
chmod 777 /app/12.2.3/oraInventory
chown –Rh oratest:dba /app/12.2.3/oraInventory


4) clone数据库层

以oratest用户登录后操作:
[root@HBCOREAPP6 ~]# su - oratest
[oratest@HBCOREAPP6 ~]$ cd /app/12.2.3/db/tech_st/11.2.0/appsutil/clone/bin
[oratest@hbcoreapp6 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.7.1202010.2

Enter the APPS password : 【apps密码

Running:
/app/12.2.3/db/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /app/12.2.3/db/11.2.0/appsutil/clone/jlib/java:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /app/12.2.3/db/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_20755.lst -stage /app/12.2.3/db/11.2.0/appsutil/clone  2> /tmp/adcfgclone_20755.err; echo $ > /tmp/adcfgclone_20755.res

Log file located at /app/12.2.3/db/11.2.0/appsutil/clone/bin/CloneContext_0613233344.log

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

Target System Hostname (virtual or normal) [hbcoreapp6] : 【默认值

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

Target System Database SID : TEST【填写数据库sid

Target System Base Directory : /app/12.2.3【填写ORACLE_BASE

Target System utl_file_dir Directory List : /app/12.2.3/tmp【utl_file_dir文件夹

Number of DATA_TOP‘s on the Target System [1] : 【询问数据文件是否在一个文件夹下

Target System DATA_TOP Directory 1 [/app/12.2.3/db/data] : /app/12.2.3/db/data
填写数据文件文件夹
Target System RDBMS ORACLE_HOME Directory [/app/12.2.3/11.2.0] : /app/12.2.3/db/11.2.0【填写ORACLE_HOME

Do you want to preserve the Display [ebstest:0.0] (y/n)  : n【选择n

Target System Display [hbcoreapp6:0.0] : hbcoreapp6:1.0【填写DISPLAY值

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] : 0【选择port号

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

Creating the new Database Context file from :
  /app/12.2.3/db/11.2.0/appsutil/template/adxdbctx.tmp

The new database context file has been created :
  /app/12.2.3/db/11.2.0/appsutil/TEST_hbcoreapp6.xml

Log file located at /app/12.2.3/db/11.2.0/appsutil/clone/bin/CloneContext_0613233344.log
Check Clone Context logfile /app/12.2.3/db/11.2.0/appsutil/clone/bin/CloneContext_0613233344.log for details.

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


Beginning database tier Apply - Fri Jun 13 23:37:42 2014

/app/12.2.3/db/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/app/12.2.3/db/11.2.0/oui -classpath /app/12.2.3/db/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/ojdbc6.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/java:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/oui/ewt3.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/oui/share.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/oui/srvm.jar:/app/12.2.3/db/11.2.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /app/12.2.3/db/11.2.0/appsutil/TEST_hbcoreapp6.xml -stage /app/12.2.3/db/11.2.0/appsutil/clone   -showProgress
APPS Password : Log file located at /app/12.2.3/db/11.2.0/appsutil/log/TEST_hbcoreapp6/ApplyDBTier_06132337.log
  -     15% completed      

Completed Apply...
Fri Jun 13 23:47:31 2014

Starting database listener for TEST:
Running:
/app/12.2.3/db/11.2.0/appsutil/scripts/TEST_hbcoreapp6/addlnctl.sh start TEST
Logfile: /app/12.2.3/db/11.2.0/appsutil/log/TEST_hbcoreapp6/addlnctl.txt

You are running addlnctl.sh version 120.4


Starting listener process TEST ...


Listener TEST has already been started.


addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /app/12.2.3/db/11.2.0/appsutil/log/TEST_hbcoreapp6/addlnctl.txt for more information ...
至此数据库层clone结束。数据库和监听已启动


3) 克隆run apps

[root@HBCOREAPP6 ~]# su - appltest
[appltest@HBCOREAPP6 ~]$ cd /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin
[appltest@hbcoreapp6 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.26

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

Enter the Weblogic AdminServer password : 【apps密码
Running:
/app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/java:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/java:/app/12.2.3/apps/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource


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


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

Log file located at /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/CloneContext_0614004256.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) [hbcoreapp6] : 【默认选项

Target System Database SID : TEST【数据库SID

Target System Database Server Node [hbcoreapp6] : 【数据库hostname

Target System Database Domain Name [hbins.com] : 【数据库server域名

Target System Base Directory : /app/12.2.3/apps【BASE文件夹

Target System Base Directory set to /app/12.2.3/apps

Target System Current File System Base set to /app/12.2.3/apps/fs1

Target System Other File System Base set to /app/12.2.3/apps/fs2

Target System Fusion Middleware Home set to /app/12.2.3/apps/fs1/FMW_Home

Target System Web Oracle Home set to /app/12.2.3/apps/fs1/FMW_Home/webtier

Target System Appl TOP set to /app/12.2.3/apps/fs1/EBSapps/appl

Target System COMMON TOP set to /app/12.2.3/apps/fs1/EBSapps/comn

Target System Instance Home Directory [/app/12.2.3/apps] :【inst文件夹

Target System Instance Top set to
/app/12.2.3/apps/fs1/inst/apps/TEST_hbcoreapp6

Do you want to preserve the Display [ebstest:0.0] (y/n)  : n【选择n

Target System Display [hbcoreapp6:0.0] : hbcoreapp6:1.0【填写DISPLAY值

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] : 10【填写应用port

Checking the port pool 10
done: Port Pool 10 is free
Report file located at /app/12.2.3/apps/fs1/inst/fs1/inst/apps/TEST_hbcoreapp6/admin/out/portpool.lst
Complete port information available at /app/12.2.3/apps/fs1/inst/fs1/inst/apps/TEST_hbcoreapp6/admin/out/portpool.lst
RC-40201: Unable to connect to Database TEST.

Enter the Database listener port [1531] : 1521【填写数据库监听端口

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /app/12.2.3/tmp
3. /app/12.2.3/db/11.2.0/appsutil/outbound/TEST_hbcoreapp6
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2【选择前面utl_file_dir的文件夹

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

The new APPL_TOP context file has been created :
  /app/12.2.3/apps/fs1/inst/fs1/inst/apps/TEST_hbcoreapp6/appl/admin/TEST_hbcoreapp6.xml

Log file located at /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/CloneContext_0614004256.log
Check Clone Context logfile /app/12.2.3/apps/fs1/EBSapps/comn/clone/bin/CloneContext_0614004256.log for details.

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

 

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

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

Beginning application tier Apply - Sat Jun 14 00:45:08 2014

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

Completed Apply...
Sat Jun 14 01:07:40 2014


 Executing command: /app/12.2.3/apps/fs1/EBSapps/10.1.2/bin/sqlplus @/app/12.2.3/apps/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 TEST (y/n) [n] : y【询问是否开启应用

至此应用层run apps克隆完成


4) 克隆patch apps

appltest登录后
在run fs上运行
$ cd <INST_TOP>/admin/scripts
$ perl adpreclone.pl appsTier
在目标系统上,把run fs的应用文件复制到patch fs应用文件文件夹
$cp –r /app/12.2.3/apps/fs1/EBSapps  /app/12.2.3/apps/fs2/
[appltest@hbcoreapp6 bin]$ perl adcfgclone.pl appsTier
这里须要注意两个地方:
Target System File Edition type [run] :patch【填写patch
要求输入run fs的CONTEXT FILE文件的位置。请输入绝对路径,如:
/app/12.2.3/apps/fs1/inst/fs1/inst/apps/TEST_hbcoreapp6/appl/admin/TEST_hbcoreapp6.xml
4) 改动profile&创建启动关闭脚本
appltest登录后
[appltest@hbcoreapp6 ~]$ vi .bash_profile
加入
. /app/12.2.3/apps/fs1/EBSapps/appl/APPSTEST_hbcoreapp6.env
[appltest@hbcoreapp6 ~]$ vi startapp.sh
$INST_TOP/admin/scripts/adstrtal.sh apps/apps
[appltest@hbcoreapp6 ~]$ vi stopapp.sh
$INST_TOP/admin/scripts/adstpall.sh apps/apps

oratest登录后
[oratest@hbcoreapp6 ~]$ vi .bash_profile
. /app/12.2.3/db/11.2.0/TEST_hbcoreapp6.env
[oratest@hbcoreapp6 ~]$ vi startdb.sh
$ORACLE_HOME/appsutil/scripts/TEST_hbcoreapp6/addlnctl.sh start TEST
$ORACLE_HOME/appsutil/scripts/TEST_hbcoreapp6/addbctl.sh start
[oratest@hbcoreapp6 ~]$ vi stopdb.sh
$ORACLE_HOME/appsutil/scripts/TEST_hbcoreapp6/addbctl.sh stop immediate
$ORACLE_HOME/appsutil/scripts/TEST_hbcoreapp6/addlnctl.sh stop TEST

 

EBS R12.2.3克隆