<?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: check &amp;quot;active&amp;quot; connection to oracle library (via ACCESS to oracle) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447062#M283307</link>
    <description>actually, we are trying to live with the (externally given) limitations, not install those.&lt;BR /&gt;I will have a look at the proposed item, maybe there are also parts to check the current status/connection.&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Mar 2018 12:19:37 GMT</pubDate>
    <dc:creator>umct</dc:creator>
    <dc:date>2018-03-20T12:19:37Z</dc:date>
    <item>
      <title>check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447040#M283305</link>
      <description>&lt;P&gt;hello fellow SAS-users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to "check" for an "active" ACCESS to oracle connection (which is set via libname at the start of the process).&lt;/P&gt;&lt;P&gt;The connection is working most of the times, but as the oracle instance is setup in a way that there is a limited number of "licenses" that have concurrent access to the database, we are running into some problems during heavy load times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an intelligent way to check for "active" connection to the oracle instance, besides trying to "load data" (data step, pass through) and checking for error codings? Is there some meta-information about the current status of the library/connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for any helpful insights!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 10:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447040#M283305</guid>
      <dc:creator>umct</dc:creator>
      <dc:date>2018-03-20T10:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447059#M283306</link>
      <description>&lt;P&gt;Haven't done this, yet, but using the options "connection" and "connection_group", see &lt;A href="http://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1qft7bzdij79zn1bxh59mc3w8xj.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de" target="_blank"&gt;http://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1qft7bzdij79zn1bxh59mc3w8xj.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=de&lt;/A&gt; for details, seems to be a possibility to limit the number of connections by using the same group name.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447059#M283306</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-03-20T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447062#M283307</link>
      <description>actually, we are trying to live with the (externally given) limitations, not install those.&lt;BR /&gt;I will have a look at the proposed item, maybe there are also parts to check the current status/connection.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447062#M283307</guid>
      <dc:creator>umct</dc:creator>
      <dc:date>2018-03-20T12:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447083#M283308</link>
      <description>&lt;P&gt;Run this bit of code to test:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Input the libref for the library you want to test here */

%let LibrefToTest=%upcase(ORION);
/* test if Libref is actually assigned */
%let LibrefAssigned=%eval(NOT(%sysfunc(libref(%superq(LibrefToTest)))));

/* test if Libref can access any tables */
proc sql noprint;
   select count(*)&amp;gt;0
   into: TablesAccessible trimmed
   from dictionary.tables
   where libname = "%superq(LibrefToTest)"
  ;
quit;

/* If both of these are 1, all is well. Otherwise, reconnect */
%put &amp;amp;=LibrefAssigned &amp;amp;=TablesAccessible ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When the connection is good, both variable values will be 1 (true)&lt;/P&gt;
&lt;P&gt;When the libref is still assigned, but no tables can be accessed,&amp;nbsp;LIBREFASSIGNED=1 TABLESACCESSIBLE=0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447083#M283308</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2018-03-20T13:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447165#M283309</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot, that was just the strategy I was looking for.&lt;/P&gt;&lt;P&gt;We will check for library assignment and the access via dictionary.tables!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick help!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447165#M283309</guid>
      <dc:creator>umct</dc:creator>
      <dc:date>2018-03-20T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: check "active" connection to oracle library (via ACCESS to oracle)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447168#M283310</link>
      <description>My pleasure - you are most welcome!&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 20 Mar 2018 15:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-quot-active-quot-connection-to-oracle-library-via-ACCESS/m-p/447168#M283310</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2018-03-20T15:29:36Z</dc:date>
    </item>
  </channel>
</rss>

