Find detail of transaction in oracle

Find Detail of Transaction in Oracle

When working with DML statements, you can confirm the details of a transaction by querying from the V$TRANSACTION view.

For example, inserted data into a table; before you issue a COMMIT or ROLLBACK, you can view active transaction information for the currently connected session as follows:

SQL> insert into emp values(1, ‘John’, ‘Smith’);
SQL> select xidusn, xidsqn from v$transaction;
XIDUSN XIDSQN
———- ———-
9 369
SQL> commit;
SQL> select xidusn, xidsqn from v$transaction;
no rows selected

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.