Hi All,
I have licensed SAS/Access interface to Amazon redshift. I have installed in our environment.
Allso I have configured Teradata using odbc drivers. and for that I have installed unixODBC driver manager. I am able to connect Successfully
My doubt is, where i need to update the Data source name and connection details for Redshift. Is it in common odbc.ini file where I used for Teradata connection details or do i need to update in SAS Access Redshift driver install path. for ex /sas/sashome/Accessclients/9.4/Redshift under that I have odbc.ini.
I have updated all the connection details of Teradata and Redshift in single odbc.ini file and configured.
Tried to execute Libname statement for those connection entries. For teradata it is successfull. but for Redshift I am receiving Libname statement error. Please see the libname statement error below
libname redshift sasiorst server="redshiftserver.us-east-1.redshift.aws.com" DB=database name user=username password=pass;
ERROR: CLI error trying to establish connection: 523 630
ERROR: Error in the LIBNAME statement.
I think above error indicates that I am missing to set environment variable. I couldnt figure out the root cause of the issue.
[sas@ip-10-61-100-9 Redshift]$ echo $LD_LIBRARY_PATH
:/usr/lib64/libodbcinst.so:/app/sashome/AccessClients/9.4/Redshift/lib/:/app/sashome/AccessClients/9.4/Redshift/lib/S0rsft27.so:/app/sashome/AccessClients/9.4/Redshift/:/app/sashome/AccessClients/9.4/Redshift/lib:/usr/lib64
[sas@ip-10-61-100-9 Redshift]$
Someone please help me to figure out the issue.
Hi Simon,
As per your advice, I have setup the LD_LIBRARY_PATH to load libodbc.so from inside the Redshift installation directory.
:/usr/lib64/libodbcinst.so:/app/sashome/AccessClients/9.4/Redshift/lib/:/app/sashome/AccessClients/9.4/Redshift/lib/S0rsft27.so:/app/sashome/AccessClients/9.4/Redshift/:/app/sashome/AccessClients/9.4/Redshift/lib:/usr/lib64:/app/sashome/AccessClients/9.4/Redshift/lib/libodbc.so
Default path for the drivers (odbcinst and odbc.ini)
[sas@ip-xx-xx-xx-xx odbc_shared]$ odbcinst -j
unixODBC 2.3.1
DRIVERS............: /app/SAS_Software_Depot/odbc_shared/odbcinst.ini
SYSTEM DATA SOURCES: /app/SAS_Software_Depot/odbc_shared/odbc.ini
FILE DATA SOURCES..: /app/SAS_Software_Depot/odbc_shared/ODBCDataSources
USER DATA SOURCES..: /app/SAS_Software_Depot/odbc_shared/odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
I am confused by using both SAS Access interface to Amazon redshift and ODBC engine. Could you please give me a clarity to use SAS/Access interface to Amazon redshift for Redshift data source connections. Do i need to use 2 separate odbc.ini file for ODBC engine and Redshift interface. Or we can use it as single odbc.ini and feed all the connection details in single odbc.ini for both odbc and Redshift native interface.
Thanks,
Vishal
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.