Re: OPatchAuto failed

  • From: Sameer Choudhari <sameer.choudhari@xxxxxxxxxxxxxxx>
  • To: dimensional.dba@xxxxxxxxxxx
  • Date: Fri, 4 Oct 2019 19:33:02 +1000

Tried executing opatchauto  but failed. Attached trace text file for your
reference. thanks

[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# id
uid=0(root) gid=0(root) groups=0(root)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# echo $ORACLE_HOME
/u01/g01/grid/12.1
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# env |grep PATH
MANPATH=:/opt/puppetlabs/puppet/share/man
PATH=/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/u01/d01/db/12.1.0/bin:/u01/d01/db/12.1.0/OPatch:/u01/g01/grid/12.1/bin
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# export PATH=$PATH:$ORACLE_HOME/OPatch
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# env |grep PATH
MANPATH=:/opt/puppetlabs/puppet/share/man
PATH=/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/u01/d01/db/12.1.0/bin:/u01/d01/db/12.1.0/OPatch:/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/OPatch
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# ls -l $ORACLE_HOME/OPatch/opatchauto
-rwxr-x---. 1 oracle dba 1442 Apr 12 17:57
/u01/g01/grid/12.1/OPatch/opatchauto
[root@uat-db-002 oracle]# $ORACLE_HOME/OPatch/opatchauto apply
/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629 -analyze

OPatchauto session is initiated at Fri Oct  4 19:12:27 2019

System initialization log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchautodb/systemconfig2019-10-04_07-12-33PM.log.

Session log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/opatchauto2019-10-04_07-13-17PM.log
The id for this session is 895B

Executing OPatch prereq operations to verify patch applicability on home
/u01/d01/db/12.1.0

Executing OPatch prereq operations to verify patch applicability on home
/u01/g01/grid/12.1
Patch applicability verified successfully on home /u01/d01/db/12.1.0

Patch applicability verified successfully on home /u01/g01/grid/12.1


Verifying SQL patch applicability on home /u01/d01/db/12.1.0
SQL patch applicability verified successfully on home /u01/d01/db/12.1.0

OPatchAuto successful.

--------------------------------Summary--------------------------------

Analysis for applying patches has completed successfully:

Host:uat-db-002
RAC Home:/u01/d01/db/12.1.0
Version:12.1.0.2.0


==Following patches were SKIPPED:

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/26983807
Reason: This patch is not applicable to this specified target type -
"rac_database"

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29423125
Reason: This patch is not applicable to this specified target type -
"rac_database"


==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29496791
Log:
/u01/d01/db/12.1.0/cfgtoollogs/opatchauto/core/opatch/opatch2019-10-04_19-13-46PM_1.log

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29509318
Log:
/u01/d01/db/12.1.0/cfgtoollogs/opatchauto/core/opatch/opatch2019-10-04_19-13-46PM_1.log


Host:uat-db-002
CRS Home:/u01/g01/grid/12.1
Version:12.1.0.2.0


==Following patches were SKIPPED:

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/26983807
Reason: This patch is already been applied, so not going to apply again.


==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29423125
Log:
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/core/opatch/opatch2019-10-04_19-13-46PM_1.log

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29496791
Log:
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/core/opatch/opatch2019-10-04_19-13-46PM_1.log

Patch: /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629/29509318
Log:
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/core/opatch/opatch2019-10-04_19-13-46PM_1.log



OPatchauto session completed at Fri Oct  4 19:18:17 2019
Time taken to complete the session 5 minutes, 50 seconds
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# ls -lrt
/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629
total 184
drwxr-xr-x.  5 oracle dba   4096 Jul  1 16:04 29423125
drwxr-xr-x. 27 oracle dba   4096 Jul  1 16:09 29496791
drwxr-xr-x.  5 oracle dba   4096 Jul  1 16:10 29509318
drwxr-xr-x.  2 oracle dba   4096 Jul  1 16:10 automation
drwxr-xr-x.  4 oracle dba   4096 Jul  1 16:10 26983807
-rw-r--r--.  1 oracle dba      0 Jul  1 16:10 README.txt
-rw-r--r--.  1 oracle dba 155859 Jul  1 16:33 README.html
-rw-rw-r--.  1 oracle dba   4987 Jul  1 16:59 bundle.xml
[root@uat-db-002 oracle]# cd  /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255
[root@uat-db-002 29699255]#
[root@uat-db-002 29699255]# ls -l $ORACLE_HOME/OPatch/opatchauto
-rwxr-x---. 1 oracle dba 1442 Apr 12 17:57
/u01/g01/grid/12.1/OPatch/opatchauto
[root@uat-db-002 29699255]#
[root@uat-db-002 29699255]# strace -o /tmp/opatchauto.txt
$ORACLE_HOME/OPatch/opatchauto apply
/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629

OPatchauto session is initiated at Fri Oct  4 19:27:30 2019

System initialization log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchautodb/systemconfig2019-10-04_07-27-36PM.log.

Session log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/opatchauto2019-10-04_07-28-19PM.log
The id for this session is B6B8
Remote command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverException:
Execution failed for host uat-db-001 due to : java.lang.Exception: Remote
command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
OPatchAuto failed.

OPatchauto session completed at Fri Oct  4 19:28:43 2019
Time taken to complete the session 1 minute, 13 seconds

 opatchauto failed with error code 42
[root@uat-db-002 29699255]#
[root@uat-db-002 29699255]#







Cheers,
Sameer


On Fri, 4 Oct 2019 at 19:16, <dimensional.dba@xxxxxxxxxxx> wrote:

You have two different homes in your path


PATH=/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/u01/d01/db/12.1.0/bin:/u01/d01/db/12.1.0/OPatch:/u01/g01/grid/12.1/bin

I don’t see the

/u01/g01/grid/12.1/OPatch

In that path.



I would reset your path as



Export
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/OPatch



Then try it again.



If it still doesn’t would I would run (Since you already set OPatch in the
path then you do not need to fully path opatch in your command run.



strace -o /tmp/opatchauto.txt  opatchauto apply
/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629



*From:* oracle-l-bounce@xxxxxxxxxxxxx <oracle-l-bounce@xxxxxxxxxxxxx> *On
Behalf Of *Sameer Choudhari
*Sent:* Friday, October 4, 2019 2:01 AM
*To:* dimensional.dba@xxxxxxxxxxx
*Cc:* Oracle-L@xxxxxxxxxxxxx
*Subject:* Re: OPatchAuto failed




Was the original $ORACLE_HOME = /u01/g01/grid/12.1/OPatch    ------> YES. 
OPatch
version is same on each nodes and each homes




[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# echo $ORACLE_HOME
/u01/g01/grid/12.1
[root@uat-db-002 oracle]# env |grep PATH
MANPATH=:/opt/puppetlabs/puppet/share/man

PATH=/u01/g01/grid/12.1/bin:/u01/g01/grid/12.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/u01/d01/db/12.1.0/bin:/u01/d01/db/12.1.0/OPatch:/u01/g01/grid/12.1/bin
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# echo $ORACLE_HOME/OPatch
/u01/g01/grid/12.1/OPatch
[root@uat-db-002 oracle]# /u01/g01/grid/12.1/OPatch/opatch version
OPatch Version: 12.2.0.1.17

OPatch succeeded.
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# cd  /home/oracle/
[root@uat-db-002 oracle]# . ./UATEBS2_uat-db-002.env
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]#
[root@uat-db-002 oracle]# echo $ORACLE_HOME/OPatch
/u01/d01/db/12.1.0/OPatch
[root@uat-db-002 oracle]# /u01/d01/db/12.1.0/OPatch/opatch version
OPatch Version: 12.2.0.1.17

OPatch succeeded.
[root@uat-db-002 oracle]#





Cheers,

Sameer





On Fri, 4 Oct 2019 at 18:51, <dimensional.dba@xxxxxxxxxxx> wrote:

You set the PATH twice

[root@uat-db-002 .ssh]# export PATH=$PATH:$ORACLE_HOME/OPatch

[root@uat-db-002 .ssh]# export PATH=$PATH:/u01/g01/grid/12.1/OPatch

Was the original $ORACLE_HOME = /u01/g01/grid/12.1/OPatch or something
else



Run

Env | grep PATH

Does the path have different paths to OPatch?

Whatever is the first one in the PATH variable will be used first.



Is the version of opatchauto/opatch the same on each node and the required
version?









*From:* oracle-l-bounce@xxxxxxxxxxxxx <oracle-l-bounce@xxxxxxxxxxxxx> *On
Behalf Of *Sameer Choudhari
*Sent:* Thursday, October 3, 2019 8:41 PM
*To:* Oracle-L@xxxxxxxxxxxxx
*Subject:* OPatchAuto failed



Team



I am applying JULY 2019 Proactive Bunble Patch on our UAT env.



Env :



DB  : 12.1.0.2.0  (2 node rac)

OS  : Oracle Linux 7



I am able to patch node-1 i.e. *uat-db-001 *without any issue but got
below error while patching node -2 i.e. uat-db-002 .





[root@uat-db-002 .ssh]# export PATH=$PATH:$ORACLE_HOME/OPatch

[root@uat-db-002 .ssh]# export PATH=$PATH:/u01/g01/grid/12.1/OPatch
[root@uat-db-002 .ssh]# cd  /u01/stage/COMBO_JVM_DBBP_JUL2019/29699255
[root@uat-db-002 29699255]# $ORACLE_HOME/OPatch/opatchauto apply
/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255/29698629

OPatchauto session is initiated at Fri Oct  4 13:13:54 2019

System initialization log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchautodb/systemconfig2019-10-04_01-14-00PM.log.

Session log file is
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/opatchauto2019-10-04_01-14-44PM.log
The id for this session is LBTP
Remote command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverException:
Execution failed for host uat-db-001 due to : java.lang.Exception: Remote
command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
OPatchAuto failed.

OPatchauto session completed at Fri Oct  4 13:15:08 2019
Time taken to complete the session 1 minute, 14 seconds

 opatchauto failed with error code 42
[root@uat-db-002 29699255]#



Checked MOS and Google but no help. I have shared partial session log
below i.e.
/u01/g01/grid/12.1/cfgtoollogs/opatchauto/opatchauto2019-10-04_01-14-44PM.log 
.
Could you please let me know what could be the issue.







Oct 04, 2019 1:15:06 PM
com.oracle.cie.remote.linux.LinuxCommandExecutionHelper getSSHCmd
INFO: SSH path::/bin/ssh
Oct 04, 2019 1:15:06 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: Command execution command: /bin/ssh -o FallBackToRsh=no -o
PasswordAuthentication=no -o StrictHostKeyChecking=no -o
NumberOfPasswordPrompts=0 uat-db-001 ls /u01/g01/grid/12.1 > /dev/null
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: Command execution return code: 0
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: command execution message:
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: command executon failure message:
*** Authorized uses only. All activity may be monitored and reported. ***


Oct 04, 2019 1:15:07 PM
com.oracle.helper.remote.ssh.SSHEquivalenceCommandExecutor executeAndNotify
INFO: Executing command on host uat-db-001 :
/u01/g01/grid/12.1//perl/bin/perl
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl
-GRID_HOME=/u01/g01/grid/12.1 -OBJECTLOC=/u01/g01/grid/
12.1//cfgtoollogs/opatchautodb/hostdata.obj -CRS_ACTION=check
-CLUSTERNODES=uat-db-001,uat-db-002
-JVM_HANDLER=oracle/dbsysmodel/driver/sdk/productdriver/remote/RemoteOperationHelper
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxCommandExecutionHelper getSSHCmd
INFO: SSH path::/bin/ssh
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: Command execution command: /bin/ssh -o FallBackToRsh=no -o
PasswordAuthentication=no -o StrictHostKeyChecking=no -o
NumberOfPasswordPrompts=0 uat-db-001 /u01/g01/grid/12.1//perl/bin/perl
/u01/g0
1/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl
-GRID_HOME=/u01/g01/grid/12.1
-OBJECTLOC=/u01/g01/grid/12.1//cfgtoollogs/opatchautodb/hostdata.obj
-CRS_ACTION=check -CLUSTERNODES=uat-db-001
,uat-db-002
-JVM_HANDLER=oracle/dbsysmodel/driver/sdk/productdriver/remote/RemoteOperationHelper
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: Command execution return code: 2
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: command execution message:
Oct 04, 2019 1:15:07 PM
com.oracle.cie.remote.linux.LinuxSSHUserEquivalenceConnHandlerImpl
executeCommand
INFO: command executon failure message:
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.

Oct 04, 2019 1:15:07 PM
com.oracle.helper.remote.ssh.SSHEquivalenceCommandExecutor executeAndNotify
WARNING: Error while executing command "/u01/g01/grid/12.1//perl/bin/perl
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl
-GRID_HOME=/u01/g01/grid/12.1 -OBJECTLOC=/u01/g01/grid/12.1/
/cfgtoollogs/opatchautodb/hostdata.obj -CRS_ACTION=check
-CLUSTERNODES=uat-db-001,uat-db-002
-JVM_HANDLER=oracle/dbsysmodel/driver/sdk/productdriver/remote/RemoteOperationHelper
" on host uat-db-001 :
 Remote command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
Oct 04, 2019 1:15:07 PM
com.oracle.helper.remote.ssh.SSHEquivalenceCommandExecutor executeAndNotify
WARNING: Exception while executing command "" on host uat-db-001 : Remote
command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
Oct 04, 2019 1:15:07 PM
com.oracle.helper.remote.ssh.SSHEquivalenceThreadHandler$SSHEquiCommandListener
notifyResult
INFO: Received command execution result for host uat-db-001
Oct 04, 2019 1:15:07 PM
oracle.dbsysmodel.driver.sdk.productdriver.remote.HostDataCollector
notifyResult
INFO: Consolidating result from host : uat-db-001
Oct 04, 2019 1:15:07 PM
oracle.dbsysmodel.driver.sdk.productdriver.remote.HostDataCollector
notifyResult
INFO: Execution failed for host uat-db-001 due to : Remote command
execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
Oct 04, 2019 1:15:07 PM
oracle.dbsysmodel.driver.sdk.productdriver.remote.HostDataCollector
performRemoteOperForActions
INFO: Remote node list for home /u01/g01/grid/12.1 : []

2019-10-04 13:15:07,859 INFO  [1]
oracle.dbsysmodel.driver.sdk.util.OsysUtility - Output message :::
2019-10-04 13:15:07,870 INFO  [1]
com.oracle.cie.common.util.reporting.CommonReporter - Reporting console
output : Message{id='null', message='Remote command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output: '}
2019-10-04 13:15:07,873 INFO  [1]
com.oracle.glcm.patch.auto.db.integration.model.productsupport.DBBaseProductSupport
- Space available after session: 33580 MB
2019-10-04 13:15:07,996 SEVERE [1] com.oracle.glcm.patch.auto.OPatchAuto -
OPatchAuto failed.
com.oracle.glcm.patch.auto.OPatchAutoException:
oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverException:
Execution failed for host uat-db-001 due to : java.lang.Exception: Remote
command exe
cution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
        at
com.oracle.glcm.patch.auto.OPatchAuto.prepareOrchestration(OPatchAuto.java:775)
        at
com.oracle.glcm.patch.auto.OPatchAuto.orchestrate(OPatchAuto.java:397)
        at
com.oracle.glcm.patch.auto.OPatchAuto.orchestrate(OPatchAuto.java:344)
        at com.oracle.glcm.patch.auto.OPatchAuto.main(OPatchAuto.java:212)
Caused by:
oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverException:
Execution failed for host uat-db-001 due to : java.lang.Exception: Remote
command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output:
        at
oracle.dbsysmodel.driver.sdk.productdriver.OUIDriver.checkForException(OUIDriver.java:846)
        at
oracle.dbsysmodel.driver.sdk.productdriver.OUIDriver.handleExceptions(OUIDriver.java:832)
        at
oracle.dbsysmodel.driver.sdk.productdriver.OUIDriver.fetchRemoteHostData(OUIDriver.java:791)
        at
oracle.dbsysmodel.driver.sdk.productdriver.OUIDriver.fetchRemoteNodeData(OUIDriver.java:690)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.DBPatchingHelper.fetchPreInitiatedNodes(DBPatchingHelper.java:899)
        at
com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation.isFirstNodeOfPatching(RemoteGIStatusValidation.java:274)
        at
com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation.validate(RemoteGIStatusValidation.java:185)
        at
com.oracle.glcm.patch.auto.db.product.validation.DBValidationController.invoke(DBValidationController.java:91)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder.validate(CRSTopologyBuilder.java:367)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.AbstractTopologyBuilder.buildTopology(AbstractTopologyBuilder.java:117)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder.buildTopology(CRSTopologyBuilder.java:112)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.DBBaseProductSupport.loadTopology(DBBaseProductSupport.java:192)
        at
com.oracle.glcm.patch.auto.db.integration.model.productsupport.DBProductSupport.loadTopology(DBProductSupport.java:69)
        at
com.oracle.glcm.patch.auto.OPatchAuto.loadTopology(OPatchAuto.java:1732)
        at
com.oracle.glcm.patch.auto.OPatchAuto.prepareOrchestration(OPatchAuto.java:730)
        ... 3 more
2019-10-04 13:15:07,999 INFO  [1]
com.oracle.cie.common.util.reporting.CommonReporter - Reporting console
output : Message{id='null',
message='oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverE
xception: Execution failed for host uat-db-001 due to :
java.lang.Exception: Remote command execution failed due to
*** Authorized uses only. All activity may be monitored and reported. ***

Can't locate Cwd.pm in @INC (@INC contains:
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
/u01/g01/grid/12.1/perl/lib/site_perl/5.14.1
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_6
4-linux-thread-multi /u01/g01/grid/12.1/perl/lib/5.14.1 .) at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
BEGIN failed--compilation aborted at
/u01/g01/grid/12.1/OPatch/auto/database/bin/RemoteHostExecutor.pl line 2.
 Command output: '}
2019-10-04 13:15:08,003 INFO  [1]
com.oracle.cie.common.util.reporting.CommonReporter - Reporting console
output : Message{id='null', message='OPatchAuto failed.'}
[root@uat-db-002 29699255]#







So far , I tried



For "Can't locate Cwd.pm in @INC"  , I checked it's there. Also, checked
the permission for /u01/g01/grid/12.1/cfgtoollogs/opatchautodb  and its
owned by grid home user.



[root@uat-db-002 29699255]# find / -name Cwd.pm
/usr/lib64/perl5/vendor_perl/Cwd.pm
/u01/g01/grid/12.1/perl/lib/5.14.1/x86_64-linux-thread-multi/Cwd.pm
/u01/g01/grid/12.1/perl/lib/5.14.1/Cwd.pm
/u01/d01/db/12.1.0/perl/lib/5.14.1/x86_64-linux-thread-multi/Cwd.pm

/u01/em_agent/agent_13.2.0.0.0/perl/lib/5.14.4/x86_64-linux-thread-multi/Cwd.pm
[root@uat-db-002 29699255]#



Cheers

Sameer




This is an email from Ezidebit Pty Ltd. The email and any attachments may
be confidential, legally privileged and/or subject to copyright. If you are
not the intended recipient, you must not disclose or use the information
contained in this e-mail. If you have received this email in error, please
notify us immediately and delete the email and all copies. We do not
guarantee that this email and any attachments are free from virus or other
errors. We will not be responsible for loss or damage resulting (either
directly or indirectly) from any such virus or error. We will only be
responsible for a change to a document if we made the change. The content
of and opinions expressed in non-business emails are not that of Ezidebit
Pty Ltd and are that of the sender.


This is an email from Ezidebit Pty Ltd. The email and any attachments may
be confidential, legally privileged and/or subject to copyright. If you are
not the intended recipient, you must not disclose or use the information
contained in this e-mail. If you have received this email in error, please
notify us immediately and delete the email and all copies. We do not
guarantee that this email and any attachments are free from virus or other
errors. We will not be responsible for loss or damage resulting (either
directly or indirectly) from any such virus or error. We will only be
responsible for a change to a document if we made the change. The content
of and opinions expressed in non-business emails are not that of Ezidebit
Pty Ltd and are that of the sender.


-- 
This is an email from Ezidebit Pty Ltd. The email and any attachments may 
be confidential, legally privileged and/or subject to copyright. If you are 
not the intended recipient, you must not disclose or use the information 
contained in this e-mail. If you have received this email in error, please 
notify us immediately and delete the email and all copies. We do not 
guarantee that this email and any attachments are free from virus or other 
errors. We will not be responsible for loss or damage resulting (either 
directly or indirectly) from any such virus or error. We will only be 
responsible for a change to a document if we made the change. The content 
of and opinions expressed in non-business emails are not that of Ezidebit 
Pty Ltd and are that of the sender.
execve("/u01/g01/grid/12.1/OPatch/opatchauto", 
["/u01/g01/grid/12.1/OPatch/opatch"..., "apply", 
"/u01/stage/COMBO_JVM_DBBP_JUL201"...], [/* 27 vars */]) = 0
brk(NULL)                               = 0x178b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fbf3ab0b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=34819, ...}) = 0
mmap(NULL, 34819, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbf3ab02000
close(3)                                = 0
open("/lib64/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\316\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=174576, ...}) = 0
mmap(NULL, 2268928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fbf3a6c1000
mprotect(0x7fbf3a6e6000, 2097152, PROT_NONE) = 0
mmap(0x7fbf3a8e6000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7fbf3a8e6000
close(3)                                = 0
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19256, ...}) = 0
mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fbf3a4bd000
mprotect(0x7fbf3a4bf000, 2097152, PROT_NONE) = 0
mmap(0x7fbf3a6bf000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fbf3a6bf000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P&\2\0\0\0\0\0"..., 832) 
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2156064, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fbf3ab01000
mmap(NULL, 3985888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fbf3a0ef000
mprotect(0x7fbf3a2b2000, 2097152, PROT_NONE) = 0
mmap(0x7fbf3a4b2000, 24576, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c3000) = 0x7fbf3a4b2000
mmap(0x7fbf3a4b8000, 16864, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbf3a4b8000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fbf3aaff000
arch_prctl(ARCH_SET_FS, 0x7fbf3aaff740) = 0
mprotect(0x7fbf3a4b2000, 16384, PROT_READ) = 0
mprotect(0x7fbf3a6bf000, 4096, PROT_READ) = 0
mprotect(0x7fbf3a8e6000, 16384, PROT_READ) = 0
mprotect(0x6dd000, 4096, PROT_READ)     = 0
mprotect(0x7fbf3ab0c000, 4096, PROT_READ) = 0
munmap(0x7fbf3ab02000, 34819)           = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
close(3)                                = 0
brk(NULL)                               = 0x178b000
brk(0x17ac000)                          = 0x17ac000
brk(NULL)                               = 0x17ac000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=106075056, ...}) = 0
mmap(NULL, 106075056, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbf33bc5000
close(3)                                = 0
brk(NULL)                               = 0x17ac000
getuid()                                = 0
getgid()                                = 0
geteuid()                               = 0
getegid()                               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fbf3ab0a000
read(3, "MemTotal:       264140584 kB\nMem"..., 1024) = 1024
close(3)                                = 0
munmap(0x7fbf3ab0a000, 4096)            = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
uname({sysname="Linux", nodename="uat-db-002.sys.ezi.net.au", ...}) = 0
stat("/u01/stage/COMBO_JVM_DBBP_JUL2019/29699255", {st_mode=S_IFDIR|0777, 
st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
getpid()                                = 113122
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26254, ...}) = 0
mmap(NULL, 26254, PROT_READ, MAP_SHARED, 3, 0) = 0x7fbf3ab04000
close(3)                                = 0
getppid()                               = 113120
gettimeofday({1570181250, 200674}, NULL) = 0
getpgrp()                               = 113120
rt_sigaction(SIGCHLD, {0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{SIG_DFL, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=1031679, rlim_max=1031679}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/u01/g01/grid/12.1/OPatch/opatchauto", O_RDONLY) = 3
ioctl(3, TCGETS, 0x7fff75001f90)        = -1 ENOTTY (Inappropriate ioctl for 
device)
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "#!/bin/sh\n\n#####################"..., 80) = 80
lseek(3, 0, SEEK_SET)                   = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
fcntl(255, F_GETFD)                     = -1 EBADF (Bad file descriptor)
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(255, {st_mode=S_IFREG|0750, st_size=1442, ...}) = 0
lseek(255, 0, SEEK_CUR)                 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/sh\n\n#####################"..., 1442) = 1442
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -1050, SEEK_CUR)             = 392
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7fbf3aaffa10) = 113123
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
close(4)                                = 0
read(3, "/u01/g01/grid/12.1/OPatch\n", 128) = 26
read(3, "", 128)                        = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=113123, si_uid=0, 
si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 113123
wait4(-1, 0x7fff75001410, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e870, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {0x43e870, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\nPWD=`pwd`\nSCRIPTNAME=$0\ncase ${"..., 1442) = 1050
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -1039, SEEK_CUR)             = 403
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7fbf3aaffa10) = 113124
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
close(4)                                = 0
read(3, "/u01/stage/COMBO_JVM_DBBP_JUL201"..., 128) = 43
read(3, "", 128)                        = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=113124, si_uid=0, 
si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 113124
wait4(-1, 0x7fff75001410, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e870, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {0x43e870, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "SCRIPTNAME=$0\ncase ${SCRIPTNAME}"..., 1442) = 1039
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -902, SEEK_CUR)              = 540
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7fbf3aaffa10) = 113125
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
close(4)                                = 0
read(3, "/u01/g01/grid/12.1/OPatch\n", 128) = 26
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=113125, si_uid=0, 
si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 113125
wait4(-1, 0x7fff750012d0, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 26
read(3, "", 128)                        = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e870, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {0x43e870, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "HOME=`cd ${SCRIPTPATH}/..; pwd`\n"..., 1442) = 902
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -870, SEEK_CUR)              = 572
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7fbf3aaffa10) = 113126
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 
{0x441400, [], SA_RESTORER|SA_RESTART, 0x7fbf3a1253f0}, 8) = 0
close(4)                                = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=113126, si_uid=0, 
si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 113126
wait4(-1, 0x7fff75001450, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 0
read(3, "/u01/g01/grid/12.1\n", 128)    = 19
read(3, "", 128)                        = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e870, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {0x43e870, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\nVERSION=0\n\n# if version present"..., 1442) = 870
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
lseek(255, -112, SEEK_CUR)              = 1330
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7fbf3aaffa10) = 113127
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43e870, [], SA_RESTORER, 0x7fbf3a1253f0}, {SIG_DFL, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 42}], 0, NULL) = 113127
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=113127, si_uid=0, 
si_status=42, si_utime=15, si_stime=3} ---
wait4(-1, 0x7fff75001750, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fbf3a1253f0}, {0x43e870, [], 
SA_RESTORER, 0x7fbf3a1253f0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "RESULT=$?\nif [ $RESULT = 0 ]; th"..., 1442) = 112
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(42)                          = ?
+++ exited with 42 +++

Other related posts: