dbu_menu
The dbu_menu utility enables you to facilitate day-to-day maintenance and diagnostics for Control-M/Server PostgreSQL, Oracle, and MSSQL databases.
The Database Utilities Menu is only relevant for PostgreSQL, Oracle, and MSSQL database functionality.
You can also access the Database Utilities Menu from the ctm_menu utility.
Accessing the Database Utilities Menu
This procedure describes how to access the Database Utilities Menu on Control-M/Server.
Begin
-
Do one of the following:
-
UNIX: Log in to a Control-M/Server account
-
Windows: Open a command prompt as an Administrator and navigate to <Control-M/Server_Home>>\ctm_server\exe\DBUtils.
-
-
Run the following command:
dbu_menu
The following Database Utilities Menu appears:
CopySelect one of the following options:
1 - Management
2 - Maintenance
3 - Report
q - quit
Enter option number ---> [q]:
Management Menu Options
The following table lists the options in the Management Menu.
Option |
Database Server |
Description |
---|---|---|
Start Database |
PostgreSQL |
Starts the PostgreSQL database server, and services involved. This is option is possible only when Control-M/Server is installed with a dedicated PostgreSQL database server. If this option is invoked on Control-M/Server that has an existing database, an error message appears. |
Stop Database |
PostgreSQL |
Stops the PostgreSQL database server, and services involved. This is option is possible only when Control-M/Server is installed with a dedicated PostgreSQL database server. If this option is invoked on Control-M/Server running with an existing database, an error message appears. |
Set Database Archive Mode |
PostgreSQL |
Changes the archive mode of the PostgreSQL database server. This is option is possible only when Control-M/Server is installed with a dedicated PostgreSQL database server. Parameters Available:
|
Build Database |
|
Creates a Control-M/Server database. This option is only enabled on a Control-M/Server with an existing or dedicated database server. |
Extend Database |
|
Extends the size of the existing user database data file or adds a new data file to provide extra space for schema objects. Parameters:
|
Maintenance Menu Options
The following table describes the Maintenance Menu options for Control-M/Server.
Options |
Database |
Description |
---|---|---|
Update Database Statistics |
|
Updates statistic procedures in the database server. |
Database Consistency Check |
|
|
Hot Database Backup |
PostgreSQL |
Only enabled when:
Online backup of a dedicated PostgreSQL database server file system and the Control-M/Server databases. This backup can be used to restore the database up to and including the last completed transaction. Parameters:
|
Cold Database Backup |
|
Exports the database schema to the specified file when Control-M/Server is shut down. You must shut down Control-M/Server and the Control-M/Server Configuration Agent before you activate this backup. Parameters:
|
Hot Database Restore |
PostgreSQL |
Only enabled when Control-M/Server is active and running with a dedicated PostgreSQL database server. Online restore of the PostgreSQL database server file system and the Control-M/Server databases. When this option completes successfully, the previous PostgreSQL database server file system is saved to the following location: <pghome_directory/old_pgsql_<date of operation> If Control-M/Server databases do not exist in the <pghome_directory> it is saved in the following location: <db location>/<db name>_old_<date of operation> You must shut down Control-M/Server and the Control-M/Server Configuration Agent before you enable this option. Parameters:
|
Cold Database Restore |
|
Imports the Control-M/Server database schema from the file specified in Backup File parameter of the Cold Database Backup menu option. You must shut down Control-M/Server and the Control-M/Server Configuration Agent before you enable this option. Parameters:
|