<?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 Unable to execute Libname instruction with Operating system services scheduler on SMC in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-execute-Libname-instruction-with-Operating-system/m-p/535293#M16524</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USING SAS 9.4&amp;nbsp;plateform i have a SAS DIS job that reads data from ORACLE DB threw an ODBC Connection. the jobs works just fine. once deployed&amp;nbsp; i created a flow in SAS Management console to schedule the execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;i'm unable to execute Libname instruction using Operating system services scheduler on SAS MANAGEMENT CONSOLE below the message error in the log file:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Credential obtained from SAS metadata server&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error CLI error trying to establish connection: [unixODBC]Driver Manager] can't open lib ' /opt/oracle/instantclient_12_1/lisqora.so.12.1: file not found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides SAS DIS i tested the Libname instruction Using SAS EG. i can run the exact Libname instruction below the note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Credetial obtained from SAS metadata server.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Libref XXX was sucessfully assigned as follows:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Engine: ODBC:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Physica Name: XXXX&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions on what can be the problem.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rami&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 16:57:00 GMT</pubDate>
    <dc:creator>rami_braham</dc:creator>
    <dc:date>2019-02-13T16:57:00Z</dc:date>
    <item>
      <title>Unable to execute Libname instruction with Operating system services scheduler on SMC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-execute-Libname-instruction-with-Operating-system/m-p/535293#M16524</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USING SAS 9.4&amp;nbsp;plateform i have a SAS DIS job that reads data from ORACLE DB threw an ODBC Connection. the jobs works just fine. once deployed&amp;nbsp; i created a flow in SAS Management console to schedule the execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;i'm unable to execute Libname instruction using Operating system services scheduler on SAS MANAGEMENT CONSOLE below the message error in the log file:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Credential obtained from SAS metadata server&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error CLI error trying to establish connection: [unixODBC]Driver Manager] can't open lib ' /opt/oracle/instantclient_12_1/lisqora.so.12.1: file not found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides SAS DIS i tested the Libname instruction Using SAS EG. i can run the exact Libname instruction below the note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Credetial obtained from SAS metadata server.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Libref XXX was sucessfully assigned as follows:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Engine: ODBC:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Physica Name: XXXX&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions on what can be the problem.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rami&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-execute-Libname-instruction-with-Operating-system/m-p/535293#M16524</guid>
      <dc:creator>rami_braham</dc:creator>
      <dc:date>2019-02-13T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute Libname instruction with Operating system services scheduler on SMC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-execute-Libname-instruction-with-Operating-system/m-p/535386#M16526</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/94212"&gt;@rami_braham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like the system account under which the scheduler executes the deployed job doesn't have the necessary OS level privileges to access&amp;nbsp;&lt;EM&gt;/opt/oracle/instantclient_12_1/lisqora.so.12.1&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also worth testing:&lt;/P&gt;
&lt;P&gt;Run a piece of code which issues a proc options; and a Unix ENV statement and compare in the log if the environment is sufficiently the same when using DIS/EG or running code in batch via scheduler. I'm just thinking the issue could also arise if&amp;nbsp;&lt;SPAN&gt;LD_LIBRARY_PATH is not set correctly when running via scheduler.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.oracle.com/thread/2594875&amp;nbsp;" target="_blank" rel="noopener"&gt;https://community.oracle.com/thread/2594875&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 20:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-execute-Libname-instruction-with-Operating-system/m-p/535386#M16526</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-13T20:23:55Z</dc:date>
    </item>
  </channel>
</rss>

