Solved

How to get the web page name in v$session table in Oracle database

Posted on 2010-08-30
2
420 Views
Last Modified: 2012-05-10


We have asp.net web application hosted on IIS (windows) and connecting to Oracle database (10g).

When I query the v$session table in the database,  all I see the program name as "w3wp.exe"
coming from the IIS (web server) host machine.

Now its hard to diagnose as which session in the database is referring to which web page in the web application.

If I have 10 web pages open in my web application connecting to Oracle database, now if I wanted to get there
session info, when I browse the v$session all it shows me is "w3wp.exe" .

Now is there a way to get the web page name in the v$session.

( may be it needs some changes to code in the asp.net web application , change in configuring IIS web server as well ).

Let me know
0
Comment
Question by:OCUBE
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 33559837
I've never used this but check out: DBMS_APPLICATION_INFO.SET_MODULE

http://www.experts-exchange.com/Database/Oracle/Q_26431656.html

The way I've done this in the past is add comments to the SQL in the .Net code.

VB stub:
sqlStr = "select /* " & scriptNameVariable & " */ column from table"

Then you can look in v$sqlarea to see the text being executed.
0
 

Author Closing Comment

by:OCUBE
ID: 33578657

Thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now