Oracle DBMS_DBCOMP
Version 19.3

General Information
Library Note Morgan's Library Page Header
Which has the higher priority in your organization: Deploying a new database or securing the ones you already have? Looking for a website, and resources, dedicated solely to securing Oracle databases? Check out DBSecWorx.
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.
AUTHID CURRENT_USER
Dependencies
V$SESSION_LONGOPS    
Documented Yes
First Available 12.2.0.1
Security Model Owned by SYS with EXECUTE granted to SYSBACKUP and SYSDG
Source {ORACLE_HOME}/rdbms/admin/dbmsdbcomp.sql
Subprograms
DBCOMP    
 
DBCOMP
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
DBMS_COMPARISON
Dumping Oracle
What's New In 18c
What's New In 19c

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