My Oracle Support Banner

Add listener by srvctl failed with PRKO-2002. (Doc ID 2633558.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.


 Add listener by srvctl failed with PRKO-2002.

srvctl add listener -listener listener_test -netnum 2 -oraclehome <ORACLE_HOME> -endpoints "1521" -invitednodes <node_list> -invitedsubnets <subnet_list>

PRKO-2002 : Invalid command line option: -invitednodes
PRKO-2002 : Invalid command line option: -invitedsubnets

 We can find these options by help.

$ srvctl add listener -h

Adds a listener configuration to the Oracle Clusterware.

Usage: srvctl add listener [-listener <lsnr_name>] {[-netnum <network_number>] [-oraclehome <path>] [-user <oracle_user>] | -asmlistener [-subnet <subnet>] | -leaflistener [-subnet <subnet>]} [-skip] [-endpoints "[TCP:]<port>[, ...][:FIREWALL={ON|OFF}][/IPC:<key>][/NMP:<pipe_name>][/{TCPS|SDP|EXADIRECT}<port>[:FIREWALL={ON|OFF}]]" [-group <group>]] [-invitednodes "<node_list>"] [-invitedsubnets "<subnet_list>"]
-listener <lsnr_name> Listener name (default name is LISTENER)
-oraclehome <path> Oracle home path (default value is CRS_HOME)
-netnum <network_number> Network number (default number is 1)
-user <oracle_user> Oracle user
-asmlistener ASM listener type
-leaflistener Leaf listener type
-subnet <subnet> Subnet for ASM or Leaf listener
-skip Skip the checking of ports
-endpoints "[TCP:]<port>[, ...][:FIREWALL={ON|OFF}][/IPC:<key>][/NMP:<pipe_name>][/{TCPS|SDP|EXADIRECT}<port>[:FIREWALL={ON|OFF}]]" Comma separated TCP ports or listener endpoints
-group <group> Group for the secure endpoint
-invitednodes <node_list> Comma separated list of node names allowed to register with Listener
-invitedsubnets <subnet_list> Comma separated list of subnets allowed to register with Listener
-help Print usage


But we can notice these profile options not exist by "crsctl stat res <listener resource> -p"
And we can find these profile options exist only in scan listener.


$ crsctl stat res ora.LISTENER_SCAN1.lsnr -p



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.