Close Menu
  • Home
  • Oracle
    • ASM
    • Data Guard
    • RAC
  • Performance
  • Tools
  • Troubleshooting
  • Python
  • Shell Script
Search

Oracle RAC 12.2 on VMware Workstation – Post 3: Grid Infrastructure Installation

2026-04-05 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation — Post 1: VMware Networking and Openfiler Setup

2026-04-05 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation – Post 2: Oracle Linux Configuration and iSCSI

2026-04-05 Oracle By Henrique
YouTube LinkedIn RSS
  • About
  • Contact
  • Legal
    • Cookie Policy
    • Disclaimer
    • Privacy Policy
    • Terms of Use
  • RSS
  • English
    • Portuguese (Brazil)
Execute StepExecute Step
YouTube LinkedIn RSS
  • Home
  • Oracle
    • ASM
    • Data Guard
    • RAC
  • Performance
  • Tools
  • Troubleshooting
  • Python
  • Shell Script
Execute StepExecute Step
Home » OPATCHAUTO-72126 – Destination Directory Already Exists in Out-of-Place Patching
Oracle RAC

OPATCHAUTO-72126 – Destination Directory Already Exists in Out-of-Place Patching

HenriqueBy Henrique2026-03-26Updated:2026-03-302 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

This post is also available in: Português (Portuguese (Brazil))

When running opatchauto with the out-of-place option, the process fails immediately:

OPATCHAUTO-72126: Cannot execute out of place patching.
OPATCHAUTO-72126: Clone home path specified in mapping file already exists on host.
OPATCHAUTO-72126: Please correct clone path mapping file and re-run out of place patching operation.

opatchauto failed with error code 42

The error indicates that the destination directory defined in clone.properties already exists on the server.


Why It Happens

In out-of-place patching, opatchauto creates a new Oracle Home by cloning the current one and applying the patch to it. The new home path is defined in the clone.properties file:

/u01/app/19.21.0.0/grid=/u01/app/19.23.0.0/grid
/u01/app/oracle/product/19.0.0.0/dbhome_1=/u01/app/oracle/product/19.23.0.0/dbhome_1

If the directory on the right side (destination) already exists — from a previous failed attempt, an old test, or a home that was removed from the inventory but not from the filesystem — opatchauto refuses to run to avoid overwriting data.


Solution

1. Check if the destination home is in the inventory

grep "19.23.0.0" /u01/app/oraInventory/ContentsXML/inventory.xml
  • If it appears without REMOVED="T" → the home is active. Don’t delete. Verify you chose the correct path in clone.properties.
  • If it appears with REMOVED="T" → already deinstalled from the inventory, safe to remove the directory.
  • If it doesn’t appear → filesystem leftover, safe to remove.

2. Remove the destination directory

ls -la /u01/app/oracle/product/19.23.0.0/dbhome_1/

rm -rf /u01/app/oracle/product/19.23.0.0/dbhome_1

⚠ Warning: Confirm no database is running from this home before deleting. Check with cat /etc/oratab | grep 19.23 and ps -ef | grep pmon.

3. Re-run opatchauto

sudo $ORACLE_HOME/OPatch/opatchauto apply ${PATCH_TOP} -outofplace -silent ./clone.properties

Quick Checklist

ls -la /u01/app/oracle/product/19.23.0.0/dbhome_1/

grep "19.23.0.0" /u01/app/oraInventory/ContentsXML/inventory.xml

cat /etc/oratab | grep 19.23
ps -ef | grep pmon

rm -rf /u01/app/oracle/product/19.23.0.0/dbhome_1

sudo $ORACLE_HOME/OPatch/opatchauto apply ${PATCH_TOP} -outofplace -silent ./clone.properties

grid-infrastructure opatchauto opatchauto-72126 oracle out-of-place patching troubleshooting
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
Previous ArticlePRCA-1057 — ASM Password File Not Found by CRS
Next Article OPatch Error 73 – LsInventorySession failed: RawInventory gets null OracleHomeInfo

Related Posts

Oracle

Oracle RAC 12.2 on VMware Workstation – Post 3: Grid Infrastructure Installation

2026-04-05
Read More
Oracle

Oracle RAC 12.2 on VMware Workstation — Post 1: VMware Networking and Openfiler Setup

2026-04-05
Read More
Oracle

Oracle RAC 12.2 on VMware Workstation – Post 2: Oracle Linux Configuration and iSCSI

2026-04-05
Read More
Add A Comment
Leave A Reply Cancel Reply

Demo
Follow Me
  • Email
  • GitHub
  • LinkedIn
  • RSS
  • YouTube

INS-06006 – Passwordless SSH Connectivity Not Set Up

2026-02-2614 Views

ORA-29548 — How to Fix “Java System Class Reported” in Oracle Database

2026-03-0510 Views

PRVG-2002 — How to Fix “Encountered Error in Copying File” in Oracle RAC

2026-03-078 Views
Demo
Tags
alter-sequence asm clusterware create sequence datapatch grid-infrastructure Grid Infrastructure how-to identity-column identity column ins-08101 installation inventory iSCSI lab listener opatch opatchauto Openfiler openssh ora-01031 ORA-12547 ora-12777 orabasetab oracle oracle oracle-database oracle-home oracle-linux oracle-rac Oracle Database Oracle Linux Oracle RAC out-of-place passwordless-ssh patching patching prvg-2002 RAC Installation redo-log runcluvfy scp tns troubleshooting VMware
Execute Step
YouTube LinkedIn RSS
  • Home
  • About
  • Contact
  • RSS
  • English
    • Português (Portuguese (Brazil))
© 2026 ExecuteStep. Designed by ThemeSphere.

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.