Modifying DBTUNE in SQL Server (Production Mapping)

在创建数据文件之后,修改 DBTUNE 以加入新的配置关键字。根据此新关键字,数据和数据库对象将存储在之前定义的文件组位置中。DBTUNE 表存储在 SQL Server 中的 sde 用户下。要修改 DBTUNE,有必要将 DBTUNE 导出至文本文件中,并在文本文件中进行修改。在对文本文件进行更新后,从文本文件中导入新的 DBTUNE。

如果您只在您的站点上使用直接连接,那么您可能尚未安装 ArcSDE。需要安装 ArcSDE,如果尚未安装,则应获取 sdedbtune 和 sdeconfig 工具。

注注:

对示例进行复制和粘贴可能会导致语法错误。

步骤:
  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.
    注注:

    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/27/2014