<?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 Need Help: Facing problem when connecting to Oracle database using Libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44178#M9043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing a right-hand bracket at the end of your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried running this query in an Oracle query tool such as SQL Plus or Toad directly on Oracle and if so how long did it take?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using SQL Passthru in SAS and you should get the same performance as in SQL Plus or Toad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;connect&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; oracle (user = ‘userid’ password = ‘password’ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;path = schema)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; connection to oracle (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;SELECT OBJECT_NAME, OBJECT_TYPE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;FROM ALL_OBJECTS OBJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;WHERE (OBJ.OWNER = 'SCHEMA')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;AND (OBJECT_TYPE = 'TABLE' OR OBJECT_TYPE = 'VIEW')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Disconnect from oracle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2011 00:21:49 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2011-11-10T00:21:49Z</dc:date>
    <item>
      <title>Need Help: Facing problem when connecting to Oracle database using Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44177#M9042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have SAS job which is connect to Oracle&amp;nbsp; to load data using Libname. But this connection is creating unnecessary process in Oracle environment and that process is creating and executing the below query:&lt;/P&gt;&lt;DIR&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;P&gt;SELECT OBJECT_NAME, OBJECT_TYPE&lt;/P&gt;&lt;P&gt;FROM ALL_OBJECTS OBJ&lt;/P&gt;&lt;P&gt;WHERE (OBJ.OWNER = 'SCHEMA')&lt;/P&gt;&lt;P&gt;AND (OBJECT_TYPE = 'TABLE' OR OBJECT_TYPE = 'VIEW'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And this process is not completing even though actual SAS job is completed in SAS environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It is causing some performance issues in Oracle side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could some one help me, how we can restrict to not to create Oracle process which is creating above query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in Advance!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Durga.&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIR&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44177#M9042</guid>
      <dc:creator>durga</dc:creator>
      <dc:date>2011-11-09T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Need Help: Facing problem when connecting to Oracle database using Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44178#M9043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing a right-hand bracket at the end of your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried running this query in an Oracle query tool such as SQL Plus or Toad directly on Oracle and if so how long did it take?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using SQL Passthru in SAS and you should get the same performance as in SQL Plus or Toad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;connect&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; oracle (user = ‘userid’ password = ‘password’ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;path = schema)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; connection to oracle (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;SELECT OBJECT_NAME, OBJECT_TYPE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;FROM ALL_OBJECTS OBJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;WHERE (OBJ.OWNER = 'SCHEMA')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;AND (OBJECT_TYPE = 'TABLE' OR OBJECT_TYPE = 'VIEW')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Disconnect from oracle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;Quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 00:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44178#M9043</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-11-10T00:21:49Z</dc:date>
    </item>
    <item>
      <title>Need Help: Facing problem when connecting to Oracle database using Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44179#M9044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to track down the source of a sql submission to the database use the sastrace option.&amp;nbsp; Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options sastrace=',,,d' sastraceloc=log;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 22:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44179#M9044</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-11-10T22:51:44Z</dc:date>
    </item>
    <item>
      <title>Need Help: Facing problem when connecting to Oracle database using Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44180#M9045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank You So much for ur responce. It really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 12:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Facing-problem-when-connecting-to-Oracle-database/m-p/44180#M9045</guid>
      <dc:creator>durga</dc:creator>
      <dc:date>2011-11-18T12:45:01Z</dc:date>
    </item>
  </channel>
</rss>

