Modifying DBTUNE in SQL Server (Production Mapping)

After creating the data files, modify the DBTUNE to include a new configuration keyword. Based on this new keyword, the data and database objects will be stored in the FileGroups location that was previously defined. The DBTUNE table is stored under the sde user in SQL Server. To modify the DBTUNE, it's necessary to export the DBTUNE into a text file and make modifications in the text file. After the updates to the text file are made, import the new DBTUNE 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.

RemarqueRemarque :

Copying and pasting the examples may cause syntax errors.

Etapes :
  1. Export the dbtune file before making any modifications.

    The <database_name> is the localhost name\instance name.

    cd %SDEHOME%
    cd etc
    sdedbtune -o export -f dbtune_exp.sde -u sde -p sde -i sde:sqlserver:<database_name> -s <localhost> -D prodlibdb
    
  2. Copy dbtune_exp.sde to dbtune_<Database Name>.sde.
  3. Modify the ##DEFAULTS configuration keywords to control in which FileGroup the tables and indexes will be created.
    RemarqueRemarque :

    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	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_INDEX_ROWID	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_INDEX_SHAPE	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_INDEX_STATEID	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_INDEX_USER	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_INDEX_XML	"WITH FILLFACTOR = 75 ON PRODLIB_AINDEX"
    A_STORAGE	"ON PRODLIB_ADATA"
    B_INDEX_RASTER	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_INDEX_ROWID	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_INDEX_SHAPE	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_INDEX_TO_DATE	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_INDEX_USER	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_INDEX_XML	"WITH FILLFACTOR = 75 ON PRODLIB_BINDEX"
    B_STORAGE	"ON PRODLIB_BDATA"
    D_INDEX_ALL	"WITH FILLFACTOR = 75 ON PRODLIB_DINDEX"
    D_INDEX_DELETED_AT	"WITH FILLFACTOR = 75 ON PRODLIB_DINDEX"
    D_STORAGE	"ON PRODLIB_DDATA"
    F_INDEX_AREA	"WITH FILLFACTOR = 75 ON PRODLIB_FINDEX"
    F_INDEX_FID	"WITH FILLFACTOR = 75 ON PRODLIB_FINDEX"
    F_INDEX_LEN	"WITH FILLFACTOR = 75 ON PRODLIB_FINDEX"
    F_STORAGE	"ON PRODLIB_FDATA"
    GEOMETRY_STORAGE	"GEOMETRY"
    GEOMTAB_PK	"WITH FILLFACTOR = 75 ON PRODLIB_FINDEX"
    GEOMTAB_STORAGE	"ON PRODLIB_FDATA"
    I_STORAGE	"ON PRODLIB_FDATA"
    S_INDEX_ALL	"WITH FILLFACTOR = 75 ON PRODLIB_SINDEX"
    S_INDEX_SP_FID	"WITH FILLFACTOR = 75 ON PRODLIB_SINDEX"
    S_STORAGE	"ON PRODLIB_SDATA"
    END
    
  4. Import the modified dbtune_prodlib.sde file.

    sdedbtune -o import -f dbtune_prodlib.sde -u sde -p sde -i sde:sqlserver:<server> -s <server> -D prodlibdb
    
4/26/2014