Disponible con licencia de Production Mapping.
In ArcGIS, by default, log file tables are used if the selection set contains 100 or more records. ArcMap, or any application that runs on top of ArcMap, such as ArcGIS Production Mapping, which performs selection sets, uses these log file tables. The geodatabase keeps track of large selections using the log file tables instead of the records being held in memory. The same applies when sorting, selecting, or updating records in the Production Mapping table.
When working with results in the Production Mapping 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 geodatabase log file options: shared, session-based, stand-alone, and pools of session-based or stand-alone log files.
The default geodatabase log file table configuration for Oracle is shared geodatabase log files.
In most cases, the default geodatabase log file table configuration for your database management system (DBMS) should be sufficient and is the recommended setting.
It is recommended that you store the log file tables in a separate tablespace. This can be achieved by setting specific parameters in the SERVER_CONFIG and DBTUNE tables.
Creating log file tablespaces
Use the following statement to create log file tablespaces in Oracle SQL Plus or Oracle SQL Developer.
CREATE SMALLFILE TABLESPACE gdblogfile
DATAFILE 'D:\oracle\ORADATA\PMDB\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\PMDB\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
Después de crear los archivos de datos, modifique la tabla DBTUNE para incluir una nueva clave de configuración. Basándose en esta nueva clave, los datos y los objetos de base de datos se almacenarán en la ubicación de espacios de tabla definida previamente. La tabla DBTUNE se almacena en la geodatabase, en Oracle. Para modificar la tabla DBTUNE es necesario exportarla a un archivo de texto y realizar las modificaciones en dicho archivo. Una vez realizadas las actualizaciones en el archivo de texto, importe la nueva tabla DBTUNE desde el citado archivo.
- Exporte el archivo dbtune antes de efectuar modificaciones.
- Inicie ArcCatalog.
- Haga clic en el botón ArcToolbox
en la barra de herramientas Estándar.
- Expanda Herramientas de administración de datos > Administración de geodatabase.
- Haga doble clic en Exportar palabras clave de configuración de geodatabase.
Aparece el cuadro de diálogo Exportar palabras clave de configuración de geodatabase.
- Haga clic en examinar para el parámetro Conexión de la base de datos de entrada y busque el archivo de conexión para la geodatabase corporativa desde la que exportar.
- Haga clic en examinar para el parámetro Archivo de salida y busque la ruta a la que se exportará el archivo.
- Asigne el nombre dbtune_logfile.txt al archivo y haga clic en Guardar.
- Haga clic en Aceptar en el cuadro de diálogo Exportar palabras clave de configuración de geodatabase.
- Modifique la palabra clave de configuración ##LOGFILE_DEFAULTS de dbtune_logfile.txt en un editor de texto.
##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
- Importe el archivo dbtune_logfile.txt modificado con ArcCatalog o ArcMap.
- En la ventana ArcToolbox, expanda Herramientas de administración de datos > Administración de geodatabase.
- Haga doble clic en la herramienta Importar palabras clave de configuración de geodatabase.
Aparece el cuadro de diálogo Importar palabras clave de configuración de geodatabase.
- Haga clic en el botón examinar situado junto al parámetro Conexión de la base de datos de entrada y busque el archivo de conexión para la geodatabase corporativa desde la que importar.
- Haga clic en el botón examinar junto al parámetro Archivo de entrada y busque la ruta desde la que se importará el archivo.
- Asigne el nombre dbtune_logfile.txt al archivo y haga clic en Abrir.
- Haga clic en Aceptar en el cuadro de diálogo Importar palabras clave de configuración de geodatabase.
Creating log file tables
The geodatabase log file tables can be created in ArcMap by performing a large selection.
- Grant QUOTA on GDBLOGFILE and GDBLOGFILEIDX permissions in OEM to the geodatabase editor/viewer user.
ALTER USER <user_name> QUOTA UNLIMITED ON "GDBLOGFILE"; ALTER USER <user_name> QUOTA UNLIMITED ON "GDBLOGFILEIDX";
- Conceda los permisos CREATE TABLE al usuario editor/visualizador de la geodatabase.
- Inicie ArcMap.
- Seleccione más de 100 entidades.
Esto crea automáticamente las tablas de archivos de registro.
- Retire los permisos CREATE TABLE según considere adecuado.
For more information, see How To: Create the ArcSDE log file tables as global temporary tables in Oracle and Log file table options for geodatabases in Oracle.