一、配置
在启用只读 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/ |
三、只读 Home 目录对DBCA的影响
- spfile / pfile 位置
ORACLE_BASE/dbs
或者
/refresh/home/oracle/dbs - 日志位置
ORACLE_BASE/cfgtoollogs/dbua
或者
/refresh/home/oracle/cfgtoollogs/dbua
更多Oracle相关信息见Oracle 专题页面 https://www.linuxidc.com/topicnews.aspx?tid=12
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx
本文永久更新链接地址:https://www.linuxidc.com/Linux/2019-07/159377.htm
