一、配置
在启用只读 Oracle Home 目录之前,Oracle Home不应创建任何数据库或Listener
-
运行roohctl脚本以启用只读Oracle HOME.
$ cd $ORACLE_HOME/bin $ ./roohctl -enable
-
确定Oracle Home是否为只读
$ cd $ORACLE_HOME/bin $ ./orabasehome
如果orabasehome命令的输出与 $ORACLE_HOME相同,则Oracle Home目录处于读/写模式。 如果输出显示路径ORACLE_BASE/ homes/HOME_NAME,则表示您的Oracle Home目录处于只读模式。
二、文件路径
| 目录 | Read/Write Oracle Home 文件路径 | 只读 Oracle Home 文件路径 |
| ORACLE_HOME | /refresh/home/oracle/product/18.0.0/dbhome_1 | /refresh/home/oracle/product/18.0.0/dbhome_1 |
| ORACLE_BASE | /refresh/home/oracle/ | /refresh/home/oracle/ |
| ORACLE_BASE_HOME | ORACLE_HOME(或者) /refresh/home/oracle/product/18.0.0/dbhome_1 | ORACLE_BASE/homes/HOME_NAME(或者) /refresh/home/oracle/homes/OraDB18Home1 |
| ORACLE_BASE_CONFIG | ORACLE_HOME (或者) /refersh/home/oracle/product/18.0.0/dbhome_1 | ORACLE_BASE (或者) /refresh/home/oracle/ |
