Log file tables configuration in Oracle (Production Mapping)
Les géodatabases d'enterprise utilisent des tables de fichiers journaux pour maintenir des listes d'enregistrements sélectionnés. Les enregistrements sont écrits dans les tables de fichiers journaux pour être utilisés ultérieurement par l'application à chaque sélection d'une taille spécifique, lors d'une réconciliation ou d'une réinjection dans une base de données versionnée ou encore lors d'une extraction de mise à jour en mode déconnecté dans une application cliente. Les tables de fichiers journaux stockent les identifiants ObjectID des entités sélectionnées pour qu'ils puissent être réaffichés. Ceci permet une analyse et un traitement plus rapides des informations.
Dans ArcGIS, par défaut, les tables de fichiers journaux sont utilisées si l'ensemble de sélection contient 100 enregistrements ou plus. Cette limite de sélection de 100 entités est définie dans le registre. Vous pouvez modifier cette limite, mais cela n'est pas recommandé. Rien ne prouve que cela améliore les performances et cela risquerait d'entraîner des problèmes de performances.
Log file tables store feature selections in ArcMap that are greater than 100 for each connected ArcSDE editor/viewer user. It is recommended that you store the log file tables in a separate tablespace; this can be achieved with the DBTUNE table.
Des paramètres spécifiques dans les tables SERVER_CONFIG et DBTUNE permettent de définir les options de fichiers journaux.
Creating log file tablespaces
Use the following statement to create log file tablespaces in Oracle.
CREATE SMALLFILE TABLESPACE sdelogfile
DATAFILE 'D:\oracle\ORADATA\PRODLIBDB\SDE\sdelogfile01.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 sdelogfileidx
DATAFILE 'D:\oracle\ORADATA\PRODLIBDB\SDE\sdelogfileidx01.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
After creating the data files, modify the DBTUNE table to include a new configuration keyword. Based on this new keyword, the data and database objects will be stored in the tablespaces location that was previously defined. The DBTUNE table is stored under the sde user in Oracle. To modify the DBTUNE table, it's necessary to export the DBTUNE table into a text file and make modifications in the text file. After the updates to the text file are made, import the new DBTUNE table from the text file.
If you only use direct connections at your site, you may not have installed ArcSDE. You need to install ArcSDE, if you haven't already, to get the sdedbtune and sdeconfig tools.
- Export the DBTUNE table through a command line.
sdedbtune -o export -f dbtune_logfile.sde -u sde -p sde -i sde:oracle11g:prolibdb
- Modify the dbtune_logfile.sde ##LOGFILE_DEFAULTS configuration keyword in a text editor.
##LOGFILE_DEFAULTS LD_INDEX_DATA_ID "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING " LF_INDEXES "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING " LF_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE" SESSION_INDEX "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILEIDX NOLOGGING " SESSION_TEMP_TABLE 0 SESSION_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE" LD_STORAGE "PCTFREE 0 INITRANS 4 TABLESPACE SDELOGFILE " LD_INDEX_ROWID "PCTFREE 0 INITRANS 4 TABLE PACE SDELOGFILEIDX NOLOGGING " END
- Import the modified dbtune_logfile.sde through a command line.
sdedbtune -o import -f dbtune_logfile.sde -u sde -p sde -i sde:oracle11g:prodlibdb
Creating log file tables
The sde log files tables can be created in ArcMap by performing a large selection.
- Grant QUOTA permissions in OEM to the users on SDELOGFILE and SDELOGFILEIDX.
ALTER USER SDE QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER SDE QUOTA UNLIMITED ON "SDELOGFILEIDX"; ALTER USER PRODLIB QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER PRODLIB QUOTA UNLIMITED ON "SDELOGFILEIDX"; ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "SDELOGFILE"; ALTER USER PRODLIBUSER QUOTA UNLIMITED ON "SDELOGFILEIDX";
- Grant CREATE TABLE permissions for the ArcSDE editor/viewer user.
- Start ArcMap.
- Select more than 100 features.
This automatically creates the log file tables.
- Remove CREATE TABLE permissions as appropriate.