INF: Parameters and Execution Options for SQL MonitorID: Q90761
|
SQL Monitor is a new facility in SQL Server 4.2 that supports the
new SQL Administrator tool. SQL Monitor connects to a SQL Server and
performs the following functions:
The initial state of the backup and statistics engines are set by
parameters specified when executing SQL Monitor. Once SQL Monitor has
been started, the backup and statistics engines can be independently
and dynamically stopped or reconfigured using SQL Administrator.
Controlling the backup engine is documented in the Backup and Recovery
chapter of the SQL "System Administrator's Guide." Controlling the
statistics engine is documented in the Starting and Stopping the
Statistics Engine section of the chapter on Configuration and Performance.
SQL Monitor itself cannot be started or stopped from SQL
Administrator; it must executed using one of three options. The three
options are documented in the section on Starting the SQL Monitor
Program in the SQL "System Administrator's Guide." Option 1 below can
be used in any network, and is the only option available for non-LAN
Manager based networks such as Novell and Banyan. Options 2 and 3 are
available only in a LAN Manager or LAN Manager-based networking
environment. SQL Monitor must be run on the same machine as the SQL
Server it is monitoring.
sqlmontr -parameter1 -parameter2 ....
start sqlmontr -parameter1 -parameter2 .....
sqlmontr -?
-P Specifies the password for the sa userid. sqlmontr will prompt
for the password if -P is not specified.
-S Server name. Never use this parameter, sqlmontr must be on
the same machine as the SQL Server.
-B Backup sleep period (minutes). The length of time the SQL
Monitor backup engine will sleep between checks to see if there
is a scheduled backup to dispatch. The default is 15 minutes.
-A Backup off at startup. This parameter will cause sqlmontr to
start with the scheduled backup engine not running. The backup
engine can be started later using SQL Administrator. If -A is not
specified, sqlmontr will start with the backup engine running.
-M Monitor sleep period (seconds). The length of time the SQL
Monitor statistics engine sleeps between its attempts to gather
runtime statistics. The default is 60 seconds.
-N Monitor on at startup. Specifies that you want the SQL Monitor
statistics engine to be running when sqlmontr starts. If -N is
not specified, sqlmontr will start with the statistics engine off.
The statistics engine can be started later using SQL Administrator.
-T Monitor table max row count. The maximum number of rows in the
statistics engine's table for holding its history of runtime
statistics. Sqlmontr adds one row to the table each time it gathers
runtime statistics. If the table fills, sqlmontr will stop
recording the runtime statistics. The table can then be cleared
from SQL Administrator. The default is 1000 rows.
-O SQL connect/wait timeout period (seconds). The length of time
SQL Monitor will wait for a reply to any command it sends to the SQL
Server before generating a timeout error to SQL Administrator.
Default is 180 seconds.
net start sqlmonitor /parameter1 /parameter2 ....
netsql start sqlmonitor /parameter1 /parameter2 ....
Additional query words: 4.20 WinSQL Administrator
Keywords : kbtool SSrvGen
Version : 4.2
Platform : OS/2
Issue type :
Last Reviewed: March 16, 1999