Solved

v$session /high connections

Posted on 2014-01-20
4
391 Views
Last Modified: 2014-01-22
folks

our app is spawning high connections when we upload data thru a specific interface (webservice)

sometimes the sessions reach 1200 (as per the dba)

how can I trace the sessions and see what each session is trying to achieve, is this somethign covered in the v$sessions table

pardon, am no dba myself, trying to understand more
0
Comment
Question by:rutgermons
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39793840
you can start with this query:
 select a.sid, a.serial#, b.sql_text
    from v$session a, v$sqlarea b
   where a.sql_address=b.address
    and a.username='your_web_service_username'; 

Open in new window

hope this helps
0
 
LVL 8

Expert Comment

by:Surrano
ID: 39793920
another pace to look for is v$session_longops

select * from v$session_longops where time_remaining>0 and message not like '%RMAN%';

Open in new window

0
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 39796129
"specific interface (webservice) " --> may be try to understand what all capabilities does this webservice has to load the data because i am not able to understand how come this data uploading interface can flood the connections to the database.

As engage your dba as well to see if they can monitor the database closely when this data upload interface is being used and to find anything suspicious.

Thanks,
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39798718
What language is the web service coded in?

I had problems in the past using .Net where connections were not properly closed and disposed.  .Net's garbage collection is 'supposed' to take care of this but...

For some reason Oracle would still see them as 'live' connections so neither the database nor .Net would ever see them as dead connections and clean them up.

Check the code and never rely on the 'system' to clean up unused objects.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

713 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