<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632152#M187388</link>
    <description>&lt;P&gt;You don't need sql plus, go to control panel and ODBC connections to see if the DSN entry is there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have verified the DSN name and it is correct.&lt;/P&gt;
&lt;P&gt;I don't have no access to sqlplus.&amp;nbsp; Not authorized to connect from Desktop using SQL developer.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Mar 2020 14:33:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-03-14T14:33:21Z</dc:date>
    <item>
      <title>Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632057#M187343</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;We have a new RHEL 7 server&amp;nbsp; and SAS 9.4 M6 and which we have the oracle instant client and unixODBC installed&lt;/P&gt;&lt;P&gt;When I try to create a library with&amp;nbsp; libname statement as follows :&lt;/P&gt;&lt;P&gt;libname testlib odbc dsn=datasyn user='xxx' password='xxx';&lt;/P&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [unixODBC][Oracle][ODBC][Ora]ORA-12162: TNS:net service name is incorrectly&lt;BR /&gt;specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;I tried changing the case, adding single and double quotes around password and dsn values but there is no impact.&lt;BR /&gt;Oracle dba says there is no issue from their side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen these posts and they do not help&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Connecting-to-Oracle-via-libname-odbc-Schema-spec-doesn-t-work/td-p/17859" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Connecting-to-Oracle-via-libname-odbc-Schema-spec-doesn-t-work/td-p/17859&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Writing-to-Oracle-database-using-ODBC-connection/td-p/35326" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Writing-to-Oracle-database-using-ODBC-connection/td-p/35326&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/A-quick-guide-to-connecting-to-Oracle-from-SAS/ta-p/331849" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Communities-Library/A-quick-guide-to-connecting-to-Oracle-from-SAS/ta-p/331849&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Wondering if anybody had similar issue and how they solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 19:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632057#M187343</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2020-03-13T19:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632066#M187351</link>
      <description>Are you trying to connect from a SAS Server or desktop? If it's a desktop try and see if you can connect via the ODBC control panel first.</description>
      <pubDate>Fri, 13 Mar 2020 20:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632066#M187351</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T20:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632086#M187358</link>
      <description>&lt;P&gt;I suggest you review the definition of datasyn in your Oracle tnsnames.ora configuration file. Also try the SQLPLUS Oracle client on your SAS server to see if it connects to datasyn OK.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632086#M187358</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-13T22:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632089#M187361</link>
      <description>&lt;P&gt;Thanks for the response, SAS EG / Server.&lt;/P&gt;&lt;P&gt;There is no Base&amp;nbsp; SAS installed on the Desktop.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632089#M187361</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2020-03-13T22:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632090#M187362</link>
      <description>&lt;P&gt;I have verified the DSN name and it is correct.&lt;/P&gt;&lt;P&gt;I don't have no access to sqlplus.&amp;nbsp; Not authorized to connect from Desktop using SQL developer.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632090#M187362</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2020-03-13T22:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632091#M187363</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp; - This might be closer to the mark: &lt;A href="http://www.dba-oracle.com/t_ora_12162_tns_net_service_name.htm" target="_blank"&gt;http://www.dba-oracle.com/t_ora_12162_tns_net_service_name.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or it is possible the ORACLE_HOME and ORACLE_SID settings are correct but SAS has not been configured for them:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=bidsag&amp;amp;docsetTarget=p1w3v98qca3sfzn1rzty2tngrfyq.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=bidsag&amp;amp;docsetTarget=p1w3v98qca3sfzn1rzty2tngrfyq.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632091#M187363</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-13T22:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632152#M187388</link>
      <description>&lt;P&gt;You don't need sql plus, go to control panel and ODBC connections to see if the DSN entry is there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have verified the DSN name and it is correct.&lt;/P&gt;
&lt;P&gt;I don't have no access to sqlplus.&amp;nbsp; Not authorized to connect from Desktop using SQL developer.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 14:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632152#M187388</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-14T14:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632167#M187398</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have verified the DSN name and it is correct.&lt;/P&gt;
&lt;P&gt;I don't have no access to sqlplus.&amp;nbsp; Not authorized to connect from Desktop using SQL developer.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Is SAS running on Unix or Windows?&amp;nbsp; If you don't know the macro variables SYSSCP&amp;nbsp; and SYSSCPL will show you.&lt;/P&gt;
&lt;P&gt;Have someone that CAN run commands on the server confirm that the DSN name works.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 17:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632167#M187398</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-14T17:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632178#M187405</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; - The OP is running SAS on a linux server (RHEL = Red Hat Enterprise Linux), so there is no Control Panel or ODBC Administrator (Windows only). In my experience, when the Oracle client software (SQL*NET) is installed to support Oracle connections sqlplus is part of this. It is always possible this has changed though.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 21:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632178#M187405</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-14T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632278#M187438</link>
      <description>No, I connect to Oracle DB and no sqlplus is required on the Unix box, just the correct drivers and tsn.&lt;BR /&gt;&lt;BR /&gt;OP updated their post, it wasn't clear earlier if it was server install or desktop.</description>
      <pubDate>Sun, 15 Mar 2020 21:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632278#M187438</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-15T21:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632294#M187448</link>
      <description>&lt;P&gt;Thanks everybody.&lt;/P&gt;&lt;P&gt;More details are as follows.&lt;BR /&gt;We are building a new&amp;nbsp; server with RHEL 7 and SAS 9.4M6. This is to replace an older server with&amp;nbsp; RHEL 6 and SAS 9.4M4.&lt;BR /&gt;Everything works well on the old machine.&amp;nbsp;&lt;BR /&gt;The older installation has been replicated on the new server&amp;nbsp; including folder names and paths; tnsnames.ora,&amp;nbsp; /etc/odbc.ini and sasenv_local.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is a bit surprising.&lt;/P&gt;&lt;P&gt;Wanted to have an idea if anybody else faced a similar issue.&lt;/P&gt;&lt;P&gt;Will be taking with DBA's.&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 00:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632294#M187448</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2020-03-16T00:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632295#M187449</link>
      <description>&lt;P&gt;Have you also seen these instructions already?&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-configure-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/ta-p/231900" target="_self"&gt;How to configure SAS/ACCESS Interface to ODBC on UNIX Platforms&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This article and the linked ones on top of the article appear to pretty much cover what needs to be done - and what you could verify if it's this way in your environment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the things from the article: "&lt;EM&gt;SAS attempts to use the first 64-bit ODBC driver manager that it finds&lt;/EM&gt;." Did the sequence eventually change?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 00:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/632295#M187449</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-16T00:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to oracle with Libname  odbc : Error :TNS:net service name is incorrectly  specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/637578#M189503</link>
      <description>&lt;P&gt;Thanks everybody. The&lt;/P&gt;&lt;P&gt;database team reinstalled the client.&lt;/P&gt;&lt;P&gt;And everything worked.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 14:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-oracle-with-Libname-odbc-Error-TNS-net-service/m-p/637578#M189503</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2020-04-04T14:13:36Z</dc:date>
    </item>
  </channel>
</rss>

