Contents

The DB Recovery Tool is executed by running recover-database.bat/ recover-database.sh which can be found under %FIORANO_HOME%\fmq\bin.

28.3.1 Using Windows

> recover-database.bat [–propertiesFile <absolute path for configuration file>]

[-fmq.profile <profile name for which DB is to be recovered>]
[-h ]

28.3.2 Using Unix/Linux

$ ./recover-database.sh [–propertiesFile <absolute path for configuration file>]

[-profile <profile name for which DB is to be recovered>]
[-h ]

28.3.3 Parameters

  1. Properties file: Configuration file. Default configuration file is located at %FIORANO_HOME%\fmq\profiles\recovery.properties

Example:
> recover-database.bat –propertiesFile c:\db.properties

2 Profile: Profile name for which DB is corrupted and to be recovered.

Example:
> recover-database.bat –profile FioranoMQ_XA

3. Help: Brief information on various command line arguments.

Example:
> recover-database.bat -h

4. DB Path: Path in which FMQ DB is located.

Example:
> recover-database.bat -dbPath %FIORANO_HOME%\fmq\profiles\FioranoMQ_XA\run

5. checkCSP: Analyzes CSP cache specified in path

Example:
> recover-database.bat -checkCSP %CSP_CACHE_PATH%

6. Operation: The operation to be performed by the recovery tool. By default the value is RunExtractor.

Example:
> recover-database.bat RunExtractor

28.3.4 Configuration File Parameters

  1. RUN_PTP_ANALYZER: Analyzes whether or not to recover the PTP subsystem database. The default is true.
  2. RUN_PUBSUB_ANALYZER: Analyzes whether or not to recover PUBSUB subsystem database. The default is false
  3. RUN_SDB_ANALYZER: Analyzes whether or not to recover Security subsystem database. The default is false.
  4. TRACE_LEVEL: Trace level for DB recovery tool. The default number is 6 (which is the maximum).
  5. PTP_DB_NAME: This is the database name for the PTP Subsystem. The default value is PTP. This default value can be configured from Profile Manager by setting the value of Fiorano.mq.ptp.databases.file.FileDBManager.Path
  6. PUBSUB_DB_NAME: This is the database name for the PUBSUB SubSystem. The default value is PUBSUB. This default value can be configured from Profile Manager by setting the value of Fiorano.mq.pubsub.databases.file.FileDBManager.Path
  7. SDB_ACL_DB_NAME: This is the database name for SDB ACL Manager. The default value is SDB/REALM.ACL. This default value can be configured from Profile Manager by setting the value of Fiorano.security.AclManager.FileDBManager.Path
  8. SDB_PRINCIPAL_DB_NAME: This is the database name for SDB Principal Manager. The default value is SDB/REALM.PRINCIPAL. This default value can be configured from Profile Manager by setting the value of Fiorano.security.PrincipalManager.FileDBManager.Path
  9. RENAME_DIRECTORY ANALYZER: Analyzes whether or not to rename the recovered directory to the default name. The default is false.

Default names for PTP, PUBSUB and Security subsystem database are PTP, PUBSUB and SDB respectively.

When 'tool' recovers some of the database it creates a new directory by adding prefix .New to the default name, that is, PTP.New.

If RENAME_DIRECTORY is true, it renames the old (may be corrupted) database with prefix .Old, that is, PTP.Old, and renames the recovered database to the default state by removing prefix .New.

Adaptavist ThemeBuilder EngineAtlassian Confluence