Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop tempfiles from database Oracle
  • Find Command Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • plan10g.sql Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • RAC with RHEL4 and 11g Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Sequence Resetting Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Alter procedure auditing Oracle
  • Proc Compilation Oracle
  • chk_space_SID.ksh Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell 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

  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • export import with parameter file. Oracle
  • Rman Notes -1 Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • JSON/XML Types in Oracle 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Set Role explaination. Oracle
  • Space padding in korn shell Linux/Unix
  • Absolute file number and relative file number Oracle
  • perf_today.sql Oracle
  • create trigger syntax Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Oracle 11g Environment Setup Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme