Las geodatabases corporativas utilizan tablas de archivo de registro para mantener listas de registros seleccionados. La aplicación escribe los registros en las tablas de archivo de registro para uso posterior, cuando se realiza una selección de un tamaño específico, una conciliación o publicación en una base de datos versionada o un check-out de edición sin conexión en una aplicación de cliente. Las tablas de archivo de registro almacenan los ObjectID de las entidades seleccionadas para que se puedan volver a visualizar. Esto permite analizar y procesar la información con más rapidez.
Por defecto, en ArcGIS las tablas de archivo de registro se utilizan si el conjunto de selección contiene 100 registros o más. Este umbral de selección de 100 entidades se establece en el registro. Se puede cambiar, pero Esri recomienda que no se modifique. No existen motivos de rendimiento comprobados para cambiarlo y, si lo hace, podría causar problemas en el rendimiento.
Las tablas de archivo de registro almacenan selecciones de entidades en ArcMap con un tamaño superior a 100 para cada usuario de editor/visor de geodatabases conectado. Se recomienda almacenar las tablas de archivos de registro en un espacio de tablas independiente; esto puede lograrse con la tabla DBTUNE.
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.
Las geodatabases de Oracle usan tablas temporales globales que pertenecen al usuario que provocó la creación de la tabla de archivo de registro. Los usuarios sin permisos de base de datos para crear tablas usarán las tablas de archivo de registro temporales globales que pertenecen al usuario 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
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.
- 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.
- Inicie ArcMap.
- Seleccione más de 100 entidades.
Esto crea automáticamente las tablas de archivos de registro.
- Remove CREATE TABLE and CREATE SEQUENCE permissions as appropriate.