$ cd$ORACLE_HOME/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 forRead-Only Oracle home. Bootstrap directories have been created successfully. Bootstrap files have been processed successfully. Read-Only Oracle home has been enabled successfully. Check the logfile /u01/app/oracle/cfgtoollogs/roohctl/roohctl-180728AM112212.log. $
AI写代码bash
* 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11
“homes” 和 “dbs” 目录已经在 ORACLE_BASE 目录下被创建 :
1 2 3 4 5 6 7 8 9
$ ls $ORACLE_BASE cfgtoollogs checkpoints dbs diag homes product $
$ cat $ORACLE_HOME/install/orabasetab #orabasetab file is used to track Oracle Home associated with Oracle Base /u01/app/oracle/product/18.0.0/dbhome_1:/u01/app/oracle:OraDB18Home1:Y: $
$ . oraenv ORACLE_SID = [cdb1] ? The Oracle base remains unchanged with value /u01/app/oracle $$ORACLE_HOME/bin/orabaseconfig /u01/app/oracle/product/18.0.0/dbhome_1 $$ORACLE_HOME/bin/orabasehome /u01/app/oracle/product/18.0.0/dbhome_1 $
# 只读 Oracle home.
$ . oraenv ORACLE_SID = [cdb1] ? The Oracle base remains unchanged with value /u01/app/oracle $$ORACLE_HOME/bin/orabaseconfig /u01/app/oracle $$ORACLE_HOME/bin/orabasehome /u01/app/oracle/homes/OraDB18Home1 $