Restoring an Oracle Table in a CDB to Its Current Location (In Place)

You can restore Oracle tables in container databases (CDBs) when you need to recover tables that have been logically corrupted or lost or after the table structure was modified.

By default, when you restore tables to the source database, the restore operation overwrites the existing tables in the destination database.

Best Practice: Use the Oracle catalog when you perform a table-level restore on Oracle 11g or a more recent version. The restore needs the catalog in order to skip Oracle TNS failures that happen when the target connection occurs.

In order to successfully import the tables, you must have a user that has the dba privilege, or the user must own the full table. You cannot have a user with the sysbackup privilege for the import.

On Windows configurations, the Oracle home user that you use for the Oracle instance must have the same credentials and password as the local administrator, when the local administrator is configured for the Commvault Oracle instance properties.

Before You Begin

Procedure

  1. From the CommCell Browser, expand Client Computers > client > Oracle.

  2. Right-click the instance, point to All Tasks and select Browse and Restore.

  3. Select the Table View check box and click View Content.

  4. To display the list of PDBs, in the browse window click the + to the left of the instance name.

    The list of PDBs appears.

  5. To display the list of schemas, in the browse window click the + to the left of the PDB name.

    The list of schemas appears.

  6. To display the list of tables, in the browse window click the schema.

    The list of tables appears.

  7. You can include or exclude any of the following tables in the restore: dependent tables, referenced tables, and recursively dependent tables. To do this, right-click the table and choose whether to include or exclude dependent or referenced tables.

    When you restore a table which is dependent on another table due to referential constraints, you must take one of the following actions to make sure the referential integrity of the tables is maintained when the restore is complete:

    • Manually select the referenced tables.

    • Use the user interface option to select all the referenced tables.

    If you select only the dependent table, the referential integrity of the tables is not maintained.

  8. Select the tables and then click Recover All Selected.

    The table restore options dialog box appears.

  9. On the General tab, specify whether the restore only puts the exported tables in the staging location or overwrites the current tables:

    • To save the table export dump files to the staging location, click Dump.

    • To overwrite the current tables, click Import.

  10. To specify the location where the auxiliary instance is created, on the Table Restore tab in the Staging Path box type the location.

    The staging path must have enough free space for the control file, the Oracle diagnostic directory, and the required tablespaces.

  11. If you specified the Import option to overwrite the current tables and you want to delete the tables prior to the restore, on the Advanced Options tab, select Drop Table for Import.

  12. Click OK.

Page contents

×

Loading...