Difference: ReadingSQLTablesfromAPPXUnix (8 vs. 9)

Revision 92018-09-27 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXExternalDatabases"

Reading SQL/Server Tables from APPX/Unix

Line: 25 to 25
  APPX_ODBC_LIB=<path to the Progress supplied libodbc shared library>
ODBCINI=<path to your odbc.ini file>
ODBCINST=<path to your odbcinst.ini file>
LIBPATH=<path to the folder containing the Data Direct libraries>
Added:
>
>
If you aren't sure what the APPX_ODBC_LIB path should be, check the 'odbc.ini' file and use the path indicated by the 'Driver' line. The other variables also set during the DataDirect installation, you should be able to determine their values from that step.
 These should be set in the $APPXPATH/appx.env file, i.e.,

#
# Progress Data Direct Setup
#
LIBPATH=/opt/Progress/DataDirect/Connect_for_ODBC_71/lib
APPX_ODBC_LIB=/opt/Progress/DataDirect/Connect_for_ODBC_71/lib/odbc.so
ODBCINI=/opt/Progress/DataDirect/Connect_for_ODBC_71/odbc.ini
ODBCINST=/opt/Progress/DataDirect/Connect_for_ODBC_71/odbcinst.ini

Line: 32 to 34
 Once you have a working connection, then configure the APPX ODBC connection as usual.

NOTES:

Deleted:
<
<
  1. If your ODBC Connector does not have a 'libodbc.so' file in the lib folder, check for an 'odbc.so' file and use it instead (this seems to be the case on AIX).
 
  1. Some versions of Unix use LIBPATH (i.e., AIX) and others use LD_LIBRARY_PATH. Set the appropriate variable for your system.

EasySoft SQL Server ODBC Driver

The connector is available in both 32 bit and 64 bit versions, make sure you install the version that matches your APPX version. If you are not sure if APPX is 32 bit or 64 bit, then it is probably 32 bit.

Changed:
<
<
The EasySoft driver does not include the unixODBC driver manager software, you must install that first from unixODBC.org. Make sure you can establish your connection using 'isql' before trying to connect via APPX.
>
>
The EasySoft driver may not include the unixODBC driver manager software. If not, you must install that first from unixODBC.org. Make sure you can establish your connection using 'isql' before trying to connect via APPX.

After installing and testing the connector, you must set the following environment variable in APPX:

APPX_ODBC_LIB=<path to the shared library>

If you aren't sure what the APPX_ODBC_LIB path should be, check the 'odbcinst.ini' file and use the path indicated by the 'Driver' line.

These should be set in the $APPXPATH/appx.env file, i.e.,

#
# EasySoft Driver Setup
#
APPX_ODBC_LIB=/usr/local/easysoft/sqlserver/lib/libessqlsrv.so

  Once you have a working connection, then configure the APPX ODBC connection as usual.

Troubleshooting

Changed:
<
<
  • If you get the error "*Can't load ODBC driver manager" your library path is incorrect. Make sure you are using the correct environment variable (either LIBPATH or LD_LIBRARY_PATH) and that it points to a valid .so file.
>
>
  • If you get the error "*Can't load ODBC driver manager" your APPX_ODBC_LIB path is incorrect.
 
  • Most modern versions of Linux will not recognize a new library path if you have the 'setuid' bit set on the APPX executable. Remove the 'setuid' bit and configure the Login Manager to impersonate the APPX user and group.

Comments:

Line: 50 to 61
 Read what other users have said about this page or add your own comments.
Deleted:
<
<

<--/commentPlugin-->
 \ No newline at end of file
Added:
>
>

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback