Log file tables configuration in Oracle (Production Mapping)

企业级地理数据库使用日志文件表来维护所选记录的列表。每次选择指定大小的内容时会将记录写入日志文件表以供应用程序之后使用,对版本化数据库执行协调或提交,或者在客户端应用程序中完成离线编辑检出。日志文件表中存储了所选要素的 ObjectID,这样便可重新显示这些要素。支持信息的更快速分析和处理。

在 ArcGIS 中,默认情况下,如果选择集包含 100 或 100 条以上记录,则会使用日志文件表。100 个要素这个阈值可在注册表中设置。可对此阈值进行更改;但 Esri 不建议进行此操作。没有任何证据表明更改此阈值可改善性能,对其进行更改可能造成性能问题。

Log file tables store feature selections in ArcMap that are greater than 100 for each connected ArcSDE editor/viewer user. It is recommended that you store the log file tables in a separate tablespace; this can be achieved with the DBTUNE table.

日志文件选项通过 SERVER_CONFIG 和 DBTUNE 表中的特定参数进行设置。

Creating log file tablespaces

Use the following statement to create log file tablespaces in Oracle.

CREATE SMALLFILE TABLESPACE sdelogfile
DATAFILE 'D:\oracle\ORADATA\PRODLIBDB\SDE\sdelogfile01.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 sdelogfileidx
DATAFILE 'D:\oracle\ORADATA\PRODLIBDB\SDE\sdelogfileidx01.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

After creating the data files, modify the DBTUNE table to include a new configuration keyword. Based on this new keyword, the data and database objects will be stored in the tablespaces location that was previously defined. The DBTUNE table is stored under the sde user in Oracle. To modify the DBTUNE table, it's necessary to export the DBTUNE table into a text file and make modifications in the text file. After the updates to the text file are made, import the new DBTUNE table from the text file.

If you only use direct connections at your site, you may not have installed ArcSDE. You need to install ArcSDE, if you haven't already, to get the sdedbtune and sdeconfig tools.

步骤:
  1. Export the DBTUNE table through a command line.
    sdedbtune -o export -f dbtune_logfile.sde -u sde -p sde -i sde:oracle11g:prolibdb
    
  2. Modify the dbtune_logfile.sde ##LOGFILE_DEFAULTS configuration keyword in a text editor.
    ##LOGFILE_DEFAULTS
    LD_INDEX_DATA_ID	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING "
    LF_INDEXES	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING "
    LF_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE"
    SESSION_INDEX	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING "
    SESSION_TEMP_TABLE	0
    SESSION_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE"
    LD_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE "
    LD_INDEX_ROWID	"PCTFREE 0 INITRANS 4 TABLE PACE SDELOGFILEIDX NOLOGGING "
    END
    
  3. Import the modified dbtune_logfile.sde through a command line.
    sdedbtune -o import -f dbtune_logfile.sde -u sde -p sde -i sde:oracle11g:prodlibdb
    

Creating log file tables

The sde log files tables can be created in ArcMap by performing a large selection.

步骤:
  1. Grant QUOTA permissions in OEM to the users on SDELOGFILE and SDELOGFILEIDX.
    ALTER USER SDE QUOTA UNLIMITED ON "SDELOGFILE";
    ALTER USER SDE QUOTA UNLIMITED ON "SDELOGFILEIDX";
    
    ALTER USER PRODLIB QUOTA UNLIMITED ON "SDELOGFILE";
    ALTER USER PRODLIB QUOTA UNLIMITED ON "SDELOGFILEIDX";
    
    ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "SDELOGFILE";
    ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "SDELOGFILEIDX";
    
  2. Grant CREATE TABLE permissions for the ArcSDE editor/viewer user.
  3. Start ArcMap.
  4. Select more than 100 features.

    This automatically creates the log file tables.

  5. Remove CREATE TABLE permissions as appropriate.

相关主题

4/27/2014