<?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 Connecting to Oracle from SAS Viya 4 on AWS in Moving to SAS Viya</title>
    <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Connecting-to-Oracle-from-SAS-Viya-4-on-AWS/m-p/929478#M87</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I have been trying to test connection to on premises Oracle installation from a POC of SAS Viya4 on AWS. SAS Access Interface to Oracle is available.&lt;BR /&gt;I have followed the wonderful tutorial on the subject at&lt;/P&gt;
&lt;P lang="x-none"&gt;&lt;A href="https://www.youtube.com/watch?v=mTT8K-UuHGw&amp;amp;list=PLVBcK_IpFVi80HeTBtFZ7pubwoBBATBHE" target="_blank"&gt;SAS Demo | How to Configure a SAS/ACCESS Interface in SAS Viya 4 &lt;/A&gt;&lt;/P&gt;
&lt;P lang="x-none"&gt;and followed the process with local adaptations. But I get the following error&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ERROR: Unable to load oracle client (libclntsh.so)
ERROR: Error in the LIBNAME statement.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;when trying to connect from SAS studio using a simple libname statement (as shown in the above tutorial.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test oracle user=validUser password=validPath path="\\validHostname.example.com:1521" SCHEMA=validSchema;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The user, password etc work in&amp;nbsp; normal SAS installation.&lt;/P&gt;
&lt;P&gt;I executed the following code in SAS Studio to see if the environment variables are available&amp;nbsp; to SAS or not. The code and output&amp;nbsp; are reproduced below&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;81   data _null_;
82   if sysexist('PATH') then do;
83     path = sysget('PATH');
84   put path=;
85   end;
86   else do;
87   put "PATH does not exist";
88   end;
89    if sysexist('ORACLE_HOME') then do;
90     Oracle_Home = sysget('ORACLE_HOME');
91   put Oracle_HOME=;
92   end;
93   else do;
94   put "ORACLE_HOME does not exist";
95   end;
96   if sysexist('ORACLE_BIN') then do;
97     Oracle_Bin = sysget('ORACLE_BIN');
98   put oracle_bin=;
99   end;
100  else do;
101  put "ORACLE_BIN does not exist";
102  end;
103  if sysexist('TNS_ADMIN') then do;
104    Tns_admin = sysget('TNS_ADMIN');
105  put Tns_admin=;
106  end;
107  else do;
108  put "TNS_ADMIN does not exist";
109  end;
110  if sysexist('LD_LIBRARY_PATH') then do;
111    LD_LIB_PATH = sysget('LD_LIBRARY_PATH');
112  put LD_LIB_PATH=;
113  end;
114  else do;
115  put "LD_LIB_PATH does not exist";
116  end;
117  run;
path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/access-clients/Oracle/instantclient:/opt/sas/viya/home/lib64
Oracle_Home=/access-clients/Oracle/instantclient
Oracle_Bin=/access-clients/Oracle/instantclient
Tns_admin=/access-clients/Oracle/instantclient/network/admin
LD_LIB_PATH=/opt/sas/viya/home/lib64:/usr/lib/jvm/java-17-openjdk-17.0.9.0.9-2.el8.x86_64/lib/server:/usr/lib/jvm/java-17-openjdk-17
.0.9.0.9-2.el8.x86_64/lib:/opt/sas/viya/home/SASFoundation/sasexe:/access-client
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      &lt;/LI-CODE&gt;
&lt;P&gt;From the above code output,it is clear that the instant client path and libraries are clearly visible.&lt;BR /&gt;I feel SAS Viya 4 on the cloud must have been around for some time and other users must have successfully accomplished this task.&lt;BR /&gt;I would appreciate if any of them can&amp;nbsp; share their thoughts about what could have gone wrong.&lt;BR /&gt;PS : I did see this post with similar error and feel the resolution would not work for me&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-Access-Oracle-Configuration/m-p/927516" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/SAS-Access-Oracle-Configuration/m-p/927516&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 19:57:02 GMT</pubDate>
    <dc:creator>thesasuser</dc:creator>
    <dc:date>2024-05-23T19:57:02Z</dc:date>
    <item>
      <title>Connecting to Oracle from SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Connecting-to-Oracle-from-SAS-Viya-4-on-AWS/m-p/929478#M87</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have been trying to test connection to on premises Oracle installation from a POC of SAS Viya4 on AWS. SAS Access Interface to Oracle is available.&lt;BR /&gt;I have followed the wonderful tutorial on the subject at&lt;/P&gt;
&lt;P lang="x-none"&gt;&lt;A href="https://www.youtube.com/watch?v=mTT8K-UuHGw&amp;amp;list=PLVBcK_IpFVi80HeTBtFZ7pubwoBBATBHE" target="_blank"&gt;SAS Demo | How to Configure a SAS/ACCESS Interface in SAS Viya 4 &lt;/A&gt;&lt;/P&gt;
&lt;P lang="x-none"&gt;and followed the process with local adaptations. But I get the following error&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ERROR: Unable to load oracle client (libclntsh.so)
ERROR: Error in the LIBNAME statement.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;when trying to connect from SAS studio using a simple libname statement (as shown in the above tutorial.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test oracle user=validUser password=validPath path="\\validHostname.example.com:1521" SCHEMA=validSchema;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The user, password etc work in&amp;nbsp; normal SAS installation.&lt;/P&gt;
&lt;P&gt;I executed the following code in SAS Studio to see if the environment variables are available&amp;nbsp; to SAS or not. The code and output&amp;nbsp; are reproduced below&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;81   data _null_;
82   if sysexist('PATH') then do;
83     path = sysget('PATH');
84   put path=;
85   end;
86   else do;
87   put "PATH does not exist";
88   end;
89    if sysexist('ORACLE_HOME') then do;
90     Oracle_Home = sysget('ORACLE_HOME');
91   put Oracle_HOME=;
92   end;
93   else do;
94   put "ORACLE_HOME does not exist";
95   end;
96   if sysexist('ORACLE_BIN') then do;
97     Oracle_Bin = sysget('ORACLE_BIN');
98   put oracle_bin=;
99   end;
100  else do;
101  put "ORACLE_BIN does not exist";
102  end;
103  if sysexist('TNS_ADMIN') then do;
104    Tns_admin = sysget('TNS_ADMIN');
105  put Tns_admin=;
106  end;
107  else do;
108  put "TNS_ADMIN does not exist";
109  end;
110  if sysexist('LD_LIBRARY_PATH') then do;
111    LD_LIB_PATH = sysget('LD_LIBRARY_PATH');
112  put LD_LIB_PATH=;
113  end;
114  else do;
115  put "LD_LIB_PATH does not exist";
116  end;
117  run;
path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/access-clients/Oracle/instantclient:/opt/sas/viya/home/lib64
Oracle_Home=/access-clients/Oracle/instantclient
Oracle_Bin=/access-clients/Oracle/instantclient
Tns_admin=/access-clients/Oracle/instantclient/network/admin
LD_LIB_PATH=/opt/sas/viya/home/lib64:/usr/lib/jvm/java-17-openjdk-17.0.9.0.9-2.el8.x86_64/lib/server:/usr/lib/jvm/java-17-openjdk-17
.0.9.0.9-2.el8.x86_64/lib:/opt/sas/viya/home/SASFoundation/sasexe:/access-client
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      &lt;/LI-CODE&gt;
&lt;P&gt;From the above code output,it is clear that the instant client path and libraries are clearly visible.&lt;BR /&gt;I feel SAS Viya 4 on the cloud must have been around for some time and other users must have successfully accomplished this task.&lt;BR /&gt;I would appreciate if any of them can&amp;nbsp; share their thoughts about what could have gone wrong.&lt;BR /&gt;PS : I did see this post with similar error and feel the resolution would not work for me&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-Access-Oracle-Configuration/m-p/927516" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/SAS-Access-Oracle-Configuration/m-p/927516&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 19:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Connecting-to-Oracle-from-SAS-Viya-4-on-AWS/m-p/929478#M87</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2024-05-23T19:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Oracle from SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Connecting-to-Oracle-from-SAS-Viya-4-on-AWS/m-p/931254#M96</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;The issue was resolved using the following steps&lt;BR /&gt;1.Using the proper oracle instant client basic. We had oracle version 12.2&lt;BR /&gt;2.Whitelisting&amp;nbsp; &amp;nbsp;SAS Viya 4&amp;nbsp; &amp;nbsp;in the VPD databases&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 15:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Connecting-to-Oracle-from-SAS-Viya-4-on-AWS/m-p/931254#M96</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2024-06-07T15:12:27Z</dc:date>
    </item>
  </channel>
</rss>

