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

Oracle RAC 12.2 on VMware Workstation — Post 5: Final Validation and Quick Reference

2026-05-11 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation – Post 4: Oracle Database Installation and DBCA

2026-05-11 Oracle By Henrique

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

2026-05-11 Oracle By Henrique
YouTube LinkedIn RSS
  • Home
  • 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
    • OEM
    • RAC
  • MongoDB
  • Performance
  • Python
  • Shell Script
  • Tools
  • Troubleshooting
Execute StepExecute Step
Home » DIA-49802: ADR Directory Permission Denied after Oracle Restart Reconfiguration
Oracle

DIA-49802: ADR Directory Permission Denied after Oracle Restart Reconfiguration

HenriqueBy Henrique2026-04-21Updated:2026-05-194 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

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

You reconfigure Oracle Restart after an IP or hostname change, run roothas.pl as root, and get this:

Oracle Clusterware infrastructure error in OCRCONFIG (OS PID 26695): CLSD/ADR initialization failed with return value -1
DIA-49802: missing read, write, or execute permission on specified ADR home directory [/u01/app/oracle/diag/crs/orclnode02/crs/log]
DIA-49801: actual permissions [rwxrwx---], expected minimum permissions [rwxrwxrwx] for effective user [oracle]
DIA-48188: user missing read, write, or exec permission on specified directory
Linux-x86_64 Error: 13: Permission denied

The script stops. Oracle Restart never comes up. The real issue is directory ownership — not the permission mode.


Root Cause

During Oracle Restart reconfiguration, roothas.pl runs as root. In some scenarios — particularly after a roothas.pl -deconfig followed by reconfiguration — the owner of subdirectories under $ORACLE_BASE/diag/crs/ changes from oracle:oinstall to root:root.

DIA-49802 means the oracle user (which runs the CRS process internally) can’t access the ADR directory. The error message mentioning rwxrwxrwx as the expected minimum can be misleading — running chmod 777 will not fix this and is unnecessary.

💡 The problem is ownership, not permission mode. A chmod 777 doesn’t change the owner and introduces an unnecessary security risk. Don’t do it.


Diagnosis

Before running any fix, confirm the ownership issue is present:

cd $ORACLE_BASE/diag/crs/$(hostname)/crs
ls -la

Example output when the problem is present (subdirectories owned by root):

drwxr-x--- 2 root     oinstall 4096 Mar 16 04:45 alert
drwxr-x--- 2 root     oinstall 4096 Mar 16 04:45 cdump
drwxr-x--- 2 root     oinstall 4096 Mar 16 04:45 incident
drwxr-x--- 2 root     oinstall 4096 Mar 16 04:45 log
drwxr-x--- 2 root     oinstall 4096 Mar 16 04:45 trace
...

If root owns these subdirectories, you’re in the right scenario. Proceed with the fix.


Fix

⚠️ Run the commands below as root. Confirm current ownership with ls -la before proceeding.

cd $ORACLE_BASE/diag/crs/$(hostname)/crs

chown -R oracle:oinstall alert
chown -R oracle:oinstall cdump
chown -R oracle:oinstall incident
chown -R oracle:oinstall incpkg
chown -R oracle:oinstall lck
chown -R oracle:oinstall log
chown -R oracle:oinstall metadata
chown -R oracle:oinstall metadata_dgif
chown -R oracle:oinstall metadata_pv
chown -R oracle:oinstall stage
chown -R oracle:oinstall sweep
chown -R oracle:oinstall trace

⚠️ If your environment uses a different primary group for Oracle Grid Infrastructure (e.g., asmadmin), replace oinstall accordingly. Check with: id oracle

After fixing ownership, rerun roothas.pl:

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/crs/install/roothas.pl

Expected output after the fix:

2024/03/16 05:31:32 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2024/03/16 05:32:17 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

Validation

Confirm Oracle Restart came up cleanly:

crsctl status res -t

All resources should show ONLINE.


Quick Reference

ls -la $ORACLE_BASE/diag/crs/$(hostname)/crs

chown -R oracle:oinstall $ORACLE_BASE/diag/crs/$(hostname)/crs/*

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/crs/install/roothas.pl

crsctl status res -t

References

  • Oracle Documentation: Oracle Restart Administration and Deployment Guide
  • Oracle Documentation: ADR — Automatic Diagnostic Repository

ADR DIA-48188 DIA-49801 DIA-49802 Oracle Restart
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
Previous ArticlePRVG-1901, PRVH-0185, PRVH-0516 — Fleet Maintenance Fails with /tmp noexec
Next Article Removing an Old Oracle GRID_HOME After an Upgrade

Related Posts

Oracle

Oracle RAC 12.2 on VMware Workstation — Post 5: Final Validation and Quick Reference

2026-05-11
Read More
Oracle

Oracle RAC 12.2 on VMware Workstation – Post 4: Oracle Database Installation and DBCA

2026-05-11
Read More
Oracle

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

2026-05-11
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
Blogroll
  • oravirt
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.