获得 Production Mapping 许可后可用。
In ArcGIS, by default, log file tables are used if the selection set contains 100 or more records. ArcMap, or any application that runs on top of ArcMap, such as ArcGIS Production Mapping, which performs selection sets, uses these log file tables. The geodatabase keeps track of large selections using the log file tables instead of the records being held in memory. The same applies when sorting, selecting, or updating records in the Production Mapping table.
When working with results in the Production Mapping workspace, it is best to understand the log file table configuration options so you can choose the right option for your database needs. There are four different geodatabase log file options: shared, session-based, stand-alone, and pools of session-based or stand-alone log files.
The default geodatabase log file table configuration for Oracle is shared geodatabase log files.
In most cases, the default geodatabase log file table configuration for your database management system (DBMS) should be sufficient and is the recommended setting.
It is recommended that you store the log file tables in a separate tablespace. This can be achieved by setting specific parameters in the SERVER_CONFIG and DBTUNE tables.
Creating log file tablespaces
Use the following statement to create log file tablespaces in Oracle SQL Plus or Oracle SQL Developer.
CREATE SMALLFILE TABLESPACE gdblogfile
DATAFILE 'D:\oracle\ORADATA\PMDB\GDB\gdblogfile01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 100M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';
CREATE SMALLFILE TABLESPACE gdblogfileidx
DATAFILE 'D:\oracle\ORADATA\PMDB\GDB\gdblogfileidx01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 100M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';
Changing DBTUNE log file parameters
在创建数据文件之后,修改 DBTUNE 表以加入新的配置关键字。根据此新关键字,数据和数据库对象将存储在之前定义的表空间位置中。DBTUNE 表存储在 Oracle 中的地理数据库中。要修改 DBTUNE 表,有必要将 DBTUNE 表导出至文本文件中,并在文本文件中进行修改。在对文本文件进行更新后,从文本文件中导入新的 DBTUNE 表。
- 在进行任何修改前导出 dbtune 文件。
- 启动 ArcCatalog。
- 在标准工具条上单击 ArcToolbox 按钮
。
- 展开数据管理工具 > 地理数据库管理。
- 双击导出地理数据库配置关键字。
将弹出导出地理数据库配置关键字对话框。
- 单击输入数据库连接参数的浏览文件夹,浏览至要从中导出的企业级地理数据库的连接文件。
- 单击输出文件参数的浏览文件夹,浏览至文件的导出路径。
- 将文件命名为 dbtune_logfile.txt,然后单击保存。
- 单击导出地理数据库配置关键字对话框上的确定。
- 在文本编辑器中修改 dbtune_logfile.txt ##LOGFILE_DEFAULTS 配置关键字。
##LOGFILE_DEFAULTS LD_INDEX_DATA_ID "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILEIDX NOLOGGING " LF_INDEXES "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILEIDX NOLOGGING " LF_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILE" SESSION_INDEX "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILEIDX NOLOGGING " SESSION_TEMP_TABLE 0 SESSION_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILE" LD_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE GDBLOGFILE " LD_INDEX_ROWID "PCTFREE 0 INITRANS 4 TABLE PACE GDBLOGFILEIDX NOLOGGING " END
- 使用 ArcCatalog 或 ArcMap 导入经过修改的 dbtune_logfile.txt 文件。
- 在 ArcToolbox 窗口中,展开数据管理工具 > 地理数据库管理。
- 双击导入地理数据库配置关键字工具。
将弹出导入地理数据库配置关键字对话框。
- 单击输入数据库连接参数旁的浏览按钮,浏览至要从中导入的企业级地理数据库的连接文件。
- 单击输入文件参数旁的浏览按钮,浏览至文件的导入路径。
- 将文件命名为 dbtune_logfile.txt,然后单击打开。
- 单击导入地理数据库配置关键字对话框上的确定。
Creating log file tables
The geodatabase log file tables can be created in ArcMap by performing a large selection.
- Grant QUOTA on GDBLOGFILE and GDBLOGFILEIDX permissions in OEM to the geodatabase editor/viewer user.
ALTER USER <user_name> QUOTA UNLIMITED ON "GDBLOGFILE"; ALTER USER <user_name> QUOTA UNLIMITED ON "GDBLOGFILEIDX";
- 授予地理数据库编辑者/查看者用户 CREATE TABLE 权限。
- 启动 ArcMap。
- 选择 100 多个要素。
这将自动创建日志文件表。
- 根据需要撤销 CREATE TABLE 权限。
For more information, see How To: Create the ArcSDE log file tables as global temporary tables in Oracle and Log file table options for geodatabases in Oracle.