Recommends suitable sizes for new dbccdb and dbccalt databases, lists suitable devices for dbccdb and dbccalt, and suggests a cache size and a suitable number of worker processes for the target database.
sp_plan_dbccdb [dbname]
specifies the name of the target database. If dbname is not specified, sp_plan_dbccdb makes recommendations for all databases in master..sysdatabases.
Returns configuration recommendations for creating a dbccdb database suitable for checking the master database. The dbccdb database already existed at the time this command was run, so the size of the existing database is provided for comparison:
sp_plan_dbccdb master
Recommended size for dbccdb is 4MB. dbccdb database already exists with size 8MB. Recommended values for workspace size, cache size and process count are: dbname scan ws text ws cache process count master 64K 64K 640K 1
Returns configuration recommendations for creating a dbccdb database suitable for checking all databases in the server. No dbccdb database existed at the time this command was run:
sp_plan_dbccdb
Recommended minimum size for dbccdb is 4MB. Recommended values for workspace size, cache size and process count are: dbname scan ws text ws cache process count master 64K 64K 640K 1 tempdb 64K 64K 640K 1 model 64K 64K 640K 1 sybsystemprocs 272K 80K 640K 1 dbccdb 128K 64K 640K 1
Returns configuration recommendations for creating a dbccdb database suitable for checking pubs2:
sp_plan_dbccdb pubs2
Recommended size for dbccdb is 4MB. Recommended devices for dbccdb are: Logical Device Name Device Size Physical Device Name sprocdev 28672 /remote/sybase/devices/srv_sprocs_dat tun_dat 8192 /remote/sybase/devices/srv_tun_dat tun_log 4096 /remote/sybase/devices/srv_tun_log Recommended values for workspace size, cache size and process count are: dbname scan ws text ws cache process count pubs2 64K 64K 640K 1
sp_plan_dbccdb recommends suitable sizes for creating new dbccdb and dbccalt databases, lists suitable devices for the new database, and suggests cache size and a suitable number of worker processes for the target database.
If you specify dbccdb, sp_plan_dbccdb recommends values for dbccalt, the alternate database. If you specify dbccalt, sp_plan_dbccdb recommends values for dbccdb.
sp_plan_dbccdb does not report values for existing dbccdb and dbccalt databases. To gather configuration parameters for an existing dbccdb or dbccalt database, use sp_dbcc_evaluatedb.
For information on the dbcc stored procedures for maintaining dbccdb and for generating reports from dbccdb, see Chapter 11, “dbcc Stored Procedures.”
Only the System Administrator or Database Owner can execute sp_plan_dbccdb. Only the System Administrator can execute sp_plan_dbccdb without specifying a database name.
System procedures sp_dbcc_evaluatedb