You are on page 1of 12

Operational Procedures Fragment

Metadata
Module Name Document Type Date Authors Fragment Version Notes

Description
Snap Creator 3.x Plug-in for MaxDB Operational Procedures 2012-01-02 Dietmar Ebert

For instructions on using the template, refer to the Modular Architecture Authoring Guidelines.

NOTES REGARDING THE OPERATIONAL PROCEDURES TEMPLATE:   The “Overview” section is mandatory. The “Guidelines” and “Additional Information” sections are optional.

1. Test 2. Test

1. Make sure the Snap Creator Framework GUI is started. . snapcreator --profile <profile_name> [--config <config_name>] --action snap --policy <policy> --verbose Where:    <profile_name> is the name of the profile where the configuration file is located. Make sure the database is online. <policy> is one of the policies specified in the configuration file. Back up the database using Snap Creator. complete the following steps: 1. <config_name> is the name of the configuration file if the name is different from <profile_name>.conf. Make sure the database is online. 2. BACK UP MAXDB DATABASE USING THE GUI To back up a MaxDB database by using the Snap Creator GUI. 2. complete the following steps: 1.X PLUG-IN FOR MAXDB Procedure Back up a MaxDB database using the CLI Back up a MaxDB database using the GUI Use Case Create a backup of a database Restore a backup of a database Restore a MaxDB database using the CLI Restore a MaxDB database using the GUI Recover a database Recover a MaxDB database using the CLI Recover a MaxDB database using the GUI Clone a database Clone a MaxDB database using the CLI Clone a MaxDB database using the GUI Activate automatic log backup mode Activate automatic log backup mode using the CLI BACK UP MAXDB DATABASE USING THE CLI To back up a MaxDB database by using the Snap Creator CLI.1 SNAP CREATOR 3.

In the Backup Profiles pane. expand the profile and mark the configuration.3. Log in to the GUI. The configuration context is loaded and displayed in the Configuration Context pane. 4. .

Restore the database from a previous backup. <policy> is one of the policies specified in the configuration file. the output displays in the Console pane. RESTORE MAXDB DATABASE USING THE CLI To restore a MaxDB database from a previous backup by using the Snap Creator CLI. 7. complete the following steps: 1. <config_name> is the name of the configuration file if the name is different from the <profile_name>conf. snapcreator --profile <profile_name> [--config <config_name>] --action restore --policy <policy> Where:    <profile_name> is the name of the profile where the configuration file is located. This process starts the backup operation. Select the button (Actions menu). Specify additional parameters: policy and user-defined variables. Make sure the database is offline or in admin mode.5. Click Ok. 6. . 2. and then select Snapshot.

Make sure the database is online. complete the following steps: 1. expand the profile and mark the configuration. The configuration context is loaded and displayed in the Configuration Context pane. Go to the procedure to Recover MaxDB Database Using the CLI or Recover MaxDB Database Using the MaxDB GUI. In the Backup Profiles pane. .3. 3. Log in to the GUI. 4. Make sure the Snap Creator Framework GUI is started. RESTORE MAXDB DATABASE USING THE GUI To restore a MaxDB database from a previous backup by using the Snap Creator GUI. 2.

The Snap Creator Framework Wizard is launched. Press the Actions button and select Restore. Click Next. .5. 6.

The example shows the Restore Details page with Volume Restore being selected. policy. restore Snapshot name. Provide details for the restore operation. and restore type from the drop-down lists.7. Click Next. . Select controller. volume name.

Click Ok. 12. Review the information presented in the Summary page and verify that it is correct. Repeat the restore operation for each volume or file that is part of the backup and that is needed for the subsequent recovery procedure.8. 11. the following message displays. Click Finish to initiate the restore operation. On the Volume Restore pane. Go to the procedure to Recover MaxDB Database Using the CLI or Recover MaxDB Database Using the MaxDB GUI. 10. . After a short time. click Yes to accept the warning regarding the potential data loss. a progress bar displays indicating the progress of the selected restore operation. When the restore operation finishes. 9.

complete the following steps: 1. If the database is not restartable and is inconsistent (both values are set to 0). When these fields are used in combination. RECOVER MAXDB DATABASE USING THE MAXDB GUI To recover a MaxDB database by using the Snap Creator GUI. dbmcli -d <DB_ID> -u <dbm_user>. If the database is restartable and consistent (both values are set to 1).16 2 NO The Restartable field indicates whether the database is restartable (1) or not restartable (0). the database can immediately restart in online mode. 2. the database can be restarted using the following command. Note: For more information about the preferred GUI. perform an archive log restore. Verify whether the database is restartable. refer to the MaxDB documentation. an archive log backup restore must first be performed. as well as to the latest point in time. The Consistent field indicates whether the database is consistent (1) or inconsistent (1).<dbm_passwd> db_restartinfo This command returns recovery meta information. use either autorecover.<dbm_passwd> db_restart Note: For additional options using this command. Depending on the MaxDB version. Place the database in admin mode. Depending on the MaxDB version.8. or. When the recovery is finished. dbmcli –d <DB_ID> -u <dbm_user>. <dbm_passwd> is the password of the MaxDB database manager user. dbmcli –d <DB_ID> -u <dbm_user>. Make sure all of the archive logs are in place if the database is configured to create archive logs and to perform a point-in-time recovery. 5. . otherwise.01. Both methodologies recover the database to a specific point in time. complete the following step: 1. refer to the MaxDB documentation. the database is returned to online mode. use recover_start in combination with recover_replace to loop through the archived logs. <dbm_user> is the user name of the MaxDB database manager. use MaxDB Database Manager GUI or MaxDB Database Studio to perform a database recovery. if not available. 6.<dbm_passwd> db_admin Where:    <DB_ID> is the name/identifier of the MaxDB database. 3.RECOVER MAXDB DATABASE USING THE CLI To recover a MaxDB database by using the Snap Creator CLI. 4. OK Used LOG Page First LOG Page Restartable Id Restart Record Id LOG Info Consistent Log Volume Enabled Log Auto Overwrite Master Servernode Converter Version Oldest Compatible Version Queue Count Repository Imports 1284693 0 1 amdlinux2:PAX_20080118_121057 amdlinux2:PAX_20080118_121057 1 1 0 AMDLINUX2 27349 7.

2. and then log in. Make sure the following are properly configured:    The source database is online. 2. snapcreator --profile <profile_name> [--config <config_name>] --action clone_vol --policy <policy> --verbose Where:    <profile_name> is the name of the profile where the configuration file is located. The configuration parameter SC_CLONE_TARGET is set.conf. <config_name> is the name of the configuration file if the name is different from <profile_name>. CLONE MAXDB DATABASE USING THE GUI To clone a MaxDB database by using the Snap Creator GUI. Make sure the Snap Creator Framework GUI is presented. The Snap Creator agent specified in SC_CLONE_TARGET is running. complete the following steps: 1. Make sure the source database is online.CLONE MAXDB DATABASE USING THE CLI To clone a MaxDB database by using the Snap Creator CLI. complete the following steps: 1. <policy> is one of the policies specified in the configuration file. . Clone the database using Snap Creator.

3. . Select the button (Actions menu). 4. and then select Volume Clone. expand the profile and mark the configuration. In the Backup Profiles pane. The configuration context is loaded and displayed in the Configuration Context pane.

5. . Activate the automatic log backup. 6. 2. Specify additional parameters: policy and user-defined variables. Make sure there is at least one complete data backup for the database instance. <type> is the type of the backup template. Click Ok. This process asynchronously starts the clone operation. dbmcli -d <DB_ID> -u <dbm_user>. <backup_type> is the type of backup. use the Snap Creator Framework or OS commands.<dbm_passwd> autolog_on <medium_name> 4. dbmcli -d <DB_ID> -u <dbm_user>. For example. Archive backup files on a regular base. Create a backup template type as FILE and a backup type as AUTO. The current progress displays in the Console pane. <location> is the file (full qualified) for the log backups. complete the following steps: 1. This has a version number appended to it. ACTIVATE AUTOMATIC LOG BACKUP MODE USING THE CLI To activate an an automatic log backup by using the Snap Creator CLI.<dbm_passwd> medium_put <medium_name> <location> <type> <backup_type> Where:     <medium_name> is the backup template identifier. 3.