11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

352 CHAPTER 8 ■ ORACLE STREAMSa parameter of the comparison name, scan ID, and row difference. Let’s perform a recheck for acomparison on the DOCS table, which generated a SCAN_ID of 99:set serveroutput ondeclarev_comp boolean;beginv_comp := dbms_comparison.recheck(comparison_name => 'COMPARE_DOCS',scan_id => 99);if v_comp = TRUE thendbms_output.put_line('No deltas were found.');elsedbms_output.put_line('Deltas were found.');end if;end;/Your output is similar to the following:Deltas were found.PL/SQL procedure successfully completed.Converging Shared <strong>Database</strong> Objects (Repair)The primary purpose of the converge procedure is to resynchronize the differences from thesource compared to the target database. Once you identify what is considered to be the “truth”database, albeit the target or the source, you can manually sync the row differences across thedatabase link. The best option is to let <strong>Oracle</strong> synchronize the row differences identified in acomparison scan.You can converge and specify whether the source or target is the master and should win onthe conflict resolution. The following example specifies that the local database is the conflictwinner:set serveroutput ondeclarev_scan_info dbms_comparison.comparison_type;begindbms_comparison.converge(comparison_name => 'COMPARE_DOCS',scan_id => 99,scan_info => v_scan_info,converge_options => dbms_comparison.cmp_converge_local_wins);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!