Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL Server: How to see historical transactions SQL Server
  • Some useful Unix Commands Linux/Unix
  • sqlnet.ora paramters Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Search and replace editor command in vi Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Jai Shree Ram Oracle
  • Reading parameter file and printing Linux/Unix
  • initUOCIOTTO.ora Oracle
  • how to find OS block size Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository 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

  • DBMS_STATS Metalinks Notes Oracle
  • Roles and Stored Object behaviour Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Exadata Basics Oracle
  • DBMS_JOB all example 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • how to find VIP from ifconfig Linux/Unix
  • tblwopk.sql tablewopk.sql Oracle
  • find_longsql.sql Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • How to find password change date for user Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Drop specific SQL plan baseline – spm Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme