Solved

v$session /high connections

Posted on 2014-01-20
4
379 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 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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
Comment Utility
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
Comment Utility
"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 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 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

9 Experts available now in Live!

Get 1:1 Help Now