DEV Community

Vahid Yousefzadeh
Vahid Yousefzadeh

Posted on

Read-Only Oracle Home: Disabled by Default in Oracle 23ai

The Read-Only Oracle Home feature was introduced in Oracle 18c. This feature moves log files and configuration files located in the ORACLE_HOME directory-such as listener.ora, sqlnet.ora, spfile.ora, and others-to subdirectories under ORACLE_BASE.
In Oracle versions 18c and 19c, this feature is not enabled by default. However, it became enabled by default starting with version 21c:

[oracle@RAC3 ~]$ /oracle21c/home/bin/orabasehome
/oracle21c/base/homes/OraDB21Home1
Enter fullscreen mode Exit fullscreen mode

Image description
In version 23ai, however, this feature was disabled again:

[oracle@OEL9 ~]$ /oracle23.6/home/bin/orabasehome
/oracle23.6/home
Enter fullscreen mode Exit fullscreen mode

Image description
As you can see, the homes folder under ORACLE_BASE is no longer present by default in version 23ai. However, you can enable this feature manually:

[oracle@OEL9 ~]$ cd /oracle23.6/home/bin/
[oracle@OEL9 bin]$ ./roohctl -enable
Enabling Read-Only Oracle home.
Update orabasetab file to enable Read-Only Oracle home.
Orabasetab file has been updated successfully.
Create bootstrap directories for Read-Only Oracle home.
Bootstrap directories have been created successfully.
Bootstrap files have been processed successfully.
Bootstrap files have been processed successfully.
Read-Only Oracle home has been enabled successfully.
Check the log file /oracle23.6/base/cfgtoollogs/roohctl/roohctl-241112AM110738.log for more details.
[oracle@OEL9 bin]$ ./orabasehome
/oracle23.6/base/homes/OraDB23Home1
Enter fullscreen mode Exit fullscreen mode

To disable the Read-Only Oracle Home, you can run the following command:

[oracle@OEL9 bin]$ ./roohctl -disable
Disabling Read-Only Oracle home.
Update orabasetab file to disable Read-Only Oracle home.
Orabasetab file has been updated successfully.
Read-Only Oracle home has been disabled successfully.
Check the log file /oracle23.6/base/cfgtoollogs/roohctl/roohctl-241112AM110944.log for more details.
[oracle@OEL9 bin]$ ./orabasehome
/oracle23.6/home
Enter fullscreen mode Exit fullscreen mode

Vahid Yousefzadeh
Oracle Database Administrator
vahidusefzadeh@gmail.com
Telegram channel :https://t.me/oracledb

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay