Beruflich Dokumente
Kultur Dokumente
Regards,
Oraclelearner
Advanced Member You can use statspack and count the executions.
Group: Members
Posts: 2,112
Joined: 11-March 08
Member No.: 18,933
Regards,
Oraclelearner
That's just a GUI into the Oracle tables, a tool for newbies . . . .
*****************************************************
*******
Advanced Member
>> it is possible to determine how many times a query was
executed in a database. If
Group: Members
Posts: 8,534 Between bounces, see the execitions column of v$sql.
Joined: 26-January 04
Member No.: 13 Long term, you can use dba_hist_sqlstat to track SQL executions
over time:
http://www.dba-oracle.com/t_time_series_sq...ce_tracking.htm
CODE
select
p.sql_id c1,
p.cost c2,
to_char(s.sql_text) c3
from
dba_hist_sql_plan p,
dba_hist_sqltext s
where . . .
But you can use these ONLY IF you have a license for the AWR
tables. Oracle Database Diagnostic Pack is a $3000 extra-cost
option, and you must have a license to access the Oracle10g
AWR and ADDM components.
--------------------
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of Oracle Tuning: The Definitive Reference
That's just a GUI into the Oracle tables, a tool for newbies . . . .
Group: Members
Posts: 152
Joined: 6-May 08
*****************************************************
From: 99324
*******
Member No.: 22,933
>> it is possible to determine how many times a query was
executed in a database. If
http://www.dba-oracle.com/t_time_series_sq...ce_tracking.htm
CODE
select
p.sql_id c1,
p.cost c2,
to_char(s.sql_text) c3
from
dba_hist_sql_plan p,
dba_hist_sqltext s
where . . .
But you can use these ONLY IF you have a license for the AWR
tables. Oracle Database Diagnostic Pack is a $3000 extra-cost
option, and you must have a license to access the Oracle10g
AWR and ADDM components.
My application is running for the past two months. My job is to improve its
performance by tuning the SQL queries it issues to the db. For that, I need to find out
those queries which are taking more time and resource.
You don't say what version of Oracle you are using, but if it is
10g or 11g then you can more easily make use of the tables that
have always been in Oracle that are used to examine these
performance related issues by using Oracle Enterprise Manager.
OEM will let you see exactly the kinds of things you've been
asking about. It won't necessarily go back 2 months but you can
either use the history it does keep to identify the trouble areas or
you can start taking snapshots on a regular basis for the next two
months and work from there. I'd start with using the history it
does keep.
Good luck.
SQL Query History Reply
Posted: 11-jun-2008 6:11
Hi everybody,
My application is running for the past two months. My job is to improve its
performance by tuning the SQL queries it issues to the db. For that, I need to find out
those queries which are taking more time and resource.
You don't say what version of Oracle you are using, but if it is
10g or 11g then you can more easily make use of the tables that
have always been in Oracle that are used to examine these
performance related issues by using Oracle Enterprise Manager.
OEM will let you see exactly the kinds of things you've been
asking about. It won't necessarily go back 2 months but you can
either use the history it does keep to identify the trouble areas or
you can start taking snapshots on a regular basis for the next two
months and work from there. I'd start with using the history it
does keep.
Good luck.