11g Oracle RMAN Catalog: ROUT table and ROUT_U1 index are growing. Can you purge it ?


Issue: I faced a problem with my Oracle database backup using RMAN. The RMAN catalog database was generating huge number of archive logs. I have created the new catalog schema APPLECAT like two weeks ago. Full backup of the target APPLE was taken. But unfortunately today, I happen to clean the archivelogs three times and soon it gets filled up.


ARC0: Encountered disk I/O error 19502
ARC0: Closing local archive destination LOG_ARCHIVE_DEST_1: '/rman02/arch/arch_RMANCAT_5230_1_798569661.log' (error 19502) (RMANCAT)
ARC0: I/O error 19502 archiving log 1 to '/rman02/arch/arch_RMANCAT_5230_1_798569661.log'
ARCH: Archival stopped, error occurred. Will continue retrying
ORACLE Instance RMANCAT - Archival Error
ORA-16038: log 1 sequence# 5230 cannot be archived

Other symptoms that I have been informed lately was that RMAN jobs using the recovery catalog are slow. The incremental backup that usually takes 2 hour became 6 hours. RMAN Catalog schemas were consuming lot of space. ROUT table was 800 MB and ROUT_U1 556MB.

Environment details:

Target Database
SID: APPLE
Version : Oracle RDBMS 11g (11.2.0.3)
OS: HP UX Itanium 11.31

Catalog Database
SID: RMANCAT
Version:11.2.0.3
OS: HP UX Itanium
Catalog Schema Name: APPLECAT

Media Manager: HP DataProtector 6.0

I use same catalog database but different schemas for each target database that I backup using RMAN.

Top SQLs that were executed at the time of issue were:
INSERT INTO ROUT VALUES (:B1 ,:B2 ,:B3 ,:B4 ,:B5 ,:B6 );
DELETE FROM ROUT WHERE DB_KEY = :B2 AND ROUT_SKEY <= :B1 ;
SELECT DB_ID FROM DB WHERE DB_KEY = :B1 FOR UPDATE;

Cause:
Large # of records in sys.aud$, ROUT and RSR tables.

SYS@RMANCAT SQL>select count(1) from sys.aud$;

COUNT(1)
----------
1736100

SYS@RMANCAT SQL>select count(1) from APPLECAT.ROUT ;

COUNT(1)
----------
9258449

SYS@RMANCAT SQL>select count(1) from SYS.AUD$;

  COUNT(1)

----------
   1736206

ROUT and RSR tables are used by Grid/Dbconsole/OEM to view the previous RMAN jobs output/logs.

Solution:

sqlplus APPLECAT/XXXXX
APPLECAT@RMANCAT SQL>truncate table APPLECAT.ROUT;

Table truncated.
APPLECAT@RMANCAT SQL>select count(1) from APPLECAT.ROUT;

  COUNT(1)

----------
         0
APPLECAT@RMANCAT SQL> delete from APPLECAT.RSR;

APPLECAT@RMANCAT SQL> Commit;

APPLECAT@RMANCAT SQL>execute dbms_utility.analyze_schema('APPLECAT','COMPUTE');

PL/SQL procedure successfully completed.

sqlplus / as sysdba

SYS@RMANCAT SQL>truncate table SYS.AUD$;

Table truncated.

Other Details:
Entries in ROUT table will be linked to a specific dbkey so query the catalog:
SQL>select count(*),DB_KEY from .rout group by db_key;

You can find the db_key for your target:
SQL>select * from rc_database;

By default 7 days of data is retained in ROUT.If OEM is not used to run RMAN jobs and view logs, you can reduce the above to keep just 1 days worth of logs. This is defined in $ORACLE_HOME/rdbms/admin/recover.bsq. Backup a copy of the recover.bsq file before making any changes. Look for procedure cleanupROUT:

Replace
high_stamp := date2stamp(start_time-7);
with
high_stamp := date2stamp(start_time-1);

$ rman catalog APPLECAT/XXXXXXX
RMAN>upgrade catalog;

Reference:
RMAN Catalog Response Is Slow Processing ROUT table (Doc ID 1600112.1)
Known RMAN Performance Problems (Doc ID 247611.1)

R12 - Sequence EGO.EGO_IMPORT_ROW_SEQ_S, MRP.MRP_SCHEDULE_DATES_S and MRP.MRP_RELIEF_INTERFACE_S: ORA-08004 exceeds MAXVALUE and cannot be instantiated

Environment: R12.1.2 on Linux x-86

Three of the sequences in our environment were closer to its MAX VALUE. We worked with our internal tech team and Oracle Support to perform the following steps. Before making any changes to the sequence, it is always recommended to query ALL_SEQUENCES/DBA_SEQUENCES and also backup the Sequence creation script using Toad/SQL Developer.

EGO.EGO_IMPORT_ROW_SEQ_S

SELECT * from DBA_SEQUENCES where sequence_name='EGO_IMPORT_ROW_SEQ_S';

ALTER sequence EGO.EGO_IMPORT_ROW_SEQ_S increment by -2147483646 minvalue 1;
SELECT EGO.EGO_IMPORT_ROW_SEQ_S.nextval from dual;
ALTER sequence EGO.EGO_IMPORT_ROW_SEQ_S increment by 1;
SELECT EGO.EGO_IMPORT_ROW_SEQ_S.currval from dual;

SELECT * from DBA_SEQUENCES where sequence_name='EGO_IMPORT_ROW_SEQ_S';

TRUNCATE table INV.MTL_SYSTEM_ITEMS_INTERFACE;
TRUNCATE table INV.MTL_ITEM_REVISIONS_INTERFACE;
TRUNCATE table EGO.EGO_ITM_USR_ATTR_INTRFC;
TRUNCATE table BOM.BOM_BILL_OF_MTLS_INTERFACE;
TRUNCATE table INV.MTL_INTERFACE_ERRORS;
TRUNCATE table BOM.BOM_INVENTORY_COMPS_INTERFACE;



MRP.MRP_SCHEDULE_DATES_S

SELECT * from DBA_SEQUENCES where sequence_name='MRP_SCHEDULE_DATES_S';

SELECT min(mps_transaction_id), max(mps_transaction_id), schedule_designator, organization_id
FROM mrp_schedule_dates
GROUP BY organization_id, schedule_designator
ORDER BY min(mps_transaction_id);


You may want to take a look at the minimum transaction id's and see if you're going to run into the ORA-00001 down the road because we are going to be setting the sequence back to 1. Purge any old MPS/MDS schedules that are no longer used. This will help clean up the table mrp_schedule_dates and get rid of old transaction_id's.

Please backup the Sequence creation script using TOAD or SQL Developer.

DROP sequence MRP.MRP_SCHEDULE_DATES_S;
CREATE SEQUENCE MRP.MRP_SCHEDULE_DATES_S MINVALUE 1 MAXVALUE 2147483647 INCREMENT BY 1 START WITH 1 CACHE 1000 NOORDER NOCYCLE;

commit;
SELECT * from DBA_SEQUENCES where sequence_name='MRP_SCHEDULE_DATES_S';

MRP.MRP_RELIEF_INTERFACE_S

SELECT * from DBA_SEQUENCES where sequence_name='MRP_RELIEF_INTERFACE_S';

Please backup the Sequence creation script using TOAD or SQL Developer.

DROP sequence MRP.MRP_RELIEF_INTERFACE_S;
CREATE SEQUENCE MRP.MRP_RELIEF_INTERFACE_S MINVALUE 1 MAXVALUE 2147483647 INCREMENT BY 1 START WITH 1 CACHE 1000 NOORDER NOCYCLE;
commit;
TRUNCATE table MRP.MRP_RELIEF_INTERFACE;
commit;

SELECT * from DBA_SEQUENCES where sequence_name='MRP_RELIEF_INTERFACE_S';

Reference:
MRCSAL1 Load/Copy/Merge MDS Errors ORA-08004: Sequence Mrp_schedule_dates_s.Nextval Exceeds Maxvalue Also Discussion To Avoid ORA-00001 (Doc ID 1401177.1)

DGMGRL: LogXptStatus - ORA-16810, ORA-16737 and ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

I have set up Data Guard on Oracle 10.2.0.3, the logs stopped applying out of the blue and DGMGRL configuration started throwing error:

Error:
DGMGRL> show configuration;

Configuration
Name: APL_primary
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
APL - Primary database
APLSTY - Physical standby database

Current status for "APL_primary":
Warning: ORA-16607: one or more databases have failed


DGMGRL> SHOW DATABASE 'APL' 'StatusReport';
STATUS REPORT
INSTANCE_NAME SEVERITY ERROR_TEXT
APL ERROR ORA-16737: the redo transport service for standby database "APLSTY" has an error
APL WARNING ORA-16715: redo transport-related property LogXptMode of standby database "APLSTY" is inconsistent

DGMGRL> SHOW DATABASE 'APL' 'LogXptStatus';
LOG TRANSPORT STATUS
PRIMARY_INSTANCE_NAME STANDBY_DATABASE_NAME STATUS
APL APLSTY ORA-12514: TNS:listener does not currently know of service requested in connect descriptor 


Environment:
Oracle Database 10.2.0.3
Primary Database Unique Name: APL
Standby Database Unique Name: APLSTY
Database SID: APL
OS: HP UX Itanium 11.31

Solution:
Make sure the Primary logs are applied to the Standby before enabling the DGMGRL CLI.

Some solutions to try is bounce both Primary and Standby Database completely. Make sure the logs are available physically for the standby to apply. Check if you can connect via SQLPLUS and perform TNSPING to both APL-> APLSTY and vice versa.

Once the standby database is mounted,  Give the below command and it will apply all the logs.
ALTER DATABASE RECOVER AUTOMATIC STANDBY DATABASE; 

Once all the logs are applied and the standby require the current logfile

SYS@APL SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
alter database recover managed standby database cancel
*
ERROR at line 1:
ORA-16136: Managed Standby Recovery not active

SYS@APL SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

Database altered.

SYS@APL SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

Database altered.

SYS@APL SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

Database altered


To check the last log applied on standby:
SELECT THREAD#,MAX(SEQUENCE#) FROM V$ARCHIVED_LOG WHERE APPLIED ='YES' GROUP BY THREAD#;

Now you need to make sure the service names are registered within the database.

Standby Database:
SYS@APL SQL>show parameter service

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      APLSTY
SYS@APL SQL>show parameter db_unique

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      APLSTY
SYS@APL SQL>alter system set service_names=APLSTY,APLSTY_XPT scope=both;

System altered.

SYS@APL SQL>show parameter service

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      APLSTY, APLSTY_XPT
SYS@APL SQL>


Primary Database:
SYS@APL SQL>show parameter service

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      APL
SYS@APL SQL>show parameter db_unique

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      APL
SYS@APL SQL>alter system set service_names=APL,APL_XPT scope=both;

System altered.

SYS@APL SQL>show parameter service

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      APL, APL_XPT
SYS@APL SQL>


Once service_names are updated correctly, please restart/reload the listeners on both primary and standby. Test TNSPING, SQLPLUS and make sure logs are getting shipped.

Follow the 'Step By Step How to Recreate Dataguard Broker Configuration ( Doc ID 808783.1 )', to remove and create new DGMGRL configuration.

I made the following changes to the CREATE CONFIGURATION statement - instead of the tnsnames entry, I used the tns details with the configuration.

DGMGRL> CREATE CONFIGURATION 'APLCONF' AS PRIMARY DATABASE IS 'APL' CONNECT IDENTIFIER IS "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=apldb.vaidiyan.com)(PORT=1532)))(CONNECT_DATA=(SID=APL)))";
Configuration "APLCONF" created with primary database "APL"
DGMGRL> ADD DATABASE 'APLSTY' AS CONNECT IDENTIFIER IS "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=aplstbdb.vaidiyan.com)(PORT=1532)))(CONNECT_DATA=(SID=APL)))" MAINTAINED AS PHYSICAL;
Database "APLSTY" added
DGMGRL>

DGMGRL> show configuration;

Configuration
  Name:                APLCONF
  Enabled:             NO
  Protection Mode:     MaxPerformance
  Fast-Start Failover: DISABLED
  Databases:
    APL    - Primary database
    APLSTY - Physical standby database

Current status for "APLCONF":
DISABLED

DGMGRL> enable configuration;


Reference:
Script to Collect Data Guard Primary Site Diagnostic Information for Version 10g and above (Including RAC). ( Doc ID 1577401.1 )
Script to Collect Data Guard Physical and Active Standby Diagnostic Information for Version 10g and above (Including RAC) ( Doc ID 1577406.1 )
Step By Step How to Recreate Dataguard Broker Configuration ( Doc ID 808783.1 )

Oracle Discoverer - dis51adm.exe or dis51usr.exe ERROR: The program can't start because MSVCR71.dll is missing from your computer. Try reinstalling the program to fix this problem.

I received the following error while installing Oracle Discoverer Administrator/Desktop on Windows 2012 or Windows 8 Server 64 bit.

Discoverer Desktop and Administrator are 32 bit application.

Error: 
dis51adm.exe - System Error

The program can't start because MSVCR71.dll is missing from your
computer. Try reinstalling the program to fix this problem.


Solution:
The SVCR71.dll is a Microsoft Visual C Runtime library.You can contact Microsoft Support in order to install this library file.

OR

1. Download MSVCR71.dll from dll-files.com. (It is free.)
2. Unzip this file.
3. Place MSVCR71.dll into C:\Windows\System32 directory, if you are using a 32-bit Windows or into C:\Windows\SysWOW64 if you using a 64-bit Windows machine. Now, try to open Discoverer Administrator or Desktop 11g(11.1.1).

Reference:
How To Find Oracle BI Discoverer 10g and 11g Certification Information (NOTE:233047.1)
Attempting To Run Discoverer Administrator Or Desktop 11g(11.1.1) On Windows 7 Get Error - "The program can't start because MSVCR71.dll is missing from your computer" (Doc ID 1255244.1)

R12.2.x - Cloning E-Business Suite with Snapshot and Rapid Clone

In this note, I am going to talk to about the Clone/Refresh of Oracle Applications R12.2.3. This process is applicable to any R12.2.x release. Cloning is the process of creating a copy of an existing Oracle  E-Business Suite (EBS) system. Refresh is another word used interchangeably with Clone.

Environment:
Application - Linux x86-64 Oracle Linux 6
This node has the web/weblogic/managed services/forms/concurrent managers. OS user is 'applwms'.
Source Application Node :BLUE1
Target Application Node :PINK1

Database - HP-UX Itanium 11.31
This node have only the database. Both OS user are 'orawms'
Source DB Node: VAIDIYAN1
Source SID: APPLE
Target DB Node: VAIDIYAN2
Target SID: BERRY

Assumption:
  1. Both source and target will have the same two node architecture.
  2. Database Source backup is taken with Snapshot/Technology. You can also use RMAN, Snap View, Mirror View or other method for DB backup. 
Terminology:
Standard Cloning: Creating a copy of an Oracle EBS system using RapidClone
File System Cloning: Copying the run file system to the patch file system in online patching using adop phase=fs_clone.

Key Pre-requistes:

  1. Disk Space on the Source system and Target
  2. Source and Target must be on the same Operating System (OS) and patch level
  3. Apply the latest AD/TXK patches to the Source system

Overall Cloning/Refresh Process:
  1. Prepare the Source for Database and Application tier.
  2. Copy the Database tier from Source to Target.
  3. Copy the Application Run edition File system from Source to Target Run edition file system.
  4. Configure the Target Database 
  5. Configure the Target Application Run edition file system.
  6. Prepare Target Run edition file system to build Target Patch edition file system.
  7. Configure the Target Patch edition file system.
  8. Post clone tasks.

1.1 Prepare the Source Database tier:

Log on to the Source Database System as orawms
$ cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME> 
$ perl adpreclone.pl dbTier

orawms/APPLE@VAIDYAN01>cd $ORACLE_HOME/appsutil/scripts/APPLE_VAIDIYAN1
orawms/APPLE@VAIDYAN01> perl adpreclone.pl dbTier

Enter the APPS User Password:

The process takes about 10 minutes

1.2 Prepare the Source Application tier:

Logon to the RUN edition file system of the Source as applwms
$ cd <INST_TOP>/admin/scripts
$ perl adpreclone.pl appsTier


[applwms@BLUE1 scripts]$echo $FILE_EDITION
run
[applwms@BLUE1 scripts]$ perl adpreclone.pl appsTier

Enter the APPS User Password:
Enter the Weblogic AdminServer password :

This process takes 40 minutes. From release R12.2, the adpreclone.pl process creates a complete and compressed archive of Oracle Fusion Middleware and its components (Weblogic Server, Web Tier Utilties, Common Utilities and EBS Home. The files are created in /clone.

2 Copy the files from Source to Target Database tier.

This can be a storage copy, RMAN restore, Flash Copy, Snapshot.

3 Copy the Application Run edition File system from Source to Target Run edition file system.

This can be performed by a rcp -pr, scp -pr.  Please note that you only need to copy RUN file system.

4.1 Configure the Target Database

Login to VAIDIYAN2 as orawms and configure the database home
$ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
$ perl adcfgclone.pl dbTechStack 

orawms/BERRY@VAIDIYAN2> cd $ORACLE_HOME/appsutil/clone/bin
orawms/BERRY@VAIDIYAN2> perl adcfgclone.pl dbTechStack

Enter the APPS password :

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


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

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

Target System Database SID : BERRY

Target System Base Directory : /wms01/app/oracle/wmsoradb

Target System utl_file_dir Directory List : /tmp,/wms01/app/oracle/wmsoradb/11.2.0/appsutil/outbound/BERRY_VAIDIYAN2

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

Target System DATA_TOP Directory 1 [/wms05/wmsdata] :

Target System RDBMS ORACLE_HOME Directory [/wms01/app/oracle/wmsoradb/11.2.0] :

Do you want to preserve the Display [null] (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] : 19

Checking the port pool 19
done: Port Pool 19 is free
Report file located at /wms01/app/oracle/wmsoradb/11.2.0/appsutil/temp/portpool.lst

This will be followed by rdbms home Apply and starting the listener. The entire process takes 15-20 minutes.

4.2 Create DB Controlfile and Recover the Database

Use the backup controlfile from the Source to build Target Controlfile. Recover the database that you copied through snapshot. Open the Target database.

4.3 Start the Library Update Script against the database

$ cd <RDBMS ORACLE_HOME>/appsutil/install/<CONTEXT NAME>
$ sqlplus "/ as sysdba" @adupdlib.sql  <libext>
 
Where <libext> should be set to sl for HP-UX, so for any other UNIX platform, so for Linux, or dll for Windows. You can check the extension with this query : select owner,library_name,file_spec from dba_libraries where file_spec is not null;

orawms/BERRY@VAIDIYAN2> cd $ORACLE_HOME/appsutil/install/BERRY_VAIDIYAN2
orawms/BERRY@VAIDIYAN2> sqlplus / as sysdba @adupdlib.sql sl

4.4 Configure the Target database

$ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
$ perl adcfgclone.pl dbconfig <database target Context File>


Where "Database Target Context File" is: <RDBMS ORACLE_HOME>/appsutil/<target CONTEXT_NAME>.xml

orawms/BERRY@VAIDIYAN2> cd $ORACLE_HOME/appsutil/clone/bin
orawms/BERRY@VAIDIYAN2> perl adcfgclone.pl dbconfig /wms01/app/oracle/wmsoradb/11.2.0/appsutil/BERRY_VAIDIYAN2.xml

Enter the APPS password :

This step will take 5-10 minutes.


5 Configure the Target Application tier

Before we start configuring the Target Application tier, Please make sure that the following folders are only in system base. "FMW_Home" should be removed.

[applwms@PINK1 bin]$ cd /wms/app/oracle/fs1/
[applwms@PINK1fs1]$ ls
EBSapps inst

[applwms@PINK1 fs1]$ cd /wms/app/oracle/fs1/inst/apps
[applwms@PINK1 apps]$ ls
[applwms@PINK1 apps]$

Log on to the RUN edition file system in the Target as applwms
$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier


[applwms@PINK1~]$ cd $COMMON_TOP/clone/bin
[applwms@PINK1 bin]$ perl adcfgclone.pl appsTier

Enter the APPS password :

Enter the Weblogic AdminServer password :

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

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) [PINK1] : PINK1

Target System Database SID : BERRY

Target System Database Server Node [PINK1] : VAIDIYAN2

Target System Database Domain Name [XYZ.com] :

Target System Base Directory : /wms/app/oracle

Target System Base Directory set to /wms/app/oracle

Target System Current File System Base set to /wms/app/oracle/fs1

Target System Other File System Base set to /wms/app/oracle/fs2

Target System Fusion Middleware Home set to /wms/app/oracle/fs1/FMW_Home

Target System Web Oracle Home set to /wms/app/oracle/fs1/FMW_Home/webtier

Target System Appl TOP set to /wms/app/oracle/fs1/EBSapps/appl

Target System COMMON TOP set to /wms/app/oracle/fs1/EBSapps/comn

Target System Instance Home Directory [/wms/app/oracle] :

Target System Instance Top set to /wms/app/oracle/fs1/inst/apps/BERRY_PINK1

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

Target System Display [PINK1:0.0] :

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 [enabled] :

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] : 19

Checking the port pool 19
done: Port Pool 19 is free


UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /tmp
3. /wms01/app/oracle/wmsoradb/11.2.0/appsutil/outbound/BERRY_VAIDIYAN2
4. /wms01/app/oracle/wmsoradb/11.2.0/appsutil/outbound/BERRY_VAIDIYAN2
5. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :


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

This process would take up to 45 minutes.


6.1 Prepare the Target RUN edition file system to build Target PATCH edition file system

Run adpreclone.pl on the run edition file system in the Target System on a new Putty session.

[applwms@PINK1 ~]$ . /wms/app/oracle/EBSapps.env

  E-Business Suite Environment Information
  ----------------------------------------
  File System Type          : SINGLE
  RUN File System           : /wms/app/oracle/fs1/EBSapps/appl
  PATCH File System         : NOT APPLICABLE
  Non-Editioned File System : /wms/app/oracle/fs_ne


  DB Host: VAIDIYAN2.XYZ.com  Service/SID: BERRY


  Sourcing the RUN File System ...

[applwms@PINK1 ~]$

[applwms@PINK1 oracle]$ echo $FILE_EDITION
run
[applwms@PINK1 oracle]$


Remove/Move the current clone folder in the Target RUN edition file system
[applwms@PINK1 oracle]$ cd /wms/app/oracle/fs1/EBSapps/comn
[applwms@PINK1 comn]$ mv clone clone_APPLE
[applwms@PINK1 comn]$ cd $ADMIN_SCRIPTS_HOME
[applwms@PINK1 scripts]$ perl adpreclone.pl appsTier

Enter the APPS User Password:
Enter the Weblogic AdminServer password :


This step runs for 20-25 minutes.

6.2 Copy the Target RUN edition file system (EBSapps) to PATCH edition file system


[applwms@PINK1 ~]$ cd /wms/app/oracle/
[applwms@PINK1 oracle]$ mkdir fs2

[applwms@PINK1 oracle]$ cd  /wms/app/oracle/fs1
[applwms@PINK1 fs1]$ pwd
/wms/app/oracle/fs1

[applwms@PINK1 fs1]$ cp -rp EBSapps ../fs2/
[applwms@PINK1 fs1]$ cd ../fs2/

[applwms@PINK1 fs2]$ pwd
/wms/app/oracle/fs2

[applwms@PINK1 fs2]$ ls
EBSapps
[applwms@PINK1 fs2]$


7 Configure the Target Patch edition file system

Log on to the PATCH edition file system in the Target System as the applwms user
$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier

The patch edition file system must be aware of the location of the run edition file system that will be configured in the next step. At the prompt "Location of Run System Context File", enter the absolute path to the context file for the run edition file system that was created in the previous step.



[applwms@PINK1 ~]$. /wms/app/oracle/EBSapps.env

  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System           : /wms/app/oracle/fs1/EBSapps/appl
  PATCH File System         : /wms/app/oracle/fs2/EBSapps/appl
  Non-Editioned File System : /wms/app/oracle/fs_ne


  DB Host: VAIDIYAN2.XYZ.com  Service/SID: BERRY


  E-Business Suite Environment Setting
  ------------------------------------
  - Enter [R/r] for sourcing Run File System Environment file, or
  - Enter [P/p] for sourcing Patch File System Environment file, or
  - Enter anything else to exit

  Please choose the environment file you wish to source [R/P]:P

  Sourcing the PATCH File System ...

[applwms@PINK1 ~]$ cd /wms/app/oracle/fs2/EBSapps/comn/clone/bin


[applwms@PINK1 bin]$ perl adcfgclone.pl appsTier

Enter the APPS password :

Enter the Weblogic AdminServer password :

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

Target System File Edition type [run] : patch

Enter the full path of Run File System Context file : /wms/app/oracle/fs1/inst/apps/BERRY_PINK1/appl/admin/BERRY_PINK1.xml

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

Target System Fusion Middleware Home set to /wms/app/oracle/fs2/FMW_Home

Target System Web Oracle Home set to /wms/app/oracle/fs2/FMW_Home/webtier

Target System Appl TOP set to /wms/app/oracle/fs2/EBSapps/appl

Target System COMMON TOP set to /wms/app/oracle/fs2/EBSapps/comn

Target System Instance Top set to /wms/app/oracle/fs2/inst/apps/BERRY_PINK1

Target System Port Pool [0-99] : 20

Checking the port pool 20
done: Port Pool 20 is free


UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /tmp
3. /wms01/app/oracle/wmsoradb/11.2.0/appsutil/outbound/BERRY_VAIDIYAN2
4. /wms01/app/oracle/wmsoradb/11.2.0/appsutil/outbound/BERRY_VAIDIYAN2
5. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :

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


This step would take close to 45 minutes.


8. Post clone tasks.

- Update profile options.
- Update printer settings.
- Update Workflow configuration settings.
- Verify the APPLCSF variable setting.
- Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS.
- Re-Implement SSL and SSO configuration.

You have completed the clone of R12.2.3 One Application and One Database Node environment.

Reference:
Applying the Latest AD and TXK Release Update Packs to Oracle E-Business Suite Release 12.2.(Document 1617461.1)
Oracle E-Business Suite Release 12.2: Suite-Wide Rollup and AD/TXK Delta Information(Document 1583092.1)
Cloning Oracle E-Business Suite Release 12.2 with Rapid Clone (Doc ID 1383621.1)