<?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 from SAS pass-through to Oracle Data Management Workbench in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646938#M193568</link>
    <description>&lt;P&gt;It might be necessary to ask Tech support if no one here knows.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 02:48:48 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-05-12T02:48:48Z</dc:date>
    <item>
      <title>Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/645899#M193132</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are migrating from Oracle Clinical to Oracle Data Management workbench&lt;/P&gt;&lt;P&gt;I need to connect pass-through from SAS to and Oracle Data Management Workbench (DMW) business area. My problem is that I need to issue both an exec acquire access and a select in the same pass-through session.&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to oracle as connection_name(path = "(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=AAAAAA))&lt;BR /&gt;(ADDRESS=(PROTOCOL=TCP)&lt;BR /&gt;(HOST=nnn.nnn.nnn.nn)(PORT=nnn)))"&lt;BR /&gt;user = "XXX"&lt;BR /&gt;password = "YYYY"&lt;BR /&gt;);&lt;BR /&gt;execute (exec name.name.enable_read('USER')) by connection_name ;&lt;BR /&gt;Create table test as&lt;BR /&gt;Select *&lt;BR /&gt;from connection to oracle&lt;BR /&gt;( SELECT * FROM XXXX.YYYY&lt;BR /&gt;);&lt;BR /&gt;disconnect from connection_name;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;Any experience with connection to Data Management Workbench&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/645899#M193132</guid>
      <dc:creator>PerBundgaard</dc:creator>
      <dc:date>2020-05-07T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646066#M193214</link>
      <description>&lt;P&gt;I don't use&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Data Management Workbench, but doesn't something like this work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;execute by connection (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; exec name.name.enable_read('USER');&lt;BR /&gt;&amp;nbsp; create table TEST as&lt;BR /&gt;&amp;nbsp; select *&lt;BR /&gt;&amp;nbsp; from XXXX.YYYY&lt;BR /&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 23:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646066#M193214</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-07T23:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646106#M193234</link>
      <description>Hi CrisNZ,&lt;BR /&gt;Thanks for your suggestion, but I'm afraid not.&lt;BR /&gt;The&lt;BR /&gt;execute by connection(&lt;BR /&gt;exec name.name.enable_read('USER');)&lt;BR /&gt;Doesn't throw Oracle errors&lt;BR /&gt;&lt;BR /&gt;But I can't have Oracle create table with the USER privileges&lt;BR /&gt;And I would still need to create table to my SAS WORK library&lt;BR /&gt;But Thanks and&lt;BR /&gt;Best regards,&lt;BR /&gt;Per&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 May 2020 05:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646106#M193234</guid>
      <dc:creator>PerBundgaard</dc:creator>
      <dc:date>2020-05-08T05:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646167#M193254</link>
      <description>&lt;P&gt;Oh I see. I think.&lt;/P&gt;
&lt;P&gt;So you need to read a table while passing the credentials to access that table?&lt;/P&gt;
&lt;P&gt;Why not pass these credentials in the &lt;FONT face="courier new,courier"&gt;connect to oracle&lt;/FONT&gt; string?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 11:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646167#M193254</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-08T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646287#M193299</link>
      <description>Hi ChrisNZ,&lt;BR /&gt;I do pass the credentials in the connect string (user and password).&lt;BR /&gt;Then I need to execute a package:&lt;BR /&gt;exec XX.yy('User') ;&lt;BR /&gt;prior to the select&lt;BR /&gt;I can pass the credentials and execute the package without errors from Oracle as follows&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oracle as dmw_conn(path = "(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=LSHTST))&lt;BR /&gt;(ADDRESS=(PROTOCOL=TCP)&lt;BR /&gt;(HOST=132.240.154.71)(PORT=1521)))"&lt;BR /&gt;user = "User"&lt;BR /&gt;password = "Password"&lt;BR /&gt;);&lt;BR /&gt;execute(exec XX_yy('User')) by dmw_conn ;&lt;BR /&gt;quit;&lt;BR /&gt;but when I include a select from connection to Oracle in the same proc sql:&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oracle as dmw_conn(path = "(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=LSHTST))&lt;BR /&gt;(ADDRESS=(PROTOCOL=TCP)&lt;BR /&gt;(HOST=132.240.154.71)(PORT=1521)))"&lt;BR /&gt;user = "User"&lt;BR /&gt;password = "Password"&lt;BR /&gt;);&lt;BR /&gt;Create table test as&lt;BR /&gt;Select *&lt;BR /&gt;from connection to oracle&lt;BR /&gt;(SELECT * FROM zzz.xxx&lt;BR /&gt;);&lt;BR /&gt;disconnect from dmw_conn;&lt;BR /&gt;quit;&lt;BR /&gt;I get the&lt;BR /&gt;ERROR: ORACLE connection error: ORA-12560: TNS:protocol adapter error&lt;BR /&gt;Thanks for your input&lt;BR /&gt;</description>
      <pubDate>Fri, 08 May 2020 18:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646287#M193299</guid>
      <dc:creator>PerBundgaard</dc:creator>
      <dc:date>2020-05-08T18:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646314#M193310</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17271"&gt;@PerBundgaard&lt;/a&gt;&amp;nbsp; - How about using the SHARED SQL connection option then splitting your EXECUTE and SELECT statements into separate uses of that shared connection -&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0rn6hhsizv3trn1cl3e0ofosawi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0rn6hhsizv3trn1cl3e0ofosawi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 21:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646314#M193310</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-05-08T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646861#M193548</link>
      <description>Hi SASKiwi,&lt;BR /&gt;&lt;BR /&gt;Sorry for the delayed response, I apparently filed it wrong&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion using the connection=shared.&lt;BR /&gt;As I read the documentation the 'shared' option is the default, only one connection is established and the connection is shared among SQL pass-through statements.&lt;BR /&gt;Not entirely sure I understand the 'global' option in a pass-through setting, but I've tried both in various ways. For example:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oracle as dmw_conn(path = "(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=LSHTST))&lt;BR /&gt;(ADDRESS=(PROTOCOL=TCP)&lt;BR /&gt;(HOST=132.240.154.71)(PORT=1521)))"&lt;BR /&gt;user = "User"&lt;BR /&gt;password = "password"&lt;BR /&gt;connection = shared&lt;BR /&gt;);&lt;BR /&gt;execute(exec package('User')) by dmw_conn ;&lt;BR /&gt;Create table test as&lt;BR /&gt;Select *&lt;BR /&gt;from connection to oracle&lt;BR /&gt;(SELECT * FROM schema.table&lt;BR /&gt;);&lt;BR /&gt;disconnect from dmw_conn;&lt;BR /&gt;quit;&lt;BR /&gt;I'm afraid with the same result. I can execute the package pass-through alone but when I try to Select using the same connection in the same proc sql. I get the&lt;BR /&gt;&lt;BR /&gt;ERROR: ORACLE connection error: ORA-12560: TNS:protocol adapter error.&lt;BR /&gt;&lt;BR /&gt;EXEC package('User');&lt;BR /&gt;SELECT * FROM schema.table&lt;BR /&gt;&lt;BR /&gt;Works fine in Toad for Oracle&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Per&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 May 2020 19:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646861#M193548</guid>
      <dc:creator>PerBundgaard</dc:creator>
      <dc:date>2020-05-11T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646938#M193568</link>
      <description>&lt;P&gt;It might be necessary to ask Tech support if no one here knows.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 02:48:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/646938#M193568</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-12T02:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting from SAS pass-through to Oracle Data Management Workbench</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/648807#M194431</link>
      <description>&lt;P&gt;Solution turned out to be quite simple when I had help from Henrik Dorph SAS Institute DK.&lt;/P&gt;&lt;P&gt;In all this excitement I lost track of how many connections I opened in the explicit pass-through and their alias names.&lt;/P&gt;&lt;P&gt;You can both&lt;/P&gt;&lt;P&gt;execute(...) by conn&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Select from connection to conn&lt;/P&gt;&lt;P&gt;in the same pass-through. But you must be care full with the connection alias (conn) and when they are 'open'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; connect to oracle as &lt;FONT color="#FF0000"&gt;dmw_conn&lt;/FONT&gt;(path = "(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=LSHTST))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(ADDRESS=(PROTOCOL=TCP)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (HOST=132.240.154.71)(PORT=1521)))"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user = "User"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password = "Password"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create table test as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from connection to &lt;FONT color="#FF0000"&gt;dmw_conn&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SELECT * FROM zzz.xxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;disconnect from &lt;FONT color="#FF0000"&gt;dmw_conn&lt;/FONT&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 11:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-from-SAS-pass-through-to-Oracle-Data-Management/m-p/648807#M194431</guid>
      <dc:creator>PerBundgaard</dc:creator>
      <dc:date>2020-05-19T11:49:04Z</dc:date>
    </item>
  </channel>
</rss>

