oracle - PL/SQL Source (Line Number) in query on v$sql / v$sqlarea table -


i use oracle enterprise manager monitor current load on db. if there high-load sql can see details, there "statistics" tab. in "general" section can see:

module: jdbc thin client action: (empty) parsing schema: schema1 pl/sql source (line number): schema1.package_abc (1457) sql profile: n/a sql plan baseline n/a 

also, have simple query can run on database see going on:

select    q.sql_id,   q.parsing_schema_name,   q.address,   q.sql_text,   q.last_active_time v$sqlarea q q.last_active_time > sysdate - 1 order last_active_time desc 

question is: there way add result of query column pl/sql source (line number) present same info oracle enterprise manager?

you can lot of information v$session. preferred approach instrument pl/sql code calls like:

dbms_application_info.set_action('doing xxx in yyy); 

when want know are. can found in v$session.action

also see following columns may of interest:

plsql_entry_object_id plsql_entry_subprogram_id plsql_object_id plsql_subprogram_id 

you can read more here:

https://docs.oracle.com/cd/b28359_01/server.111/b28320/dynviews_3016.htm


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -