EBS R12 CLONE

本文详细介绍了如何在ERP系统中安装最新补丁,并通过克隆操作复制应用层和数据库层环境,确保系统一致性与稳定性。

1. 安装最新的AD补丁:
1.1 解压补丁包软件:

[ebsapp@gd1ebs132 PROD]$ unzip p9239089_R12.AD.B_R12_LINUX.zip


1.2 执行DB脚本:

[ebsdb@gd1ebs132 ~]$ mkdir  /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/admin
[ebsdb@gd1ebs132 ~]$ cd /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/admin
[ebsdb@gd1ebs132 admin]$ cp /u01/PROD/9239089/admin/adgrants.sql .
[ebsdb@gd1ebs132 admin]$ sqlplus /nolog

SQL*Plus: Release 11.1.0.7.0 - Production on Mon May 27 13:41:57 2013

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

SQL> show user
USER is ""
SQL> @adgrants.sql APPS
Connected.


---------------------------------------------------
--- adgrants.sql started at 2013-05-27 13:42:30 ---


Creating PL/SQL profiler objects.

 

---------------------------------------------------
--- profload.sql started at 2013-05-27 13:42:30 ---


Package created.


Grant succeeded.


Synonym created.


Library created.


Package body created.

Testing for correct installation
SYS.DBMS_PROFILER successfully loaded.

PL/SQL procedure successfully completed.

 

-----------------------------------------------------
--- profload.sql completed at 2013-05-27 13:42:32 ---

 

--------------------------------------------------
--- proftab.sql started at 2013-05-27 13:42:32 ---


Table dropped.


Table dropped.


Table dropped.


Sequence dropped.


Table created.


Comment created.


Table created.


Comment created.


Table created.


Comment created.


Sequence created.

 

-----------------------------------------------------
--- profltab.sql completed at 2013-05-27 13:42:34 ---


Creating PL/SQL Package AD_DBMS_METADATA.


Package created.


Package body created.


End of Creating PL/SQL Package AD_DBMS_METADATA.


PL/SQL procedure successfully completed.


Commit complete.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


1.3 切换应用系统到维护模式:

[ebsapp@gd1ebs132 9239089]$ adadmin

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

                     Oracle Applications AD Administration

                                 Version 12.0.0

NOTE: You may not use this utility for custom development
      unless you have written permission from Oracle Corporation.

Your default directory is '/u01/PROD/PROD/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ? 

AD Administration records your AD Administration session in a text file
you specify.  Enter your AD Administration log file name or press [Return]
to accept the default file name shown in brackets.

Filename [adadmin.log] : 

************* Start of AD Administration session *************
AD Administration version: 12.0.0
AD Administration started at: Mon May 27 2013 13:44:19

APPL_TOP is set to /u01/PROD/PROD/apps/apps_st/appl

You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ? 

Please enter the batchsize [1000] : 


Please enter the name of the Oracle Applications System that this
APPL_TOP belongs to.

The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.

Sample Applications System names are: "prod", "test", "demo" and 
"Development_2".

Applications System Name [PROD] : PROD *


NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.

Example 1: If you don't have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.

Example 2: If you don't have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.

Example 3: If you don't have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.


Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *


Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *


Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? YES *


Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? YES *


Please enter the name Oracle Applications will use to identify this APPL_TOP.

The APPL_TOP name you select must be unique within an Oracle Applications
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.

Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".

APPL_TOP Name [gd1ebs132] : gd1ebs132 *

 

You are about to use or modify Oracle Applications product tables
in your ORACLE database 'PROD'
using ORACLE executables in '/u01/PROD/PROD/apps/tech_st/10.1.2'.

Is this the correct database [Yes] ? yes

AD Administration needs the password for your 'SYSTEM' ORACLE schema
in order to determine your installation configuration.

Enter the password for your 'SYSTEM' ORACLE schema:  


The ORACLE username specified below for Application Object Library
uniquely identifies your existing product group: APPLSYS

Enter the ORACLE password of Application Object Library [APPS] :  

AD Administration is verifying your username/password.
The status of various features in this run of AD Administration is:

                                           <-Feature version in->
Feature                          Active?   APPLTOP    Data model    Flags
------------------------------   -------   --------   -----------   -----------
CHECKFILE                        Yes       1          1             Y N N Y N Y
PREREQ                           Yes       6          6             Y N N Y N Y
CONCURRENT_SESSIONS              No        2          2             Y Y N Y Y N
PATCH_TIMING                     Yes       2          2             Y N N Y N Y
PATCH_HIST_IN_DB                 Yes       6          6             Y N N Y N Y
SCHEMA_SWAP                      Yes       1          1             Y N N Y Y Y
JAVA_WORKER                      Yes       1          1             Y N N Y N Y
CODELEVEL                        Yes       1          1             Y N N Y N Y

 

Identifier for the current session is 15758

Reading product information from file...

Reading language and territory information from file...

Reading language information from applUS.txt ...

AD Administration warning:
 Product Data File
 /u01/PROD/PROD/apps/apps_st/appl/admin/zfaprod.txt
 does not exist for product "zfa".
This product is registered in the database but the
above file does not exist in APPL_TOP.  The product
will be ignored without error.


AD Administration warning:
 Product Data File
 /u01/PROD/PROD/apps/apps_st/appl/admin/zsaprod.txt
 does not exist for product "zsa".
This product is registered in the database but the
above file does not exist in APPL_TOP.  The product
will be ignored without error.


AD Administration warning:
 Product Data File
 /u01/PROD/PROD/apps/apps_st/appl/admin/jtsprod.txt
 does not exist for product "jts".
This product is registered in the database but the
above file does not exist in APPL_TOP.  The product
will be ignored without error.


Reading database to see what industry is currently installed.

Reading FND_LANGUAGES to see what is currently installed.
Currently, the following language is installed:

Code   Language                                Status
----   --------------------------------------- ---------
US     American English                        Base         

Your base language will be AMERICAN.

Setting up module information.
Reading database for information about the modules.
Saving module information.
Reading database for information about the products.
Reading database for information about how products depend on each other.
Reading topfile.txt ...

Saving product information.

AD code level : [B.1]

            AD Administration Main Menu
   --------------------------------------------------

   1.    Generate Applications Files menu

   2.    Maintain Applications Files menu

   3.    Compile/Reload Applications Database Entities menu

   4.    Maintain Applications Database Entities menu

   5.    Change Maintenance Mode

   6.    Exit AD Administration

 

 

 

 

Enter your choice [6] : 5

             Change Maintenance Mode
   ----------------------------------------

Maintenance Mode is currently: [Disabled].


Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system.  See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.


Please select an option:

   1.    Enable Maintenance Mode

   2.    Disable Maintenance Mode

   3.    Return to Main Menu

 

Enter your choice [3] : 1

sqlplus -s &un_apps/***** @/u01/PROD/PROD/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql ENABLE

Successfully enabled Maintenance Mode.

Review the messages above, then press [Return] to continue.


Backing up restart files, if any......Done.

             Change Maintenance Mode
   ----------------------------------------

Maintenance Mode is currently: [Enabled].


Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system.  See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.


Please select an option:

   1.    Enable Maintenance Mode

   2.    Disable Maintenance Mode

   3.    Return to Main Menu

 

Enter your choice [3] : 3

            AD Administration Main Menu
   --------------------------------------------------

   1.    Generate Applications Files menu

   2.    Maintain Applications Files menu

   3.    Compile/Reload Applications Database Entities menu

   4.    Maintain Applications Database Entities menu

   5.    Change Maintenance Mode

   6.    Exit AD Administration

 

 

 

 

Enter your choice [6] : 6

 

Backing up restart files, if any......Done.


There is no timing information available for the current session.


AD Administration is complete.


1.4 打补丁:

[ebsapp@gd1ebs132 9239089]$ cd /u01/PROD/9239089
[ebsapp@gd1ebs132 9239089]$ adpatch


2. 打其余补丁:
补丁:9171651: REPID CLONE加强补丁。
9833058:修复HOT CLOING FAILS BUG。
12404574: 修复ORACLE_HOME REGISTRATION FAILS BUG。

3. 在应用层AUTOCONFIG
可通过AUTOCONFIG工具同步更新过的信息,保证ERP系统各层面信息的一致性。

[ebsapp@gd1ebs132 12404574]$ cd $ADMIN_SCRIPTS_HOME
[ebsapp@gd1ebs132 scripts]$ ls
adalnctl.sh  adautocfg.sh  adexecsql.pl   adformsrvctl.sh  adoafmctl.sh  adpreclone.pl  adstrtal.sh  ieo      jtffmctl.sh  mwactl.sh
adapcctl.sh  adcmctl.sh    adformsctl.sh  adoacorectl.sh   adopmnctl.sh  adstpall.sh    gsmstart.sh  java.sh  msc          mwactlwrpr.sh
[ebsapp@gd1ebs132 scripts]$ adautocfg.sh     
Enter the APPS user password:

The log file for this session is located at: /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/log/05271429/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /u01/PROD/PROD/inst/apps/PROD_gd1ebs132
        Classpath                   : /u01/PROD/PROD/apps/apps_st/comn/java/lib/appsborg2.zip:/u01/PROD/PROD/apps/apps_st/comn/java/classes

        Using Context file          : /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/appl/admin/PROD_gd1ebs132.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

        Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
        Configuring AD_TOP........COMPLETED
        Configuring FND_TOP.......COMPLETED
        Configuring ICX_TOP.......COMPLETED
        Configuring MSC_TOP.......COMPLETED
        Configuring IEO_TOP.......COMPLETED
        Configuring BIS_TOP.......COMPLETED
        Configuring AMS_TOP.......COMPLETED
        Configuring CCT_TOP.......COMPLETED
        Configuring WSH_TOP.......COMPLETED
        Configuring CLN_TOP.......COMPLETED
        Configuring OKE_TOP.......COMPLETED
        Configuring OKL_TOP.......COMPLETED
        Configuring OKS_TOP.......COMPLETED
        Configuring CSF_TOP.......COMPLETED
        Configuring IGS_TOP.......COMPLETED
        Configuring IBY_TOP.......COMPLETED
        Configuring JTF_TOP.......COMPLETED
        Configuring MWA_TOP.......COMPLETED
        Configuring CN_TOP........COMPLETED
        Configuring CSI_TOP.......COMPLETED
        Configuring WIP_TOP.......COMPLETED
        Configuring CSE_TOP.......COMPLETED
        Configuring EAM_TOP.......COMPLETED
        Configuring FTE_TOP.......COMPLETED
        Configuring ONT_TOP.......COMPLETED
        Configuring AR_TOP........COMPLETED
        Configuring AHL_TOP.......COMPLETED
        Configuring OZF_TOP.......COMPLETED
        Configuring IES_TOP.......COMPLETED
        Configuring CSD_TOP.......COMPLETED
        Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.

4. 重新生成APPSUTIL.ZIP。
由于在应用层打过补丁,所以需要重新产生一个用于数据库层的APPSUTIL.ZIP文件, 这样才能保证应用层和数据库层数据保持一致。
[ebsapp@gd1ebs132 ~]$ perl /u01/PROD/PROD/apps/apps_st/appl/ad/12.0.0/bin/admkappsutil.pl 
Starting the generation of appsutil.zip
Log file located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/log/MakeAppsUtil_05271501.log
output located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/out/appsutil.zip
MakeAppsUtil completed successfully.

5. 将APPSUTIL.ZICP至ORACLE_HOME
[ebsdb@gd1ebs132 ~]$ cp /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/out/appsutil.zip .
[ebsdb@gd1ebs132 ~]$ cd $ORACLE_HOME/
[ebsdb@gd1ebs132 11.1.0]$ mv appsutil.zip appsutil.zip.bak
[ebsdb@gd1ebs132 11.1.0]$ cp ~/appsutil.zip .
[ebsdb@gd1ebs132 11.1.0]$ unzip -o appsutil.zip


6. 在数据库层AUTOCONFIG
[ebsdb@gd1ebs132 PROD_gd1ebs132]$ adautocfg.sh 
Enter the APPS user password:
The log file for this session is located at: /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/log/PROD_gd1ebs132/05271508/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.
        Using ORACLE_HOME location : /u01/PROD/PROD/db/tech_st/11.1.0
        Classpath                   : :/u01/PROD/PROD/db/tech_st/11.1.0/jdbc/lib/ojdbc6.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/java/xmlparserv2.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/java:/u01/PROD/PROD/db/tech_st/11.1.0/jlib/netcfg.jar:/u01/PROD/PROD/db/tech_st/11.1.0/jlib/ldapjclnt11.jar

        Using Context file          : /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs132.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

        Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db111
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.


7. 维护SNAPSHOT信息。
SNAPSHOTS是整个系统当前的视图,安分为APPL_TOP SNAPSHOTS和全局SNAPSHOTS。 APPL_TOP SNAPSHOTS包含了补丁列表和整个应用系统的当前最新的文件版本。 为了何证整个ERP系统所有信息的一致性和当前的系统状态处在最新的版本, 根据某些补丁要求,需要运行以下操作,以更新现在的SNAPSHOT视图信息。


8. 目标系统准备:
8.1 检查系统版本,内核版本。
8.2 检查安装的补丁包。
8.3 JAVA版本的安装和检查。
8.4 针对已知BUG的修复。
8.5 检查操作系统参数的修改。
8.6 添加APP用户,组。
8.7 添加DB用户,组。

9. 预CLONE操作。
9.1 数据库层:

[root@gd1ebs132 ~]# su - ebsdb
[ebsdb@gd1ebs132 ~]$ cd /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/scripts/PROD_gd1ebs132/
[ebsdb@gd1ebs132 PROD_gd1ebs132]$ perl adpreclone.pl dbTier

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

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adpreclone Version 120.20.12010000.5

Enter the APPS User Password: 
Running:
perl /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/bin/adclone.pl java=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/jre mode=stage stage=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone component=dbTier method=CUSTOM dbctx=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs132.xml showProgress 
APPS Password : 

Beginning database tier Stage - Mon May 27 15:53:07 2013

/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false  -Doracle.installer.oui_loc=/u01/PROD/PROD/db/tech_st/11.1.0/oui -classpath /u01/PROD/PROD/db/tech_st/11.1.0/lib/xmlparserv2.jar:/u01/PROD/PROD/db/tech_st/11.1.0/jdbc/lib/ojdbc6.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/java:/u01/PROD/PROD/db/tech_st/11.1.0/oui/jlib/OraInstaller.jar:/u01/PROD/PROD/db/tech_st/11.1.0/oui/jlib/ewt3.jar:/u01/PROD/PROD/db/tech_st/11.1.0/oui/jlib/share.jar:/u01/PROD/PROD/db/tech_st/11.1.0/oui/jlib/srvm.jar:/u01/PROD/PROD/db/tech_st/11.1.0/jlib/ojmisc.jar   oracle.apps.ad.clone.StageDBTier -e /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs132.xml -stage /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone -tmp /tmp -method CUSTOM    -showProgress
APPS Password : 
Log file located at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/log/PROD_gd1ebs132/StageDBTier_05271553.log

  \     50% completed       

Completed Stage...
Mon May 27 15:53:44 2013

9.2 APP层:
[root@gd1ebs132 ~]# su - ebsapp
[ebsapp@gd1ebs132 ~]$ cd $ADMIN_SCRIPTS_HOME/
[ebsapp@gd1ebs132 scripts]$ perl adpreclone.pl appsTier

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

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adpreclone Version 120.20.12010000.5

Running:
perl /u01/PROD/PROD/apps/apps_st/appl/ad/12.0.0/bin/adclone.pl java=/u01/PROD/PROD/apps/tech_st/10.1.3/appsutil/jdk mode=stage stage=/u01/PROD/PROD/apps/apps_st/comn/clone component=appsTier method= appctx=/u01/PROD/PROD/inst/apps/PROD_gd1ebs132/appl/admin/PROD_gd1ebs132.xml showProgress 
APPS Password : 
method defaulted to CUSTOM


Beginning application tier Stage - Mon May 27 15:55:21 2013

/u01/PROD/PROD/apps/tech_st/10.1.3/appsutil/jdk/bin/java -Xmx600M -DCONTEXT_VALIDATED=false  -Doracle.installer.oui_loc=/oui -classpath /u01/PROD/PROD/apps/tech_st/10.1.3/lib/xmlparserv2.jar:/u01/PROD/PROD/apps/tech_st/10.1.3/jdbc/lib/ojdbc14.jar:/u01/PROD/PROD/apps/apps_st/comn/java/classes:/u01/PROD/PROD/apps/tech_st/10.1.3/oui/jlib/OraInstaller.jar:/u01/PROD/PROD/apps/tech_st/10.1.3/oui/jlib/ewt3.jar:/u01/PROD/PROD/apps/tech_st/10.1.3/oui/jlib/share.jar:/u01/PROD/PROD/apps/tech_st/10.1.3/oui/jlib/srvm.jar:/u01/PROD/PROD/apps/tech_st/10.1.3/jlib/ojmisc.jar  oracle.apps.ad.clone.StageAppsTier -e /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/appl/admin/PROD_gd1ebs132.xml -stage /u01/PROD/PROD/apps/apps_st/comn/clone -tmp /tmp -method CUSTOM   -showProgress

Log file located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs132/admin/log/StageAppsTier_05271555.log

  \     80% completed       

Completed Stage...
Mon May 27 15:56:02 2013

10 . 关闭数据库,关闭应用层,将文件COPY至目标端。


11. 数据库CLONE配置
[ebsdb@gd1ebs131 bin]$ perl adcfgclone.pl dbTier

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

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password : 

Running:
/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/java:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_13781.lst -stage /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone  2> /tmp/adcfgclone_13781.err; echo $? > /tmp/adcfgclone_13781.res

Log file located at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0528132901.log

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

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

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

Target System Database SID : PROD

Target System Base Directory : /u01/PROD/PROD

Target System utl_file_dir Directory List : /tmp

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

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

Target System RDBMS ORACLE_HOME Directory [/u01/PROD/PROD/db/tech_st/11.1.0] : 

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

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

Target System Port Pool [0-99] : 1

Checking the port pool 1
done: Port Pool 1 is free
Report file located at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/temp/portpool.lst
Complete port information available at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/temp/portpool.lst

Backing up /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml to /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml16.bak

Creating the new Database Context file from :
  /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp

The new database context file has been created :
  /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml

Log file located at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0528132901.log
Check Clone Context logfile /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0528132901.log for details.

Running Rapid Clone with command:
perl /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/adclone.pl java=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/../jre mode=apply stage=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml showProgress contextValidated=true
Running:
perl /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/adclone.pl java=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/../jre mode=apply stage=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml showProgress contextValidated=true
APPS Password : 

Beginning database tier Apply - Tue May 28 13:29:23 2013

/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/u01/PROD/PROD/db/tech_st/11.1.0/oui -classpath /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/ojdbc6.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/java:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/oui/share.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/oui/srvm.jar:/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/PROD_gd1ebs131.xml -stage /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/log/PROD_gd1ebs131/ApplyDBTier_05281329.log
  \     15% completed       

Completed Apply...
Tue May 28 13:32:39 2013

Starting database listener for PROD:
Running:
/u01/PROD/PROD/db/tech_st/11.1.0/appsutil/scripts/PROD_gd1ebs131/addlnctl.sh start PROD

You are running addlnctl.sh version 120.1.12010000.2

Logfile: /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/log/PROD_gd1ebs131/addlnctl.txt

Starting listener process PROD ...


Listener PROD has already been started.


addlnctl.sh: exiting with status 0


 

12. 应用层CLONE配置。

cd /u01/PROD/PROD/apps/apps_st/comn/clone/bin
[ebsapp@gd1ebs131 bin]$ perl adcfgclone.pl appsTier

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

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password : 

Running:
/u01/PROD/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/PROD/PROD/apps/apps_st/comn/clone/jlib/java:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /u01/PROD/PROD/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_26456.lst -stage /u01/PROD/PROD/apps/apps_st/comn/clone  2> /tmp/adcfgclone_26456.err; echo $? > /tmp/adcfgclone_26456.res

Log file located at /u01/PROD/PROD/apps/apps_st/comn/clone/bin/CloneContext_0528150605.log

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

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

Target System Database SID : PROD

Target System Database Server Node [gd1ebs131] : 

Target System Database Domain Name [vipshop.com] : 

Target System Base Directory : /u01/PROD/PROD

Target System Tools ORACLE_HOME Directory [/u01/PROD/PROD/apps/tech_st/10.1.2] : 

Target System Web ORACLE_HOME Directory [/u01/PROD/PROD/apps/tech_st/10.1.3] : 

Target System APPL_TOP Directory [/u01/PROD/PROD/apps/apps_st/appl] : 

Target System COMMON_TOP Directory [/u01/PROD/PROD/apps/apps_st/comn] : 

Target System Instance Home Directory [/u01/PROD/PROD/inst] : 

Target System Root Service [enabled] : 

Target System Web Entry Point Services [enabled] : 

Target System Web Application Services [enabled] : 

Target System Batch Processing Services [enabled] : 

Target System Other Services [disabled] : 

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

RC-00217: Warning: Configuration home directory (s_config_home) evaluates to /u01/PROD/PROD/inst/apps/PROD_gd1ebs131. A directory with this name already exists and is not empty.

Do you want to continue (y/n)   : y


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

Target System Port Pool [0-99] : 1

Checking the port pool 1
done: Port Pool 1 is free
Report file located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/temp/portpool.lst
Complete port information available at /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/temp/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /tmp
3. /u01/PROD/PROD/db/tech_st/11.1.0/appsutil/outbound/PROD_gd1ebs131
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 1

Backing up /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml to /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml2.bak

Creating the new APPL_TOP Context file from :
  /u01/PROD/PROD/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
  /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml

Log file located at /u01/PROD/PROD/apps/apps_st/comn/clone/bin/CloneContext_0528150605.log
Check Clone Context logfile /u01/PROD/PROD/apps/apps_st/comn/clone/bin/CloneContext_0528150605.log for details.

Running Rapid Clone with command:
perl /u01/PROD/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/PROD/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/PROD/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml showProgress contextValidated=true
Running:
perl /u01/PROD/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/PROD/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/PROD/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml showProgress contextValidated=true
APPS Password : 

Beginning application tier Apply - Tue May 28 15:06:35 2013

/u01/PROD/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/oui -classpath /u01/PROD/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/java:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/oui/share.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/oui/srvm.jar:/u01/PROD/PROD/apps/apps_st/comn/clone/jlib/ojmisc.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/appl/admin/PROD_gd1ebs131.xml -stage /u01/PROD/PROD/apps/apps_st/comn/clone    -showProgress
APPS Password : Log file located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/log/ApplyAppsTier_05281506.log
  -     78% completed       

Completed Apply...
Tue May 28 15:10:22 2013


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

Starting application Services for PROD:
Running:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adstrtal.sh -nopromptmsg

You are running adstrtal.sh version 120.15

The logfile for this session is located at /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adstrtal.log
Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adopmnctl.sh start
script returned:
****************************************************

You are running adopmnctl.sh version 120.6

Starting Oracle Process Manager (OPMN) ...
opmnctl: opmn started.

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adopmnctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adalnctl.sh start
script returned:
****************************************************

adalnctl.sh version 120.3

Checking for FNDFS executable.
Starting listener process APPS_PROD.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adalnctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adapcctl.sh start
script returned:
****************************************************

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adapcctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adoacorectl.sh start
script returned:
****************************************************

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance  ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adoacorectl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adformsctl.sh start
script returned:
****************************************************

You are running adformsctl.sh  version 120.16

Starting OPMN managed FORMS OC4J instance  ...

adformsctl.sh: exiting with status 0

adformsctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adformsctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adoafmctl.sh start
script returned:
****************************************************

You are running adoafmctl.sh version 120.8

Starting OPMN managed OAFM OC4J instance  ...

adoafmctl.sh: exiting with status 0

adoafmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adoafmctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/adcmctl.sh start
script returned:
****************************************************

You are running adcmctl.sh version 120.17.12010000.3

Starting concurrent manager for PROD ...
Starting PROD_0528@PROD Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adcmctl.txt for more information ...  


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/PROD/PROD/inst/apps/PROD_gd1ebs131/admin/scripts/jtffmctl.sh start
script returned:
****************************************************

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /u01/PROD/PROD/apps/apps_st/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for PROD on port 9301 ...

jtffmctl.sh: exiting with status 0


.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 /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adstrtal.log for more information ...  

检查服务状态:
[ebsapp@gd1ebs131 scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: PROD_gd1ebs131.gd1ebs131.vipshop.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status  
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    4678 | Alive   
OC4JGroup:default_group          | OC4J:forms         |    4559 | Alive   
OC4JGroup:default_group          | OC4J:oacore        |    4441 | Alive   
HTTP_Server                      | HTTP_Server        |    4378 | Alive   


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/PROD/PROD/inst/apps/PROD_gd1ebs131/logs/appl/admin/log/adopmnctl.txt for more information ...  


关闭维护模式.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值