srvctl stop listener

Stops the default listener or a specific listener on all nodes or the specified node.

This command can also be used to stop a listener on a noncluster database from the noncluster database home. However, SRVCTL does not accept the -node parameter when run from a noncluster database home.

Syntax and Parameters

Use the srvctl stop listener command with the following syntax:

srvctl stop listener [-listener listener_name] [-node node_name] [-force]

Table A-194 srvctl stop listener Parameters

Parameter Description
-listener listener_name

The name of the listener to stop.

If you do not specify this parameter, then the listener name defaults to LISTENER for a database listener; LISTENER_ASM for an Oracle ASM listener; or LISTENER_LEAF for a Leaf Node listener.

-node node_name

The name of a single node on which a particular listener runs.

Note: This parameter can be used only with Oracle Clusterware.

-force

Force stop

Example

The following command stops the default listener LISTENER on the node mynode1:

$ srvctl stop listener -node mynode1