怎么启用只读Oracle Home目录

本篇内容介绍了“怎么启用只读Oracle Home目录”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

一、配置

在启用只读 Oracle Home 目录之前,Oracle Home不应创建任何数据库或Listener

  1. 运行roohctl脚本以启用只读Oracle HOME.

    $ cd $ORACLE_HOME/bin
    $ ./roohctl -enable
  2. 确定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 Home目录”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!