温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

OracleEBS 12.2.7 Rapid Clone

发布时间:2020-08-13 15:40:52 来源:ITPUB博客 阅读:308 作者:dblock 栏目:关系型数据库


一、平台及版本

1、操作系统信息

[root@ebstest01 ~]# cat /etc/redhat-release 

Red Hat Enterprise Linux Server release 7.4 (Maipo)

[root@ebstest01 ~]# uname –a

Linux ebstest01 4.1.12-94.3.9.el7uek.x86_64 #2 SMP Fri Jul 14 20:09:40 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux

2EBS系统版本信息

jdk版本:
[appltest@ebstest01 ~]$ sh -c "`awk -F= '$1 ~ /^JSERVJAVA.*$/ {print $2}' $ADMIN_SCRIPTS_HOME/java.sh` -version;"

java version "1.7.0_85"

Java(TM) SE Runtime Environment (build 1.7.0_85-b15)

Java HotSpot(TM) 64-Bit Server VM (build 24.85-b06, mixed mode)

db version:

[oratest@ebstest01 ~]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail | grep "Patch description"

Patch description: "Database PSU 12.1.0.2.171017, Oracle JavaVM Component (OCT2017)"

Patch description: "Database Patch Set Update : 12.1.0.2.171017 (26713565)"

Apps Version:

SQL> select release_name from apps.fnd_product_groups;RELEASE_NAME

--------------------------------------------------

12.2.7

Apache version:
[applprod@ebstest01 bin]$ cd /u02/prod/app/fs1/EBSapps/10.1.2/Apache/Apache/bin

[applprod@ebstest01 bin]$ httpd -version

Server version: Oracle-Application-Server-10g/10.1.2.3.0 Oracle-HTTP-Server

Server built:   Apr 22 2009 16:16:17


WebLogic version:
[applprod@ebstest01 ~]$ cat /u02/prod/app/fs1/FMW_Home/logs/log.txt | grep install

Apr 23, 2018 4:55:00 PM -- install "WebLogic Platform" 10.3.6.0 at /u02/prod/app/fs1/FMW_Home

    |    |_____Uninstall [Added]


二、源环境准备

1、预克隆

注意:在执行预克隆之前,必须先确定源环境中应用服务器db服务器中/etc/oraInst.loc文件中所指向的oraInventory目录,必须正确,必须是我们要克隆的这套源环境。

[root@ebstest01 ~]# cat /etc/oraInst.loc
inventory_loc=/u01/test/apporaInventory

db层preclone:

[root@ebstest01 u02]# su - oraprod

Last login: Mon Apr 23 18:26:07 CST 2018 on pts/2

[oraprod@ebstest01 ~]$ cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME

[oraprod@ebstest01 prod_ebstest01]$ 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.22

Enter the APPS User Password:

Verifying if Database Patch checker (ETCC) exists in /u01/prod/db/12.1.0/appsutil/etcc

Running:

perl /u01/prod/db/12.1.0/appsutil/bin/adclone.pl java=/u01/prod/db/12.1.0/appsutil/jre mode=stage stage=/u01/prod/db/12.1.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml showProgress

Beginning database tier Stage - Mon Apr 23 19:16:37 2018

/u01/prod/db/12.1.0/appsutil/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/u01/prod/db/12.1.0/oui -classpath /u01/prod/db/12.1.0/lib/xmlparserv2.jar:/u01/prod/db/12.1.0/jdbc/lib/ojdbc6.jar:/u01/prod/db/12.1.0/appsutil/java:/u01/prod/db/12.1.0/oui/jlib/OraInstaller.jar:/u01/prod/db/12.1.0/oui/jlib/ewt3.jar:/u01/prod/db/12.1.0/oui/jlib/share.jar:/u01/prod/db/12.1.0/oui/jlib/srvm.jar:/u01/prod/db/12.1.0/jlib/ojmisc.jar   oracle.apps.ad.clone.StageDBTier -e /u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml -stage /u01/prod/db/12.1.0/appsutil/clone -tmp /tmp -method CUSTOM    -showProgress

APPS Password : a

Log file located at /u01/prod/db/12.1.0/appsutil/log/prod_ebstest01/StageDBTier_04231916.log

  /     50% completed      

Completed Stage...

Mon Apr 23 19:16:59 2018

App层preclone:

[applprod@ebstest01 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.22

Enter the APPS User Password:

Enter the Weblogic AdminServer password :

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

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

The Oracle WebLogic Administration Server is up.

Running:

perl /u02/prod/app/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u02/prod/app/fs1/EBSapps/comn/util/jdk64 mode=stage stage=/u02/prod/app/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u02/prod/app/fs1/inst/apps/prod_ebstest01/appl/admin/prod_ebstest01.xml showProgress

 Setting the wls environment

Beginning application tier Stage - Mon Apr 23 19:14:28 2018

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

Log file located at /u02/prod/app/fs1/inst/apps/prod_ebstest01/admin/log/clone/StageAppsTier_04231914.log

  \     20% completed      

Completed Stage...

Mon Apr 23 19:19:07 2018

2、打包克隆需要的文件

   在文件tar打包的过程中,source系统的ebs 数据库跟应用都必须处于停止状态,否则很容易造成数据文件的不一致而导致clone失败。建议先对文件做tar,然后再copytarget服务器。


Apps层文件打包run fs下的 EBSapps目录:

[appltest@ebstest01 ~]$ cd $ADMIN_SCRIPTS_HOME
[appltest@ebstest01 scripts]$ ./adstpal.sh apps/apps
[appltest@ebstest01 scripts]$ echo $RUN_BASE/u02/test/fs1
[appltest@ebstest01 scripts]$ cd /u02/test/fs1
[appltest@ebstest01 fs1]$ ls EBSapps FMW_Home inst
[appltest@ebstest01 fs1]$ nohup tar -zcvf /bak/apps.tar.gz EBSapps >> tar_apps_c.log &

db层文件打包

[root@ebstest01 bak]# su - oratest

Last login: Fri Apr 20 19:51:08 CST 2018 on pts/0
[oratest@ebstest01 ~]$ lsnrctl stop
[oratest@ebstest01 ~]$ sqlplus / as sysdba
SQL> shu immediate
SQL> quit
[oratest@ebstest01 ~]$ cd /u01/test
[oratest@ebstest01 test]$ nohup tar -zcvf /bak/db.tar.gz db >> tar_db_c.log &

三、目标环境准

1、操作系统要求

     与源系统一致。

2、安装RPM

mount OS 镜像:

[root@ebstest01 soft]# mount -o loop /u01/soft/Oracle7.4.iso /media

mount: /dev/loop0 is write-protected, mounting read-only

配置yum源:

[root@ebstest01 soft]# vi /etc/yum.repos.d/local.repo

[install]

name=install

baseurl=file:///media

enabled=1

gpgcheck=0

root安装rpm

[root@ebstest01 soft]# yum install libXrender.i686 \
binutils.x86_64 \
compat-libstdc++-296.i686 \
compat-libstdc++-33.i686 \
gcc.x86_64 \
gcc-c++.x86_64 \
glibc.i686 \
glibc.x86_64 \
glibc-common.x86_64 \
glibc-devel.i686 \
glibc-devel.x86_64 \
libgcc.i686 \
libgcc.x86_64 \
libstdc++-devel.i686 \
libstdc++-devel.x86_64 \
libstdc++.i686 \
libstdc++.x86_64 \
libXi.i686 \
libXp.i686 \
libXp.x86_64 \
libaio.i686 \
libaio.x86_64 \
libgomp.x86_64 \
make.x86_64 \
gdbm.i686 \
gdbm.x86_64 \
redhat-lsb.x86_64 \
sysstat.x86_64 \
util-linux-ng.x86_64 \
compat-libcap1.x86_64 \
compat-libstdc++-33.x86_64 \
elfutils-libelf-devel.x86_64 \
libaio-devel.i686 \
libaio-devel.x86_64 \
unixODBC.i686 \
unixODBC-devel.i686 \
xorg-x11-utils.x86_64 \ 
xorg-x11-server-Xorg.x86_64 \
ksh \
libICE.i686 \
libSM.i686 \
libXt.i686

安装RPMS from Oracle,下地址https://oss.oracle.com/projects/compat-oracle/files/Enterprise_Linux/

[root@ebstest01 soft]# rpm -Uvh openmotif21-2.1.30-11.el7.i686.rpm
[root@ebstest01 soft]# rpm -Uvh xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
[root@ebstest01 soft]# ln -s /usr/X11R6/lib/libXtst.so.6.1 /usr/lib/libXtst.so.6
[root@ebstest01 soft]# ls -l /usr/lib/libXtst.so.6

安装完rpm包运行以下命令:

[root@ebstest01 soft]# ldconfig -v

3OS参数

[root@ebstest01 ~]# vi /etc/sysctl.conf

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 20971520

kernel.shmmax = 34359738367 #内存bytes-1

kernel.shmmni = 4096

kernel.msgmni=2878

kernel.sem = 256 32000 100 142

net.ipv4.ip_local_port_range = 10000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

[root@ebstest01 ~]# sysctl -p

修改内核限制:

[root@ebstest01 ~]# vi /etc/security/limits.conf
@dba hard nofile 65536
@dba soft nofile 16394
@dba hard nproc 16384
@dba soft nproc 8094
@dba hard stack 16384
@dba soft stack 10240

4、修改主机名

[root@ebstest01 ~]# hostnamectl set-hostname ebstest01

[root@ebstest01 ~]# cat /etc/hostname

[root@ebstest01 ~]# vi /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

172.18.11.28 ebstest01.danke.life ebstest01

5selinux和防火

[root@ebstest01 ~]# vi /etc/selinux/config

SELINUX=disable

[root@ebstest01 ~]# systemctl list-unit-files|grep firewall

firewalld.service                          enabled

[root@ebstest01 ~]# systemctl stop firewalld.service

[root@ebstest01 ~]# systemctl disable firewalld.service

6Rapid Install程中需要使用端口6000用于OPMN,用以下命令确认该端口没有被占用(无返回即可)

[root@ebstest01 ~]# netstat -a | grep 6000

[root@ebstest01 ~]#

7、用户及目录


db:

[root@ebstest01 ~]# groupadd  dba

[root@ebstest01 ~]# useradd  -g dba oraprod

[root@ebstest01 ~]# mkdir -p /u01/prod/oraInventory/

[root@ebstest01 ~]# mkdir -p /u01/prod/temp

[root@ebstest01 ~]# cd /u01

[root@ebstest01 ~]# chown -R oraprod:dba prod/

[root@ebstest01 ~]# chmod -R 775 prod/

[root@ebstest01 ~]# chmod 777 /u01/prod/temp

[root@ebstest01 ~]# vi /etc/oraInst.loc

inventory_loc=/u01/prod/oraInventory

inst_group=dba

apps:

[root@ebstest01 ~]# useradd  -g dba applprod

[root@ebstest01 ~]# mkdir -p /u02/prod/oraInventory/

[root@ebstest01 ~]# mkdir -p /u02/prod/app/fs1

[root@ebstest01 ~]# mkdir -p /u02/prod/temp

[root@ebstest01 ~]# cd /u02

[root@ebstest01 ~]# chown -R applprod:dba prod/

[root@ebstest01 ~]# chmod -R 775 prod/

[root@ebstest01 ~]# chmod 777 /u02/prod/temp

四、克隆操作

     EBS中端口池的概念为:每个端口池对应数据库和应用的一组端口。比如当端口池选择为0时,数据库监听端口为1521,应用的访问端口为8000。如果端口池增加1,数据库和应用的端口也相应的增加。

      EBS R12.2中,应用层包含fs1fs2双文件系统。克隆时,先使用tar包中的文件克隆出run fs,再从克隆好的run fs中克隆出patch fsrun fs使用和数据库相同的端口池1patch fs使用端口池2App的克隆过程如下图:    

1、解压

db:

[root@ebstest01 bak]# nohup tar -xzvf db.tar.gz -C /u01/prod/ >> tar_db_x.log &

apps:

[root@ebstest01 bak]# nohup tar -xzvf apps.tar.gz –C /u01/prod/app/fs1 >> tar_apps_x.log &

2、修改目


db:

[root@ebstest01 ~]#  cd /u01
[root@ebstest01 u01]# chown -R oraprod:dba prod

apps:

[root@ebstest01 u02]# cd /u02
[root@ebstest01 u02]# chown -R applprod:dba prod

3db层克

[oraprod@ebstest01 bin]$ cd /u01/prod/db/12.1.0/appsutil/clone/bin/

[oraprod@ebstest01 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 :

Running: Context clone...

Log file located at /u01/prod/db/12.1.0/appsutil/clone/bin/CloneContext_0423160225.log

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

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

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

Target System Database SID : prod

Target System Base Directory : /u01/prod/db

Role separation is supported y/n [n] ? :

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

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

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

Target System RDBMS ORACLE_HOME Directory [/u01/prod/db/12.1.0] :

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

Target System Display [ebstest01:0.0] : ebstest01:0.0

Target System Port Pool [0-99] : 0

Checking the port pool 0

done: Port Pool 0 is free

Report file located at /u01/prod/db/12.1.0/appsutil/temp/portpool.lst

The new database context file has been created :

  /u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml

Check Clone Context logfile /u01/prod/db/12.1.0/appsutil/clone/bin/CloneContext_0423160225.log for details.

Running Rapid Clone with command:

Running:

perl /u01/prod/db/12.1.0/appsutil/clone/bin/adclone.pl java=/u01/prod/db/12.1.0/appsutil/clone/bin/../jre mode=apply stage=/u01/prod/db/12.1.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml showProgress contextValidated=true

Beginning database tier Apply - Mon Apr 23 16:08:10 2018

/u01/prod/db/12.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/prod/db/12.1.0/oui -classpath /u01/prod/db/12.1.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/ojdbc6.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/java:/u01/prod/db/12.1.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/oui/share.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/oui/srvm.jar:/u01/prod/db/12.1.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml -stage /u01/prod/db/12.1.0/appsutil/clone   -showProgress

APPS Password : Log file located at /u01/prod/db/12.1.0/appsutil/log/prod_ebstest01/ApplyDBTier_04231608.log

  \     15% completed      

Completed Apply...

Mon Apr 23 16:12:47 2018

Starting database listener for prod:

Running:

/u01/prod/db/12.1.0/appsutil/scripts/prod_ebstest01/addlnctl.sh start prod

Logfile: /u01/prod/db/12.1.0/appsutil/log/prod_ebstest01/addlnctl.txt

You are running addlnctl.sh version 120.4

Starting listener process prod ...

Listener prod has already been started.

addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/prod/db/12.1.0/appsutil/log/prod_ebstest01/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, 2017 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:

/u01/prod/db/12.1.0/appsutil/prod_ebstest01.xml

Starting Database EBS Technology Codelevel Checker, Version 120.55

Mon Apr 23 16:13:53 CST 2018

Log file for this session : /u01/prod/db/12.1.0/appsutil/etcc/checkDBpatch_2456.log

Bugfix XML file version: 120.0.12020000.39

This file will be used for identifying missing bugfixes.

Mapping XML file version: 120.0.12020000.12

This file will be used for mapping bugfixes to patches.

[WARNING] DB-ETCC: Bugfix XML file (/u01/prod/db/12.1.0/appsutil/etcc/txk_R1220_DB_base_bugs.xml) in current directory is more than 30 days old.

 Check if a newer version is available in patch 17537119.

Identifying database release.

Database release set to 12.1.0.2.

Connecting to database.

Database connection successful.

Database prod 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.

Checking Bugfix XML file for 12.1.0.2_PSU

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.11.

DB-ETCC is compatible with this opatch version.

Found patch records in the inventory.

Checking Mapping XML file for 12.1.0.2.171017

All the required one-off bugfixes are present in Database ORACLE_HOME.

Stored Technology Codelevel Checker results in the database prod successfully.

Finished checking fixes for Oracle Database: Mon Apr 23 16:14:02 CST 2018

Log file for this session: /u01/prod/db/12.1.0/appsutil/etcc/checkDBpatch_2456.log

===============================================================================

 添加环境变量:

#添加以下行

. /u01/test/db/12.1.0/test_ebstest01.env

export NLS_DATE_FORMAT="yyyy-mm-dd hh34:mi:ss"

export PATH=$ORACLE_HOME/bin:$PATH:$ORACLE_HOME/OPatch

export LANG=C

export PATH=$ORACLE_HOME/bin:$PATH:/usr/local/bin/:.

修改参数文件(重启db后生效):


[oraprod@ebstest01 ~]$ vi $ORACLE_HOME/dbs/initprod.ora

processe  = 2000   

sessions  = 4000

sga_target  = 20G

shared_pool_size = 2000M

shared_pool_reserved_size = 200M

pga_aggregate_target=12G

utl_file_dir = /u01/prod/temp,/u01/prod/db/12.1.0/appsutil/outbound/PROD_caiwudb,/usr/tmp 

4app层克


Apps

[applprod@ebstest01 bin]$ cd /u02/prod/app/fs1/EBSapps/comn/clone/bin

[applprod@ebstest01 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 :

Enter the Weblogic AdminServer password :

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

Running: Context clone...

Log file located at /u02/prod/app/fs1/EBSapps/comn/clone/bin/CloneContext_0423164939.log

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

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

Target System Database SID : prod

Target System Database Server Node [ebstest01] :

Target System Database Domain Name [danke.life] :

Target System Base Directory : /u02/prod/app

Target System Base Directory set to /u02/prod/app

Target System Current File System Base set to /u02/prod/app/fs1

Target System Other File System Base set to /u02/prod/app/fs2

Target System Fusion Middleware Home set to /u02/prod/app/fs1/FMW_Home

Target System Other File System Fusion Middleware Home set to /u02/prod/app/fs2/FMW_Home

Target System Web Oracle Home set to /u02/prod/app/fs1/FMW_Home/webtier

Target System Other File System Web Oracle Home set to /u02/prod/app/fs2/FMW_Home/webtier

Target System Appl TOP set to /u02/prod/app/fs1/EBSapps/appl

Target System Other File System Appl TOP set to /u02/prod/app/fs2/EBSapps/appl

Target System COMMON TOP set to /u02/prod/app/fs1/EBSapps/comn

Target System Other File System COMMON TOP set to /u02/prod/app/fs2/EBSapps/comn

Target System Instance Home Directory [/u02/prod/app] :

Target System Current File System Instance Top set to /u02/prod/app/fs1/inst/apps/prod_ebstest01

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

Target System Display [ebstest01:0.0] : ebstest01: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] :

Target System Port Pool [0-99] : 10

Checking the port pool 10

done: Port Pool 10 is free

Report file located at /u02/prod/app/fs1/inst/apps/prod_ebstest01/admin/out/portpool.lst

RC-40201: Unable to connect to Database prod.

Enter the Database listener port [1531] : 1521

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp

2. /u01/prod/temp

3. /u01/prod/db/12.1.0/appsutil/outbound/prod_ebstest01

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 :

  /u02/prod/app/fs1/inst/apps/prod_ebstest01/appl/admin/prod_ebstest01.xml

Check Clone Context logfile /u02/prod/app/fs1/EBSapps/comn/clone/bin/CloneContext_0423164939.log for details.

Creating Patch file system context file.....

Log file located at /u02/prod/app/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0423165228.log

Target System Other File System Instance Top set to /u02/prod/app/fs2/inst/apps/prod_ebstest01

Target System Port Pool [0-99] : 20

Checking the port pool 20

done: Port Pool 20 is free

Report file located at /u02/prod/app/fs2/inst/apps/prod_ebstest01/admin/out/portpool.lst

The new APPL_TOP context file has been created :

  /u02/prod/app/fs2/inst/apps/prod_ebstest01/appl/admin/prod_ebstest01.xml

Check Clone Context logfile /u02/prod/app/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0423165228.log for details.

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

Running: FMW pre-req check...

Configuring: Run file system....

LogFile located at /u02/prod/app/fs1/inst/apps/prod_ebstest01/admin/log/clone/run/RCloneApplyAppstier_04231653.log

Configuring: Patch file system....

LogFile located at /u02/prod/app/fs1/inst/apps/prod_ebstest01/admin/log/clone/patch/RCloneApplyAppstier_04231718.log

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

Services not started

添加环境变量:

 [applprod@ebstest01 ~]$ vi .bash_profile

 #添加以下行

. /u02/prod/app/EBSapps.env run

export NLS_DATE_FORMAT="yyyy-mm-dd hh34:mi:ss"

export PATH=$ORACLE_HOME/bin:$PATH:$ORACLE_HOME/OPatch

export LANG=C

export PATH=$ORACLE_HOME/bin:$PATH:/usr/local/bin/:.

 [applprod@ebstest01 ~]$ . .bash_profile

 

5、克隆后任务

 

db启停脚本:

[oraprod@ebstest01 ~]$ vi startDB.sh

$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/addlnctl.sh start $ORACLE_SID

$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/addbctl.sh start

[oraprod@ebstest01 ~]$ vi stopDB.sh

$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/addbctl.sh stop immediate

$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/addlnctl.sh stop $ORACLE_SID

[oraprod@ebstest01 ~]$ chmod 744 st*.sh

apps启停脚本:

[applprod@ebstest01 ~]$ vi startApp.sh 

$INST_TOP/admin/scripts/adstrtal.sh apps/password< 

 

password

 

EOF

[applprod@ebstest01 ~]$ vi stopApp.sh

$INST_TOP/admin/scripts/adstpall.sh apps/password< 

 

password

 

EOF

[applprod@ebstest01 ~]$ chmod 744 st*.sh


#若转载,请注明出处http://blog.itpub.net/30187411/viewspace-2153250/

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI