Finding a statement in v$sqltext/WRH$_SQLTEXT
Date: Tue, 18 Nov 2008 14:50:49 +0800
Message-ID: <790CA9E420075A4984EF4CF9149CE22D103E1B3B42@SINMS00165.rbsres07.net>
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" and 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:
www.rbs.com www.rbs.com/gbm www.rbsgc.com
***********************************************************************************
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Nov 18 2008 - 00:50:49 CST