Issues Faced
Issues Faced
IF YOU ARE FACING ANY PROBLEM WITH adcfgclone.pl dbTechStack then instead of
extracting the ORACLE_HOME in the directory with source db name for
instance ERPTEST just rename the directory ERPTEST to ERPDEV(target SID name)
https://support.oracle.com/epmos/faces/DocumentDisplay?
_afrLoop=483765833780545&parent=EXTERNAL_SEARCH&sourceId=PROBLEM&id=802464.1&_afrWi
ndowMode=0&_adf.ctrl-state=ohe5utqw0_4
ISSUES FACED:
$perl adcfgclone.pl appsTier dualfs
ERROR: txkWfClone.sh exited with status 1
solution
The above issue might occur if still there is some reference to the source system,
or
the cloning script is unable to change it to appropriate environment during the
cloning
process for some reasons. This is one such case, where this issue might occur.
There
are many other reasons which will throw the above same issue but the reason might
be
different. Need to drill down on the log files for exact cause for the issue.
$SQLPLUS APPSUSERNAME/APPSPASSWORD
SQL> COL OWNER FOR A10
SQL> COL TABLE_NAME FOR A15
SQL> SELECT OWNER,TABLE_NAME,TABLESPACE_NAME FROM DBA_TABLES WHERE
TABLE_NAME='AD_APPL_TOPS';
in database tier
$ $ORACLE_HOME/appsutil/scripts/ERPDEV_STGERPAPP01/adautocfg.sh
in application tier
$export CONFIG_JVM_ARGS="-Xms1024m -Xmx2048m"
$ cd /u01/app/ERPDEV/fs1/EBSapps/comn/clone/bin
$ perl adcfgclone.pl appsTier dualfs
-----------------------------------------------------------------------------------
-------------
Issue:
unable to execute the adclone.pl/ ouicli.pl
1. try to export the path variable/ and try to see java or jre set properly or not
2. clear the oraInventory directory and
3. clear the FMW directory and other directories and try to run the same command
ie., $perl adcfgclone.pl appsTier dualfs
-----------------------------------------------------------------------------------
-------------
ISSUE:
in ETCC-EBS Technology CodeLevel Checker iam getting the following error
p17537119_R12_GENERIC.zip
./checkDBpatch.sh
LsInventorySession failed: RawInventory gets null OracleHomeInfo
Solution:
step 1:
[oracle@abcserver] $ cd $ORACLE_HOME/oui/bin
[oracle@abcserver] $ pwd
step 2:
Change the entery of attachHome.sh
Step 3:
Step 4:
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: stgerpapp01.oracle.com
ARU platform id: 226
ARU platform description:: Linux x86-64
--------------------------------------------------------------------------------
OPatch succeeded.
reference : https://doyensys.com/blogs/lsinventorysession-failed-rawinventory-gets-
null-oraclehomeinfo/
-----------------------------------------------------------------------------------
-------------
ISSUE
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
$/sbin/fuser oracle
oracle: 663e 667e 671e 675e 680e 684e 688e 692e 696e 834e 838e
862e 868e 904e 932e 1404e 3048e 6007e 6011e 6015e 6021e 6025e 6033e
6037e
6041e 6045e 6049e 6053e 6057e 6061e 6065e 6069e 6073e 6077e 6081e 6085e
6089e
6151e 6159e 6163e 6167e 6171e 6175e 6179e 6196e 6201e 6213e 6221e 6225e
9993e
11270e 11274e 30954e 31156e 31163e 31172e 31184e 31186e 31221e 31223e 31228e 31235e
31243e
31246e 31254e 31257e 31260e 31268e 31271e 31275e 31278e 31282e 31285e 31288e 31292e
31296e
31298e 31318e 31339e 31343e 31347e 31351e 31357e 31361e 31380e 31382e 31413e 31420e
31466e
31526e
$kill -9 663e 667e 671e 675e 680e 684e 688e 692e 696e 834e 838e
862e 868e 904e 932e 1404e 3048e 6007e 6011e 6015e 6021e 6025e 6033e
6037e
6041e 6045e 6049e 6053e 6057e 6061e 6065e 6069e 6073e 6077e 6081e 6085e
6089e
6151e 6159e 6163e 6167e 6171e 6175e 6179e 6196e 6201e 6213e 6221e 6225e
9993e
11270e 11274e 30954e 31156e 31163e 31172e 31184e 31186e 31221e 31223e 31228e 31235e
31243e
31246e 31254e 31257e 31260e 31268e 31271e 31275e 31278e 31282e 31285e 31288e 31292e
31296e
31298e 31318e 31339e 31343e 31347e 31351e 31357e 31361e 31380e 31382e 31413e 31420e
31466e
31526e
(WITHOUT E,ie; no need to have e while killing the processes)
----------------------------------------------------------------------------------
Oracle APPS DBA Real Time Issues and Solutions
Hiya Buddies,
I would like to share some real time issue and solution which we have faced during
the EBS integration recently.
These are very common issues also which may helpful here to all...
1. Issue –
Suppose, our Concurrent Manager processing are running slow then what we have done
and what we need to check.
As per our investigation we found as 2000 request was submitted one at time. So, CM
cannot cache as request are coming one at time
2) Issue -
This issue we get almost time and it is very common : java.lang.OutOfMemoryError:
Java heap space & Intermittent HTTP-500 Errors
Solution:
We got the fix issue by Increase Java Heap & number of oacore JVM’s
a) <oacore_jvm_start_options oa_var="s_oacore_jvm_start_options">-server -
?'
verbose:gc -Xmx1024M -Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCT
nagement.jmxremote -Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.
policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Doracle.security.jaz
n.config=/u01/apps/inst/apps/ORA-DATA/ora/10.1.3/j2ee/oacore/config/j
azn.xml</oacore_jvm_start_options>
b) <oacore_nprocs oa_var="s_oacore_nprocs">2</oacore_nprocs>
3) Issue -
Log file details:
java.io.IOException: Broken pipe
13/01/19 11:12:04.849 html: Servlet error
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
at sun.nio.ch.IOUtil.write(IOUtil.java:75)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
at java.nio.channels.Channels.write(Channels.java:60)
at java.nio.channels.Channels.access$000(Channels.java:47)
at java.nio.channels.Channels$1.write(Channels.java:134)
;/ at
com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandle
r.java:260)
4)Issue –
Suppose, our Workflow Notification Mailer is running either slow or not working
then what we need to do.
Work-around:
a) Workflow Manager Have System Hold Fix Manager Before Resetting Counters
Solution:
Wfmgsms And Wfmgsmd Managers Have System Hold Fix Manager Before Resetting Counters
[ID 1378284.1] -- ref.
SQL> update FND_CONCURRENT_QUEUES
set ENABLED_FLAG='N'
where CONCURRENT_QUEUE_NAME like 'WF%GSM%'
SQL> commit;
;
b) Notification Mailer slow/not running
oracle.apps.fnd.wf.mailer.NotificationFormatter$FormatterSAXException:
Problem obtaining the HTML content ->
oracle.apps.fnd.wf.common.HTTPClientException:
Unable to invoke method HTTPClient.HTTPResponse.listHeaders caused by:
java.net.SocketTimeoutException: Read timed out
Solution:
Profile “WF: Workflow Mailer Framework Web Agent” set.
select t.PROFILE_OPTION_ID ID, z.USER_PROFILE_OPTION_NAME Profile,
nvl(v.PROFILE_OPTION_VALUE,'Replace with non-load balanced URL') Value,
decode(v.level_id, 10001,'Site',
10002,'Application',
10003,'Responsibility',
10004,'User',
10005,'Server',
10006,'Organization') "LEVEL"
from fnd_profile_options t, fnd_profile_option_values v, fnd_profile_options_tl z
where (v.PROFILE_OPTION_ID (+) = t.PROFILE_OPTION_ID)
and (z.PROFILE_OPTION_NAME = t.PROFILE_OPTION_NAME)
and (t.PROFILE_OPTION_NAME in
('APPS_FRAMEWORK_AGENT','WF_MAIL_WEB_AGENT'));
To set the WF_MAIL_WEB_AGENT profile :
- Change the "WF: Workflow Mailer Framework Web Agent" [WF_MAIL_WEB_AGENT] profile
option to point to a physical Web Server host address that is non-load balanced.
5)Issue -
FRM-41839 Disk I/O error on temporary record buffer file /tmp/AAxxe893.tmp
Solution:
We need to Increase the /tmp size to 8 GB
-----------------------------------------------------------------------------------
---------------------
INTRODUCTION TO ORACLE APPS DBA
The Database which is storing the data’s from application (say front end ) that is
EBS (Enterprise Business suite) is said to be Application Database .
What is EBS?
Oracle E-Business Suite is one of Oracle Corp’s major product lines. Also known as
Oracle EBS, it is an integrated set of business applications for automating
customer relationship management (CRM), enterprise resource planning (ERP), supply
chain management (SCM), human resource management (HRMS)etc. processes within
organizations. This for Whole is Application
What is Database?
A database is collection of data’s That is in the form of objects.
Objects List
Tables
Views
Synonyms
Sequence
Triggers
Functions
Packages
Procedures
Roles Etc.
These are Database Objects When the database is up and Running.
The Person Who is maintaining both application and database is APPS DBA.
Good Knowledge in OS like Linux, IBM(UIX), Windows etc.as oracle software will be
installed on these OS’s.
Good Knowledge in sql and PlSQL.
Very good understanding of Oracle core database architecture and concepts
Oracle SQLNet configuration and working knowledge
Knowledge on Concurrent managers
Daily activities are performed by the “Oracle Apps DBA” is mention below: –
Type 4: Architects
Architects are the ones who design systems from scratch. They mainly involve in:
-----------------------------------------------------------------------------------
----------------
what to do when user reported load on the server ?
my query was running fine yesterday and today running long time ?
how to check bllocking session ?
what is holder and waiter sessions ?
what is the awr ,ash,addm ?
how to rebuild index ?
how to shirnk table ?
what is the fragmentation ?
what are the wait events ?
-----------------------------------------------------------------------------------
---------------
Did you face any memory issue whhile applying weblogic patch ?
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
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
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
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
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
cd /u01/oracle/PRD122
cp -RH fs1 /u01/oracle/PRD122/fs1
cp -RH fs2 /u01/oracle/PRD122/fs2
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
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
cd <COMMON_TOP>/clone/bin
perl adcfgclone.pl appsTier dualfs
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
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
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.
-----------------------------------------------------------------------------------
---------------
Application R12 Cloning Issues :
1. cd $FND_TOP/patch/115/bin
2. perl ojspCompile.pl --compile --flush -p 2
3. Run autoconfig on both db and apps tiers
3. Bring up the services and test login
adop phase=prepare
Note: Kindly refer this post to know more on log file location in R12.2 Oracle Apps
R12.2 Log Files Location every Apps DBA must know
A) Error in adop logs:
/u01/oracle/PRD122/fs_ne/EBSapps/log/adop/6/prepare_20171109_032332/
PRD122_1705ecloud05/log/adop.log
Note: Here
/u01/oracle/PROD is Oracle EBS install base directory
fs_ne Non-Editioned File System
6 – adop session id
prepare_20171109_032332 – <phase>_<date>_<time>
PRD122_1705ecloud05 – CONTEXT NAME
Oracle Apps R12.2 has Dual File System (fs1 & fs2), which helps organizations to
have less downtime during patching. By introducing duplicate file system, Oracle
has reduced patching downtime and improved availability of the system.
We can focus on three major parts of the E-Business Suite 12.2 file system:
*******FATAL ERROR*******
PROGRAM :
(/u01/oracle/PRD122/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSyn
chronize.pl)
TIME : Thu Nov 9 03:34:15 2017
FUNCTION: main::migrateCloneComponentApply [ Level 1 ]
ERRORMSG: /u01/oracle/PRD122/fs1/EBSapps/comn/adopclone_1705ecloud05/bin/adclone.pl
did not go through successfully.
[UNEXPECTED]Error occurred running “perl
/u01/oracle/PRD122/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSync
hronize.pl -contextfile=/u01/oracle/PRD122/fs1/inst/apps/PRD12111_1705ecloud05/
appl/admin/PRD12111_1705ecloud05.xml
-patchcontextfile=/u01/oracle/PRD122/fs2/inst/apps/PRD12111_1705ecloud05/appl/
admin/PRD12111_1705ecloud05.xml -promptmsg=hide -console=off -mode=migrate -
sync_mode=copy -sessionid=6 -timestamp=20171109_032332
-outdir=/u01/oracle/PRD122/fs_ne/EBSapps/log/adop/6/20171109_032332/prepare/
1705ecloud05”
[UNEXPECTED]occurred during CONFIG_CLONE Patch File System from Run File
System, running command: “perl
/u01/oracle/PRD122/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSync
hronize.pl -contextfile=/u01/oracle/PRD122/fs1/inst/apps/PRD12111_1705ecloud05/
appl/admin/PRD12111_1705ecloud05.xml
-patchcontextfile=/u01/oracle/PRD122/fs2/inst/apps/PRD12111_1705ecloud05/appl/
admin/PRD12111_1705ecloud05.xml -promptmsg=hide -console=off -mode=migrate -
sync_mode=copy -sessionid=6 -timestamp=20171109_032332
-outdir=/u01/oracle/PRD122/fs_ne/EBSapps/log/adop/6/20171109_032332/prepare/
1705ecloud05”.
[PROCEDURE] [START 2017/11/09 03:34:15] Updating status of patches
[STATEMENT] SQL statement : ” update ad_adop_session_patches
set status=’F’
where applied_file_system_base = ‘/u01/oracle/PRD122/fs1’ and
patch_file_system_base = ‘/u01/oracle/PRD122/fs2′ and bug_number=’CONFIG_CLONE’
and status <> ‘Y’
and appltop_id=195 and node_name=’1705ecloud05′”
[PROCEDURE] [END 2017/11/09 03:34:16] Updating status of patches
[STATEMENT] SQL statement : ” update ad_adop_session_patches
set status=’F’
where applied_file_system_base = ‘/u01/oracle/PRD122/fs1’ and
patch_file_system_base = ‘/u01/oracle/PRD122/fs2′ and bug_number=’CONFIG_CLONE’
and status <> ‘Y’
and appltop_id=195 and node_name=’1705ecloud05′”
[PROCEDURE] [END 2017/11/09 03:34:16] Updating status of patches
[UNEXPECTED]fs_clone has failed.
[UNEXPECTED]Error calling runPendingConfigClone subroutine.
B) Error in fs_clone logs:
Note: Prepare Phase, creates a clone of Patch File System from Run File System, and
as per the previous log, an error was during this Cloning so we need to look at
clone logs.
$INST_TOP/admin/log/clone/FSCloneApplyAppsTier_<timestamp>.log
START: Instantiating the OHS Config.
Running /u01/oracle/PRD122/fs2/FMW_Home/webtier/perl/bin/perl
-I/u01/oracle/PRD122/fs2/FMW_Home/webtier/perl/lib/5.10.0
-I/u01/oracle/PRD122/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0
-I/u01/oracle/PRD122/fs2/EBSapps/appl/au/12.0.0/perl
-I/u01/oracle/PRD122/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/x86_64-
linux-thread-multi
/u01/oracle/PRD122/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkSetOHSConfig.pl
cfgCloneInstance
-ctxfile=/u01/oracle/PRD122/fs2/inst/apps/PRD12111_1705ecloud05/appl/admin/
PRD12111_1705ecloud05.xml
-archvloc=/u01/oracle/PRD122/fs1/EBSapps/comn/adopclone_1705ecloud05/FMW/OHS/
ohsarchive.jar -mvpln=/u01/oracle/PRD122/fs1/EBSapps/comn/adopclone_1705ecloud05/
FMW/OHS/moveplan.xml
-t2plogloc=/u01/oracle/PRD122/fs1/inst/apps/PRD12111_1705ecloud05/admin/log/clone/
ohsT2PApply -logdir=/u01/oracle/PRD122/fs1/inst/apps/PRD12111_1705ecloud05/admin/
log/clone -console=off -promptmsg=hide
Script Executed in 37703 milliseconds, returning status 255
ERROR: Script failed, exit code 255
Error Message :1
[PLUGIN][OHS] – ERROR – Nov 9, 2017 03:34:15 – CLONE-26009 OHS T2P failed.
[PLUGIN][OHS] – CAUSE – Nov 9, 2017 03:34:15 – CLONE-26009 Unable to start OS
component.
[PLUGIN][OHS] – ACTION – Nov 9, 2017 03:34:15 – CLONE-26009 Check clone log and
error file and ohs log file
/u01/oracle/PRD122/fs2/FMW_Home/webtier/instances/EBS_web_PRD12111_OHS1/
diagnostics/logs/OHS/EBS_web_PRD12111/console~OHS~1.log for root cause.
C) Error in OHS logs:
Note: Clone process clones, Fusion Midddleware (WebLogic & OHS) as per the previous
log, the error was during this startup of OHS server so we need to look at OHS
logs.
/u01/oracle/PRD122/fs2/FMW_Home/webtier/instances/EBS_web_PRD12111_OHS1/
diagnostics/logs/OHS/EBS_web_PRD12111/console~OHS~1.log
/u01/oracle/PRD122/fs2/FMW_Home/webtier/ohs/bin/apachectl startssl: execing httpd
httpd.worker: bad user name applmgr11
3. Root Cause:
Root cause as identified in previous OHS log was, wrong owner permission for OHS
files
cd /u01/oracle/PRD122/fs1/inst/apps/PRD12111_1705ecloud05/appl/admin/cutover/OHS/
EBS_web_PRD12111
[root@1705ecloud05 EBS_web_PRD12111]# grep applmgr11 *
httpd.conf: User applmgr11
[root@1705ecloud05 EBS_web_PRD12111]# chown applmgr:dba httpd.conf
[root@1705ecloud05 EBS_web_PRD12111]#
User applmgr
#Group GROUP_TEMPLATE
</IfModule>
4. Change in Context File
Note: After updating user to applmgr in httpd.conf, OHS start-up was still failing
So checked $CONTEXT_FILE and below two entries having applmgr11 user on both run
(fs1) and patch (fs2) file system and causing the issue
Fix:
1. Changed user to applmgr on both run and patch file system under $CONTEXT_FILE
and run autoconfig, then restart prepare phase again
ADOP (C.Delta.8)
Session Id: 6
Command: status
Output:
/u01/oracle/PRD122/fs_ne/EBSapps/log/adop/6/20171109_085910/adzdshowstatus.out
===============================================================
Node Name Node Type Phase Status Started
Finished Elapsed
————— ———- ————— ————— ——————– ——————– ————
1705ecloud05 master PREPARE COMPLETED 2017/11/06 22:41:13
2017/11/09 08:47:02 58:05:49
APPLY NOT STARTED
FINALIZE NOT STARTED
CUTOVER NOT STARTED
CLEANUP NOT STARTED
-----------------------------------------------------------------------------------
----------------
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: <file>.dbf
ORA-01503: CREATE CONTROLFILE failed
ORA-01159: file is not from same database as previous files - wrong database
id
Note: The steps in this section apply to cold backups only. To perform Cloning
using HOT Backup, refer the following Document 760772.1 Cloning Oracle Application
11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database
To perform Cloning using Cold Backup, make sure these steps are followed to avoid
any recovery issues while performing cloning at Target:
Follow the "Prepare the source system database tier for cloning" steps in the
cloning notes Note 230672.1(11i) or Note 406982.1(R12) . These are as follows:
Run autoconfig
Run adpreclone on dbTier
Stop DB and its listener processes
Shutdown the Database with (Normal, Immediate ) Mode
Bring down the application services
Crosscheck with alert log whether DB has been shutdown completely
Run the following OS command to confirm/crosscheck that no DB process running , if
any DB processes running , terminate them manually
ps -ef | grep pmon
Copy all the datafiles from Source to Target
On Target System, at mount stage on Database, run the following SQL :
set pagesize 20000
set linesize 180
set pause off
set serveroutput on
set feedback on
set echo on
set numformat 999999999999999
Spool recovery_info.txt
select substr(name, 1, 50), status from v$datafile;
select substr(name,1,40), recover, fuzzy, checkpoint_change# from
v$datafile_header;
select GROUP#,substr(member,1,60) from v$logfile;
select * from v$recover_file;
select distinct status from v$backup;
select hxfil FILENUMBER,fhsta STATUS,fhscn SCN,fhrba_Seq SEQUENCE from x$kcvfh;
select distinct (fuzzy) from v$datafile_header;
select HXFIL File_num,substr(HXFNM,1,40) File_name,FHTYP Type,HXERR Validity, FHSCN
SCN, FHTNM
TABLESPACE_NAME,FHSTA status ,FHRBA_SEQ Sequence from X$KCVFH;
spool off
exit
Points to consider:
All Datafiles STATUS should be showing ONLINE , if any datafile is showing RECOVER,
then you need to recover at source and redo the copy again
The column checkpoint_change# of each datafiles different from the
checkpoint_change# of all the other datafiles. For a cold backup, all the
checkpoint_change# of the datafiles should be the same
v$recover_file should not show any datafiles need to be recovered
Check each datafile status and make sure that none of datafiles shows "RECOVER"
Make sure that the FHSTA column does not show status "4", if so, status 4 means the
datafile is online fuzzy, i.e, the datafile was backed when the database as open
Run the clone configuration command:
cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
perl adcfgclone.pl dbTier
ISSUE
Troubleshooting DB recovery issues while running adcfgclone
This section shows how to troubleshoot the following error:
In target system, mount the database and run the following SQL :
set pagesize 20000
set linesize 180
set pause off
set serveroutput on
set feedback on
set echo on
set numformat 999999999999999
Spool recovery_info.txt
select substr(name, 1, 50), status from v$datafile;
select substr(name,1,40), recover, fuzzy, checkpoint_change# from
v$datafile_header;
select GROUP#,substr(member,1,60) from v$logfile;
select * from v$recover_file;
select distinct status from v$backup;
select hxfil FILENUMBER,fhsta STATUS,fhscn SCN,fhrba_Seq SEQUENCE from x$kcvfh;
select distinct (fuzzy) from v$datafile_header;
select HXFIL File_num,substr(HXFNM,1,40) File_name,FHTYP Type,HXERR Validity, FHSCN
SCN, FHTNM
TABLESPACE_NAME,FHSTA status ,FHRBA_SEQ Sequence from X$KCVFH;
spool off
exit
For a cold backup, all the checkpoint_change# of the datafiles should be the same.
This can be caused by a failure with the OUI native clone process. If an
ORACLE_HOME is already registered in the Global inventory, whether the purpose is
to refresh an existing Target instance, or the original instance was removed from
the file system (but not from the inventory), then OUI native cloning will assume
the instance is already registered and no further configuration is required. This
will result in an incomplete target system with files and links still referencing
the source instance. This can also occur for any failure of runInstaller during
cloning.
<RDBMS $ORACLE_HOME>/appsutil/log/$CONTEXT_NAME/ohclone.log
$INST_TOP/admin/log/ohclone.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
The following extract from ohclone.log shows a typical example of this problem:-
Solution 1 :
Use this if the Global Inventory is shared amongst multiple instances :
Solution 2 :
Use this if the Global Inventory is local to this ORACLE_HOME, i.e oraInst.loc
"inventory_loc" points to :
inventory_loc=<RDBMS $ORACLE_HOME>/admin/oui/$CONTEXT_NAME/oraInventory
or (for the Applications Tier)
inventory_loc=<INST_TOP>/admin/oraInventory
Rename the global inventory :
cd RDBMS $ORACLE_HOME>/admin/oui/$CONTEXT_NAME
mv oraInventory oraInventory.bkp
or (for the Applications Tier)
cd <INST_TOP>/admin
mv oraInventory oraInventory.bkp
Create an empty directory and set permissions :
mkdir oraInventory
chmod 770 oraInventory
Rerun the ouicli.pl scripts to register the ORACLE_HOME (repeat for all RDBMS,
Tools and Web each if required) :
cd ORACLE_HOME/appsutil/clone/
./ouicli.pl
- Cloning fails at 50% with RC-00118 or RC-50004 after creating control files
The last connection test after the control files are created shows the following
error in ApplyDBTier_xxxxxx.log:
StackTrace:
java.lang.Exception: Control file creation failed
at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:635)
at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccesso
rImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructo
rAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Thread.java:595
Cause:
This is reported in Bug :12598630 - R12 CLONING FAILS AT 50% DUE TO LISTENER.ORA
CONTAINING SOURCE NAME
Workaround:
The Workaround is to make the change on the temporary stage context file prior to
the file copy:
- adcfgclone.pl appsTier fails with "ERROR: OUI files not found at their expected
location"
This error was raised because Rapid Clone only prompted for base directory and
places the $APPL_TOP, $ORACLE_HOME and $IAS_ORACLE_HOME into an "apps" sub-
directory. If the "apps" sub-directory does not exist on the Target instance, this
error is raised.
$INST_TOP>/apps/$CONTEXT_NAME/admin/log/ApplyAppsTier_<timestamp>.log
script returned:
****************************************************
Timed out( 3750000 ): Interrupted Exception
Before cloning, you must have an oraInst.loc pointing to any directory location
where the user has access (ie: /u01/TEST/oraInventory). If not using <default
location>/oraInst.loc (if that file does not exist), then $OH/oraInst.loc will be
used instead. If that is the case, $OH/oraInst.loc must point to a location inside
that ORACLE_HOME.
Current product is AD
adrelink: Warning: not setting LADLIB
since <$APPL_TOP>/ad/12.0.0/lib/libad.a does not exist
or cannot be read
...
...
...
Current product is FND
adrelink: Warning: not setting LFNDLIB
since <$APPL_TOP>/fnd/12.0.0/lib/libfnd.a does not exist
or cannot be read.
This is detailed in Note:564721.1 and fixed via Patch 6679053
ERROR:
/ 3% completed
RC-50004: Fatal: Error occurred in ApplyAppsTechStack:
RC-50013: Fatal: Failed to instantiate driver <10.1.2
ORACLE_HOME>/appsutil/driver/regclone.drv
script returned:
****************************************************
Timed out( 3750000 ): Interrupted Exception
- Application Tier clone fails with RC-50004 when Database Tier is in different
domain
StackTrace -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccesso
rImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructo
rAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoSuchMethodError:
oracle.apps.ad.autoconfig.InstantiateFile.writeReport(Ljava/util/Vector;Loracl
e/apps/ad/util/LogFile;I)V
at
oracle.apps.ad.clone.ApplyApplTop.checkAutoConfigErr(ApplyApplTop.java:590)
at
oracle.apps.ad.clone.ApplyApplTop.runAutoConfig(ApplyApplTop.java:558)
at oracle.apps.ad.clone.ApplyApplTop.doConf(ApplyApplTop.java:339)
at oracle.apps.ad.clone.ApplyApplTop.doApply(ApplyApplTop.java:382)
at oracle.apps.ad.clone.ApplyApplTop.<init>(ApplyApplTop.java:267)
at oracle.apps.ad.clone.ApplyAppsTier.<init>(ApplyAppsTier.java:105)
... 6 more
During the Clone Context stage, there is no prompt for the Database domain, causing
database connections errors during the AppsTier configuration:-
Provide the values required for creation of the new APPL_TOP Context file.
Workaround:
- Rerun "perl adcfgclone.pl appsTier" and enter the fully qualified hostname.domain
when prompted for the Target Database hostname:
Example:
ERROR
Failed linking target libnmarl on <Time>...
<$ORACLE_HOME>/sysman/lib
cc -o <$ORACLE_HOME>/sysman/lib/emagent
-L<$ORACLE_HOME>/lib32/
-L<$ORACLE_HOME>/sysman/lib32/
-L<$ORACLE_HOME>/lib32/stubs/ `cat
<$ORACLE_HOME>/lib32/sysliblist` -lm `cat
<$ORACLE_HOME>/lib32/sysliblist` -lm -lpthread -lrt -lpthread -Wl,-E
+DD64 <$ORACLE_HOME>/sysman/lib32/s0nmem.o -lclntsh
-L<$ORACLE_HOME>/lib32
-L<$ORACLE_HOME>/sysman/lib32/ -lnmemso -lcore11
-L/app/oracle/EBSCRP2A/db/tech_st/11.1.0/jdk/jre/lib/IA64W/hotspot
-L/app/oracle/EBSCRP2A/db/tech_st/11.1.0/jdk/jre/lib/IA64W -ljava -ljvm -lverify
`cat
<$ORACLE_HOME>/lib32/sysliblist` -lm -lpthread -lrt -lpthread -lnsl -lm
`cat <$ORACLE_HOME>/lib32/sysliblist` `cat
<$ORACLE_HOME>/lib32/sysliblist` -lm -lpthread -lrt
cat: Cannot open <$ORACLE_HOME>/lib32/sysliblist: No such file or directory
cat: Cannot open <$ORACLE_HOME>/lib32/sysliblist: No such file or directory
cat: Cannot open <$ORACLE_HOME>/lib32/sysliblist: No such file or directory
cat: Cannot open <$ORACLE_HOME>/lib32/sysliblist: No such file or directory
cat: Cannot open <$ORACLE_HOME>/lib32/sysliblist: No such file or directory
For Rapid Clone, this was raised in Bug 7602049 and internal Bug:7035076
Solution
Apply Patch:7207440 TXK - 12.0.4 Consolidated Patch 1 to the Source instance and
redo the cloning steps.
This patch is already included in 12.0.6
- CloneContext.log shows "Hot Clone Mode Detected" in when not using "HotClone"
An extract from the log may show:
PROMPT :
Target System Archive Log Directory [<ORACLE_BASE>/db/apps_st/data/archive]
ANSWER :
<ORACLE_BASE>/db/apps_st/data/archive
REFERENCES
BUG:12598630 - R12.1 ONE-OFF FOR S_DB_LISTENER BUG 12362010
BUG:7602049 - 'PERL ADCFGCLONE.PL DBTIER' FAILS ON DB TIER ON HP UX ITANIUM FOR DB
11.1.0.6
-----------------------------------------------------------------------------------
------------------
ERROR: Failed to configure the target system – Failed to enable EBS_LOGON trigger
The clone procedure for EBS R12.2 is quite different when compared with EBS R12.1.
This post covers very generic issues we may encounter while configuring the target
server as a part of clone Process.
ERROR : 1
/u01/appl_PROD/PROD/fs2/inst/apps/PRODERP_erpnode3/appl/admin/PRODERP_erpnode3.xml
Enter the APPS password : Enter the APPS password : Error while executing
/u01/appl_PROD/PROD/fs1/EBSapps/comn/clone/bin/alter_ebs_logon_trigger.sql
#############################################################
Version:
RCloneApplyAppstier.java : 120.0.12020000.4
#############################################################
Solution:
We must remove the directory FMW_Home. If the directory is empty also we should
remove it, else rapidclone will exit out with status Error.
ERROR : 2
The error message is almost identical to the previous error in the clone
configuration output.
/u01/appl_PROD/PROD/fs2/inst/apps/PRODERP_erpnode3/appl/admin/PRODERP_erpnode3.xml
LogFile located at
/u01/appl_PROD/PROD/fs1/inst/apps/PRODERP_erpnode3/admin/log/clone/run/
RCloneApplyAppstier_08111108.log
#############################################################
Version:
RCloneApplyAppstier.java : 120.0.12020000.4
#############################################################
[root@erpnode3 inst]#
Solution:
usually we will recieve this error when there are no proper privileges granted on
oraInventory (or) the oraInventory is not empty. To avoid this issue we should
verify “oraInventory” directory has appropriate privileges and its empty.
inventory_loc=/u01/ora_prod/oraInventory
inst_group=dba
[root@erpnode3 u01]#
During the R12.2 cloning process adcfgclone fails with below error message:
ERROR : 3
/u01/oracle/R122/fs1/FMW_Home/oracle_common
/u01/oracle/R122/fs1/FMW_Home/webtier
/u01/oracle/R122/fs1/FMW_Home/Oracle_EBS-app1
Solution:
Make sure that the above Oracle Homes are unregistered from the global inventory.
we should always clean the oraInventory directory by using the following commands.
cd $ORACLE_HOME/oui/bin (/u01/oracle/R122/fs1/EBSapps/10.1.2/oui/bin)
https://www.toadworld.com/platforms/oracle/b/weblog/archive/2016/08/11/rror-failed-
to-configure-the-target-system-failed-to-enable-ebs-logon-trigger