Tuesday, October 20, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Patch Update

OPatchAuto Error Code 42: RemoteHostExecutor.pl Permission Denied During Oracle GI/RAC Patching

August 27, 2026
in Patch Update, Troubleshooting
0
OPatchAuto Error Code 42: RemoteHostExecutor.pl Permission Denied During Oracle GI/RAC Patching
0
SHARES
77
VIEWS

Oracle Grid Infrastructure patching with OPatchAuto is designed to automate rolling patch application across RAC nodes. However, incorrect file ownership or permissions in the OPatch directory can cause the patching process to fail immediately with error code 42.

In this article, we’ll examine a real-world Oracle 23ai Grid Infrastructure patching issue, explain why it occurs, and show the exact steps to resolve it.

Table of Contents

Toggle
    • Related posts
    • Oracle Enterprise Manager 24ai: Installing Solaris SPARC Agent Software Using Self Update in Offline Mode
    • Oracle 11g to 19c Upgrade: Block Change Tracking and Level 0 Backup
  • Environment
  • Problem
    • Command Executed
    • Error Output
  • What Does This Error Mean?
  • Investigation
  • Root Cause
  • Solution
  • Verify Ownership
  • Retry the Patch
  • Why Did This Happen?
  • Best Practices
  • Quick Checklist
  • Conclusion

Related posts

Oracle Enterprise Manager 24ai: Installing Solaris SPARC Agent Software Using Self Update in Offline Mode

Oracle Enterprise Manager 24ai: Installing Solaris SPARC Agent Software Using Self Update in Offline Mode

October 13, 2026
block chain tracking

Oracle 11g to 19c Upgrade: Block Change Tracking and Level 0 Backup

October 2, 2026

Environment

  • Oracle Grid Infrastructure 23ai
  • Oracle RAC (2 Nodes)
  • OPatchAuto Rolling Patch
  • Linux

Problem

While applying a Grid Infrastructure patch using opatchauto, the patch failed almost immediately.

Command Executed

/u01/app/23.26.0.0/grid/OPatch/opatchauto apply /home/oracle/install/39568945 -logLevel FINEST

Error Output

Remote command execution failed due to

Can't open perl script

"/u01/app/23.26.0.0/grid/OPatch/auto/database/bin/RemoteHostExecutor.pl":
Permission denied

OPatchAuto failed.

opatchauto failed with error code 42

What Does This Error Mean?

During a RAC patch, OPatchAuto copies commands to the remote node and executes the Perl script:

RemoteHostExecutor.pl

If Oracle cannot read or execute this script on the remote node, the entire patch process stops before any binaries are updated.

The failure is usually caused by:

  • Incorrect ownership
  • Incorrect permissions
  • OPatch directory copied incorrectly
  • Manual replacement of the OPatch directory
  • Root ownership on files that should be owned by Oracle/Grid

Investigation

Checking the Grid Home showed an unusual ownership for the OPatch directory.

Example:

drwxr-x---. 14 root root 4096 Jul 29 12:19 OPatch

Instead of being owned by the Oracle software owner, the directory belonged to root.

Because of this, Oracle could not execute:

OPatch/auto/database/bin/RemoteHostExecutor.pl

resulting in:

Permission denied

Root Cause

The OPatch directory ownership had changed to:

root:root

instead of:

oracle:oinstall

(or grid:oinstall, depending on your Grid Infrastructure owner).

Since OPatchAuto runs under the Oracle/Grid software owner, it was unable to access the required Perl scripts on the remote RAC node.


Solution

Correct the ownership of the OPatch directory.

cd $GRID_HOME

chown -R oracle:oinstall OPatch

Then correct the permissions.

chmod -R 775 OPatch

If your Grid Infrastructure is owned by the grid user instead of oracle, use:

chown -R grid:oinstall OPatch

Verify Ownership

Run:

ls -ld $GRID_HOME/OPatch

Expected output:

drwxrwxr-x oracle oinstall OPatch

or

drwxrwxr-x grid oinstall OPatch

depending on your installation.


Retry the Patch

After fixing the ownership and permissions, rerun the patch:

$GRID_HOME/OPatch/opatchauto apply /home/oracle/install/39568945

The remote execution should now proceed successfully.


Why Did This Happen?

This issue is commonly seen after:

  • Manually replacing the OPatch directory
  • Copying OPatch using the root user
  • Extracting a new OPatch ZIP as root
  • Restoring a Grid Home from backup
  • Incorrect post-installation permission changes

Whenever the OPatch directory ownership changes, OPatchAuto may fail before the actual patching begins.


Best Practices

To avoid this issue in future patching activities:

  • Always extract OPatch as the Grid/Oracle software owner.
  • Verify ownership before starting patching.
  • Never leave the OPatch directory owned by root.
  • Validate permissions on all RAC nodes.
  • Keep OPatch versions consistent across every node in the cluster.
  • Run opatchauto pre-checks before applying production patches.

Quick Checklist

Before running opatchauto, verify:

ls -ld $GRID_HOME/OPatch

ls -l $GRID_HOME/OPatch/auto/database/bin/RemoteHostExecutor.pl

whoami

$GRID_HOME/OPatch/opatch version

Ensure:

  • ✔ Correct software owner (oracle or grid)
  • ✔ Read and execute permissions
  • ✔ Same OPatch version on all RAC nodes
  • ✔ No root ownership inside the OPatch directory

Conclusion

The OPatchAuto error code 42 with the message:

Can't open perl script:
RemoteHostExecutor.pl: Permission denied

is typically caused by incorrect ownership or permissions on the OPatch directory. Correcting the directory ownership and permissions restores access to the required Perl scripts, allowing OPatchAuto to execute remote operations successfully across RAC nodes.

By verifying file ownership before every patch cycle, Oracle administrators can prevent this common issue and ensure smooth, uninterrupted Grid Infrastructure patching.

Tags: OpatchOPatchAutoOPatchAuto Error 42Oracle 23aiOracle Grid InfrastructureOracle PatchingOracle RACRemoteHostExecutor.pl
Previous Post

Download and Install Oracle Database 19c Preinstallation RPM on Oracle Linux 9

Next Post

Oracle 26ai DBCA: Fix “There Are No ASM Disk Groups Detected” Error

Next Post
Oracle 26ai DBCA: Fix “There Are No ASM Disk Groups Detected” Error

Oracle 26ai DBCA: Fix “There Are No ASM Disk Groups Detected” Error

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google