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:

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.

Guess you like

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