步骤如下:
检查默认network的network number,红色字体1,一会儿添加监听会用到:
[grid@rac121 admin]$ srvctl config network Network exists: 1/10.1.252.0/255.255.255.0/eth0, type static
查看srvctl添加监听的语法:
[grid@rac121 admin]$ srvctl add listener -h Adds a listener configuration to the Oracle Clusterware. Usage: srvctl add listener [-l <lsnr_name>] [-s] [-p "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"] [-o <oracle_home>] [-k <net_num>] -l <lsnr_name> Listener name (default name is LISTENER) #监听名称 -o <oracle_home> ORACLE_HOME path (default value is CRS_HOME) #grid的HOME -k <net_num> network number (default number is 1) #最开始查看的网络号