{"id":66,"date":"2009-07-21T18:55:00","date_gmt":"2009-07-21T16:55:00","guid":{"rendered":"https:\/\/ilmarkerm.eu\/blog\/2009\/07\/apex-instrumentation\/"},"modified":"2009-07-21T18:55:00","modified_gmt":"2009-07-21T16:55:00","slug":"apex-instrumentation","status":"publish","type":"post","link":"https:\/\/ilmarkerm.eu\/blog\/2009\/07\/apex-instrumentation\/","title":{"rendered":"APEX instrumentation"},"content":{"rendered":"<p>For every Oracle database session it is always good to set MODULE, ACTION and CLIENT_ID values for instrumentation. This allows DBA to see and debug in database level what the session is\/was doing in detail. Oracle diagnostic tools are all powered up for using these values and a lot of diagnostic power is just lost, when the application is not instrumented.<\/p>\n<p><a href=\"http:\/\/download.oracle.com\/docs\/cd\/B19306_01\/java.102\/b14355\/endtoend.htm\">For JDBC one can use end-to-end metrics support in JDBC driver<\/a><br \/>\n<a href=\"http:\/\/download.oracle.com\/docs\/cd\/B28359_01\/appdev.111\/b28419\/d_appinf.htm#i999290\">For PL\/SQL one can use DBMS_APPLICATION_INFO subprograms<\/a><\/p>\n<p>All this is just great, but what about <a href=\"http:\/\/otn.oracle.com\/apex\/\">APEX<\/a>? I think it&#8217;s the best database application development tool in the market today, but has it got this instrumentation already built in?<br \/>\nYes it has!<\/p>\n<pre>\nSELECT   module,\n         action,\n         client_id\n  FROM   v$active_session_history\n WHERE   module LIKE 'APEX%';\n\nMODULE                  ACTION          CLIENT_ID\n----------------------- --------------- ------------------------\nAPEX:APPLICATION 109    PAGE 7          ILMAR:2697049844839191\nAPEX:APPLICATION 109    PAGE 12         ILMAR:2697049844839191\nAPEX:APPLICATION 109    PAGE 6          ILMAR:2697049844839191\n<\/pre>\n<p>MODULE is set to the application number<br \/>\nACTION contains the page number<br \/>\nCLIENT_ID constains username and session id<\/p>\n<p>This example is from APEX 3.2 and Oracle 11.1.0.7 database.<\/p>\n<p>You can read more about using Oracle diagnostic tools and session tracing from Doug Burns blog:<br \/>\n<a href=\"http:\/\/oracledoug.com\/serendipity\/index.php?\/archives\/1505-Session-Level-ASH-Reports.html\">Session Level ASH Reports<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For every Oracle database session it is always good to set MODULE, ACTION and CLIENT_ID values for instrumentation. This allows DBA to see and debug in database level what the session is\/was doing in detail. Oracle diagnostic tools are all powered up for using these values and a lot of diagnostic power is just lost, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[21,4,25],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-blog-entry","tag-apex","tag-oracle","tag-performance"],"_links":{"self":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}