Alert policies

An alert policy sets which alerts check a group of databases, when they fire and who gets the mail. Open Policies › Alerts.

The Production alert policy open on its 14 rules

Before you begin

  • Rules, exceptions and policies need Manage Policies. Your own alerts need Manage alerts.
  • Mail and traps use Settings › Email. See Email and notifications.
  • Select the engine at the top of the list: Oracle, SQL Server or PostgreSQL. The policies and the Alert Catalog are those of that engine.

Add a rule

The Edit Alert Rule dialog for Process Limit, on the Rule tab
  1. Click the policy in the list.

  2. Click Add Rule.

  3. In Alert, select an alert from the Alert Catalog. If the alert is not in the list, click New Alert at the bottom of the list.

  4. Set the fields in the table below.

  5. Click Add Rule.

FieldWhat it doesChoices
Fires whenCompares column 1 of the alert with this value. Contains is case-sensitive.<, >, =, Contains
CheckedHow often the rule runs.Every 5 minutes (the default) up to Every hour
Mail toWho gets the mail.No one, or recipients from Settings › Email
RemindSends the mail again while the alert is open.Never (the default) up to every week
TrapAlso sends the alert as a trap.Off, Critical, Minor

To change a rule, click its pencil. To remove it from the policy, click its bin.

Set the levels of an alert with its own settings

Some alerts show own levels in Fires When. Set their levels on the Configuration tab of the rule. The settings apply to this policy only.

AlertWhat you set
Tablespace UsageThe tablespace types, Free space below (GB) and Used above (%). Also the automatic datafile add.
ASM UsageUsable space below (GB) and Used above (%).
OS Log MatchThe codes to Include and Exclude, the Logs, the Severity and the Look back minutes. The database needs OS logs on Monitoring.
SQL Plan ChangeThe Watched Statements and the automatic plan fix.
Log Match (SQL Server, PostgreSQL)The patterns to Include and Exclude, the Least severity, the Look back minutes and In use. When In use is off, the rule fires on its default.

When both levels are on, an item must cross both. Delete under Saved settings sets the defaults again.

Add an exception

An exception changes a rule for some databases or items. You do not need another policy.

The Exceptions tab of Tablespace Usage, with two database overrides and three item exceptions
  1. Click the number in the Exceptions column of the rule, or open the rule and click Exceptions.

  2. For other levels on some databases: under Databases, select them. Set the Operator and the Value, or turn on Alert off. Click Add.

  3. For one item, such as a tablespace: type the Item name (UNDO* matches all names that start with UNDO). Select Ignore or Own threshold. Click Add.

dbCove saves each change at once. All applies an item exception to all databases of the policy, also to databases that you add later.

Create your own alert

Write a query one time, then add it to policies as a rule.

The New Alert dialog for Long Running Calls, with its query and a passed test
  1. Under the list of policies, click New Alert.

  2. Type a Name and a Description. The description goes into the mails.

  3. Write the Query. Column 1 is the value to compare. With One alert per row, column 2 is the name of the row.

  4. Select a database and click Test Query. You can save only after a passed test.

  5. For an Oracle alert, confirm that your Oracle licenses cover what the query reads.

  6. Click Add Alert. The alert opens in the Alert Catalog.

  7. Click Add to Policy and select a policy. Set the rule, then click Add Rule. An alert that is in no policy checks nothing.

If you click New Alert in the Alert list of a rule, dbCove selects the new alert in that rule.

  • The query is one SELECT, or WITH … SELECT. dbCove refuses PL/SQL and statements that change data.
  • On Oracle, dbCove refuses Diagnostics and Tuning Pack sources: DBA_HIST_ views, active session history, ADDM, the advisors and SQL Monitor.
  • A SQL Server alert is a T-SQL query, and a PostgreSQL alert is a PostgreSQL query. You must test it on an instance of its engine. It has no license step.
  • The query runs on all databases of the policy at each check. Keep it light.

To open the catalog, click Alert Catalog under the list of policies. Your alerts are under Custom. The pencil edits your alert. The bin deletes it from all policies. You cannot change the alerts under Built-in.

Create an alert policy

The New Policy dialog, with the Name box and the three kinds
  1. Click New Policy.

  2. Type a Name and click Create Policy.

  3. Assign databases. See the next section.

The new policy is for the engine that you selected. It gets a copy of the rules of the default policy of that engine, for example Oracle Alerts, without their exceptions.

Assign databases

The Databases of This Policy dialog, with nine of 24 databases selected
  1. Click the database count of the policy, for example 9 databases.

  2. Select the databases of the policy. Clear the others.

  3. Click Save.

A database that you add leaves its old alert policy. A database with no alert policy raises no alerts: show them at the bottom of the list shows these databases. A SQL Server or PostgreSQL instance always has an alert policy: an instance that you clear goes to the default policy of its engine.

Stop, rename or delete a policy

  • Running switch: a stopped policy keeps its databases but checks no rules.
  • Pencil: rename the policy.
  • Bin: delete the policy. Its Oracle databases then have no alert policy. Its instances go to the default policy of their engine.

When an alert fires

  1. The alert opens on Incidents. dbCove sends the mail, and a trap if Trap is on.

  2. While the alert is open, dbCove sends the mail again if Remind is set.

  3. At the first check without the condition, the alert clears and dbCove sends the cleared mail.

The same finding on Oracle databases with a shared host or storage is one mail and one row. A SQL Server or PostgreSQL instance always has its own mail and row.

Built-in alerts

Each engine has its own built-in alerts. The last column shows the rule in the default policy of the engine.

Oracle

AlertWhat it checksIn Oracle Alerts
BackupRMAN jobs of the last day that failed or ended with errors.Contains ERROR
DB AccessIf dbCove can reach the database.Its own logic
Tablespace UsageFree space and used percent of each tablespace.Under 10 GB free and over 90% used
ASM UsageUsable space and used percent of each disk group.Under 1024 GB usable and over 95% used
FRA UsageUsed percent of the fast recovery area.> 80
Process LimitUse of the processes limit, in percent. A PDB counts only what it can see. Add the CDB root to watch the whole limit.> 80
Dataguard GapArchived logs not applied on a standby.> 5
Anomaly WaitsActive sessions in Application, Concurrency, Configuration or Other waits.> 20
Unusable Indexes, Unusable Index PartitionsThe number of unusable indexes or index partitions.> 0
SQL Plan ChangeWatched statements that leave their expected plan.Its own logic
OS Log MatchFindings in the alert, ASM, CRS and listener logs.Not included

SQL Server

AlertWhat it checksIn SQL Server Alerts
DB AccessIf dbCove can reach the instance. dbCove tries two times before the alert fires.Its own logic
BackupHours since the newest full or differential backup of each online database, tempdb not included. A database with no backup shows 999999.> 24, checked every hour
BlockingThe longest time that a request waits behind another session, in seconds.>= 300
Transaction Log UsageUsed percent of the transaction log of each database, with what the log waits for before it can be used again.>= 90
Disk SpaceUsed percent of each volume that holds a file of an online database.>= 90
Database StateDatabases that are recovering, recovery pending, suspect or in emergency mode.!= ONLINE
Agent Job FailedSQL Server Agent jobs whose newest run failed in the last 24 hours. It reads the job history in msdb: see SQL Server privileges.= Failed
Availability GroupThe synchronization health of each database of an availability group, on each replica that the instance sees.!= HEALTHY
CPU UsageThe share of the machine CPU that SQL Server uses, in percent, in the newest minute.>= 90
Memory Grants PendingRequests that wait for a query memory grant.>= 5
Tempdb UsageUsed percent of the tempdb data files at their present size.>= 90
Log MatchThe findings that Log Watch reads in the error log. By default, every Critical finding of the last 15 minutes. It reads the repository, not the instance.Its own logic

PostgreSQL

AlertWhat it checksIn PostgreSQL Alerts
DB AccessIf dbCove can reach the instance. dbCove tries two times before the alert fires.Its own logic
Connections UsageUsed percent of the connections that ordinary roles can open: max_connections less the reserved slots. At the limit, new sessions are refused.>= 90
Transaction ID WraparoundThe transaction ID age of each database, as a percent of the limit where PostgreSQL stops writes.>= 50
Replication LagThe replay lag of each standby, in seconds.>= 300
WAL ReceiverOn a standby that streams from its primary: the status of the WAL receiver.!= streaming
Replication Slot WALThe WAL that each replication slot holds, as a percent of max_wal_size. A lost slot shows 999999.>= 100
Archiving FailingWhere the instance archives WAL and its last attempt failed: the seconds since a WAL file was last archived.>= 3600
Idle in TransactionEach client session that is idle in a transaction, in minutes.>= 10
BlockingEach session at the head of a chain of lock waits: the longest wait behind it, in seconds.>= 300
Prepared TransactionsThe prepared transactions, in minutes since they were prepared.>= 60
Log MatchThe findings that Log Watch reads in the server log. By default, every Critical finding of the last 15 minutes. It reads the repository, not the instance.Its own logic

Updated November 29, 2026