crsctl stat res -t
查看资源
#crsctl stat res ora.asmnet1.asmnetwork
NAME=ora.asmnet1.asmnetwork(ora.asmgroup)
TYPE=ora.asm_network.type
TARGET=ONLINE , ONLINE
STATE=ONLINE on com1, ONLINE on com2
crsctl stat res ora.asmnet1.asmnetwork -p |grep AUTO
AUTO_START=restore
启动属性
查看监听
su - grid
lsnrctl status ASMNET1LSNR_ASM
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAY-2022 15:16:51
Copyright (c) 1991, 2022, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET1LSNR_ASM)))
STATUS of the LISTENER
------------------------
Alias ASMNET1LSNR_ASM
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-MAY-2022 12:15:53
Uptime 0 days 3 hr. 0 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/grid/products/19.3.0/network/admin/listener.ora
Listener Log File /opt/ogrid/diag/tnslsnr/com2/asmnet1lsnr_asm/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ASMNET1LSNR_ASM)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=com2-priv1)(PORT=1525)))
Services Summary...
Service "+ASM" has 2 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Instance "+ASM2", status READY, has 2 handler(s) for this service...
Service "+ASM_ACFSDG" has 2 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Instance "+ASM2", status READY, has 2 handler(s) for this service...
Service "+ASM_OCRVOTE" has 2 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Instance "+ASM2", status READY, has 2 handler(s) for this service...
Service "+ASM_SSDDG" has 2 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Instance "+ASM2", status READY, has 2 handler(s) for this service...
The command completed successfully
lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-MAY-2022 15:52:50
Copyright (c) 1991, 2022, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-MAY-2022 12:15:51
Uptime 0 days 3 hr. 36 min. 59 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/grid/products/19.3.0/network/admin/listener.ora
Listener Log File /opt/ogrid/diag/tnslsnr/com2/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=com2)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=com2-vip)(PORT=1521)))
Services Summary...
Service "+APX" has 1 instance(s).
Instance "+APX2", status READY, has 1 handler(s) for this service...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "+ASM_ACFSDG" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "+ASM_OCRVOTE" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "+ASM_SSDDG" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "df5951db35b31297e05329b40a0ae3b2" has 1 instance(s).
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "df59c4f79e2b8372e0532bb40a0a2d96" has 1 instance(s).
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl2", status READY, has 1 handler(s) for this service...
Service "pdb" has 1 instance(s).
Instance "orcl2", status READY, has 1 handler(s) for this service...
The command completed successfully
查看监听配置
ps -ef|grep tns
grid 24101 1 0 12:15 ? 00:00:00 /opt/grid/products/19.3.0/bin/tnslsnr LISTENER -no_crs_notify -inherit
grid 24193 1 0 12:15 ? 00:00:03 /opt/grid/products/19.3.0/bin/tnslsnr ASMNET1LSNR_ASM -no_crs_notify -inherit
grid 24195 1 0 12:15 ? 00:00:03 /opt/grid/products/19.3.0/bin/tnslsnr ASMNET2LSNR_ASM -no_crs_notify -inherit
cat /opt/grid/products/19.3.0/network/admin/listener.ora | grep ASM
ASMNET1LSNR_ASM=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET1LSNR_ASM)))) # line added by Agent
ASMNET2LSNR_ASM=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET2LSNR_ASM)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ASMNET2LSNR_ASM=ON # line added by Agent
VALID_NODE_CHECKING_REGISTRATION_ASMNET2LSNR_ASM=SUBNET # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ASMNET1LSNR_ASM=ON # line added by Agent
VALID_NODE_CHECKING_REGISTRATION_ASMNET1LSNR_ASM=SUBNET # line added by Agent
show parameter listener
show parameter listener_networks
查看crs日志
cd /opt/ogrid/diag/crs/com2/crs/trace
vi crsd.trc
local_listener,remote_listener,listener_networks参数