Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql statement

Status
Not open for further replies.

glj

MIS
Nov 30, 2000
17
CH
Hi,
how can i find out, how many times a specific sql statement is executed in 24h

regards juerg
 
GLJ,

Each row of "V$SQLAREA" contains a SQL statement that is currently being executed. The column "EXECUTIONS" tells how many times that statement has been executed this load. If a particular SQL statement does not get executed over a period of time, then another SQL statement takes its place; then later (upon re-execution) you may find the original statement back in V$SQLAREA. The Oracle server reparses the statement and EXECUTIONS is at 1 again.

Although I have never tried it, it seems to me that you could create a trigger on the underlying table from which V$SQLAREA draws its data.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA @ 15:58 (30Aug04) UTC (aka "GMT" and "Zulu"), 08:58 (30Aug04) Mountain Time)
 
Hi, Mufasa
Thank you for your reply
regards glj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top