How to check the number of active jdbc connections

hi all,
i'm creating a connection from Java using java.sql.Connection class and with oracle thin drivers. connection is creating properly.
now, i want to know how many connections are created, through the sql query. i forget the query.
its helpful for me.
regards
pavan.

Your requirements are a bit vague - the only place to accurately determine the number of connections is in Oracle using the V$SESSION virtual view.
It can tell you the number of session (active or idle) made from the platform running that Java code. It can also tell you basic session information like the current SQL (if active) that is being executed.
There are numerous other V$ views that can be used in conjunction to build a very accurate picture of what the session is doing and what resources it is using.
Details are in the Oracle® Database Reference manual. On-line copies of all manuals available via http://tahiti.oracle.com

Similar Messages

  • How to check the number of licences for ODI

    Hi,
    I would like to know , how to check the number of licences exists for my current OID.
    ODI Version: 11.1.1

    ODI licensing is similar to Oracle DB licensing. Its licensed by the number of cores in your target database.
    So, count the number of CPUs in your target box. Multiply them by the core factor (x86 vs sparc, etc) and then match with the paperwork you have :D

  • How to check the number of remaining downloads on DPS dashboard?

    I think that after the renewal of Adobe DPS,
    Professionl/ Enterprise Edition users can chek the number of remaining downloads on DPS dashboard.
    How to check the number of remaining downloads on DPS dashboard?
    shimoawazu

    Is there a way to determine how many downloads have occurred on a professional account?  We have multiple apps on the Apple and Android app stores and would like to know how many downloads from our first 5,000 have been used.  Is there a way to view analytics from all of our apps at one time instead of having to log in to digitalpublishing.acrobat.com separately for each app?
    Andrew

  • How to check the number of colors in the file???

    How to check the number of colors in the file ai ???

    The Recolor Artwork tool will list all colors used in a document and the flyout menu in the Swatches panel also provides tools for managing colors.
    Mylenium

  • How to check the number of contacts with segment level 'food and beverage' in the segment builder?

    How to check the number of contacts with segment level 'food and beverage' in the segment builder?
    Do we have any table to check this.

    How to check the number of contacts with segment level 'food and beverage' in the segment builder?
    Do we have any table to check this.

  • Why do the number of active JMS connections increase?

    <strong>Problem</strong>
    - Number of active JMS connections and current JMS messages increases until the Weblogic instances crash with an OutOfMemory exception
    <strong>Setup</strong>
    - Weblogic v9.2.3, Cluster with 4 Nodes
    - A JMS Message is sent from a MDB in Weblogic to a distributed queue which has a member on each of the 4 Weblogic nodes. The session is created as follows session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE), the message delivery mode is set programmatically to persistent and the delivery mode override of the queue setup is set to persistent too
    - Standalone JMS client processes: each one is attached to <strong>all</strong> 4 nodes. Each one uses a unique JMS message selector so that we have more than one queue consumer for one queue but every message is exactly dedicated to one queue consumer. We us weblogic.jar for the clients.
    - Use of Weblogic auto reconnect feature. JMS client code:
    Connection connection = this.connectionFactory.createQueueConnection();
    final WLConnection wlconnection = (WLConnection)connection;
    wlconnection.setReconnectPolicy(JMSConstants.RECONNECT_POLICY_ALL);
    wlconnection.setTotalReconnectPeriodMillis(-1);
    wlconnection.setReconnectBlockingMillis(-1);
    <strong>Remarks and Questions</strong>
    - There are no pending JMS messages which is good
    - In our setup, each JMS client is connected to all 4 nodes as the messages are not distributed to all nodes: if a message is put to Queue A but the client is only connected to Queue B, the message is NOT transfered from Queue A to Queue B. We set the parameter "Forward Delay" to 5 seconds with no effects. Is this the normal behavior?
    - Not all JMS clients are visible in the Weblogic console under JMS Services -&gt; JMS Servers -&gt; [Server] -&gt; Monitoring -&gt; Active Connections. Which one are visible? Which one are not visible? There are also clients where the number of connections is not zero but stays constant; we know that as several independent clients on different hosts are started and the IP adress is visible in the Weblogic console. Why....?
    - What reasons can lead to increasing connections? Is this due to client or server problems? Do we have to acknowledge the message in the onMessage(Message) method of the client JMS consumer? So far as I know, we don't have to.
    - Are the increasing number of current messages due to the increasing number of JMS connections?
    - May the RECONNECT_POLICY_ALL policy produce this problem?
    Any hint is appreciated.
    Peter
    Edited by: pkeller on 23.10.2008 17:08

    To answer the question about the forwarding of messages from one queue to another myself: As mentioned at http://forums.bea.com/thread.jspa?threadID=400000611, the forwarding for queues does only work if all queue consumers are attached to the same queue. This means that our setup is OK.
    But the main question is still unanswered: why do the number of active JMS connections increase? I forgot to mention that
    - all messages arrive at the clients and that no exceptions are visible in the log
    - if you kill the client, the connections are still visible in the Weblogic console!?
    Please help as this problem is very urgent.
    Peter
    Edited by: pkeller on 24.10.2008 09:06
    Edited by: pkeller on 24.10.2008 09:10

  • Check the number of active users of oc4j in EBS

    Hi,
    I often see a recommndation of sizing jvm's to 1 per 100 active users. How can I find the number of active users currently using a jvm in EBS. We have 4 apps servers and 1 of apps servers also runs OBIEE with it's own jvm.
    I can find out from a unix command prompt counting establish connections to the port but I like to know if there's a better way to find the number of active users using the jvm's
    Thanks
    Mike

    Hi,
    To find the number of active user session on each of the application servers from a unix command line. I would find the port that Apache was listening on eg 8100. The use the following command on each of the apps servers
    netstat -an | grep 8100 | grep -i est | wc -l
    This gives a rough idea of how many active connections are established to the apps server. But I would really like to find how many users are actively using o4cj.
    If you are using forms in socket mode again, you can grep on the forms listening port number to find how many active forms users are connected.
    I can also see how many active connections are in the oc4j established to the database using lsof. Find the process id for oacore jvm.
    lsof -p PID
    But I'm sure there's a better and more accurate way of find active users of o4cj, specifically oacore.
    Thanks
    Mike

  • How to know the number of Active users logged in to a Essbase  Application?

    Hi,
    Is there way to capture/log the number of active users who have logged into a particular Essbase application at a given time.
    In Essbase or in Shared services?
    I know we can see the EAS-Edit Sessions shows the actively logged-in users, then we can sort on the application/database & manually count the number.
    Is there a way to capture it in a log at a given time on a regular basis. Any MAXL or Shared services feature?
    Appreciate your thoughts.
    Thanks,
    Ethan.

    You could use maxl .
    display user all;
    there will be a column called "logged in" which will display true/false for the users
    but that will just show if they are logged into the server and not the application
    You can also use use display session
    display session all;
    or
    display session on application sample;
    which should show what you are after.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to check the number of connections to MySQL DB

    Hi,
    Is there some way to check the number of applications connected to a mysql database?
    I have two different Java applications that will be using the same instance of MySQL.
    My requirement is that, I want to close the MySQL instance while closing the Java application.
    But before doing so, I want to make sure the other application is not connected to it.
    Is there some way I can achieve this?
    Your suggestions will be of great help.
    Thanks,
    Sandeep

    Hi,
    Thanks for your response.
    "Show processes" definitely serves my need.
    Basically what I am trying to do is to check if there are any other open connections to a MySQL instance before closing it.
    In our application suite, if there is a MySQL instance running, then the applications connect to it by default which results in some undesirable behavior sometimes.
    Hence, we are making sure that we close the MySql instance before exiting the application.
    Thanks,
    Sandeep

  • I am in India and I am using airtel connection for my iPad mini.how to check the Internet plans activated or the remaining data usage?

    I contacted Airtel people and they are saying that only Apple people can help.my Internet is working well in 3G but I am not able the check the data used or remaining usable data or even my balance, please help me.

    11-Jan-2009 08:02 AM
    mecool2008 wrote:
    "Y" or "3" button -- back 1 page
    "U" or "*" button -- zoom in
    "J" or "#" button -- zoom out
    "R" or "1" button -- list of bookmarks
    "T" or "2" button -- search bar
    "N" or "9" button -- URL bar
    "5" (don't know what letter it'll be on the E90 keypad) also converts all open pages to tabs so you can switch between them.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How to check the number of rows in a table with input data?`

    Dear all,
    I am having a table ( with declaration of 5 rows during the init ) there's a next button which will add another 5 rows by pressing. Let say the user ony key in 7 rows of data.. how should i track it? coz these data act as input to my bapi function. One of the input field of my bapi is to state how many rows of data that a user had key in. Thank you.

    I think ur problem is empty records, u dont want to process empty table rows.
    m I right?
    if yes then just before processing the data / records, check for empty records and remove unwanted rows from the node.
    for (int i = 0; i < TableNode.size(); i++)
             if all cells of row(i) are empty
                   remove row(i) from Table Node.
    OR if you dont want to remove empty rows from display (screen), then at the time of processing, transfer useful rows to a separate node and process that node.
    Best Regards
    Deepak

  • How to check the number of digits entered into a itab-field.

    Howdy,
    I've got a program where i retrieve some data from the database and then I need to check if field BKPF-XBLNR has exactly 15 digits in it.
    I've got no idea on how I would do this...
    Can anyone help?
    Thanking you kindly!

    XBLNR is a character field.  If you want to make sure all 15 positions have a digit and not some other character then use:
    IF BKPF-XBLNR CO '0123456789'.
    * OKAY, all 15 positions have digits
    ELSE.
    * NOT OKAY, at least one of the 15 is not a digit
    ENDIF.
    If you do not care what the characters are, then Rich has given you the solution but be aware that you could have embedded blanks, for example:
    'ABCDEF    GHIJK'
    is length 15.
    Message was edited by: Charles Folwell

  • How to reduce the number of Remote Gateway connections from one server

    Hi ,
    We have an XI 3.0 prod system which is being flooded every month end by the invoices generated in our ERP system and occupying all the gateway connections, what I see is that all the remote gateway connections are being established by our ERP server and still there are many requests waiting at the ERP server and failing.
    When we ran the same in  our test landscape, the invoices are getting transferred to XI with out any problems, the remote gateway connections are free even when the invocie Volumes transferred are the same in Prod and Test servers.
    we are not considerint to Increasing the rdisp/max_gateways as the volumes of invocies transferred are really huge and in one of the test, we observed that when 40 invocies are transferred from ERP, it occupied 40 Remote gateway connections in our XI prod
    We are looking for the option similar to our test system of transferring many requests from one connection. Is there any such specific option?
    Regards,
    Santhi Bushan.

    Dear Santhi,
    every gateway establishes only one connection to another gateway. If there are that many gateway/gateway connections, then you are probably connecting from more than one instance. You could circumvent this, if you use gateway options in the RFC destination being used, as this will force all outgoing RFC calls to go through a single gateway. This will then mean that the system has a single point of access.
    Best Regards,
    Tim

  • How check the number range buffers in bw..

    can any one tell me the procedure...
    how to  check the number range buffers in sap bw,,,,can any one help me on this???
    regards

    Please follow the steps mentioned below for checking the number ranges:
    TCODE: /nse37
    FUNCTION MODULE: RSD_CUBE_GET
    Then click F8
    From there I_INFOCUBE : Cube name(Here we can give the cube names from /nrsa1(click on infoprovider on leftside menu…)
    I_INFOCUBE                      Cubename
    I_OBJVERS                       A
    I_BYPASS_BUFFER                 x
    I_WITH_ATR_NAV
    Click on F8
    In Export Parameters : select below one
    E_T_DIME
    There we will get the Time stamp and number range
    Regards.
    Message was edited by:
            cnu babu

  • Checking the number of concurrent user?

    Hi all,
    We are using FMS 4.5 to provide f4m & m3u8 live streaming and VOD to user via http.
    How can i check the number of concurrent user connected to the live and VOD?
    Many thanks!

    A few random thoughts...
    1) Check the system documentation for how RAM needs to be populated in the V240.
    I seem to recall that platform needs them two-at-a-time.
    2) Your prtdiag report would not have eight lines of information for the Memory Module Group unless there were eight DIMMs in existence. Empty slots would not be mentioned.
    Use Google and search for a perl script utility named memconf_.
    It's a handy third-party tool to get a text report of how RAM is populated in a system.

Maybe you are looking for