<?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 Connecting to Oracle failed in VDI environment in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179575#M3612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect to a Oracle data base using SAS 9.3 with a 4.3 EG client within a VDI environment. I'm using the following LIBNAME statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname MYLIB oracle&lt;/P&gt;&lt;P&gt;path='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=XXX)(PROTOCOL=TCP)(HOST=HostXXX)(PORT=1522)))(CONNECT_DATA=(SID=XXX)))'&lt;/P&gt;&lt;P&gt;user=xxx&lt;/P&gt;&lt;P&gt;password='xxx'&lt;/P&gt;&lt;P&gt;preserve_tab_names=yes&lt;/P&gt;&lt;P&gt;preserve_col_names=yes&lt;/P&gt;&lt;P&gt;schema=ORASCHEMA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE connection error: ORA-12170: TNS:Connect timeout occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to connect via SQL Developer from within the same VDI environment and it worked (and I also can see data). Does the VDI environment cause the problem and if yes, how to come around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, comments are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 12:59:39 GMT</pubDate>
    <dc:creator>jan_seidel</dc:creator>
    <dc:date>2014-07-15T12:59:39Z</dc:date>
    <item>
      <title>Connecting to Oracle failed in VDI environment</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179575#M3612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect to a Oracle data base using SAS 9.3 with a 4.3 EG client within a VDI environment. I'm using the following LIBNAME statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname MYLIB oracle&lt;/P&gt;&lt;P&gt;path='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=XXX)(PROTOCOL=TCP)(HOST=HostXXX)(PORT=1522)))(CONNECT_DATA=(SID=XXX)))'&lt;/P&gt;&lt;P&gt;user=xxx&lt;/P&gt;&lt;P&gt;password='xxx'&lt;/P&gt;&lt;P&gt;preserve_tab_names=yes&lt;/P&gt;&lt;P&gt;preserve_col_names=yes&lt;/P&gt;&lt;P&gt;schema=ORASCHEMA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE connection error: ORA-12170: TNS:Connect timeout occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to connect via SQL Developer from within the same VDI environment and it worked (and I also can see data). Does the VDI environment cause the problem and if yes, how to come around?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, comments are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179575#M3612</guid>
      <dc:creator>jan_seidel</dc:creator>
      <dc:date>2014-07-15T12:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Oracle failed in VDI environment</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179576#M3613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using the schema definition and the full path?&amp;nbsp;&amp;nbsp; &lt;BR /&gt;The schema definition is the one related to the TNSNAMES file that should be configured to your sas sessions (environment variable).&lt;BR /&gt;The full path definition is the line that should exactly match what is known in the TNSNAMES, effectively replacing all that. &lt;BR /&gt;A TNSNAMES file is not necessary in this way of coding. Every typo will cause an error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Strange to see al those XXX there, that cannot be correct.&amp;nbsp; Are you sure about 1522 normally seen is 1521. (oracle server default).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179576#M3613</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-15T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Oracle failed in VDI environment</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179577#M3614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;I've tried it using the TNS name, but still getting the same error. However, when using the SQL Developer the connection via TNS doesn't work either, with error message: No ocijdbc11 in java.library.path&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But it did work when I've used the full path specification. So it maybe has something to do with java?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The XXX are just placeholders.&lt;/LI&gt;&lt;LI&gt;Yes, port 1522 is correct!&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 07:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179577#M3614</guid>
      <dc:creator>jan_seidel</dc:creator>
      <dc:date>2014-07-16T07:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Oracle failed in VDI environment</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179578#M3615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The string in SAS should be exactly the same as the one you got working in SQL developer. That are a lot of placeholders any typo will a possible cause for a failing connect.&lt;/P&gt;&lt;P&gt; Did you remove the schema specification with your libname? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This layout worked... (not java related. Ora client may be.&amp;nbsp;&amp;nbsp; Not really different &lt;/P&gt;&lt;P&gt; path=´(DESCRIPTION=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ADDRESS = (PROTOCOL = TCP) (HOST = &amp;lt;dns oracle-server&amp;gt;) (PORT = &amp;lt;port oracle-server&amp;gt;) )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CONNECT_DATA = (SID=&amp;lt;ora sid&amp;gt;) )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )´&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179578#M3615</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-07-16T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Oracle failed in VDI environment</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179579#M3616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've removed schema specification and tried the layout you've suggested, without success. However, meanwhile I had chat with the guys who're running the SAS environment. Currently they see two issues: 1. the SAS server "doesn't know" the data base connection, 2. the data base is sitting behind a firewall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter one, I thought, is not a problem, because I'm executing SAS EG client from within a VDI environment that is actually located *behind* the firewall. But that's of course not true. In a client server set-up it doesn't matter where the client is located. My major learning for today &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though problem is not solved yet, I'll close this discussion here. I think the SAS environment guys and the Oracle guys have to sort that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comments Jaap!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 12:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connecting-to-Oracle-failed-in-VDI-environment/m-p/179579#M3616</guid>
      <dc:creator>jan_seidel</dc:creator>
      <dc:date>2014-07-16T12:02:11Z</dc:date>
    </item>
  </channel>
</rss>

