Log file tables in a geodatabase in Informix

ジオデータベースはログ ファイル テーブルを使用してテーブル行のリストを保持します。

See ArcSDE log file table configuration options for Informix for details on the geodatabase configuration needed for specific log file tables.

Log file tables in ArcGIS Desktop

ArcGIS Desktop ではログ ファイル テーブルを確認することはできません。ただし、ArcMap で選択セットに 100 個以上のフィーチャが含まれる選択を行うと、ログ ファイル テーブルが作成され、フィーチャが設定されます。

Log file tables in an IBM Informix database

ArcSDE を最初にインストールして Informix でジオデータベースを作成する際、デフォルトのログ ファイル設定では共有の ArcSDE ログ ファイルが使用されます。共有ログ ファイルは、同じユーザとして接続するすべてのセッションで共有されます。複数のユーザが同じユーザ アカウントで接続する場合、それらのセッションはすべて、同じログ ファイルのデータ テーブルでレコードを挿入または削除します。ログ ファイルは、ArcGIS を使用して作成された選択セットのレコードの数が 100 個を超えた時点で初めて作成されます。

ジオデータベースに作成されるログ ファイル テーブルは、どのログ ファイル設定を使用するかによって異なります。

注意注意:

If MAXSTANDALONELOGS is set to a number greater than 0, and a user that has CREATE TABLE permissions creates a selection set that exceeds the threshold for log files to be created, a stand-alone log file table will be created in that user's schema.

The sde_sde_logfile_pool table contains the list of business table records that are part of each log file. This table is created when the geodatabase is created.

The sde_sde_logpool_<table_id> table can be checked out by users and stores either stand-alone or session-based log files. The <table_id> is the sequence number. These tables are only present if you are using pools of log files owned by the ArcSDE administrator.

The <user_name>_sde_logdata<sde_id>_<#> table contains the list of business table records that are part of a stand-alone log file. <sde_id> denotes the session ID and <#> denotes the stand-alone log file sequence.

The <user_name>_sde_logfile_data table contains the list of business table records that are part of each log file.

The <user_name>_sde_logfiles table contains the log file metadata.

The <user_name>_sde_session<sde_id> table is created when you are using session-based log files. This table is used to track log file records when a connected session creates a selection set that exceeds the application threshold (100 records in ArcMap). The <user_name>_sde_session<sde_id> table is dropped when the session disconnects.

Shared log files

デフォルトの共有ログ ファイルを使用する場合は、DBMS のユーザ ID ごとにテーブルが 2 つ作成され(sde_sde_logfiles および <user_name>_sde_logfile_data)、その DBMS ユーザのスキーマで格納されます。作成されたテーブルはジオデータベースに保存されますが、接続しているアプリケーションがそのログ ファイルをすべて削除するとログ ファイル エントリもすべて削除されます。

破線はテーブル間の暗黙的なリレーションシップを示しています。

ArcSDE shared log file tables in Informix

Session-based log file tables

ログ ファイル設定をセッションベースのログ ファイルを使用するように変更すると、ジオデータベースに sde_sde_logfiles<user_name>_sde_logfile_data<user_name>_sde_session<sde_id> の 3 つのテーブルが作成されます。これらのテーブルは、テーブルが作成されたセッションのユーザのスキーマに作成されます。<user_name>_sde_logfile_data テーブルは作成されるだけで、データは設定されません。sde_sde_logfiles テーブルと <user_name>_sde_logfile_data テーブルはジオデータベースに残りますが、sde_sde_logfiles テーブルはアプリケーションの接続が切断されたときに空になります。<user_name>_sde_session<sde_id> テーブルは、接続しているアプリケーションでログ ファイルのレコードが不要になった時点で空になり(ArcMapでは、これは選択セットが存在しない状態を意味します)、セッションの終了時に削除されます。

ArcSDE session log file tables in Informix

Stand-alone log file tables

スタンドアロンのログ ファイルを使用する場合、セッションの選択セットのサイズが閾値を超えると、各レイヤに新しい <user_name>_sde_logdata<sde_id>_<#> テーブルが作成されます。sde_sde_logfiles テーブルと <user_name>_sde_logfile_data テーブルはセッションごとに作成されますが、<user_name>_sde_logfile_data テーブルにはデータは設定されません。これらのテーブルはそれらの作成につながる操作を行ったユーザのスキーマで作成されます。

<user_name>_sde_logdata<sde_id>_<#> テーブルは、接続しているセッションでログ ファイルが不要になった時点で空になり、セッションの終了時に削除されます。sde_sde_logfiles テーブルはアプリケーションの接続が切断されたときに空になります。

ArcSDE stand-alone log file tables in Informix

Pools of log file tables

sde_sde_logfile_pool テーブルは、ジオデータベースの作成時に ArcSDE 管理者のスキーマで作成され、格納されます。ArcSDE 管理者が所有するスタンドアロンまたはセッションベースのログ ファイルのプールを使用する場合には、このテーブルが使用されるだけでなく、sde_sde_logpool_<table_Id> テーブルがジオデータベースに作成されます。作成される sde_logpool テーブルの数は、sde_sde_logpool_<table_Id> テーブルの LOGFILEPOOLSIZE に指定する値によって異なります。次の例では、LOGFILEPOOLSIZE は 10 に設定されているため、sde_sde_logpool_<table_Id> テーブル 1 ~ 10 が作成されています。

ログ ファイルのプールに作成されるテーブルはすべて、ArcSDE 管理者のスキーマで作成されます。

A pool of ArcSDE log file tables in Informix

注意注意:

MAXSTANDALONELOGS に 0 よりも大きい数値を設定し、データベースにテーブルを作成できるユーザがログ ファイルを作成する閾値を超えるサイズの選択セットを作成すると、そのユーザのスキーマでスタンドアロン ログ ファイル テーブルが作成されます。

System tables for log files

The following are the definitions for the tables used for ArcSDE log files. Informix prefaces the table names with the name of the user in whose schema the table is stored.

sde_sde_logfile_pool

sde_sde_logfile_pool テーブルは、現在チェックアウトされているログ ファイルのリストを管理します。このテーブルは、ジオデータベースの作成時に作成され、ArcSDE 管理者によって所有されます。

Field name

Field type

Description

Null?

table_id

integer

ログ ファイル プール テーブルの ID。

NOT NULL

sde_id

integer

Identifies which sde connection is currently using the given log file pool table The sde_id is a reference to the sde_id column of the process_information table. If sde_id is NULL, it means this log file pool table is not currently in use.

sde_sde_logpool_<table_id>

sde_sde_logpool_<table_Id> テーブルではユーザによるチェックアウトが可能であり、スタンドアロンまたはセッションベースのログ ファイルが格納されます。<TABLE_ID> はシーケンス番号を示します。これらのテーブルは、ArcSDE 管理者が所有するログ ファイルのプールを使用している場合にのみ表示されます。

Field name

Field type

Description

Null?

logfile_data_id

integer

Identifies to which log file the row id belongs

New logfile_data_ids are assigned whenever a log file is truncated to avoid expensive delete operations. The logfile_data_id is a reference to the logfile metadata in sde_logfiles.

NOT NULL

sde_row_id

integer

The row id or shape id of the business table row being logged; log files can log either row ids or shape ids.

NOT NULL

<user_name>_sde_logdata<sde_id>_<#>

<user_name>_sde_logdata<sde_id>_<#> テーブルには、スタンドアロン ログ ファイルの一部であるビジネス テーブルのレコードのリストが含まれます。テーブルの名前にはセッション ID とスタンドアロン ログ ファイルの連番が含まれます。このテーブルの所有者は、テーブルの作成につながる操作を行ったユーザです。

Field name

Field type

Description

Null?

sde_row_id

integer

The row id or shape id of the business table row being logged

<user_name>_sde_logfile_data

<user_name>_sde_logfile_data テーブルには、各ログ ファイルの一部であるビジネス テーブルのレコードのリストが含まれます。このテーブルの所有者は、テーブルの作成につながる操作を行ったユーザです。

Field name

Field type

Description

Null?

logfile_data_id

integer

Identifies to which log file the row id belongs; New logfile_data_ids are assigned whenever a log file is truncated to avoid expensive delete operations. Deleted values in sde_logfile_data are also marked deleted by assigning a different logfile_data_id value. The logfile_data_id is a reference to the logfile metadata in sde_logfiles.

sde_row_id

integer

The row id or shape id of the business table row being logged; log files can log either row ids, shape ids, or user ids.

row_id

integer

Uniquely identifies a record and enables removal of duplicate <logfile_data_id,sde_row_id> values

<user_name>_sde_logfiles

sde_sde_logfiles テーブルにはログ ファイルのメタデータが含まれます。このテーブルの所有者は、テーブルの作成につながる操作を行ったユーザです。

Field name

Field type

Description

Null?

logfile_name

varchar(255)

ログ ファイルの一意なユーザ定義(またはアプリケーション定義)名。

NOT NULL

logfile_id

integer

ログ ファイルの一意なID。

NOT NULL

logfile_data_id

integer

Identifies to which log file the row id belongs

New logfile_data_ids are assigned whenever a log file is truncated to avoid expensive delete operations.

NOT NULL

registration_id

integer

このログ ファイルに ID が記録されているビジネス テーブルの登録 ID。

NOT NULL

flags

integer

ログ ファイルのプロパティを示す値のビットマスク。

session_tag

integer

接続のセッションの一意な ID。この ID によって、たとえば、特定の ArcSDE 接続でそのセッションに属しているすべてのテンポラリ ログ ファイルを削除することが可能です。

logfile_data_db

varchar(32)

このログ ファイルの ID を保持しているテーブルが格納されているデータベースの名前。

logfile_data_owner

varchar(32)

このログ ファイルの ID を保持しているテーブルの所有者の名前。

logfile_data_table

varchar(32)

The name of the table that is holding the ids for this log file This could be the traditional sde_logfile_data, or a log pool table, a session table, or a stand-alone sde_logdata<sde_id>_<#> table.

column_name

varchar(32)

The name of the column in the business table that is being logged Generally, this is the row id or shape id, but you can also specify an arbitrary integer column to be logged.

<user_name>_sde_session<sde_id>

<user_name>_sde_session<sde_id> テーブルは、セッションベースのログ ファイルを使用している場合に作成されます。このテーブルは、セッションにおいてアプリケーションの閾値(ArcMap では 100 レコード)を超える選択セットが作成されたときに、ログ ファイルのレコードを追跡するために使用されます。<user_name>_sde_session<sde_id> テーブルは、セッションの終了時に削除されます。

Field name

Field type

Description

Null?

logfile_data_id

integer

Identifies to which log file the row id belongs

New logfile_data_ids are assigned whenever a log file is truncated to avoid expensive delete operations. The logfile_data_id is a reference to the logfile metadata in sde_logfiles.

NOT NULL

sde_row_id

integer

The row id or shape id of the business table row being logged; log files can log either row ids or shape ids.

NOT NULL

Log file tables in an XML document

ログ ファイル テーブルは XML ドキュメントに格納されません。つまり、ジオデータベース スキーマを XML ワークスペース ドキュメントにエクスポートした場合は、スキーマをインポートした後で、ログ ファイル閾値を超える選択セットをユーザが作成したときに再度ログ ファイル テーブルが作成されます。


7/10/2012