Properties of a direct connection to an ArcSDE geodatabase |
|
|
Release 9.2
Last modified December 3, 2010 |
Print all topics in : "Connecting to an ArcSDE geodatabase" |
This topic contains the following information:
Direct-connect drivers provide the functionality to connect to and use spatial data in a DBMS. They exist as dynamically linked libraries in the bin directory (Windows operating system) or lib directory (Unix operating system) of your client application.
These drivers are automatically installed for ArcGIS (the whole product suite), ArcView 3.x Database Access, ArcIMS, ArcInfo Workstation, and MapObjects 2. If you are using a custom application built from the ArcSDE C API that is not an ESRI product, you may need to install the direct-connect drivers. You can install the drivers from the ArcSDE Developer Kit CD-ROM located in the ArcSDE media kit. Check with the supplier of your custom application to find out if you need to install these drivers separately.
Top of page
You need to install ArcSDE to get the database setup and administration files. If your site only uses direct connections, you do not need to start an ArcSDE service; all you need to do is install the ArcSDE files and follow the postinstallation configuration instructions.
The administration files that get installed with ArcSDE—for example, sdesetup, sdeconfig, and sdedbtune—are useful for managing your database.
The installation DVDs/CDs in the ArcSDE media kit are grouped by platform. To get your database setup files, you will need to install the ArcSDE software specific to your database and platform. For example, if you are using IBM DB2 on a Sun Solaris server, you will select the Sun Solaris DVD or CD from the ArcSDE media kit and install the DB2 version of ArcSDE on your Sun Solaris server. Be sure to read the database-specific installation guide provided on the DVD/CD and follow the postinstallation configuration instructions. However, ignore any instructions about creating the ArcSDE service; you don't need to do that if you will use direct connections exclusively.
Top of page
Making a direct connection to most DBMSs requires that specific files be installed and configured on the client PC. They are as follows:
Oracle
Each client machine on which direct connect is used must have an Oracle client installed and configured.
Microsoft SQL Server
Microsoft Data Access Components (MDAC) must be on the client PCs.
If you intend to use ArcCatalog 9 or ArcView 3.3 with Database Access 2.1f, then MDAC version 2.6 (SP1) or greater is required. If using ArcIMS 9 or ArcGIS 9 to direct connect, you must have MDAC 2.6 or higher.
ESRI recommends you maintain the most up to date MDAC files on your server. Note that MDAC versions beyond 2.8 are included with updates to your operating system.
DB2
Each client machine must be configured for remote database access. Use the DB2 Configuration Assistant on the database host to connect to a remote database.
Informix
Each client machine where direct connect will be used must have the Informix Client SDK 2.8 or the Informix I-Connect 2.8 application installed. The client machine must also have the SetNet32 application installed, which comes with both the Informix Client SDK 2.8 and the Informix I-connect 2.8 applications.
Top of page
In ArcGIS 9.1 and prior releases, when using direct connect, your client and ArcSDE component had to be on the same version, including the same service pack for most releases. For ArcGIS 9.2, your client and ArcSDE component just have to be at the same version—you don't have to have matching service packs.
For example, you can't make a direct connection from ArcMap 9 to a database still in an 8.3 configuration. You would have to run the 9.0 setup configuration on that 8.3 geodatabase to be able to use direct connect from the ArcMap 9 client. If you had installed ArcGIS Desktop Service Pack 3, you would also need to apply ArcSDE 9.0 Service Pack 3 to the geodatabase. However, if you installed ArcSDE 9.2 Service Pack 3, you could still connect to it from ArcGIS Desktop 9.2 Service Pack 2.
Top of page
Oracle, DB2, and Informix databases require certain environment variables be set on client machines to connect directly to the database. If you are using one of these databases, consult your DBMS documentation for instructions on which variables to set and how to set them.
ArcSDE applications making direct connections to a DBMS read the parameters from the SERVER_CONFIG table just like the ArcSDE application server. However, not all initialization parameters that apply to the ArcSDE application server apply to ArcSDE applications making a direct connection. For instance, TCPKEEPALIVE and MAXTIMEDIFF do not affect a direct connection.
Top of page
ArcSDE writes error messages to the following two log files when using direct connect: giomgr_<service>.log file and sdedc_<dbms>.log. If you have the SDEHOME environment variable set, these files will be written here. If you have an etc folder in your ArcGIS installation location, the files will be written here. If you have neither of these, the log files are written to the temp directory.
Top of page
If you want to connect to your geodatabase from ArcGIS using operating system authentication and your data is stored in an Oracle, DB2, or Informix database, you must use direct connect.
The ArcSDE Personal and Workgroup automatically use operating system authentication and also automatically use direct connect.
Top of page