Your browser does not support JavaScript. This help page requires JavaScript to render correctly.
Skip Headers
Previous
Previous
 
Next
Next

Correcting Apply Errors in Database Objects

You might need to make data manipulation language (DML) or data definition language (DDL) changes to database objects to correct the conditions that caused one or more apply errors before you retry error transactions. If you must make changes to a database object, but you do not want to replicate these changes, then set a session tag in the session that makes the changes.

For example, to update the hr.employees table to correct an apply error: 

  1. Open SQL*Plus and connect as a user who can update the hr.employees table.

    See Starting SQL*Plus and Connecting to the Database for more information about starting SQL*Plus.

  2. Set a session tag:

    BEGIN
       DBMS_STREAMS.SET_TAG(
          tag  =>  HEXTORAW('1D'));
    END;
    /
    

    Ensure that you set the tag to a value that prevents changes from being captured by capture processes and synchronous captures.

  3. Update the hr.employees table to correct the error.

  4. Exit the SQL*Plus session.

After you correct the problem that caused one or more error transactions, you can retry the error transactions or delete them. See "Retrying or Deleting Apply Error Transactions" for instructions.

For information about specific apply errors and how to correct them, see Are There Any Apply Errors in the Error Queue?.

Related Topics

About Change Apply

Managing Apply Processes

About Tags for Avoiding Change Cycling

Monitoring Apply Processes

Oracle Streams Concepts and Administration