企业级地理数据库使用日志文件表来维护所选记录的列表。每次选择指定大小的内容时会将记录写入日志文件表以供应用程序之后使用,对版本化数据库执行协调或提交,或者在客户端应用程序中完成离线编辑检出。日志文件表中存储了所选要素的 ObjectID,这样便可重新显示这些要素。支持信息的更快速分析和处理。
在 ArcGIS 中,默认情况下,如果选择集包含 100 或 100 条以上记录,则会使用日志文件表。100 个要素这个阈值可在注册表中设置。可对此阈值进行更改;但 Esri 不建议进行此操作。没有任何证据表明更改此阈值可改善性能,对其进行更改可能造成性能问题。
日志文件表在 ArcMap 中为每个已连接的地理数据库编辑器/查看器用户存储 100 个以上的要素选择。建议将日志文件表存储在单独的表空间中;这可以通过 DBTUNE 表实现。
默认情况下,DB2 中的地理数据库使用共享的日志文件表,但是您可以使用配置地理数据库日志文件表地理处理工具更改日志文件表设置。
Creating log file tablespaces
Use the following statement to create log file tablespaces in Oracle.
CREATE SMALLFILE TABLESPACE gdblogfile
DATAFILE 'D:\oracle\ORADATA\PRODLIBDB\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\PRODLIBDB\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 表。
- Export the dbtune file before making any modifications.
- Start ArcCatalog.
- Click the ArcToolbox button
on the Standard toolbar.
- Expand Data Management Tools > Geodatabase Administration..
- Double-click Export Geodatabase Configuration Keywords.
The Export Geodatabase Configuration Keywords dialog box appears.
- Click the browse folder for the Input Database Connection parameter and browse to the connection file for the enterprise geodatabase you want to export.
- Click the browse folder for the Output File parameter and browse to the path where the file will be exported.
- Name the file dbtune_exp.txt and click Save.
- Click OK on the Export Geodatabase Configuration Keywords dialog box.
- Modify the dbtune_logfile.txt ##LOGFILE_DEFAULTS configuration keyword in a text editor.
##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
- Import the modified dbtune_logfile.txt file using ArcCatalog or ArcMap.
- In the ArcToolbox expand Data Management Tools > Geodatabase Administration.
- Double-click Geodatabase Configuration Keywords.
The Import Geodatabase Configuration Keywords dialog box appears.
- Click the browse folder next to the Input Database Connection parameter and browse to the enterprise geodatabase you want to import.
- Click the browse folder for the Input File parameter and browse to the path where the file will be imported.
- Name the file dbtune_logfile.txt and click Open.
- Click OK on the Import Geodatabase Configuration Keywords dialog box.
Creating log file tables
The geodatabase log files tables can be created in ArcMap by performing a large selection.
- Grant QUOTA permissions in OEM to the users on GDBLOGFILE and GDBLOGFILEIDX.
ALTER USER SDE QUOTA UNLIMITED ON "GDBLOGFILE"; ALTER USER SDE QUOTA UNLIMITED ON "GDBLOGFILEIDX"; ALTER USER PRODLIB QUOTA UNLIMITED ON "GDBLOGFILE"; ALTER USER PRODLIB QUOTA UNLIMITED ON "GDBLOGFILEIDX"; ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "GDBLOGFILE"; ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "GDBLOGFILEIDX";
- Grant CREATE TABLE permissions for the geodatabase editor/viewer user.
- Start ArcMap.
- 选择 100 多个要素。
这将自动创建日志文件表。
- Remove CREATE TABLE permissions as appropriate.