Version 23c

General Information
Library Note Morgan's Library Page Header
ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling complimentary technical Workshops on Database Security for the first 30 Oracle Database customers located anywhere in North America, EMEA, LATAM, or APAC that send an email to Request a Workshop for your organization today.
Purpose Assumes that a primary database and one or more Data Guard physical standby databases are deployed. The databases should be at least mounted or open before block comparison is run.

Logical standby databases, Far Sync instances, and cascaded standbys cannot be the target database.
STANDARD (only)    
Documented Yes: Packages and Types Reference
First Available 12.2
Security Model Owned by SYS with EXECUTE granted to SYSBACKUP and SYSDG
Source {ORACLE_HOME}/rdbms/admin/dbmsdbcomp.sql
Compares database blocks on primary to standby(s) dbms_dbcomp.dbcomp(
datafile   IN VARCHAR2,
outputfile IN VARCHAR2,
block_dump IN BOOLEAN := FALSE);
exec dbms_dbcomp.dbcomp('ALL', '/home/oracle/lost_write_check.txt', TRUE);

-- in a separate SQL*Plus session
SELECT target_desc, sofar, totalwork
FROM v$session_longops
WHERE opname = 'BlockCompare';

TARGET_DESC                      SO FAR  TOTALWORK
----------------------------- --------- ----------
Compared Blocks                  367104     403142
Lost Writes                           0          0

Related Topics
Built-in Functions
Built-in Packages
Data Guard
Dumping Oracle
What's New In 21c
What's New In 23c

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2023 Daniel A. Morgan All Rights Reserved