You can use Oracle's Database Gateway for ODBC (DG4ODBC) and the e_obfuscateEmail('support');):
The following instructions show you how to connect Oracle on Linux or UNIX to Salesforce. For further information about DG4ODBC, refer to our DG4ODBC for Linux/UNIX tutorial. If the For installation instructions, refer to the Salesforce ODBC driver documentation. Refer to the documentation to find out which environment variables you need to set ( Note In your ODBC data source, you need to use both the rather than: Note On HP-UX, replace If you want to use Replace Replace The AIX You need to extract the Replace Replace Ensure that you have set If you get an error at this point there is something wrong with your Oracle configuration. This only tests the configuration of Oracle and not that Oracle can connect to Easysoft. Replace
initsid
log file. Compress this file if it's more than 1 MB.initsid.ora
file._install.info
from /usr/local/easysoft
.How to connect Oracle on Linux or UNIX to Salesforce
cd $ORACLE_HOME/bin
file dg4odbc
file
command's output contains ELF 64-bit LSB executable
, or something similar, DG4ODBC is 64-bit, and you need to download the 64-bit Salesforce ODBC driver for your platform. Otherwise, download the 32-bit Salesforce ODBC driver for your platform.LD_LIBRARY_PATH
, LIBPATH
, LD_RUN_PATH
, or SHLIB_PATH
depending on the platform and linker).User
and Domain
attributes to specify your Salesforce user name. For example:User = myuser
Domain = mydomain
User = myuser@mydomain
.profile
or .bash_profile
files. For example:
LD_LIBRARY_PATH=/usr/local/easysoft/lib:/usr/local/easysoft/unixODBC/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
LD_LIBRARY_PATH
with SHLIB_PATH
. On AIX, replace LD_LIBRARY_PATH
with LIBPATH
.isql
to verify the connection to SQL Server while logged in as the Oracle user, add the following entry as well:PATH=/usr/local/easysoft/unixODBC/bin:$PATH
export PATH
./.bash_profile
cd $ORACLE_HOME/hs/admin
cp initdg4odbc.ora initsalesforce.ora
HS_FDS_CONNECT_INFO = my_salesforce_odbc_dsn
HS_FDS_SHAREABLE_NAME = /usr/local/easysoft/unixODBC/lib/libodbc.so
HS_LANGUAGE = language_territory.AL32UTF8
HS_NLS_NCHAR = UCS2
HS_FDS_SUPPORT_STATISTICS=FALSE
#
# ODBC specific environment variables
#
set ODBCINI=/etc/odbc.ini
my_salesforce_odbc_dsn
with the name of a Salesforce ODBC driver data source that connects to the target Salesforce server.language
and territory
with the Oracle language and territory that correspond with your Salesforce Organisation's language and locale. (Your Salesforce Organisation's language and locale are accessible from Setup > Company Profile > Company Information.) For example, if your Salesforce Organisation's language and locale were English
and United Kingdom
, your HS_LANGUAGE
parameter would look like this:HS_LANGUAGE = "ENGLISH_UNITED KINGDOM.AL32UTF8"
HS_NLS_NCHAR
parameter value tells DG4ODBC to pass UCS-2 encoded data to the Unicode ODBC APIs, rather than UTF-8, which is the default for some versions of DG4ODBC. The unixODBC Driver Manager does not support UTF-8 encoded data being passed to the Unicode ODBC APIs.#set ODBCINI=full path name of the odbc initialization file
#set envvar=value
libodbc.so
shared object from the libodbc.a
file. As the user that installed the Easysoft SQL Server ODBC driver, run:$ cd /usr/local/easysoft/unixODBC/lib
$ ar -X32_64 -xv libodbc.a
x - libodbc.so.1
$ mv libodbc.so.1 libodbc.so
$ORACLE_HOME/network/admin/listener.ora
that creates a SID_NAME
for DG4ODBC. For example:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=salesforce)
(ORACLE_HOME=oracle_home_directory)
(PROGRAM=dg4odbc)
)
)
oracle_home_directory
with the value of $ORACLE_HOME
. For example, /u01/app/oracle/product/11.2.0/dbhome_1/
.$ORACLE_HOME/network/admin/tnsnames.ora
that specifies the SID_NAME
created in the previous step. For example:
SALESFORCE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle_host)(PORT = 1521))
(CONNECT_DATA =
(SID = salesforce)
)
(HS = OK)
)
oracle_host
with the host name of your Oracle machine.cd $ORACLE_HOME/bin
./lsnrctl stop
./lsnrctl start
NLS_LANG
before starting SQL*Plus. NLS_LANG
lets Oracle know what character set your client machine is using. For example:$ echo $LANG
en_US.UTF-8
$ NLS_LANG=AMERICAN_AMERICA.AL32UTF8 ./sqlplus
tnsping
:
$ tnsping salesforce
CREATE PUBLIC DATABASE LINK salesforcelink CONNECT TO
"my_salesforce_user" IDENTIFIED by "my_salesforce_password" USING 'salesforce';
my_salesforce_user
and my_salesforce_password
with a valid user name and password for the target Salesforce server.Further information