ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Configure Geodatabase Log File Tables

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

The Configure Geodatabase Log File Tables tool allows you to alter the type of log file tables used by an enterprise geodatabase to maintain lists of selected records in ArcGIS.

Usage

  • This tool can only be run against enterprise geodatabases.

  • Only the geodatabase administrator can run the Configure Geodatabase Log File Tables tool.

Syntax

ConfigureGeodatabaseLogFileTables_management (input_database, log_file_type, {log_file_pool_size}, {use_tempdb})
ParameterExplanationData Type
input_database

Provide a database connection (.sde file) to the enterprise geodatabase for which you want to change log file table configuration. The connection must be made as the geodatabase administrator.

Workspace
log_file_type
[log_file_type,...]

Specify the type of log file tables you want the geodatabase to use: either SESSION_LOG_FILE or SHARED_LOG_FILE.

For information on log file table options, see the topic that applies to your database management system:

  • Log file table options for geodatabases in DB2
  • Log file table options for geodatabases in Informix
  • Log file table options for geodatabases in Oracle
  • Log file table options for geodatabases in PostgreSQL
  • Log file table options for geodatabases in SQL Server

  • SESSION_LOG_FILE —Use session-based log file tables for selection sets. Session-based log file tables are dedicated to a single session and may contain multiple selection sets.
  • SHARED_LOG_FILE —Use shared log file tables for selection sets. Shared log file tables are shared by all sessions that connect as the same user.
String
log_file_pool_size
(Optional)

If you want the geodatabase to use a pool of session-based log file tables owned by the geodatabase administrator, specify the number of tables you want included in the pool.

Long
use_tempdb
(Optional)
  • TRUE —For geodatabases stored in SQL Server, use session-based log files created in SQL Server's TempDB. This is the default and recommended configuration for geodatabases in SQL Server.
  • FALSE —Log file tables are not created in TempDB.
Boolean

Code sample

ConfigureLogFileTables example 1 (Python window)

This script can be run from a Python window to change the log file table configuration to use session-based log file tables created in the geodatabase administrator's schema.In this example, the log file pool is 100 tables.

import arcpy
input_database = "c:\\temp\\ProductionGDB.sde"
log_file_type = "SESSION_LOG_FILE"
log_file_pool_size = 100
arcpy.ConfigureGeodatabaseLogFileTables_management(input_database,log_file_type,log_file_pool_size)
ConfigureLogFileTables example 2 (stand-alone Python script)

Geodatabases in SQL Server use session-based log file tables created in the TempDB database by default. If you changed from the default setting, you can use this script to change back to using session logfiles in TempDB.

# Description: configure geodatabase log file tables 

# Set the necessary product code
import arceditor
 
# Import arcpy module
import arcpy

# Local variables:
input_database = "c:\\temp\\ProductionGDB.sde"
log_file_type = "SESSION_LOG_FILE"
log_file_pool_size = 0
use_tempdb = TRUE

# Process: Diagnose Version Metadata
arcpy.ConfigureGeodatabaseLogFileTables_management(input_database,log_file_type,log_file_pool_size,use_tempdb)
ConfigureLogFileTables example 2 (stand-alone Python script)

Geodatabases in IBM DB2, IBM Informix, Oracle, and PostgreSQL use shared log files by default. If you changed from the default setting and want to change back, you can run the following script. You could also run this script to change to a geodatabase in SQL Server to use shared log file tables, though this is not the recommended setting for SQL Server.

# Description: configure geodatabase log file tables

# Set the necessary product code
import arceditor
 
# Import arcpy module
import arcpy

# Local variables:
input_database = "c:\\temp\\ProductionGDB.sde"
log_file_type = "SHARED_LOG_FILE"
log_file_pool_size = 0

# Process: Diagnose Version Metadata
arcpy.ConfigureGeodatabaseLogFileTables_management(input_database,log_file_type,log_file_pool_size)

Environments

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geodatabase Administration toolset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal