Skip Headers
Oracle® Access Manager Configuration Manager Installation and Administration Guide
10g (10.1.4.2.0)

Part Number E10358-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 Managing Transactions and Rolling Back Changes

This chapter explains how to view transaction records created by Oracle Access Manager Configuration Manager during migration and how to roll back changes for a specific transaction. This chapter also discusses how to restore the content of a specific environment snapshot made using the Configuration Manager. This chapter includes the following sections:

5.1 Viewing Transaction Details for an Associated Directory Pair

A transaction record is created automatically each time that you perform a migration with Oracle Access Manager Configuration Manager. From the Transaction List page, you can select an association and view existing transaction records for that association.

Figure 5-1 shows a sample Transaction List page. Details you can view include the Transaction ID assigned automatically during the migration, the description that was entered for the transaction, the name of the user who performed the migration the date on which the migration was performed, and the status of the migration transaction.

Figure 5-1 Transaction List Page

Details on the Transactions List Page
Description of "Figure 5-1 Transaction List Page"

You can select a transaction record to view the changes made during the selected migration in greater detail. Figure 5-2 shows an example of the View Transactions page and the types of details that you can view for the selected migration transaction.

Figure 5-2 Viewing Differences Between the Target Before and After Migration

Symbols on a View Transactions page
Description of "Figure 5-2 Viewing Differences Between the Target Before and After Migration"

As shown in Figure 5-2, each folder has an expansion icon. Symbols appear between the folder icon and the object name to indicate that the following types of changes occurred during the migration:

If you have used Oracle Access Manager Configuration Manager to migrate data, you have seen these symbols when comparing and customizing the target. For more information about the symbols used to show differences, see "About Customizing the Target".

Note:

You cannot explicitly delete a transaction record. Transaction records are deleted only when you delete the association to which the records belong.

To view transaction details

  1. From Oracle Access Manager Configuration Manager, click the Transactions tab. For example:

    Transactions

  2. From the Select Association list, select the desired directory association. For example:

    Select Association to View Transaction List b
    Description of the illustration sel_assoc_befor_mig.gif

    The Transactions List page appears, with existing transactions for the selected association.

  3. In the Select column, click the option beside the desired transaction ID to select it. For example:

    Select Association to View Transactions
    Description of the illustration select_transaction_new.gif

  4. Click the View button to display the details of this transaction. For example:

    View

  5. Review the details in the transaction record to ensure that this is what you want.

  6. Click the Back button on this page to return to the Transaction List page. For example:

    Back

5.2 Rolling Back Changes Made During a Specific Transaction

You can select a transaction record, then undo (roll back) the changes made during data migration using Oracle Access Manager Configuration Manager. Rolling back a transaction undoes only those changes made to logical objects during data migration using Oracle Access Manager Configuration Manager.

There are any number of reasons you can choose to roll back a migration transaction. For example, consider a scenario where you changed logical objects in the source deployment (workflows, policy domains, and WebGates). After testing and validating that the changes produced the desired result in the source deployment, you migrated the data to a target deployment. However, if postmigration testing in the target deployment did not produce the results you expected, you can choose to roll back the transaction to restore the target environment. Considering a different scenario, suppose that you migrate and validate a change to one object in the target environment, and then decide to delete the object from the target. In this case, you can either roll back the transaction to remove the migrated logical object from the target or delete it directly using the Identity or Access System Console.

Before you perform a rollback, be sure to confirm that the environment involved is accessible by the Configuration Manager. When you roll back a transaction, Oracle Access Manager Configuration Manager returns the target environment to the state it was in before the migration by:

Following is a brief overview of the rollback process. After you select the environment and initiate the rollback operation a Customize page appears, as shown in Figure 5-3. Scroll bars are provided, as usual. In the progress indicator, Customize is highlighted.

Figure 5-3 Customize Page During the Rollback Operation

Customize Page During a Rollback Operation
Description of "Figure 5-3 Customize Page During the Rollback Operation"

The rollback Customize page provides a navigation tree of the:

On the Customize page, symbols that appear between the folder icon and the object name indicates the following types of changes:

From the Customize page, you can manually update attributes in the Target Environment - After Rollback view. The process is similar to the customization that you can perform during migration. For more information about customizing attributes, see "About Customizing the Target".

Whether you customize attributes or not, you click the Next button to proceed to the Rollback Transaction page. A sample Rollback Transaction page is shown in Figure 5-4.

Figure 5-4 Rollback Transaction Page

Rollback Transaction Page
Description of "Figure 5-4 Rollback Transaction Page"

The Rollback Transaction page enables a final review and validation before the actual rollback. The page shows the target both as it is now (before) and as it will be (after) this rollback operation. In the progress indicator, Rollback is highlighted.

The Rollback Transaction page includes four buttons, and a Transaction Description field where you enter a unique description for the record that will be created during this rollback operation. You can use the new transaction to roll back this rollback operation and restore the target to the state it is in at this moment (after the original migration and before rolling back changes).

The Rollback Transaction page includes the following buttons:

The following procedure provides the steps that you use to perform the rollback operation. Details about exporting data to an LDIF file and customizing attributes are included in the procedure and are optional.

To roll back the changes made during a specific migration transaction

  1. In the Configuration Manager, select the Transactions tab. For example:

    Transactions

  2. From the Select Association list, select the desired directory association. For example:

    Select Association to View Transaction List b
    Description of the illustration sel_assoc_befor_mig.gif

    The Transactions List page appears with existing transactions for the selected association.

  3. Click the option beside the desired transaction to select it.

    Select Association to RollbackTransactions
    Description of the illustration select_transaction_new.gif

  4. Click the Rollback button:

    Rollback

  5. Customize Attributes (Optional): Perform the following optional steps to update attributes manually; new values are assigned during the rollback operation. Otherwise, click Next and skip to Step 6.

    1. On the Customize page, click the button labeled (..) beside the attribute that you want to change (to open the Update Attributes window).

    2. In the Update Attribute window, add the new value and click Save. For example:

      • Attribute Name: The current attribute name is fixed and cannot be changed.

      • Attribute Old Value: The current attribute value.

      • Attribute New Value: Enter the new attribute value in the field provided.

      • Save: Click the Save button to save the updated attribute value and return to the Customization page.

    3. Repeat Steps a and b for each attribute that you want to change in the After Rollback view.

    4. When you finish with the Customize page, click the Next button to display the Rollback Transaction page, then proceed with one of the following activities:

      • Export Data to an LDIF File: Proceed to Step 6 if you want to create an optional LDIF file to edit or use when importing data with an external tool. No transaction record is created.

      • Roll Back Changes: Proceed to Step 7 to create a transaction record and roll back changes.

      • Cancel the Rollback Operation: Click Cancel to terminate the Rollback operation without completing it.

  6. Export to LDIF File (Optional): Perform the following steps, in order, only if you want to export the data to an LDIF file to import using an external tool. Otherwise, skip to step 7.

    1. On the Rollback Transaction page, click the Export to LDIF button:

      Export to LDIF

    2. In the Open MigrationData window, select a text editor (or click Open with Notepad (default)). For example:

      Open with Notepad (default)

    3. In the Notepad window review and edit the data to be exported, then save the file. For example:

      Save

    4. In the Save as window locate the destination directory for this file, enter a file name with the .ldif extension, and then click Save. For example.

      MigrationData_01_07.ldif
      
      

      The file is created in the location that you specify. No transaction record is created.

    5. Before using an external tool to import the LDIF file, make a snapshot of the target directory, as described in "Creating a Snapshot".

  7. Roll Back: On the Rollback Transaction page, complete the following activities to complete the operation:

    1. Enter a Transaction Description in the field provided, to name the record that is created during this rollback operation. For example:

      Roll back of Transaction 1372
      
      
    2. Click the Rollback button to undo the changes that were made during the original migration transaction. For example:

      Rollback

    3. Click OK to validate and start the rollback operation. For example:

      OK

    4. Check the informational message when the operation completes, to confirm that the rollback is successful, as shown next.

      Rollback Transaction Confirmation
      Description of the illustration rollback_confirm.gif

  8. Restart Identity and Access Servers to ensure data synchronization after migration, as described in "Restarting Servers After Migration".

5.3 Exporting Transaction Data to an LDIF

Rather than using the automated Configuration Manager process to roll back changes made during a specific migration transaction, you can choose to export the details of a transaction record to an LDIF.

This operation is similar to the one described in "Rolling Back Changes Made During a Specific Transaction". However, in this case you will not complete the rollback operation using the Configuration Manager. Instead, you export the transaction record to an LDIF. Later you can edit the attributes in the record using a text editor, then use an external program to import the data. Importing data using an LDIF is outside the scope of this book.

During the export operation you are asked to provide a name for the transaction data LDIF. The default name is MigrationData. Oracle recommends that you rename this file and perhaps include the transaction ID assigned during the migration to help you identify it later (especially if you have more than one transaction LDIF).

To export the changes made during a specific migration to an LDIF

  1. From the Configuration Manager home page, select the Transactions tab then select the desired directory association. For example:

    Transactions

    Desired Association

  2. From the Transaction List, select the transaction and click the Export to LDIF button. For example:

    Desired Transaction

    Export to LDIF

  3. In the Security Warning window, click Save. For example:

    Save

  4. In the Save as window, locate the destination directory for this file and enter a file name with the .ldif extension then click Save. For example:

    TransactionIDData.ldif

    The file is created in the location you specify.

5.4 Restoring the Content of a Snapshot

This information is repeated from Chapter 3 for your convenience.

You might want to restore a snapshot if configuration data in the oblix tree of the environment becomes inconsistent or is corrupted as a result of changes that are external to Oracle Access Manager Configuration Manager. Any individual with HMUser privileges can perform this task. The repository for Oracle Access Manager Configuration Manager and the appropriate LDAP directory environment must be online.

When you restore a snapshot that was made using Oracle Access Manager Configuration Manager, the entire oblix tree is restored to the directory. Changes that are undone when you restore the snapshot include both migration changes that were made using the Configuration Manager, as well as changes that were made outside the Configuration Manager after data migration.

Caution:

Restoring a snapshot will undo all changes made after the snapshot was taken and returns the directory to the state it was in at the time the snapshot was made.

Before the restoration commences, you are asked to verify that you want to restore the selected snapshot. After your verification, a new snapshot is created to capture the current state of the directory, and then the selected earlier snapshot is restored. If you believe that too many changes were undone during the restoration, you can restore the snapshot that was made during the restoration.

Note:

If you created a directory backup using any application other than Oracle Access Manager Configuration Manager, you cannot use the Configuration Manager to restore the backup.

To restore the content of a snapshot

  1. From Oracle Access Manager Configuration Manager, click the SnapShots tab. For example:

    SnapShots

  2. Select an environment from the Select Environment list. For example:

    Environment Selected for Snapshot Restore
    Description of the illustration snapshot_select_env.gif

  3. In the Select column, click the option beside the name of the snapshot that you want to restore. For example:

    Select SnapShot Name to Restore
    Description of the illustration select_snapshot.gif

  4. Click the Restore button. For example:

    Restore

    A message asks you to verify that you want to complete the Restore operation, which returns the oblix tree in the environment to its previous condition.

  5. Click OK to complete the restoration (or Cancel to terminate the operation).

    OK

    After you verify the operation, a new snapshot is made of the environment in its current state, and then the content of the selected snapshot is restored.

  6. On the SnapShots List, review the informational message to confirm success; you should see the new snapshot details in the table.