Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

TNS-01150: The address of the specified listener name is incorrect

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 30 Jun, 2019
  • 0 Comments
  • 1 Min Read

TNS-01150: The address of the specified listener name is incorrect

Below error occur while checking the status of listener or starting the listener services.
TNS-01150: The address of the specified listener name is incorrect
NL-00303: syntax error in NV string

Above error can get due to syntax error in listner.ora file. listener.ora file is case sensitive. small changes to files lead to an big problem.

We got TNS-01150 and NL-00303 error code due to wrong formatting of listener.ora file. This type of issue happen when we create the listener.ora file directly with copy and paste option. recommended way to create listener.ora and tnsnames.ora is with netca utility. netca is the gui utility.

Following description shows the changes in listener.ora file.

Before listener.ora file

listener.ora Network Configuration File: /data/oracle/app/oracle/product/12.1.0.2/db_1/network/admin/listener.ora

Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = cdb1)
(ORACLE_HOME = /data/oracle/app/oracle/product/12.1.0.2/db_1)
(SID_NAME = cdb1)
)
(SID_DESC =
(GLOBAL_DBNAME = standdb)
(ORACLE_HOME = /data/oracle/app/oracle/product/12.1.0.2/db_1)
(SID_NAME = standdb)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.oracle.com)(PORT = 1521))
)
ADR_BASE_LISTENER = /data/oracle/app/oracle

After making the changes to listener.ora file. Correct listerner.ora file

LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.oracle.com)(PORT = 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = cdb1)
(ORACLE_HOME = /data/oracle/app/oracle/product/12.1.0.2/db_1)
(SID_NAME = cdb1)
)
(SID_DESC =
(GLOBAL_DBNAME = standdb)
(ORACLE_HOME = /data/oracle/app/oracle/product/12.1.0.2/db_1)
(SID_NAME = standdb)
)
)
ADR_BASE_LISTENER = /data/oracle/app/oracle

After correcting listener.ora file, We were able to start the listener.

if you want to know about the listener.ora and tnsnames.ora file then you can read from oracle official site.

In above example we have seen how to resolve the error of TNS-01150: The address of the specified listener name is incorrect