Home    |    Concepts   |   API   |   Samples
Concepts > Logfiles > Basic Principles
Types of log files

There are three types of log files:

1. Shared log files

This is the default architecture for ArcSDE 9.0 and higher, except in SQL Server. For SQL Server databases, the default are session log files created in tempdb.

Each user owns two tables: SDE_logfiles and SDE_logfile_data.

Shared log files are created the first time a user's selection exceeds the required threshold (100 features in ArcGIS). If you use shared log files, remember:

  • Users require CREATE TABLE permission.
  • If permissions are insufficient, selections cannot be made.
  • Log files are not checked on connection.

2. Session log files

Session log files are dedicated to a single connection, not a database user. You can arrange for a pool of session log files to be shared among users, and gsrvrs can also create their own session log files on the fly. As mentioned in the previous section, session log files are the default for SQL Server databases.

Using session log files dramatically reduces contention for log files, since a single connection is using the log file. Similarly, since only one connection is using the log file, the table will not grow as large as it would when dozens or hundreds of connections are using the same log file.

And finally, some delete optimizations can be made in special circumstances. If only one log file is open, the log file table can be truncated rather than deleted. Truncating a table is orders of magnitude faster than deleting. 

Tables created:

SDE_logfiles—Stores selection set properties

SDE_session_n—Stores selection ID and OBJECTIDs of selection; created per session, not for each user

3. Stand-alone log files

Stand-alone log files are useful in several situations. The advantage of this log file configuration is that it can always be truncated and will never grow beyond the size of a single selection set. Of course, there has to be a user configurable limit on how many of these stand-alone log files can be created by a connection. For example, if 100 users are creating selection sets on 50-layer maps, an unrestricted growth of stand-alone log files would result in 5000 log file tables being created. To avoid this, set the MAXSTANDALONELOGFILE parameter appropriately.

Tables created:

SDE_logfiles—Stores selection set properties

SDE_logdata_<sde_id>_<selection>—Stores OBJECTID of selection set

feedback | privacy | legal