技術ブログ
目次
渡部です。Oracle Grid Infrastructure 18c以降で使用できる便利なコマンドsrvctl config all の存在を知ったので共有します。 このコマンドはマニュアルには記載がありません!
実際の実行結果を見ていただければ便利さはご理解いただけるかと。
[grid@lj70sha1 ~]$ srvctl config all
Oracle Clusterware configuration details
========================================
Oracle Clusterware basic information
------------------------------------
Operating system Linux
Name lj70sha-cluster
Class STANDALONE
Cluster nodes lj70sha1, lj70sha2
Version 19.0.0.0.0
Groups SYSOPER:asmoper SYSASM:asmadmin SYSRAC:asmadmin
SYSDBA:asmdba
OCR locations +CLU
Voting disk CLU, CLU, CLU
locations
Voting disk file /dev/asmdisk_clu02, /dev/asmdisk_clu03,
paths /dev/asmdisk_clu01
Cluster network configuration details
-------------------------------------
Interface name Type Subnet Classification
eth0 IPV4 172.31.0.0/16 PUBLIC
eth1 IPV4 172.30.0.0/16 PRIVATE, ASM
SCAN configuration details
--------------------------
SCAN "lj70sha-scan.domain" details
++++++++++++++++++++++++++++++++++
Name lj70sha-scan.domain
IPv4 subnet 172.31.0.0/16
DHCP server type static
End points TCP:1521
SCAN listeners
--------------
Name VIP address
LISTENER_SCAN1 172.31.39.33
LISTENER_SCAN2 172.31.39.34
LISTENER_SCAN3 172.31.39.35
ASM configuration details
-------------------------
Mode remote
Password file +CLU
SPFILE +CLU
ASM disk group details
++++++++++++++++++++++
Name Redundancy
CLU NORMAL
DATA NORMAL
FRA NORMAL
Database configuration details
==============================
Database "ora.j70sha.db" details
--------------------------------
Name ora.j70sha.db
Type SINGLE
Version 19.0.0.0.0
Role PRIMARY
Management AUTOMATIC
policy
SPFILE +DATA
Password file +DATA
Groups OSDBA:dba OSOPER:oper OSBACKUP:backupdba OSDG:dgdba OSKM:kmdba
OSRAC:racdba
Oracle home /u01/app/oracle/product/19.7.0/dbhome_1
[grid@lj70sha1 ~]$
コマンド結果から、以下が分かります。
たしかにヘルプには記載されている・・・
[grid@lj70sha1 ~]$ srvctl config -help
The SRVCTL config command displays the configuration for the object stored in the OCR.
Usage: srvctl config all ←★
Usage: srvctl config database [-db <db_unique_name> [-all] | -serverpool <serverpool_name> | -home] [-verbose]
(略)