Adding a configuration keyword to the DBTUNE table in SQL Server for the Workflow Manager workspace
Adding a configuration keyword to the DBTUNE (Modifying DBTUNE)
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 then make modifications in the text file. After the updates to the text file are made, import the new DBTUNE from the text file.
Create a new DBTUNE keyword following these steps.
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.
- From the command prompt, 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 wmxdb
- Copy dbtune_exp.sde to dbtune_wmx.sde.
- Using a file-based editor, modify the ##DEFAULTS configuration keywords to control in which FileGroup the tables and indexes will be created.
If your database only stores the Workflow Manager repository, the dbtune_wmx.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_wmx.sde ##DEFAULTS A_INDEX_RASTER "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_INDEX_ROWID "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_INDEX_SHAPE "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_INDEX_STATEID "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_INDEX_USER "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_INDEX_XML "WITH FILLFACTOR = 75 ON WMX_AINDEX" A_STORAGE "ON WMX_ADATA" B_INDEX_RASTER "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_INDEX_ROWID "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_INDEX_SHAPE "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_INDEX_TO_DATE "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_INDEX_USER "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_INDEX_XML "WITH FILLFACTOR = 75 ON WMX_BINDEX" B_STORAGE "ON WMX_BDATA" D_INDEX_ALL "WITH FILLFACTOR = 75 ON WMX_DINDEX" D_INDEX_DELETED_AT "WITH FILLFACTOR = 75 ON WMX_DINDEX" D_STORAGE "ON WMX_DDATA" F_INDEX_AREA "WITH FILLFACTOR = 75 ON WMX_FINDEX" F_INDEX_FID "WITH FILLFACTOR = 75 ON WMX_FINDEX" F_INDEX_LEN "WITH FILLFACTOR = 75 ON WMX_FINDEX" F_STORAGE "ON WMX_FDATA" GEOMETRY_STORAGE "GEOMETRY" GEOMTAB_PK "WITH FILLFACTOR = 75 ON WMX_FINDEX" GEOMTAB_STORAGE "ON WMX_FDATA" I_STORAGE "ON WMX_FDATA" S_INDEX_ALL "WITH FILLFACTOR = 75 ON WMX_SINDEX" S_INDEX_SP_FID "WITH FILLFACTOR = 75 ON WMX_SINDEX" S_STORAGE "ON WMX_SDATA" END
- From the command prompt, import the modified dbtune_wmx.sde file.
sdedbtune -o import -f dbtune_rev.sde -u sde -p sde -i sde:sqlserver:<server> -s <server> -D wmxdb