操作方法

操作方法:在向地理数据库注册 Date 或 Number(38) 字段类型时确保向后客户端兼容性

Last Published: September 18, 2024

描述

对于 ArcGIS Pro 3.1 及更早版本的客户端,具有 Date 字段类型或 Oracle NUMBER(38) 的表将注册为 Date 字段类型和 Long 字段类型。

从 ArcGIS Pro 3.2 及更新版本的客户端开始,对于未注册的表,Date 字段类型默认将读取为“高精度日期”。 此更改使底层数据库中一直以高精度存储的日期,现在得以被正确读取并显示于客户端。 同样,对于 Oracle 未注册的表,Number(38) 将默认读取为“大整数”,因为 Number(38) 可以存储 64 位整数值。

从 ArcGIS Pro 3.2 或更新版本的客户端向地理数据库注册表时,默认使用以下数据类型映射:

  • Date 字段类型将读取为“高精度日期”
  • Oracle Number(38) 将读取为“大整数”
Note:
Once registered with the High Precision Date and Big Integer field types, these tables will not be compatible with older clients. ArcGIS Pro 3.1 and earlier clients will receive an error “This version of the Geodatabase client is incompatible with the dataset and cannot open it”, when accessing geodatabase tables or feature classes that contain fields of the following data types: Date only, Time only, Timestamp offset, Big integer, or 64-bit object IDs.

解决方案或解决方法

为确保 ArcGIS Pro 3.1 及更早版本的客户端可以访问具有 Date 或 Number(38) 字段类型的已注册表,可使用以下选项:

  • 使用 ArcGIS Pro 3.1 或更早版本的客户端运行“向地理数据库注册”工具
  • 如果使用 3.2.4/3.3 或更高版本的客户端,请在使用“向地理数据库注册”工具之前应用以下注册表项
    • 创建以下 DWORD 注册表项:
HKEY_CURRENT_USER\SOFTWARE\ESRI\ArcGISPro\Geodatabase\Settings\FieldTypeCompatibility

设置 FieldTypeCompatibility=1,允许将 Date 和 Number(38) 字段类型分别注册为 Date 和 Long 类型。 生成的已注册表可供早期的 ArcGIS Pro 客户端访问。

当工具成功运行时,将显示一条警告消息,其中包含以下文本,以提醒用户注册表项已启用:

“The tool output will use supported data types for ArcGIS Pro 3.1 and earlier releases. Disable the registry key for the tool output to use supported data types for the current ArcGIS Pro release: HKEY_CURRENT_USER\SOFTWARE\ESRI\ArcGISPro\Geodatabase\Settings\FieldTypeCompatibility”

文章 ID: 000032250

获得人工智能支持

使用 Esri Support AI Chatbot 快速解决您的问题。

立即开始聊天

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

立即开始聊天

转至下载选项