Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • move_arch_files.ksh Linux/Unix
  • Insert cause enqueue locks Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • metalink all dynamic view reference notes. Oracle
  • good note for shared pool tunnig Oracle
  • get_vmstat_linux Oracle
  • tracksqltime.sql Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Good Link from metalink 1 Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • oracle 11g RAC on vmware Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Temporary Tablespace Information and restriction. Oracle

Committing distributed transaction using commit force

Posted on 22-Jan-2010 By Admin No Comments on Committing distributed transaction using commit force

Committing Using Only the Transaction ID

The following SQL statement commits an in-doubt transaction:

COMMIT FORCE ‘transaction_id’;

The variable transaction_id is the identifier of the transaction as specified in either the LOCAL_TRAN_ID or GLOBAL_TRAN_ID columns of the DBA_2PC_PENDING data dictionary view.

For example, assume that you query DBA_2PC_PENDING and determine that LOCAL_TRAN_ID for a distributed transaction is 1:45.13.

You then issue the following SQL statement to force the commit of this in-doubt transaction:

COMMIT FORCE ‘1.45.13’;

Oracle, SQL scripts

Post navigation

Previous Post: Rollback force for distributed transactions
Next Post: Does DBMS_JOB recompute the NEXT_DATE interval after or before

Related Posts

  • create trigger syntax Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • dbms_job.submit example Oracle
  • Very clear article about oracle dataguard 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 (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • refre.sql Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • All Hints for Oracle Databases Oracle
  • Insert cause enqueue locks Oracle
  • Running select from V$ views from remote server Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • Jai Shree Ram Oracle
  • Gathering statistics with DBMS_STATS Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme