Idle sessions

Hi all

Can someone please explain me on idle sessions in oracle? I used the following query to get the list of inactive requests:

SELECT the sid, osuser, schemaname, ROUND ((last_call_et) / (60 * 60), 2) inactive_from_hours, program

SESSION $ v

Situation WHERE = "IDLE";

According to the result of this query, I asked the users responsible for killing their sessions. But many of them have complained that their request is completed a long time ago. I'm in a dead end in this situation.

When a session is inactive?

If a query is completed, why he is indicated as inactive?

Closing the window through which the query ran, will solve this problem? This method has something to do with this bad result?

The user connects to the database - a session is open.

Run a query - session been ACTIVE

Ask finishes - session is shown to be INACTIVE.

Disconnect the user from the database - a session does not exist anymore in the session of $ v

HTH,

Pradeep

Tags: Database

Similar Questions

  • Idle sessions of VMware

    Hi friends,

    We see too many idle session in the sessions vCenter tab. Although it should not harm immeidate, we always want to find a way to hollow compensation even some settings build-in if possible.

    Article, I came across what suggests to change the vpxdclient configuration file where vSphere client is installed. But in our various teams access infra vcenter from different client computers. Is it possible to clear the list of inactive session of vCenter settings the value?

    Thank you!

    Kind regards

    Hari.

    Idle session configured in vSphere client machine and RDP timeout as well through AD.

    Thank you!

    Hari.

  • It is safe to kill idle session?

    Hello
    Recently working on the production environment I've met customer number of connection problem as follows

    sqlplus username/password

    SQL * more: release 9.2.0.4.0 - Production Wed Feb 25 15:46:31 2004

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    ERROR:
    ORA-00020: maximum number of processes (%s) exceeded


    After trying several times I connected and identified about 250 idle sessions of the only user of view V$ session.
    I have questions about this scenario.

    (1) I guess that inactive session consume processes, that triggered this error. Please correct me if I'm wrong.
    (2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?
    (3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?

    My apologies for being naïve... :) Thanks in advance...

    Ashish payet wrote:

    (2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?

    Yes - in a perspective of database instance. Oracle is very robust. It does not choke when a user session suddenly disappear.

    Course from the point of view of the customer? Not really. The client may always require this session - it may even have a unique transaction to validate.

    From a point of view s/n? Joy. Let me count the ways of contentment by waving the old lead pipe and killing sessions... ;-)

    (3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?

    You can watch the session $ v and that there should be a column that contains the current state of waiting for event time / elapsed (take a look at the Oracle Reference guide). If this wait state is SQL * Net client message or similar and the wait state has quite a long time (you set this number), then it would be wrong to kill the session in order to allow new.

    Another option is looking at shared server sessions. Here is the light weight in comparison to the server by default. For example a sessions 100 user may be services by 2 dispatchers and 10 shared - server process that oppose an almost 10 x more charge of a 100 process heavy process.

  • vCenter connections - Idle sessions hang out

    Hello

    We use the VI SDK 2.5 to Windows XP SP3 to connect to vCenter to QueryPerf to get data from the perf.

    A specific user account to connect to the vCenter.

    In some cases, we note that there are a few sessions 'dormant' left hanging out.  I see them listed in the console of Administration/Management/Sessions of the vCenter.  I think that these "idle sessions" when the application is connected to vCenter using the API and attempts a "logout" and disconnection fails for some reason any.  It is also possible, I think that, when the application terminates abnormally.  I noticed a case when there is an end to the session "inactive" after 30 minutes of inactivity.

    Is there anyway to make the API using the same session or inform not to create a new session, if it already exists for the user?  Something similar to a SQL Server how "connection pooling"?

    I appreciate any input in this case.

    Concerning

    I hope my blog can help you understand the session management:

    http://www.doublecloud.org/2010/02/the-mythical-sessions-in-vSphere-and-VI/

    http://www.doublecloud.org/2010/01/tips-on-session-management-for-scaling-your-server-applications-to-vSphere/

    Steve JIN

    Author of VMware VI and vSphere SDK (Prentice Hall)

    Open source (VI) vSphere Java APIcreator (tutorial, testimonials, download, samples, Forum)

    Blog: DoubleCloud.ORG ( Top 10 best practices[object model: http://www.doublecloud.org/2010/02/Object-Model-of-VMware-vSphere-API-a-Big-Picture-in-2-minutes/,] [common errors |]) http://www.doublecloud.org/2010/01/31/common-mistakes-using-vmware-vi-and-vsphere-sdk/], Tiny REST API, Cloud Application Architecture)

    Twitter: @sjin2008

  • Can someone explain the simultaneous program "Purge idle Sessions".

    A bit of my environment:

    E-Business R12
    Oracle Enterprise DB 10.2.0.4.0

    Split Architecture components:

    Server 1 / DB Node (Redhat 5.5 32-bit)
    2 server / applications node


    Throughout the day I have to run the top on my apps server command to identify the runaway form sessions that use 100% cpu. I run a kill-9 on them. I wonder if demand for "Purge idle Sessions" doing something in the same direction?

    Please see (advice and requests for Session Timeout [402674.1 ID] troubleshooting forms), under '3. Confirm that the good ICX_SESSION is updated. "he explains what this concurrent program. You can also search site MOS Icxdltmp.sql which is called by this concurrent program.

    Thank you
    Hussein

  • Idle sessions are automatically generated in the database

    I am facing a strange problem to get the very large number of idle sessions generated th the database server which leads to closing of connection is.
    The error reads as "Failed to check-out a demand account held the failure of connection of the Application Module.»
    This happens whenever I execute the following code:

    String amDefName = "amendprgo.model.CSDInvFRCAmendPrgoServices";
    String configName = "CSDInvFRCAmendPrgoServicesLocal";
    ApplicationModule App1 = Configuration.createRootApplicationModule (amDefName, configName);
    String voInstanceName = "prgoHdrRO";
    ViewObject prgoHdrROVO = app1.createViewObjectFromQueryStmt (voInstanceName, "select * from INV_PRGO_HDR");
    prgoHdrROVO.setWhereClause ("PRGO_ID =" + tempRow.getAttribute ("PrgoId") +' and DEPOT_CD = '0' and ITEM_CAT = 'I3' ");
    prgoHdrROVO.executeQuery ();
    If (prgoHdrROVO.getEstimatedRowCount () > 0) {}
    Returns true;

    I know there is a process of creating a connection and the View object in part of model in JDeveloper, but I want to know why this problem occurs.

    As I said before

    Configuration.releaseRootApplicationModule(app1 , true);
    

    My advice is to read the links I gave you!

    Timo

  • Removal of my own (idle) sessions

    Removal of my own (idle) sessions

    What is needed to be able to delete my own sessions "inactive"? At least for me, they are inactive, but Oracle, they are still in business.

    I'm allowed a maximum of 10 simultaneous sessions_per_user on a database for which I have very limited permissions (pretty good read-only). The problem I have is that my internet connection to my agent is unbelievebly bad. I can rarely connect to the Oracle server for more than ten minutes about until I get an error 'connection reset by peer '. And it seems to me that whenever that happens, I don't get gracefully disconnect from the server. Finally, after I reconnect enough times, I will not exceed the limit, and I get the error ORA-02391. The kicker is that once I have get locked, it forces me to jump through two levels of the bureaucracy to get the ADMINISTRATOR to remove my idle sessions. If I wait a few days, the sessions sometimes seem to disappear on their own, but if I need to log in the server path right, well that's won't happen until I can get the DBA to help me.

    I asked if it is possible for me to delete my own sessions, and they said no. My guess is that if I was able to remove my own sessions, then I would have probably allowed to delete the session of anyone. But I hope I'm wrong, and that it is possible for me to be able to remove my own sessions without being able to remove sessions of other people. And that the required permissions to be able to delete my own sessions are give not as me excessive permissions to do other things potentially harmful to the database.

    So, if you were a DBA on a system and you want to grant permission to individual users to delete their own idle sessions, would it be possible? Or would it be opened too big a hole for you to be comfortable?

    The database that I sign too has the following properties:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - production
    PL/SQL Release 10.1.0.4.0 - Production
    "CORE 10.1.0.4.0 Production."
    AMT for 32-bit Windows: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production

    Hello

    To do this DBA should give "alter system" and a specific view select privileges which could open up a hole in the large loop without DBA would be comfortable with it.

    Anand

  • Idle sessions in the database

    Hello

    A lot of idle sessions are the database before we bounce of database-> max process has reached, for that, we changed the max process and rebounded from the database, but I see still 75 idle sessions in the database.

    SQL > show parameter process

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    JOB_QUEUE_PROCESSES integer 2
    log_archive_max_processes integer 2
    whole process 200
    SQL > show the spfile parameter

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    chain of SPFile

    Then I changed the process to 300

    SQL > show parameter process

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    JOB_QUEUE_PROCESSES integer 2
    log_archive_max_processes integer 2
    whole process 300

    even after still bounce 75 idle sessions in the database

    Danny,

    In my view, that it applies to the R12.

    Kind regards
    Hussein

  • Idle sessions for machine networking not released (NOT related to RDP)

    In a workgroup environment consisting of a Win 7 32-machine acting as a server and mixed 5 machine (Win 7 64 bit, Win 7 32 bit and XP), I get the following error message on any random on the network machine attempts to access a share on the Win 7 'server: '

    "No more connections are possible at this remote computer at this time because there are already as many connections as the computer can accept."

    In the past, I rebooted just the Win 7 'server' and it fixed the issue - for awhile.  Now, I'm tired of having to do it.

    I completely understand what means this error (i.e. of 20 exhausted max connections) as well on the Win 7 'server' I went into computer management > system tools > Shared Folders > Sessions.  Wow!  A single Win 7 machine on the network had 15 of the 20 connections available, and all these connections had been slowed for days - some as long as the last reboot 15 days ago.

    I restarted the machine and these 15 connections disappeared on the Win 7 server - as one might expect.

    I run "net config server" on both this machine as well as on the 'server' of Windows 7 machine and it sees to the idle disconnect time 15 minutes on both.

    Why these idle connections are not be released?  I'm not sure which side is to blame for hold on these - which side is disconnected?

    I have a theory that somehow connections to hidden shares (for example, //xy-server/backup_machine1$) are initially that as a backup program (Macrium Reflect) uses these, but I'm not sure at this point.

    Thank you.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    It will be useful.

  • Complete the VI Client with PowerCLI Script idle Sessions

    Hello gurus PowerCLI

    I searched the net for a script PowerCLI that would end all the VI client sessions that have been inactive for x period of time.  I found a post on the forums of VMware (http://communities.vmware.com/message/914858?z=zI0r8n) but had no luck with it.  I also found a script created by A.Mikkelsen, to http://www.amikkelsen.com/?p=384 , but that one does not work either.

    Here's the actual script by A.Mikkelsen that is based on code by LucD in the forum mentioned previously.

    BEGINNING

    ##################################################################################
    # The script terminates all sessions if idle idle user for more than xx #.
    #                             #
    # Created by: Anders Mikkelsen, 2010 #.
    ##################################################################################
    Claire
    # Add - PSSnapin VMware.VimAutomation.Core

    # $server = "vcenter server.
    # $user = "vcenter username.
    # $pwd = "password of vcenter.

    # Add 1 extra hour when, due to the difference of timestamp between MSSQL and Windows.
    # slow down time 5 hours = 360
    # 10 hours slowed = 660
    $intOlderThan = 60

    # Connect-VIServer $server - user $user-password $pwd
    # Connect-VIServer $server

    $svcRef = new-object VMware.Vim.ManagedObjectReference
    $svcRef.Type = 'ServiceInstance.
    $svcRef.Value = 'ServiceInstance.
    $serviceInstance = get-views $svcRef

    $sessMgr = get-view $serviceInstance.Content.sessionManager
    $oldSessions = @)
    {foreach ($sess in $sessMgr.SessionList)}
    If (($sess.)) (LastActiveTime) .addminutes ($intOlderThan) - lt (Get-Date)) {}
    $oldSessions += $sess. Key
    #write "$($sess.)". User name)'
    }
    }

    # Session terminal that are inactive for more than approved ($intOlderThan)
    $sessMgr.TerminateSession ($oldSessions)

    Disconnect-VIServer *-confirm: $false

    END

    The error message I get is:

    BEGINNING

    Exception calling 'TerminateSession' with '1' or the arguments: "it was not correct to specified parameters.

    "

    D:\Scripts\vc_terminate_idle_sessions.ps1:36 char: 26

    + $sessMgr.TerminateSession < < < < ($oldSessions)

    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)

    + FullyQualifiedErrorId: DotNetMethodException

    END

    I should mention that my knowledge of PowerCLI is almost nothing, so any help in tweaking this script to make it work with PowerCLI 5.1 Release 2 and VC 5 U2 would be much appreciated.

    The error is caused by the fact that you are trying to kill your own session (if it was started long time ago).

    Apparently in vSphere 5. they included a security mechanism integrated to avoid this.

    You can take this by adding a simple test.

    ## max number of idle minutes for sessions to keep$intOlderThan = 60$serviceInstance = Get-View 'ServiceInstance'## get the session manager object$sessMgr = Get-View $serviceInstance.Content.sessionManager## array to hold info about stale sessions$oldSessions = @()foreach ($sess in $sessMgr.SessionList){    if (($sess.LastActiveTime).addminutes($intOlderThan) -lt (Get-Date) -and          $sess.Key -ne $sessMgr.CurrentSession.Key){        $oldSessions += $sess.Key    } ## end if} ## end foreach
    
    ## if there are any old sessions, terminate them; else, just write message to the Warning streamif (($oldSessions | Measure-Object).Count -gt 0) {    ## Terminate sessions than are idle for longer than approved ($intOlderThan)    $sessMgr.TerminateSession($oldSessions)} ## end ifelse {Write-Warning "No sessions that have been idle for more than '$intOlderThan' minutes; no action taken"}
    
  • Idle session time

    How do you géreriez idle time session for multiple applications?

    Connect to the OUTER workspace and set a similar attribute in there.

    That is to say - it can be set at the level of the instance and application.

  • huge idle session

    Hi experts,

    I am facing problem, when I check my server there has a lot of session is inactive and these session maximum running this query "SELECT FROM NLS_INSTANCE_PARAMETERS WHERE PARAMETER VALUE ='NLS_DATE_FORMAT''." "   What is and why his race take huge session and how to solve it?


    [oracle@sun4 ~] $ ps - ef | grep ora | WC-l

    118

    SQL > SELECT / * + ORDERED * /.

    2 sql_text

    3. IN v$ sqltext one

    4. WHERE (a.hash_value, a.address))

    5. SELECT DECODE (sql_hash_value,

    6 0 prev_hash_value.

    7 sql_hash_value

    8                            ),

    9 DECODE (sql_hash_value, 0, prev_sql_addr, sql_address)

    10. FROM v$ session b

    11 WHERE b.paddr = (SELECT addr

    12. FROM v$ process c

    13                                 WHERE c.spid = '7146'))

    14 piece ORDER BY ASC;

    SQL_TEXT

    ----------------------------------------------------------------

    CHOOSE THE VALUE OF NLS_INSTANCE_PARAMETERS WHERE PARAMETER ='NLS_

    Date_format';



    SPID LAST_LOAD_TIME TILL_DD:HH CURRENT_RUNNING_QUERY STATUS

    -------- ------ ---------------------- --------------- --------------------------------------------------------------------------------------------------------------

    16613 INACTIVE 0:0 oracleorcl@sun4

    2349 INACTIVE 0:0 oracleorcl@sun4

    845 INACTIVE 0:0 oracleorcl@sun4

    7146 INACTIVE 0:0 oracleorcl@sun4

    INACTIVE 27962 0:0 oracleorcl@sun4

    INACTIVE 8516 0:0 oracleorcl@sun4

    INACTIVE 18327 0:0 oracleorcl@sun4

    32268 INACTIVE 0:1 oracleorcl@sun4

    4222 INACTIVE 0:0 oracleorcl@sun4

    15629 INACTIVE 0:0 oracleorcl@sun4

    4615 INACTIVE 0:23 oracleorcl@sun4

    Reg,

    Hard

    Slim,

    --> When you see these sessions? and what are the changes on the environment after this observation?

    --> Any change in the parameters of database?

    --> Other services running on this server? If so, what are they?

    --> Also to shoot down two or three reports AWR, a 30-minute snap shot interval would be fine... and download the reports AWR here?

    Kind regards

    Shiva.

  • idle sessions with sql_address = 00

    Hi gurus,

    DB: oracle 11g
    application: weblogic

    I could see a lot of sessions not valid with sql_address = 00 and Virgin sql_id appearing intermittently and causing connection problems.
    prev_sql_id of the majority of the lines are the same and the sql_text is "select count (*) from dual!

    What could be the reason for these invalid sessions? not able to understand the prev as sql_text

    Help, please
    Charles

    The sessions are not disabled. They do nothing.
    Also, this causes no problems connecting.
    Applications such as weblogic has several "features".

    -They often perform dummy sql to check the availability of data, such as select count (*) of the double
    -They do not have persistent connections

    This point is addressed by setting up shared server and enabling connection pooling.

    -------
    Sybrand Bakker
    Senior Oracle DBA

  • Force logoff idle session for user 2003 active directory

    I hava an active directory on windows server 2003 and I want to set the strategy of inactive users logoff, how do I do?

    Server issues and AD are better asked on Technet.

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • Cisco TMS first activate Idle all sessions

    Hello.

    We have the video conferencing system with Cisco TMS, blades MCU 8420, Tandberg Gatekeeper and Cisco in the series C endpoint, MXP series etc...

    This week we have problems with planning because when we planned to meet his past of in waiting for idle session direct and all sessions the codec says no connection.

    never start the meeting on active sessions.

    then that we end the session or meeting and reprogram this session and that begins at the current session.

    IM verified the conectivity between Cisco TMS and MCU, Endponits its Ok.

    rigth now we rebooted the server and MCU and the GA but when even continue the problem.

    The cisco TMS its located in other areas with transit to WAN network. We reserve the bandwidth with QoS for video, voice and data for im MCUS and endpoints asking its required reserve BW TMS Cisco commands API, Https, Https and other protocols? the problem may be congestion in WAN networks?

    This Protocol should ensure guarantee connect API orders end to end of Cisco TMS - MCUS and endpoints.

    I appreciate your support.

    Giacomo BR P.

    I did not completely understand your description.

    The communication is done on MSDS by HTTP or HTTPS, depending on your settings.

    In general, I would say that the management / follow-up will also through these ports, I would

    expect tickets with problems logging on your TMS.

    I could look at the logs and see: is the Conference properly generated on the MCU.

    is the dial in number okay, can the scope of endpoint the mcu, can the mcu reach end points.

    y at - it something suspicious on the GK, conferences and any other reservation of port

    on the MCU

Maybe you are looking for

  • (Re -?) Address book organization

    I'm trying to get T-bird all the set-up so I can dump (sadly) Eudora. T - bird imported my Eudora address list form (automatically, because * I * did not do!) However, it's just a big long list of addresses; the Organization, I had only-sorta-in part

  • PC monitoring

    Hi' guys, I wanted to ask you, how is it possible to follow in - put and out - put data to a PC remotely? Including the history of surfing (traveled). What application is used and how do I get a. Thanx Post proposed by the facilitator for the appropr

  • has erased my photos and settings

    I turned on my computer, he paused for an update, but when it was finished, my office has been changed, I lost all my files pictures, all emails, even the connections, my desktop files and all my settings and internet exporer favorite. I am in a Stat

  • IdeaPad u310 turns off during sleep

    I have a u310 ultrabook ideapad 500 GB hard drive 32 GB ssd Core i3 running windows 7 I have power options configured so that it goes to sleep when I close the lid. That's how I always put to sleep (I never press the power button or use the option to

  • Something has happened to the "programs" list when I click on 'start '.

    Lasst Saturday when I was on the computer, I must have done something - I have no idea what - but all my icons disappeared and when I click on start and then all programs - all programs that have been missing there. I tried everything I can thru & as