Summary
Defines data storage parameters for an enterprise geodatabase by importing a file containing configuration keywords, parameters, and values.
Usage
This tool only works with enterprise geodatabases.
Typically, you will run the Export Geodatabase Configuration Keywords tool first to obtain a file containing the geodatabase's existing configuration keyword and parameter values. Alter this file and import the changes using the Import Geodatabase Configuration Keywords tool.
Only the geodatabase administrator can run the Import Geodatabase Configuration Keywords tool.
This tool is not supported for geodatabases in SAP HANA.
Syntax
arcpy.management.ImportGeodatabaseConfigurationKeywords(input_database, in_file)
Parameter | Explanation | Data Type |
input_database | The connection file for the enterprise geodatabase to which you want to import the configuration file. You must connect as the geodatabase administrator. | Workspace |
in_file | The path to and name of the ASCII text file containing configuration keywords, parameters, and values to import. | File |
Derived Output
Name | Explanation | Data Type |
out_workspace | Workspace |
Code sample
You can alter and run the following from a Python window to import a text file containing configuration keyword settings.
This example connects through the database connection file enterprisegdb.sde to import the file keyword.txt.
import arcpy
ent_gdb = "C:\\gdbs\\enterprisegdb.sde"
input_file = "C:\\temp\\keyword.txt"
arcpy.ImportGeodatabaseConfigurationKeywords_management(ent_gdb,input_file)
The following is a stand-alone script you can alter and run to import an altered configuration keyword text file.
# Set the necessary product code
import arceditor
# Import arcpy module
import arcpy
# Local variables:
ent_gdb = "C:\\gdbs\\enterprisegdb.sde"
input_file = "C:\\temp\\keyword.txt"
# Process: Import the text file containing configuration keywords
arcpy.ImportGeodatabaseConfigurationKeywords_management(ent_gdb,input_file)
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes