Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Library cahe Latches and internal explaination Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Debugging Shell FIles Linux/Unix
  • Absolute file number and relative file number Oracle
  • All About Trace Fils Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Clean up Oracle
  • Find all users who have DML privileges Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • checking connectivity between two servers Linux/Unix
  • DBA_HIST_SQLSTAT contents Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Histogram Overview 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

  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • Histogram information Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • executing Function from SQLPLUS prompt Oracle
  • configUOCIOTTO.ora Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • pvm_pre_change.sql Oracle
  • Export Oracle data and Compress at same time Oracle
  • DBMS_SQL for alter session. Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Implementing Listener Security Oracle
  • Reading config file from other folder inside class Python/PySpark
  • Find all users who have DML privileges Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme