エンタープライズ ジオデータベースは、ログ ファイル テーブルを使用して、選択されたレコードのリストを管理します。特定サイズのレコードが選択されたか、バージョン対応のデータベースでリコンサイルまたはポストが実行されたか、またはクライアント アプリケーションでディスコネクト編集のチェックアウトが実行されたとき、後でアプリケーションが使用できるようにレコードをログ ファイル テーブルに書き込みます。ログ ファイル テーブルには選択されたフィーチャの ObjectID が格納されるため、それらを再表示することが可能です。これにより、情報の解析や処理がより高速になります。
ArcGIS でログ ファイル テーブルが使用されるのは、デフォルトでは、選択セットのレコードの数が 100 以上の場合です。この 100 個の選択フィーチャという閾値は、レジストリに設定されます。この閾値を変更できますが、変更は推奨されません。パフォーマンス上の理由から閾値を変更する必要はなく、変更することでかえってパフォーマンスを低下させることもあります。
Log file tables store feature selections in ArcMap that are greater than 100 for each connected geodatabases 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.
When working with results in the NIS 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 log file options: shared, session-based, stand-alone, and pools of session-based or stand-alone log files.
Oracle のジオデータベースは、ログ ファイル テーブルの作成につながる操作を実行したユーザーが所有するグローバル一時テーブルを使用します。 テーブルを作成するデータベース権限を持たないユーザーは、sde ユーザーが所有するグローバル一時ログ ファイル テーブルを使用します。
Creating log file tablespaces
Use the following statement to create log file tablespaces in Oracle.
CREATE SMALLFILE TABLESPACE gdblogfile
DATAFILE 'D:\ORACLE\ORADATA\NISDB\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\NISDB\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
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 in the geodatabase 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.
- 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 "SDELOGFILE"; ALTER USER SDE QUOTA UNLIMITED ON "SDELOGFILEIDX"; ALTER USER NIS QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER NIS QUOTA UNLIMITED ON "SDELOGFILEIDX"; ALTER USER NIS_EDITOR QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER NIS_EDITOR QUOTA UNLIMITED ON "SDELOGFILEIDX"; ALTER USER NIS_VIEWER QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER NIS_VIEWER QUOTA UNLIMITED ON "SDELOGFILEIDX";
- Grant CREATE TABLE and CREATE SEQUENCE permissions for the geodatabase editor/viewer users.
- Start ArcMap.
- Select more than 100 features.
This automatically creates the log file tables.
- Remove CREATE TABLE and CREATE SEQUENCE permissions as appropriate.