导出复本方案 (Data Management)

许可等级:BasicStandardAdvanced

摘要

创建包含输入单向或双向复本方案的复本方案文件。

用法

语法

ExportReplicaSchema_management (in_geodatabase, output_replica_schema_file, in_replica)
参数说明数据类型
in_geodatabase

指定要导出复本方案的复本地理数据库。地理数据库可以是本地地理数据库也可以是远程地理数据库。

Workspace; GeoDataServer
output_replica_schema_file

指定要导出方案的文件。

File
in_replica

要导出方案的复本。

String

代码实例

ExportReplicaSchema 示例(Python 窗口)
import arcpy from arcpy import env env.worksapce = "C:/Data" arcpy.ExportReplicaSchema_management("Countries.mdb", "replicaSchema.xml", "MyReplica1")
ExportReplicaSchema 示例 2(独立 Python 脚本)
# Name: ExportReplicaSchema_Example2.py # Description: Exports replica schema from a personal geodatabase with a replica # Author: ESRI  # Import system modules import arcpy from arcpy import env  # Set workspace env.worksapce = "C:/Data"  # Set local variables replica_workspace = "Countries.mdb" output_file = "replicaSchema.xml" replica = "MyReplica1"  # Execute ExportReplicaSchema arcpy.ExportReplicaSchema_management(replica_workspace, output_file, replica)

环境

相关主题

许可信息

ArcGIS for Desktop Basic:否
ArcGIS for Desktop Standard:是
ArcGIS for Desktop Advanced:是
9/15/2013