Enable Enterprise Geodatabase (Data Management)

License Level:BasicStandardAdvanced

Summary

The Enable Enterprise Geodatabase tool creates geodatabase system tables, stored procedures, functions, and types in an existing enterprise database, thereby enabling geodatabase functionality in the database.

Usage

Syntax

EnableEnterpriseGeodatabase_management (input_database, authorization_file)
ParameterExplanationData Type
input_database

Provide the path and connection file name for the database in which geodatabase functionality is to be enabled. The connection must be made as a geodatabase administrator.

Workspace
authorization_file

Provide the path and file name of the keycodes file that was created when you authorized ArcGIS for Server Enterprise. This file is in the \\Program Files\ESRI\License<release#>\sysgen folder on Windows and /arcgis/server/framework/runtime/.wine/drive_c/Program Files/ESRI/License<release#>/sysgen directory on Linux. If you have not already done so, authorize ArcGIS for Server to create this file.

File

Code Sample

EnableGeodatabase example 1

This script uses an existing database connection file (my_db_connection.sde) located in the default ArcGIS for Desktop database connection location to enable geodatabase functionality with a keycodes file on a remote server.

##Import Arcpy module
import arcpy

arcpy.EnableEnterpriseGeodatabase_management("Database Connections\my_db_connection.sde", "//myagsserver/Program Files/ESRI/License10.1/sysgen/keycodes")
EnableGeodatabase example 2

This script uses an existing database connection file (database1.sde) in a user-defined location to enable geodatabase functionality with a keycodes file in a user-defined location on the local computer.

##Import Arcpy module
import arcpy

arcpy.EnableEnterpriseGeodatabase_management("C:\myconnections\database1.sde", "C:\authfiles\keycodes")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015