Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Sample WW22 listener.ora Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • get_vmstat.ksh Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • V$transaction notes for finding XID composition. Oracle
  • Jai Shree Ram Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • catall.sh Linux/Unix
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • Good Oracle Architecture In Short and point to point Oracle
  • Renaming the column name 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

  • online_ts_bkup.sql Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Renaming the column name Oracle
  • block_ident.sql Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Explain Plan Output 2 Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • OEM-Commnds Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • Good Link from metalink 1 Oracle
  • get_vmstat_linux Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • to see when crontab is changed. Linux/Unix
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme