To publish ArcGIS Server web services that access the data in your Oracle database (whether the database contains a geodatabase or not), your ArcGIS Server site must connect to the database. To configure that connection, do the following:
- Install Oracle client software on the ArcGIS Server machines and the ArcGIS Desktop client machines.
- Connect to the database.
- Grant privileges.
- Register the connection file with your ArcGIS Server site.
Install Oracle client software
Oracle client software must be installed on all ArcGIS client machines that will connect to the database. See Connect to Oracle from ArcGIS for instructions on installation and configuration of the Oracle client software. If you do not have the privileges to install software on the machines where ArcGIS clients are running, you'll need to have your IT department install and configure the Oracle client for you.
Use the following table to determine the appropriate configuration for your site:
Installation combinations | Configuration to use |
---|---|
ArcGIS Server (single machine site) and Oracle are installed on the same server; ArcGIS Desktop is installed on different machines. | Install a 32-bit Oracle client on all ArcMap machines, and set the PATH variable to the Oracle client home directory. Install a 64-bit Oracle client on all ArcGIS Pro machines, and set the PATH variable to the Oracle client home directory. You do not need to install an Oracle client on the server because files to connect are installed with the Oracle DBMS. Just be sure the LD_LIBRARY_PATH (Linux server) or PATH (Windows server) system variable is set to the Oracle home directory. If you set a tnsname for the Oracle client, you must use the same name on the ArcGIS Server, ArcMap, and ArcGIS Pro machines. |
ArcGIS Server is installed on one or more machines that are separate from the DBMS. ArcGIS Desktop is installed on computers separate from both Oracle and ArcGIS Server. | Install a 32-bit Oracle client on all ArcMap machines, and set the PATH variable to the Oracle client home directory. Install a 64-bit Oracle client on all ArcGIS Pro machines, and set the PATH variable to the Oracle client home directory. Install the 64-bit Oracle client on all ArcGIS Server machines and be sure the PATH (Windows) or LD_LIBRARY_PATH (Linux) system variable is set to the Oracle client home directory. If you set a tnsname for the Oracle client, you must use the same name on the ArcGIS Server, ArcMap, and ArcGIS Pro machines. |
ArcGIS Server and ArcMap are installed on the same server; Oracle is installed on a different server. | You must install both the 64-bit and 32-bit Oracle clients on the machine where ArcGIS Server and ArcMap are installed. Set the PATH variable so that the 64-bit Oracle client home directory is listed first. If your ArcGIS Server site includes additional servers, install the 64-bit Oracle client on each of the servers in the site, and set the PATH variable to the Oracle client home directory. |
ArcGIS Server and ArcGIS Pro are installed on the same server; Oracle is installed on a different server. | Install the 64-bit Oracle client on all ArcGIS Server machines. Both ArcGIS Server and ArcGIS Pro will use this client. Set the PATH system variable to the Oracle client home directory. |
ArcGIS Server, ArcMap, and Oracle are all installed on one machine. | Install the 32-bit Oracle client so that ArcMap can connect to the database. ArcGIS Server will use the 64-bit client files installed with the Oracle DBMS to connect. Make sure that the 64-bit Oracle home directory is listed first in the PATH system variable. If your ArcGIS Server site includes additional servers, install the 64-bit Oracle client on each of the servers in the site, and set the PATH variable to the Oracle client home directory. |
ArcGIS Server, ArcGIS Pro, and Oracle are all installed on one machine. | ArcGIS Server and ArcGIS Pro will use the 64-bit client files installed with the Oracle DBMS to connect. Set the PATH variable to the Oracle client home directory. If your ArcGIS Server site includes additional servers, install the 64-bit Oracle client on each of the servers in the site, and set the PATH variable to the Oracle client home directory. |
Connect to Oracle
To register an Oracle database with an ArcGIS Server site, you'll need the following information:
- The type of DBMS to which you are connecting (in this case, Oracle)
- A valid Oracle connection string
If your Oracle server and client are set up to use Easy Connect, you can provide a valid Easy Connect string. Some examples of this connection type are provided in Database connections in ArcGIS Pro and Database connections in ArcMap. Or you can provide the Oracle tnsname. See Oracle documentation for a full list of connection types and syntax.
- The type of authentication to be used: database or operating system
If database authentication is used, you must provide a valid database user name and password. You must save this information with the connection file.
If operating system authentication is used, use a domain account for the ArcGIS Server account and add it to the Oracle database. ArcGIS Server will use this account to connect to the database.
Grant privileges
The database user, role, or ArcGIS Server account (if you're using operating system authentication) with which you connect to the database must be granted privileges in the database to access the data to be published. The privileges and the circumstances under which you need to grant them are as follows:
Privilege | Reason |
---|---|
CREATE SESSION | Required to connect to the database. |
CREATE TABLE | Selection sets cause a log file table to be created in the geodatabase. You can change log file settings to avoid having to grant this privilege. See Log file table options for geodatabases in Oracle for more information. |
SELECT privileges on the datasets to be published | Grant the user or ArcGIS account at least SELECT privileges on the datasets to be published. |
INSERT, UPDATE, or DELETE privileges on data published to editable feature services | To edit data through a feature service, privileges sufficient to edit must be granted on the datasets. |
If you will be registering the geodatabase as a managed database for a stand-alone or federated ArcGIS Server site, the account with which you connect must have privileges to create data in the geodatabase. See Privileges for geodatabases in Oracle or Privileges for using ArcGIS with an Oracle database for more information.
The database administrator must grant the first two privileges listed above. If the data is in a geodatabase, the data owner must grant the required privileges on the datasets. If the data is in a database, the data owner can grant privileges on datasets from ArcGIS or the database administrator can use database tools to grant the required privileges.
Register with ArcGIS Server
You can register the database from ArcGIS Server Manager, the Manage registered data stores pane in ArcGIS Pro, or the Catalog tree in ArcMap. Beginning with 10.7.1, you can register the database to federated servers by adding a data store item in an ArcGIS Enterprise portal. In this case, both the ArcGIS Server site and portal must be running the 10.7.1 release.
See the following for an explanation of registration options and how to register the database: