Search code examples
oracle-databasesessionjdbcinspection

How can I set the application information on a session using the Oracle thin JDBC driver?


I'd like to change the application information that is shown when inspecting Oracle 10g sessions using the Oracle Enterprise Manager application:

Application Information  
  Program       'my program'  
  Module        'something'  
  Command       UNKNOWN  

I'm using the JDBC thin driver to connect, and I have to admit I'd rather not use the OCI driver if at all possible. Can I do this with the thin driver, and if so, how?


Solution

  • DBMS_APPLICATION_INFO should take care of that:

    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_appinf.htm