<?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: Connect to Oracle Database in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366147#M87072</link>
    <description>&lt;P&gt;From memory (quite a while back) TNSNames.txt is a file on your computer with connection information. &amp;nbsp;It sounds like this file is missing, or has incorrect information in it. &amp;nbsp;Contact your IT and get them to update it.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 13:44:59 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-06-12T13:44:59Z</dc:date>
    <item>
      <title>Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366135#M87062</link>
      <description>&lt;P&gt;Can someone help write the code to connect SAS EG to Oracle database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i have so far:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	CONNECT TO ORACLE AS DBCON
		(USER=XXXX PASSWORD=XXXX PATH='EDWP');
	select *       
   	from connection to oracle
(select*from CUSTOMERS);
    disconnect from oracle; 
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However,&amp;nbsp;I recieve an error once I get to "customers". I do not know if cuctomers is even what I should be putting there. From my IT department, I recieved a list of oracle tables and IDWE_OWN.CUSTOMERS was one of the tables listed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS EG 5.1&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366135#M87062</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-06-12T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366137#M87064</link>
      <description>&lt;P&gt;Everything looks right. try change it to IDWE_OWN.CUSTOMERS instead of customers&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366137#M87064</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-06-12T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366138#M87065</link>
      <description>&lt;P&gt;I have tried what you suggested and am still recieving the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE connection error: ORA-12162: TNS:net service name is incorrectly specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366138#M87065</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-06-12T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366142#M87068</link>
      <description>&lt;P&gt;I think what you might used and I suggested is libname assigned for a particular schema in oracle. Please ask the IT people, what is the name of schema.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366142#M87068</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-06-12T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366143#M87069</link>
      <description>&lt;P&gt;How would i create a libname? Sorry,&amp;nbsp;I am fairly new to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The name of the schema is IDWE, the environment is PROD and the database name is EDWP.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366143#M87069</guid>
      <dc:creator>Amber_Nicole94</dc:creator>
      <dc:date>2017-06-12T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366147#M87072</link>
      <description>&lt;P&gt;From memory (quite a while back) TNSNames.txt is a file on your computer with connection information. &amp;nbsp;It sounds like this file is missing, or has incorrect information in it. &amp;nbsp;Contact your IT and get them to update it.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366147#M87072</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-12T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366156#M87078</link>
      <description>&lt;P&gt;You should get the IT department to configure the TNS names file properly for you.&lt;/P&gt;
&lt;P&gt;If that is not possible you can tell SAS the information that it would normally lookup using the tnsname directly.&lt;/P&gt;
&lt;P&gt;See this guide.&lt;/P&gt;
&lt;P&gt;&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"&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 14:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366156#M87078</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-12T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle Database</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366231#M87107</link>
      <description>&lt;P&gt;I generally connect with a LIBNAME statement and then use that in PROC SQL. &amp;nbsp;This way I can use one connection for both implicit and explicit pass-through SQL. For you it would probably look something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME OracSAS ORACLE USER=&amp;amp;UserNm PASS=&amp;amp;PassWd PATH='EDWP' SCHEMA=IDWE CONNECTION=GLOBAL;

PROC SQL;
    CONNECT USING OracSAS AS OracDB;
    /* CODE */
    DISCONNECT FROM OracDB;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-Database/m-p/366231#M87107</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-06-12T17:18:01Z</dc:date>
    </item>
  </channel>
</rss>

