Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • xargs use Linux/Unix
  • Vivek Tuning for Row Locks. Oracle
  • handling filenname with space Linux/Unix
  • AWR license Oracle
  • Reading config file from other folder inside class Python/PySpark
  • Flowers Resize datafiles Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Database link password in user_db_links Oracle
  • Remove duplicate rows from table Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Some OS level threshold for performance. Linux/Unix

Difference between SYNC and AFFIRM

Posted on 27-Jan-2010 By Admin No Comments on Difference between SYNC and AFFIRM

LGWR SYNC AFFIRM in Oracle Data Guard is used for zero data loss. How does one ensure zero data loss? Well, the redo block generated at the primary has to reach the standby across the network (that’s where the SYNC part comes in – i.e. it is a synchronous network call), and then the block has to be written on disk on the standby (that’s where the AFFIRM part comes in) – typically on a standby redo log.

Can you have LGWR SYNC NOAFFIRM? Yes sure. Then you will have synchronous network transport, but the only thing you are guaranteed is that the block has reached the remote standby’s memory. It has not been written on to disk yet. So not really a zero data loss solution (e.g. what if the standby instance crashes before the disk I/O).

To sum up -> LGWR SYNC AFFIRM means primary transaction commits are waiting for ntk I/O + disk I/O acks. LGWR SYNC NOAFFIRM means primary transaction commits are waiting for ntk I/O only.

Oracle, rman-dataguard

Post navigation

Previous Post: useful dg links
Next Post: oracle fast start failover best practice

Related Posts

  • Drop tempfiles from database Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • plan10g.sql Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • Drop database in Oracle 10g Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • switchlogfile.sh Linux/Unix
  • Database logon trigger issue Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • sql_doing_fts.sql Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • My Minimum Tuning Programs Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Unix command for system configuration Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme