Restoring an Oracle RAC Table in a CDB to a Different Location (Out of Place)

You can restore tables in a container database (CDB) to a different host or to a different instance on the same host.

When restoring tables to a different host, ensure the following:

  • Both the source and the destination host should have the same database schema.

  • Add the duplicate database instance name in the Listener.ora file on the destination host and Tnsnames.ora files on the destination and source hosts.

  • Add the source database name in the Tnsnames.ora file on the destination host.

  • Ensure that both the source and destination clients use a different connection name in the tnsnames.ora file.

    For example:

    // db1_table = <--- Name of the source database``db1_table =``(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = M1)(PORT = 1521))``(CONNECT_DATA =``(SERVER = DEDICATED)``(SERVICE_NAME = db1)``)``)``//db1 = <--- Name of the destination database``db1 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = M2)(PORT = 1521))``(CONNECT_DATA =``(SERVER = DEDICATED)``(SERVICE_NAME = db1)``)``)

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 TTS failures that happen when the target connection occurs.

Before You Begin

  • Add the destination instance name to the Listener.ora and Tnsnames.ora files.

  • The PDBs containing the tables you want to restore must have been in an open state when you ran the backup.

  • If you are restoring tables using the control file, the source PDB must be open. If you are restoring using the catalog, the source PDB does not need to be open.

  • Indexing must be enabled. If you have a client that uses Indexing Version 1, you can upgrade it using the Upgrade To Indexing V2 workflow.

  • If you are going to use a table import for restoring tables, the destination instance connect string must have sysdba privileges.

Procedure

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

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

  3. Select Latest Backup, select the Table View check box, and then 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. To specify the destination client, on the General tab, in the Destination Client box, select the destination client.

    The destination client can be the original source client or a different client.

  10. 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, select Dump, and then from the Use Oracle settings from list select the instance.

    • To overwrite the current tables, select Import and from the Import Destination list select the destination instance.

  11. If you specified the Import option to overwrite the current tables and want to select a destination PDB, select the Source PDB, and then from the Destination PDB list select a destination PDB.

  12. 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.

  13. 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.

  14. Click OK.

Page contents

×

Loading...