Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Explain Plan Output 2 Oracle
  • logminer and my_lbu Oracle
  • Debugging Shell FIles Linux/Unix
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Small sample shell program Linux/Unix
  • Check Oracle installed products using one command Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • How to remove blank lines using vi editor command Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • Find all users who have DML privileges Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Jai Shree Ram Linux/Unix

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

  • Flowers Resize datafiles Oracle
  • USER_TABLES.Freelists Oracle
  • find_idle_cpu.sql Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Oracle Metalink useful notes Oracle
  • how to find OS block size 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • load SPM baseline from cursor cache Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Read CSV File using Python Python/PySpark
  • Linux CPU info. Linux/Unix
  • secure crt settings Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme