Modifying DBTUNE in Oracle (Production Mapping)

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.

注意注意:

Copying and pasting the examples may cause syntax errors.

手順:
  1. Export the dbtune file before making any modifications.

    sdedbtune -o export -f dbtune_exp.sde -u sde -p sde -i sde:sqlserver:mcsdbsrv1 –D prodlibdb
    
  2. Copy dbtune_exp.sde to dbtune_<Database Name>.sde.
  3. Modify the ##DEFAULTS configuration keywords to control in which tablespaces the tables and indexes will be created.
    注意注意:

    If your database only stores the product library repository, the dbtune_<Database Name>.sde file can be opened in a text editor where you can manually edit the ##DEFAULTS configuration keyword; otherwise, create a new configuration keyword using the following example.

    dbtune_prodlib.sde
    ##DEFAULTS
    A_INDEX_RASTER	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX NOLOGGING"
    A_INDEX_ROWID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    A_INDEX_SHAPE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    A_INDEX_STATEID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    A_INDEX_USER	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    A_INDEX_XML	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_AINDEX NOLOGGING"
    A_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_ADATA STORAGE (INITIAL 409600)" 
    B_INDEX_RASTER	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX NOLOGGING"
    B_INDEX_ROWID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    B_INDEX_SHAPE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX NOLOGGING"
    B_INDEX_TO_DATE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX NOLOGGING"
    B_INDEX_USER	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    B_INDEX_XML	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BINDEX NOLOGGING"
    B_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_BDATA STORAGE (INITIAL 409600)" 
    D_INDEX_DELETED_AT	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_DINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    D_INDEX_STATE_ROWID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_DINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    D_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_DDATA STORAGE (INITIAL 409600)" 
    F_INDEX_AREA	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_FINDEX NOLOGGING"
    F_INDEX_FID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_FINDEX NOLOGGING"
    F_INDEX_LEN	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_FINDEX NOLOGGING"
    F_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_FDATA"
    GEOMETRY_STORAGE	"ST_GEOMETRY"
    S_INDEX_ALL	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_SINDEX STORAGE (INITIAL 409600) NOLOGGING" 
    S_INDEX_SP_FID	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_SINDEX NOLOGGING"
    S_STORAGE	"PCTFREE 0 INITRANS 4 TABLESPACE PRODLIB_SDATA STORAGE (INITIAL 409600)" 
    ST_GEOM_LOB_STORAGE	 "STORE AS (TABLESPACE PRODLIB_FDATA ENABLE STORAGE IN ROW CHUNK 8K RETENTION CACHE INDEX (TABLESPACE PRODLIB_FINDEX) )" 
    END
    
  4. Import the modified dbtune_prodlib.sde file.
    sdedbtune -o import -f dbtune_prodlib.sde -u sde -p sde -i sde:sqlserver:mcsdbsrv1 –D prodlibdb
    
4/26/2014