General Information
Library Note Morgan's Library Page Header
The Library is currently in the process of being upgraded from Oracle Database Version to Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Also important ... there are rumors on the web about SPARC and Solaris being discontinued. Welcome to the age of fake news. There is absolutely not a byte of truth to these irresponsible rumors.
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.
Documented Yes
Error Code Reason
First Available
Security Model Owned by SYS with EXECUTE granted to ???
Source {ORACLE_HOME}/rdbms/admin/
DBCOMP (new 12.2)
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
Data Guard
Dumping Oracle
What's New In 12cR1
What's New In 12cR2

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-2017 Daniel A. Morgan All Rights Reserved