<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									ORA-12154: TNS:could not resolve the connect identifier specified - Developer Network Q&amp;A				            </title>
            <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/</link>
            <description>BY Network Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 11 Apr 2026 20:21:25 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Answer to: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-7043</link>
                        <pubDate>Tue, 19 Oct 2021 15:03:38 +0000</pubDate>
                        <description><![CDATA[On one occasion, after my IP changed, I had to use this tip from
 
I changed the listener to localhost from an invalid IP
 
alter system set local_listener=&#039;(ADDRESS=(PROTOCOL=TCP)(HOST=l...]]></description>
                        <content:encoded><![CDATA[<p>On one occasion, after my IP changed, I had to use this tip from https://logic.edchen.org/how-to-resolve-the-listener-supports-no-services</p>
<p> </p>
<p>I changed the listener to localhost from an invalid IP</p>
<p> </p>
<p><span>alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522))';</span></p>
<p>alter system register;</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Greg Merrill</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-7043</guid>
                    </item>
				                    <item>
                        <title>RE: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-6302</link>
                        <pubDate>Fri, 04 Jun 2021 16:40:40 +0000</pubDate>
                        <description><![CDATA[In Oracle databases 0.0.0.0 is a wild card for any host. You can use this in the listener.ora and tnsnames.ora files if you have trouble getting other host values to connect.]]></description>
                        <content:encoded><![CDATA[In Oracle databases 0.0.0.0 is a wild card for any host. You can use this in the listener.ora and tnsnames.ora files if you have trouble getting other host values to connect.]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Matt Nutsch</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-6302</guid>
                    </item>
				                    <item>
                        <title>Answer to: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-6135</link>
                        <pubDate>Fri, 09 Apr 2021 20:46:04 +0000</pubDate>
                        <description><![CDATA[A file called Tnsnames.ora is typically used to resolve TNS.
It&#039;s typically found in the basement, I believe ORACLE_HOME\network\admin directory on windows and the $ORACLE_HOME/network/admi...]]></description>
                        <content:encoded><![CDATA[<p>A file called Tnsnames.ora is typically used to resolve TNS.</p>
<p>It's typically found in the basement, I believe <span>ORACLE_HOME\network\admin </span><span>directory on windows </span><span>and the $ORACLE_HOME/network/admin </span><span>directory on Linux/UNIX</span></p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Chris jordan</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-6135</guid>
                    </item>
				                    <item>
                        <title>Answer to: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5999</link>
                        <pubDate>Fri, 05 Mar 2021 21:49:29 +0000</pubDate>
                        <description><![CDATA[During a recent call we found that a developer&#039;s issue was that they had the wrong name listed in the listener.ora and tnsnames.ora files.
Here are the steps to find out what name goes in t...]]></description>
                        <content:encoded><![CDATA[<p>During a recent call we found that a developer's issue was that they had the wrong name listed in the listener.ora and tnsnames.ora files.</p>
<p>Here are the steps to find out what name goes in those files (when using Windows 10):<br />Click on the Windows search field in the bottom left of Windows.<br />Search for and open Control Panel.<br />Click on System and Security<br />Click on System<br />The value to use will be shown next to "Full computer name".</p>
<p>screenshot:</p>
137
<p>screenshot 2:</p>
138
<p>screenshot 3:</p>
139
<p>Note: that not all "Full computer name" values have the domain. Some just use the Computer name. Removing extra text here, such as ".attlocal.net" (and then restarting the services) fixed this issue for some users.</p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Matt Nutsch</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5999</guid>
                    </item>
				                    <item>
                        <title>RE: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5704</link>
                        <pubDate>Tue, 03 Nov 2020 16:50:52 +0000</pubDate>
                        <description><![CDATA[@mgouveia
We don&#039;t use tnsnames.ora in most environments (definitely not in local).  We use fully-qualified host/port/sid like localhost:1521/XEPDB1]]></description>
                        <content:encoded><![CDATA[@mgouveia
We don't use tnsnames.ora in most environments (definitely not in local).  We use fully-qualified host/port/sid like localhost:1521/XEPDB1]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Greg Merrill</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5704</guid>
                    </item>
				                    <item>
                        <title>Answer to: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5703</link>
                        <pubDate>Tue, 03 Nov 2020 16:50:10 +0000</pubDate>
                        <description><![CDATA[This is a challenging issue with multiple possible root causes.  Here is a systematic way to validate this.
First, before trying to connect through java, connect on the command line using s...]]></description>
                        <content:encoded><![CDATA[<p>This is a challenging issue with multiple possible root causes.  Here is a systematic way to validate this.</p>
<p>First, before trying to connect through java, connect on the command line using sqlplus.  For a local dev env with Oracle 18 XE, you should use:</p>
<pre>sqlplus system/password@localhost:1521/XEPDB1</pre>
<p> </p>
<p>You *must* use XEPDB1.  If that doesn't connect, please run:</p>
<pre>lsnrctl status</pre>
<p> </p>
<p>If it's working properly you'll see something like this among the output:</p>
<pre>Services Summary...<br />Service "733cd371b3424e998e46c97f691b550b" has 1 instance(s).<br />Instance "xe", status READY, has 1 handler(s) for this service...<br />Service "CLRExtProc" has 1 instance(s).<br />Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...<br />Service "XE" has 1 instance(s).<br />Instance "xe", status READY, has 1 handler(s) for this service...<br />Service "XEXDB" has 1 instance(s).<br />Instance "xe", status READY, has 1 handler(s) for this service...<br />Service "xepdb1" has 1 instance(s).<br />Instance "xe", status READY, has 1 handler(s) for this service...</pre>
<p> </p>
<p>Note the "xepdb1" entry.  If you don't see the xepdb1 or other services, it means the Oracle database is having trouble talking with the oracle listener.</p>
<p> </p>
<p>We have found a couple root causes for this.  First, check your dbhomeXE\network\admin\listener.ora file and make sure the hostname is correct in the LISTENER entry:</p>
<pre>LISTENER =<br />  (DESCRIPTION_LIST =<br />    (DESCRIPTION =<br />      (ADDRESS = (PROTOCOL = TCP)(HOST = wks-gmerrill1.elogex.com)(PORT = 1521))<br />      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))<br />    )<br />  )</pre>
<p>We've observed that in some envs, this has to be a true hostname, not an IP.  If this value is an IP, or the hostname doesn't match your hostname, please modify this.</p>
<p>Also - check your tnsnames.ora in the same dir.  It should look something like this:</p>
<p> </p>
<pre># tnsnames.ora Network Configuration File: C:\oraclexe\18\dbhomeXE\NETWORK\ADMIN\tnsnames.ora<br /># Generated by Oracle configuration tools.<br /><br />XE =<br />  (DESCRIPTION =<br />    (ADDRESS = (PROTOCOL = TCP)(HOST = wks-gmerrill1.elogex.com)(PORT = 1521))<br />    (CONNECT_DATA =<br />      (SERVER = DEDICATED)<br />      (SERVICE_NAME = XE)<br />    )<br />  )<br /><br />LISTENER_XE =<br />  (ADDRESS = (PROTOCOL = TCP)(HOST = wks-gmerrill1.elogex.com)(PORT = 1521))<br /><br /><br />ORACLR_CONNECTION_DATA =<br />  (DESCRIPTION =<br />    (ADDRESS_LIST =<br />      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))<br />    )<br />    (CONNECT_DATA =<br />      (SID = CLRExtProc)<br />      (PRESENTATION = RO)<br />    )<br />  )<br /><br /></pre>
<p>After changing these, restart the OracleXE service Windows Services, then restart the listener Oracle Listener service in Windows Services.  Finally,  retry the lsnrctl command.</p>
<p>If this still doesn't help, it might be because the database isn't able to register itself to the listener.  This seems to happen sometimes if your IP changes.  We found this link useful in this regard: <span>https://logic.edchen.org/how-to-resolve-the-listener-supports-no-services/</span></p>
<p>The steps for this are:</p>
<p>1) Connect to sqlplus via "sqlplus system/password"  (don't give host port or sid)</p>
<p>2) Run: ALTER SYSTEM REGISTER;</p>
<p>3) exit sqlplus and re-run your lsnrctl status command, you should see it available.</p>
<p> </p>
<p>It's not clear why they aren't getting automatically registered, but calling that command "kicks" oracle so that they get registered.  It's not clear if this will outlive restarts of listeners/dbs/etc.</p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Greg Merrill</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5703</guid>
                    </item>
				                    <item>
                        <title>Answer to: ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5702</link>
                        <pubDate>Fri, 30 Oct 2020 19:20:50 +0000</pubDate>
                        <description><![CDATA[TNS is usually resolved by a file called Tnsnames.ora.
I believe it&#039;s usually found under ORACLE_HOME\network\admin directory on windows and the $ORACLE_HOME/network/admin directory on Linu...]]></description>
                        <content:encoded><![CDATA[<p>TNS is usually resolved by a file called Tnsnames.ora.</p>
<p>I believe it's usually found under <span>ORACLE_HOME\network\admin </span><span>directory on windows </span><span>and the $ORACLE_HOME/network/admin </span><span>directory on Linux/UNIX</span></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Marco Gouveia</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5702</guid>
                    </item>
				                    <item>
                        <title>ORA-12154: TNS:could not resolve the connect identifier specified</title>
                        <link>https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5701</link>
                        <pubDate>Fri, 30 Oct 2020 18:59:44 +0000</pubDate>
                        <description><![CDATA[A developer is having trouble connecting to his Oracle database.
When trying to connect from the command line with &quot;sqlplus&quot;, he gets the following error message: &quot;ORA-12154: TNS:could not ...]]></description>
                        <content:encoded><![CDATA[<p>A developer is having trouble connecting to his Oracle database.</p>
<p>When trying to connect from the command line with "sqlplus", he gets the following error message: "ORA-12154: TNS:could not resolve the connect identifier specified"</p>
<p>This developer is using a computer which was cloned from another computer.</p>
<p>What is the best way to resolve this issue?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.onenetwork.com/sdk-forum/">Developer Network Q&amp;A</category>                        <dc:creator>Matt Nutsch</dc:creator>
                        <guid isPermaLink="true">https://community.onenetwork.com/sdk-forum/ora-12154-tnscould-not-resolve-the-connect-identifier-specified/#post-5701</guid>
                    </item>
							        </channel>
        </rss>
		