Dimulai dengan Oracle Database 18c, Anda dapat mengonfigurasi rumah Oracle dalam mode read-only. Manfaat Oracle Home Hanya-Baca:
– Memungkinkan patching dan update mulus database Oracle tanpa downtime yang diperpanjang
– Menyederhanakan patching dan peluncuran massal karena satu image akan cukup untuk mendistribusikan patch ke banyak server
– Menyederhanakan penyediaan dengan menerapkan pemisahan instalasi dan konfigurasi
SYNTAX
$ roohctl -help Usage: roohctl [<flag>] [<command> <option>] Following are the possible flags: -help Following are the possible commands: -enable Enable Read-only Oracle Home [-nodeList List of nodes in a cluster environment]
tab orbase file berada di ORACLE_HOME/install/orabasetab dan dapat digunakan untuk menentukan apakah ORACLE_HOME adalah read-only atau read/write. Kolom terakhir adalah ‘N ' dan berarti read only oracle home dinonaktifkan.
File$ cat $ORACLE_HOME/install/orabasetab #orabasetab file is used to track Oracle Home associated with Oracle Base /u01/app/oracle/product/18.0.0.0/dbhome_1:/u01/app/oracle:c10_DbHome_1:N:
Aktifkan Oracle Home Hanya Baca
Jika utilitas “roohctl ” menemukan database atau pendengar yang ada terkait dengan Oracle Home ini, ia akan mengembalikan kesalahan:
$ roohctl -enable Enabling Read-Only Oracle home. Cannot enable Read-Only Oracle home in a configured Oracle home. The Oracle Home is configured with databases 'cpdbanq01,cpdbcmi10,cpdbdcd1'.
Ada parameter “-force” yang tidak terdokumentasi untuk ditambahkan ke “roohctl -enable”:
$ roohctl -enable -force Enabling Read-Only Oracle home. The Oracle Home is configured with databases databases 'cpdbanq01,cpdbcmi10,cpdbdcd1'. 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. Read-Only Oracle home has been enabled successfully.
Lihat konten file orabasetab. Kolom terakhir adalah ‘Y ' dan berarti oracle home read only diaktifkan.
File$ cat $ORACLE_HOME/install/orabasetab #orabasetab file is used to track Oracle Home associated with Oracle Base /u01/app/oracle/product/18.0.0.0/dbhome_1:/u01/app/oracle:c10_DbHome_1:Y:
Nonaktifkan Oracle Home Hanya Baca
Anda menonaktifkan Read Only Oracle Home dengan 'roohctl -disable ‘:
$ roohctl -disable -force 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 /u01/app/oracle/cfgtoollogs/roohctl/roohctl-210110PM125527.log.