[Oracle 10g] gegenstück zu MySQLs slow_query_log?

xnicnacx

Mitglied
Hallo Forum
ich wurde damit beauftragt eine Oracle-DB auf Leistung hin zu analysieren, genauer gesagt langsame Anfragen herauszufinden. Mit MySQL kenne ich mich einigermassen aus, was Oracle angeht bin ich jedoch ziemlicher n0ob. Gibt es ein ähnlich einfach zu handhabendes Tool wie das slow_query_log in MySQL, mit dem ich mir z.b. alle Queries loggen lassen kann die >50ms gedauert haben? Oder hat Oracle da einen anderen Ansatz?
Vielen Dank schonmal
NicNac
 
Vielen Dank für die schnelle Antwort, hab das Problem inzwischen auch gelöst:
Code:
set timing on;
in der sqlplus-shell reicht für meine zwecke erstmal schon...
 
nur aus Interesse die Frage: erinnere ich mich richtig, dass ADDM (und AWR) zusätzlich lizenziert werden müssen?

Gruß

MP
 
Leider ja. ADDM ist Teil des Oracle Diagnostic Packs. Ist leider sehr unübersichtlich was nun lizensiert werden muss und was nicht, zumal alle Features frei zugänglich sind und man selbst wissen muss was erlaubt ist, und was nicht.

Hier ein Auszug aus der Doku was alles zum Diagnostic Pack gehört:

Diagnostics Pack features can also be accessed by way of database server APIs and command-line interfaces:

* The DBMS_WORKLOAD_REPOSITORY package is part of this pack.
* The DBMS_ADVISOR package is part of this pack if you specify ADDM as the value of the advisor_name parameter, or if you specify for the value of the task_name parameter any value starting with the ADDM prefix.
* The V$ACTIVE_SESSION_HISTORY dynamic performance view is part of this pack.
* All data dictionary views beginning with the prefix DBA_HIST_ are part of this pack, along with their underlying tables.
* All data dictionary views with the prefix DBA_ADVISOR_ are part of this pack if queries to these views return rows with the value ADDM in the ADVISOR_NAME column or a value of ADDM* in the TASK_NAME column or the corresponding TASK_ID.
* The following reports found in the /rdbms/admin/ directory of the Oracle home directory are part of this pack: awrrpt.sql, awrrpti.sql, addmrtp.sql, addmrpti.sql, awrrpt.sql, awrrpti.sql, addmrpt.sql, addmrpti.sql, ashrpt.sql, ashrpti.sql, awrddrpt.sql, awrddrpi.sql, awrsqrpi.sql, awrsqrpt.sql.

Das bedeutet, selbst wenn ich von der View V$ACTIVE_SESSION_HISTORY selektiere, müsste ich eigentlich das Pack lizensieren... :-{

btw... set timing on gibt nicht unbedingt aufschluss über die Performance von Statements. Ein SQL Trace ist da schon hilfreicher. Such mal hier im Forum nach "tkprof", dazu hab ich vor langer Zeit mal ein Tutorial geschrieben...
 

Neue Beiträge

Zurück