Zero Downtime Upgrade Guide for Oracle

Zero Downtime Upgrade Guide for Oracle

Transfer the Previous Load Table Data

Transfer the Previous Load Table Data

You can copy the data from the previous load table in the active environment to the previous load table in the passive environment. The data in the previous load table is not transferred during the replication process. If you do not replicate the previous load table, the first stage batch job that you run after the passive environment becomes active might process all the data in the landing table. The names of the previous load tables end in _PRL.
Before you run a stage batch job, ensure that the upgrade is complete. If you run a stage job before the upgrade is complete, the data that the stage batch job adds to the source previous load tables is not added to the target previous load tables.
  1. Generate the
    prl_expdp.prm
    and
    prl_impdp.prm
    parameter files for the previous load table in the active environment.
    From SQL*Plus in the active environment, run the following command:
    prl_expdp.prm: directory=OUTPUT_DIRECTORY logfile=PRL_TABLES_EXPDP_LOG.log dumpfile=PRL.dmp include=table:"LIKE ''%PRL''" CONTENT=DATA_ONLY prl_impdp.prm: directory=INPUT_DIRECTORY logfile=PRL_TABLES_IMPDP_LOG.log dumpfile=PRL.dmp TABLE_EXISTS_ACTION=APPEND CONTENT=DATA_ONLY
    The parameter files are generated in the
    GGS/dirprm
    directory.
  2. Open a command prompt and navigate to the
    GGS/dirprm
    directory.
  3. Export the data in the previous load table in the active environment:
    expdp <active Operational Reference Store name>/<TNS password>@<TNS name> parfile=prl_expdp.prm
    The
    prl.dmp
    file is generated in
    GGS/dirprm
    .
  4. Copy the
    PRL.dmp
    and
    prl_impdp.prm
    files from the
    GGS/dirprm
    directory in the active environment to the
    GGS/dirprm
    directory in the passive environment.
  5. If the active and passive environments are not swapping for the first time, truncate the previous load table in the passive environment. You must truncate the previous load table in the passive environment so that the data from the active previous load table can be imported.
    In the passive environment, log in to SQL*Plus and run the following command:
    TRUNCATE TABLE <Previous Load Table Name>;
  6. In the passive environment, open a command prompt and navigate to
    GGS/dirprm
    .
  7. Run the following command to import the data into the previous load table in the passive environment:
    impdp <passive Operational Reference Store name>/<TNS password>@<TNS name> remap_schema=<active Operational Reference Store name>:<passive Operational Reference Store name> parfile=prl_impdp.prm

0 COMMENTS

We’d like to hear from you!