You can use transaction id before you commit. Here is an Ask Tom with that information.
All you need to do is write it to the screen. You might make this a debug option.

http://asktom.oracle.com/pls/asktom/...30725030554956