Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB   


 

 

 


 

 

 
 

Module name in dbms_application_info

Oracle Tips by Burleson Consulting
July 20, 2008

 

Question: The Oracle docs have these notes on the module_name in dbms_application_info_set_module:
 
“Application developers can use the DBMS_APPLICATION_INFO package with Oracle Trace and the SQL trace facility to record names of executing _modules . ..   Your applications should set the name of the module and name of the action automatically each time a user enters that module”
 
I assume that the use of the word "module" there is used in the general sql sense (referring to an object that contains sql statements, routines or procedures). or does the word "module" have a different meaning in Oracle?
 
1. What does "module" refer to in the context of DBMS_APPLICATION_INFO.SET_MODULE?
 
2. Why do you think the original pl/sql coder did "module_name => 'TRANSFER'" & "action_name => 'session_id'" instead of "module_name => 'foo'" & "action_name => 'does something to foo data'"?
 
Answer (by Steve Callan): "The module name could be the name of a form in an Oracle Forms application, or the name of the code segment in an Oracle Precompilers application. The action name should usually be the name or description of the current transaction within a module."
 
Transferring a session ID looks like a valid operation - valid in the sense that you may have a need to know about a session ID in more than place. Using the above, the Forms built-in new_form would call a new form (module) and the user would then have two open forms, each of which can navigated to (not being modal).
 
The module name can be any "module" currently registered in V$SESSION. The module name can be "SQL*Plus", or the name of an external executable.
 
select
   module,
   action,
   client_info
from
   v$session;


MODULE             ACTION           CLIENT_INFO
------------------ ---------------- -------------------------
add_order          complete         Run via job

SELECT
   sid,
   serial#,
   client_identifier,
   service_name,
   action,
   module
from
   v$session;

      
SID SERIAL# CLIENT_IDENTIFIER    SERVICE_NAME  ACTION       MODULE
---------- ------- -------------------- ------------- ------------ -----------
       145      34 george:127.0.0.1     ACCT          INSERT MONTH PAYROLL
       146      32 johnny:127.0.0.2     ACCT          CANCEL CHECK BILLPAY
       147      54 suzy:127.0.0.3       HR                         MODVACATION

       156      64 lisa:127.0.0.4       HR            INSERT HIST  ADDEMPLOYEE



 

 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2011 by Burleson Enterprises

All rights reserved.

Oracle © is the registered trademark of Oracle Corporation.