(Summary) Oracle startup listener error: The listener supports no services solution

$ lsnrctl start

Error message:

The listener supports no services
The command completed successfully

as the picture shows:


After this is started, the remote connection will report an error:
oracle ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

Cause of the problem: The database instance is not registered with the listener

Solution one:

Added a line to listener.ora

SID_LIST_LISTENER =  
(SID_LIST =  
  (SID_DESC =  
  (GLOBAL_DBNAME = orcl)
  (SID_NAME = orcl)
  )
)

Note: The orcl inside is determined according to the database instance name you installed. I solved this error by using this method.

Solution two:

Login to the database:
$sqlplus / as sysdba
Display service name:
SQL>show parameter service_names
Mandatory service registration:
SQL>alter system register;
Check the monitoring status:
$lsnrctl status

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652161&siteId=291194637