Re: Finding a statement in v$sqltext/WRH$_SQLTEXT

From: Stephane Faroult <>
Date: Tue, 18 Nov 2008 10:09:31 +0100
Message-ID: <>



         If you're on 10.2 have you thought of querying V$SQLSTAT? AFAIK it has a longer retention period.

        HTH         St├ęphane Faroult
 On Die 18/11/08 07:50 , sent:

       Hi Listers, I havent posted for a long time so here goes! I've never really understood why the statement I am looking for never seems to exist in the various xx_SQLTEXT tables. For example: while investigating a capture error: Tue Nov 18 02:36:56 2008 C001: large txn detected (44115 LCRs), xid: 0x02a9.05c.00000414 I located the sql_id from v$session_longops, which confirmed that the session rolled back _"Transaction Rollback: xid:0x02a9.05c.00000414 : 4780 out of 4780 Blocks done"__ a_nd it has a sql_id of "86gsuryqg5hh5".  However I cannot locate this statement in v$sqltext, or wrh$_sqltext. I assume it aged out of v$sqltext (even though I started querying within minutes of the error), and didn't exceed thresholds enough to be logged to wrh$_sqltext. Yet capture though the statement evil enough to record it in the alert log. Logminer is the only option, and all of the hassle that it entails. Should I be looking elsewhere to find the statement? Has anyone modified thresholds (successfully!) for WRH to try to log more SQL and make it a useful feature; given its overhead? Thanks Mark

The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at:
Received on Tue Nov 18 2008 - 03:09:31 CST

Original text of this message