My Oracle Support Banner

TNS-12508: TNS:listener could not resolve the COMMAND given when issuing (dynamic) commands via lsnrctl (Doc ID 2344311.1)

Last updated on JANUARY 17, 2025

Applies to:

Oracle Net Services - Version 11.2.0.1 and later
Oracle Database - Enterprise Edition - Version 8.0.3.0 and later
Oracle Cloud Infrastructure - Exadata Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Gen 2 Exadata Cloud at Customer - Version N/A and later
Information in this document applies to any platform.

Symptoms

When attempting to use Listener Control (lsnrctl) to issue a command against a Listener (ie: dynamically) this is failing:
TNS-12508: TNS:listener could not resolve the COMMAND given

The following example is attempted when ADMIN_RESTRICTIONS is on:

 

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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