Script Name    : txkADOPPreparePhaseSynchronize.pl
Started        : Mon Sep  3 10:08:44 IST 2018


-----------
Values used
-----------
Context File       : /app/apps/fs1/inst/apps/NODPROD_noidaapp/appl/admin/NODPROD_noidaapp.xml
PATCH Context File : /app/apps/fs2/inst/apps/NODPROD_noidaapp/appl/admin/NODPROD_noidaapp.xml
OUT Directory      : /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp
Patch Top          : 
Mode               : create
Console Logging    : off

==============================
Creating new patch appl top...
==============================


==============================
Inside createPatchApplTop()...
==============================

ENVIRONMENT is already SET....

==========================
Validating context file...
==========================


==================
Validating mode...
==================

Mode = create

======================================
Validating APPS schema credentials...
======================================


=====================================
Validating SYSTEM user credentials...
=====================================


=============================
Validating console log key...
=============================

Console = off

==============================
Inside createPatchCtxFile()...
==============================

PATCH context file exists

=============================
Inside startCloneProcess()...
=============================


============================
Inside checkCloneStatus()...
============================


==========================
Inside getCloneStatus()...
==========================


=============================
Inside getCloneSessionID()...
=============================

SQL Command: SELECT MAX(adop_session_id)||',' FROM ad_adop_session_patches WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp'
clone_session_id = 88
SQL Command: SELECT clone_status||',' FROM ad_adop_session_patches WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp' AND adop_session_id = 88
clone_status = NOT-STARTED
clone_status_from_caller = 1
clone_status_from_db = 0
Removing the file: /app/apps/fs1/EBSapps/comn/adopclone_noidaapp/clonePhaseTracking.xml

==========================
Inside setCloneStatus()...
==========================

Generating SQL file: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_STARTED.sql
SQL Command: UPDATE ad_adop_session_patches SET clone_status = 'STARTED' WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp' AND adop_session_id = 88;
Execute SYSTEM command : sqlplus *********** @/app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_STARTED.sql 
EXIT STATUS: 1
SQL execution went through successfully.
LOG FILE: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_STARTED.out.

===========================
Inside runFSCloneStage()...
===========================


============================
Inside checkCloneStatus()...
============================


==========================
Inside getCloneStatus()...
==========================

SQL Command: SELECT clone_status||',' FROM ad_adop_session_patches WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp' AND adop_session_id = 88
clone_status = STARTED
clone_status_from_caller = 2
clone_status_from_db = 1
Executing SYSTEM command: perl /app/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/app/apps/fs1/EBSapps/comn/util/jdk32 mode=fsclonestage stage=/app/apps/fs1/EBSapps/comn/adopclone_noidaapp component=appsTier appctx=/app/apps/fs1/inst/apps/NODPROD_noidaapp/appl/admin/NODPROD_noidaapp.xml appctxtg=/app/apps/fs2/inst/apps/NODPROD_noidaapp/appl/admin/NODPROD_noidaapp.xml
EXIT STATUS: 0

======================================
Inside copyCloneLogsToFSNE()...
======================================

Creating the directory: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/fsclone_stage

Copying the directory
---------------------
SOURCE : /app/apps/fs1/inst/apps/NODPROD_noidaapp/admin/log/clone
TARGET : /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/fsclone_stage

/app/apps/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl went through successfully.
LOG DIRECTORY: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/fsclone_stage.

==========================
Inside setCloneStatus()...
==========================

Generating SQL file: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_FSCLONESTAGE-DONE.sql
SQL Command: UPDATE ad_adop_session_patches SET clone_status = 'FSCLONESTAGE-DONE' WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp' AND adop_session_id = 88;
Execute SYSTEM command : sqlplus *********** @/app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_FSCLONESTAGE-DONE.sql 
EXIT STATUS: 1
SQL execution went through successfully.
LOG FILE: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/88_FSCLONESTAGE-DONE.out.

=================================
Inside deRegisterOracleHomes()...
=================================


============================
Inside checkCloneStatus()...
============================


==========================
Inside getCloneStatus()...
==========================

SQL Command: SELECT clone_status||',' FROM ad_adop_session_patches WHERE status in ('R','F','N') AND bug_number = 'CLONE' AND node_name = 'noidaapp' AND adop_session_id = 88
clone_status = FSCLONESTAGE-DONE
clone_status_from_caller = 3
clone_status_from_db = 2

==============================
Inside backupInventoryXML()...
==============================


======================
Inside backupFile()...
======================

Taking back up of the file
--------------------------
ACTUAL FILE     : /etc/oraInventory/ContentsXML/inventory.xml
BACKUP LOCATION : /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/inventory.xml
Directory /app/apps/fs2/FMW_Home/Oracle_EBS-app1 already exists.
Execute SYSTEM command : /app/apps/fs2/FMW_Home/Oracle_EBS-app1/oui/bin/detachHome.sh -jreLoc /app/apps/fs1/FMW_Home/Oracle_EBS-app1/jdk 

==============================
Inside searchFileContents()...
==============================

log_file: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/Oracle_EBS-app1_detachHome.out
pattern: SUCCESSFUL

=============================
Could not find the pattern...
=============================

EXIT STATUS: 0
***** W A R N I N G *****
/app/apps/fs2/FMW_Home/Oracle_EBS-app1/oui/bin/detachHome.sh -jreLoc /app/apps/fs1/FMW_Home/Oracle_EBS-app1/jdk returned FAILURE status.
Either ORACLE_HOME=/app/apps/fs2/FMW_Home/Oracle_EBS-app1 is already detached or issue with inventory.
Proceeding further. Issues will be reported when actual cloning starts.
LOG FILE: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/Oracle_EBS-app1_detachHome.out.
Directory /app/apps/fs2/FMW_Home/webtier already exists.
Execute SYSTEM command : /app/apps/fs2/FMW_Home/webtier/oui/bin/detachHome.sh 

==============================
Inside searchFileContents()...
==============================

log_file: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/webtier_detachHome.out
pattern: SUCCESSFUL

=============================
Could not find the pattern...
=============================

EXIT STATUS: 0
***** W A R N I N G *****
/app/apps/fs2/FMW_Home/webtier/oui/bin/detachHome.sh returned FAILURE status.
Either ORACLE_HOME=/app/apps/fs2/FMW_Home/webtier is already detached or issue with inventory.
Proceeding further. Issues will be reported when actual cloning starts.
LOG FILE: /app/apps/fs_ne/EBSapps/log/adop/88/fs_clone_20180903_100559/NODPROD_noidaapp/TXK_SYNC_create/webtier_detachHome.out.
Directory /app/apps/fs2/FMW_Home/oracle_common already exists.
Execute SYSTEM command : /app/apps/fs2/FMW_Home/oracle_common/oui/bin/detachHome.sh 
