Previous Topic: Preparing for the Upgrade to 3.1.01Next Topic: Migrating the Database to Release 3.1.01 for RiskMinder Components


Migrating the Database to Release 3.1.01 for Arcot Common Components

Migrate the database to the release 3.1.01 state for Arcot common components.

Important! If you installed AuthMinder with RiskMinder and completed the AuthMinder upgrade, then do not migrate the database for Arcot common components. This is because the database migration has already been performed during the AuthMinder upgrade.

Follow these steps:

  1. Copy the Upgrade directory to a temporary location on the system where you plan to upgrade.

    This directory contains the following zip files that are applicable for this migration path:

  2. Copy the arcot-common-upgrade-1.0.x-2.0.zip file to the ARCOT_HOME directory.
  3. Extract the contents of the arcot-common-upgrade-1.0.x-2.0.zip file in this directory.

    Note: Click Yes if you are prompted to overwrite any existing files.

  4. Navigate to the following directory:
    $ARCOT_HOME/tools/common/upgrade
    
  5. Extract the contents of the arcot-common-db-upgrade.zip file in this directory.
  6. Download the JDBC JAR that is compatible with your database:

    Copy the JAR to the $ARCOT_HOME/tools/common/upgrade/lib directory.

  7. Locate the JAVA_HOME used by the existing installation and ensure that you use the same JAVA_HOME to run the upgrade tool.
  8. Set and export the LD_LIBRARY_PATH variable to the directory where libArcotAccessKeyProvider.so is present.

    Important! If you are upgrading from release 3.x to 3.1.01, do not perform the remaining steps of this procedure. Instead, directly proceed to the next section.

  9. At the command prompt, change your working directory to:
    $ARCOT_HOME/tools/common/upgrade/
    
  10. Run the arcot-common-upgrade-framework.jar file by using the following command:
    java [JVM_Options] -jar arcot-common-upgrade-framework.jar [--log-file <log-file-name>] [--log-level <log-level>][--commit-batch-size <batch_size>] [--product-name common] [--prompt][--mst]
    

    The following table describes the options that are supported by this JAR file.

Option

Description

JVM-Options

The following JVM options are required only if LDAP organizations are configured:

  • -Xmx<heap_memory_size_in_MB>M: Sets the maximum heap size to 1 GB. If there are more than 1,00,000 users in the configured LDAP, then it is strongly recommended that you increase the heap size to 2048M (2 GB).

-Dcom.arcot.ldap.migration.timeout=<duration>: The migration of an LDAP organization involves fetching all the users from the LDAP server and migrating the users to the RiskMinder database. This parameter sets the maximum time (in minutes) taken to fetch all users from the LDAP server, beyond which the migration of the LDAP organization is marked as failed. The LDAP migration timeout for 1,00,000 users is approximately 240 minutes or 4 hours. However, the timeout value would depend on the type of hardware configuration being used. The default value of this parameter is 240 minutes.

Note: Ensure that the java command executable belongs to JAVA_HOME identified in Step 7. If JAVA_HOME is not set, modify the PATH environment variable to include $JAVA_HOME/bin.

log-file

Specifies the path to the log file:

  • If you do not provide any value, the arcot_common_upgrade.log file is created in the $ARCOT_HOME/logs/ directory.
  • If you provide an absolute path, the log file is created at the given location.
  • If you provide a file name, the log file is created in $ARCOT_HOME/logs/ with the given file name.

log-level

Specifies the log level. If you do not provide any value, the upgrade log level is set to INFO.

commit-batch-size

Specifies the number of transactions to be issued to the database before a COMMIT statement is issued.

product-name

Specifies the name of the product for which the upgrade is run. If you do not specify the product name, the product name is assumed to be common. Possible values are:

  • common: Indicates the Arcot common components.
  • riskfort: Indicates RiskMinder.

    Note: Ensure that you upgrade the Arcot common components before you upgrade RiskMinder.

prompt

Prompts whether to proceed further after each phase of the upgrade process is completed successfully. The upgrade process happens in the following phases:

  • Pre-upgrade: Involves performing various DDL and DML operations to migrate the database schema.
  • Upgrade: Involves migrating the data to the new schema.
  • Post-upgrade: Involves cleanup or follow-up actions that are required to be performed after the upgrade.
  • Verification: Involves the verifying of whether the upgrade is successful.

This option You can choose to run the upgrade tool later to continue from where it stopped. If this option is not specified, the upgrade tool runs without any prompting until the upgrade process is completed.

mst

Refers to the Monitoring Sleep Time. If you specify this option, the upgrade tool prints diagnostic messages describing the progress made during upgrade after sleeping for the specified duration (in minutes.) The default value is two minutes.

  1. If you are upgrading from release 1.0.x, then check for the following line in the $ARCOT_HOME/logs/arcot_common_upgrade.log file:

    Upgrade for common from version 1.0.x to version 2.0 run successfully.

    The presence of this line in the log confirms that the database was upgraded successfully.