Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1905

[Solved] Oracle E-Business Suite (R12) Cloning Issue: ERROR: Script timed out

$
0
0

This post covers Apps Tier or middle tier cloning issue ‘ERROR: Script timed out’ in Oracle E-Business Suite R12 and how to troubleshoot it with complete solution.

But before that let’s first understand what is cloning and high level steps of Cloning in EBS R12

Cloning is the process of creating a copy of an existing Oracle E-Business Suite system using Rapid Clone. For more details about cloning check here

High Level Steps of Cloning in EBS (R12)

The cloning process consists of the following three phases, each of which is made up of several logical sections and their steps.

1. Prepare the Source System for database tier and application tier

1.1 Database Tier

a) Log on to the Source System as the oracle user.
b) Source the Database tier environment file.
c) Execute the following commands:
cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
perl adpreclone.pl dbTier

1.2 Application Tier

a) Log on to the primary node of the Source System as the applmgr user.
b) Source the environment file of the Run Edition File system.

Note: You can use the following command to confirm that the environment variable FILE_EDITION points to the Run Edition File System:
echo $FILE_EDITION
It should return the value:
run

c) Execute the following commands:
cd <INST_TOP>/admin/scripts
perl adpreclone.pl appsTier

2. Copy both database tier and application tier nodes from the Source System to Target System

2.1 Database Tier 

a) Create Target Directory structure like “/u01/oracle/PRD122” from root user and then change ownership to target DB user, in our case its oracle:dba

mkdir –p /u01/oracle/PRD122
chown –R oracle:dba /u01

b) Copy DB Tier files from source to target (from root user)

cd /u01/oracle/PRD122
cp –RH data /u01/oracle/PRD122
cp –RH 12.1.0 /u01/oracle/PRD122

c) Change ownership of data and 12.1.0 to target DB User. In our case its oracle:dba

cd /u01/oracle/PRD122
chown –R oracle:dba data
chown –R oracle:dba 12.1.0

2.2 Application Tier

a) Copy Run and Patch Edition File System and Apps Tier files from source to target like $APPL_TOP, $COMMON_TOP, 10.1.2 ORACLE_HOME (from root user)

cd /u01/oracle/PRD122
cp -RH fs1 /u01/oracle/PRD122/fs1
cp -RH fs2 /u01/oracle/PRD122/fs2

b) Change permission of fs1 to applmgr:dba on target (/u01/oracle/PRD122).

cd /u01/oracle/PRD122
chown -R applmgr:dba fs1
chown -R applmgr:dba fs2

3. Configure the Target System for both database tier and application tier

3.1 Database Tier

a) Log on to the Target System as the oracle user and enter the following commands:
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbTier

The log file is created in <RDBMS_ORACLE_HOME>/appsutil/log/<CONTEXT_NAME> directory.

3.2 Application Tier

a) Log on to the Run Edition File System in the Target System as the applmgr user and enter the following commands:
cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier dualfs

Note: Different logs are created for Run Edition and Patch Edition Cloning. The log files are created in the following directories in the Run Edition File System:
<INST_TOP>/admin/log/clone/run
<INST_TOP>/admin/log/clone/patch

Below diagram explain the flow of Cloning in Application Tier of Oracle E-Business Suite R12

Process of Standard Cloning TaskIssue:

Trainee was hitting issue while Configuring the Target System on application tier as

cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier dualfs

Error in logs: $INST_TOP/apps/$CONTEXT_NAME/admin/log/StageAppsTier_MMDDHHMM.log

Note: Kindly refer this post to know more about log file location in R12.2 Oracle Apps R12.2 Log Files Location every Apps DBA must know

START: Creating new WLS domain.

Running /u01/oracle/PRD122/fs2/FMW_Home/oracle_common/bin/pasteConfig.sh -javaHome /u01/oracle/PRD122/fs2/EBSapps/comn/util/jdk64 -al /u01/oracle/PRD122/fs2/EBSapps/comn/clone/FMW/WLS/EBSdomain.jar -tdl /u01/oracle/PRD122/fs2/FMW_Home/user_projects/domains/EBS_domain_PRD122 -tmw /u01/oracle/PRD122/fs2/FMW_Home -mpl /u01/oracle/PRD122/fs2/EBSapps/comn/clone/FMW/WLS/plan/moveplan.xml -ldl /u01/oracle/PRD122/fs2/inst/apps/PRD122_erpprd122/admin/log/clone/run/wlsT2PApply -silent true -debug true -domainAdminPassword /u01/oracle/PRD122/fs2/EBSapps/comn/clone/FMW/tempinfo.txt

Script Executed in 7200014 milliseconds, returning status -1

ERROR: Script timed out.

Solution:

Timeout Error Encountered for pasteBinary.sh While Running “adop phase=fs_clone” (Doc ID 1599424.1)

Though it is fs_clone, the workaround is good for the current issue as well.

Related/Further Readings

This post is from our Oracle Apps DBA (R12.2) Training, in which we cover  Architecture & Changes in Oracle E-Business Suite R12.2, Staging & Installation, File System & Important Files in R12.2, Start/Stop, Patching, AD Administration, Cloning, Concurrent Managers, AutoConfig, Password Management and Troubleshooting and much more

Next task for you

Want to Know More about R12.2? Click on the image below, and get your FREE Guide 6 Docs Every oracle Apps DBA Must Read for R12.2

The post [Solved] Oracle E-Business Suite (R12) Cloning Issue: ERROR: Script timed out appeared first on Oracle Trainings.


Viewing all articles
Browse latest Browse all 1905

Trending Articles