Process documentationPlanning Concept Locate this document in the navigation structure

 

To ensure the secure operation of your database system, you have to create a scheduling concept for the following activities:

  • Data Backups

  • Log Backups

  • Statistics Updates for the SQL Optimizer

  • Checking Database Structures

  • Storing and Checking Backups

  • Updating Table Statistics

You can schedule, start, and monitor these activities with the DBA Planning Calendar.

You can use backup tools from other providers to increase the speed of the backup.

Process

Data Backups

Note that in the case of a recovery, the more up-to-date the last backup is, the fewer log entries have to be reloaded. Therefore, perform data backups as often as possible.

  • Perform at least one complete data backup every week (at the weekend, if possible). (Action Complete Data Backup).

  • On each day that the database is productive, start an incremental data backup (Aktion Incremental Data Backup).

    Note Note

    If a complete data backup is active, you cannot start an incremental data backup.

    End of the note.

You can perform data backups in parallel to increase the speed of each backup.

Follow the procedure described in Scheduling a Data Backup.

More information: Database Administration, Backing Up Data

Log Backups

In production systems, make sure that your log settings include hardware-based mirroring of the log area, that the log area can be overwritten only once it has been backed up, and that redo log management is always activated. Perform log backups regularly.

  • Automatic Log Backup

    The automatic log backup (autosave log mechanism) must always be activated (Action Activating the Automatic Log Backup). Check regularly that automatic log backups are activated.

    Complete and incremental data backups are also possible while the automatic log backup is activated.

    Proceed as described in Activating Automatic Log Backups.

  • Interactive Log Backup

    If automatic log backup is not active, you must regularly check that there is enough storage space available in the log area. If no new log entries can be written due to lack of storage space in the log area, the database system shuts down. If required, back up the log area immediately by starting an interactive log back up (Acttion Interactive Log Backup.

    Proceed as described in Scheduling Interactive Log Backups.

  • Archiving the Backup Files

    Regularly archive the backup files that are written during a log backup on a data carrier of your choice. After these files have been archived successfully, you can delete the backup files that were written during the log backup. This ensures that there is always enough space in the directory for the backup files.

    If you use a backup tool from another provider, you can automate the process for archiving backup files (Action Archiving Log Backup Files).

    Follow the procedure described in Archiving Backup Files.

More information: Database Administration, Backing Up Log Entries, Archiving Backup Files

Updating the SQL Optimizer Statistics

After an installation, an upgrade, or a database migration, execute the action Update all Optimizer statistics once.

Subsequently, you need to update the statistics only once a week (if possible at the weekend). To do this, use the actions Select Tables for Update Statistics and Update Statistics for Selected Tables.

Follow the procedure described in Scheduling Updates of the SQL Optimizer Statistics.

More information: SQL Optimizer in CCMS

Database Structure Checks

In general, you should perform the database structure checks at the latest before the data carriers of a backup cycle are overwritten. The following recommendations are based on a backup cycle of four weeks.

Every four weeks (if possible, on a weekend), check the database structures for all database objects (tables and indexes). To do this, use the action Check Database Structure. This structure check may take some time, depending on the size of your dataset.

Alternatively, or additionally, you can check the database structures for all tables. To do this, use the action Check Database Structure (tables only). Indexes contain redundant information and can be restored after errors. Therefore, you do not need to check their structures as regularly.

Follow the procedure described in Scheduling a Database Structure Check. You can check structures for a single table by means of the user menu Tables/Views/Synonyms (DBA Cockpit/Database Assistant)

More information: Database Administration, Checking Database Structures

Storing and Checking Backups

Tapes containing backups should not be directly overwritten with the next backup. If you retain, say, the last four backup generations, it may be possible to use an older backup if a data carrier fails.

Check the backups on the data carriers from time to time. In this way, you can find out in time if a backup is no longer readable. Use one of the following actions: Check Complete Data Backup, Check Incremental Data Backup, or Check Log Backup.

Follow the procedure described in Scheduling an Action.

More information: Database Studio, Checking Backups

Updating Table Statistics

You should schedule the action Update Table Statistics to update the statistics on a weekly basis.

Follow the procedure described in Scheduling an Action.

You can execute a one-off update of the table statistics using the Table Sizes user menu (DBA Cockpit/Database Assistant) . In the Table Sizes user menu, you can analyze the statistical data received.