What is a stale session

Hi,
Can anybody explain me about stale sessions..How to identify them and also how to kill them..
Thanks in advance....

Yeah - a more correct term would be "+orphaned sessions+" as the session is there to serve a client that no longer exists.
@user12657832:
I would not call the term "+stale+" sessions relevant to Oracle. There are 2 basic session states in Oracle.
- active: server process is busy servicing (executing) a client request
- idle: the server process is waiting for a client request
A session can last a few seconds.This is typical in a thin-client architecture where the clients are stateless.
A session can last several days. For example, a developer using TOAD and simply keeping the client open and running on his PC for several days, without closing it down and reconnecting.
There is however an issue at the wire protocol level. When the client crashes, it does not send a FIN packet down the wrire to tear down its network connection with the server. So the server session is unaware that the client crashed. The IP stack on its side does not inform the server session that the network socket handle it owns is no longer valid. It will only discover that when it attempts to use that socket handle to communicate with the missing client.
It has no reason to do that however, as it is waiting for the next request from the client.
So in such a case, one gets orphaned sessions. An idle session that waits on a non-existing client.
There's no way to accurately identify such sessions in Oracle. You can determine the life span of a session and if it is older than 2 days for example, consider it as an orphan and kill it. But its client may still exist. Its network connection between client and server may still be valid.
There are ways to deal with such server sessions (and this is a problem with all tcp based servers). In Oracle it is called DCD or Dead Connection Detection. This forces the server session to send a ping over its socket handle to the client at regular intervals. And the client to respond with a pong. Should this fail, then the network connection is no longer valid and the server session can terminate.
However, due to the very robust nature of the tcp protocol (designed by the US military to still provide communication over large pieces of broken communication infrastructure in a post nuclear scenario), it can in some cases take many minutes for the network layer to discover that the client is not responding and no longer reachable.

Similar Messages

  • ODI-01266: Agent {0} detected Session as stale session and set to error

    Hi
    I am a beginner in odi
    I scheduled a package to run . but this error came up :" ODI-01266: Agent {0} detected Session as stale session and set to error status"
    what is this error and what should i do???
    thanx
    medi

    Cleaning Stale Sessions
    Stale sessions are sessions that are incorrectly left in a running state after an agent or repository crash.
    The Agent that started a session automatically detects when this session becomes stale and changes it to Error status. You can manually request specific Agents to clean stale sessions in Operator Navigator or Topology Navigator.
    To clean stale sessions manually:
    Do one of the following:
    From the Operator Navigator toolbar menu, select Clean Stale Sessions.
    In Topology Navigator, from the Physical Architecture accordion, select an Agent, right-click and select Clean Stale Sessions.
    The Clean Stale Sessions Dialog opens
    In the Clean Stale Sessions Dialog specify the criteria for cleaning stale sessions:
    From the list, select the Agents that will clean their stale sessions.
    Select Clean all Agents if you want all Agents to clean their stale sessions.
    From the list, select the Work Repositories you want to clean.
    Select Clean all Work Repositories if you want to clean stale sessions in all Work Repositories.
    Click Clean to start the cleaning process.

  • ODI-1266 - Stale sessions

    We currentl have a problem on our Production system where some of the senarios fail with :
    ODI-1266: Agent OracleDIAgent detected Session as stale session and set to error status.
    The timeout on ODI is set to 22000 .
    Does anyone know how to avoid/fix the stale session problem?
    Jenny Cripps

    State sessions are sessions that are not run by any agent yet having running status in the repository. Agent cleans up such sessions and mark them as stale session.
    This happens when either 1) your agent crashes while the session was running OR 2) your repository is bounced while the session was running.
    In either of the case the session status could not be properly updated in the repository so when agent finds such session it marks them as stale session.
    Please verify which of the scenario have caused the stale session in your case.

  • What is purpose of session variables in obiee

    what is purpose of session variables in obiee and how to use it in obiee

    whenever a user logs in, a session variable is initialized for that particular user.
    The session variable can hold values such as Username, loglevel.
    For example, if you have 10 obiee users and u want to set different loglevels depending on their roles, you can create system session variable LOGLEVEL which will be initialized dianamically depending on the initialization block.
    Edited by: Vishal on Jul 5, 2011 10:30 PM

  • What's up with Session timeout.  That is all I can get anymore?

    What's up with Session timeout?  That is all I get anymore with I Tunes Store.

    The fix was: Turn off Junk Mail filter
    quit mail
    turn on junk mail filter
    (and reset database for good measure)

  • What is meant by session Facade design pattern

    please give me

    cripes
    http://www.google.com/search?q=what+is+meant+by+session+Facade+design+pattern
    Who'd have thought it? ;-)
    kind regards,
    Jos

  • What is Cross Context session.

    HI,
    What is Cross Context session?
    Iam using Tomcat .
    pls help
    Thanks in advance
    arvin

    Where have u heard about that concept? I don't know it.
    I know about "crossContext" feature of Tomcat which means other applications can gain access to ServletContext of your application (by using the appropiate API), but did know nothing about "cross context sessions"...
    Sorry.

  • What is that  sync session failed to finish in iTunes  when i am connect my iphne5s its not syncing stuck on that error

    what is that  "sync session failed to finish" in iTunes  when i am connect my iphne5s its not syncing stuck on that error

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT1349 What is a captive session and a crash reporter? I think my phone may have been compromised and information stolen, is there anyway from the diagnostics log to find out?

    What is a captive session and a crash reporter? I think my phone"s security may have been compromised.

    ok thank you. I was talking to a IT security forensics person and they told me that there is a devise that plugs into your charging area and looks like a flashdrive that can bypass your password and download all of your data even deleted text messages from the hard drive in your phone.
    he had the ability to have access to my phone all night.
    is there a way he couldve jail broke my phone to hack into it and then un jail break it.
    I was also told that if he used a mac computer he couldve done this through itunes and there is a way to find the trace of my data being extracted on my iphone and will also give mac address that they pulled the data onto.

  • Why stale sessions are creating in Data Load Execution?

    Hi Experts,
    Can anyone tell,Why stale session are creating every time, when i do the incremental load in operator tab?.Thanks In advance.
    Regards,
    raj

    Hi Experts,
    I got the some below information from blogs..is it correct?
    When the network connection has a problem or an agent gets disconnected from master and work repository momentarily, we end up with stale sessions.and master and work repositories Crash.
    Thanks

  • What happens to client session when host goes down?

    I have a windows 2012 R2 RDP environment. 1 Broker and 3 Session Host Servers.
    My question is as follows:
    User connects via broker to one of the Host servers. Host server goes down, while user is still connected. Session is written in Broker database. User wants to connect again, but broker sends him on to the server which is down and so he cannot connect.
    Other situation is similar, User connects to host, administrator drains host, stopping new connections. User disconnects session, session is still in Broker, when user tries to reconnect is sent to drained server but cannot login, as he is considered new
    connection.
    What am I missing?
    Aaron

    Hi Aaron,
    Thank you for posting in Windows Server Forum.
    We need to configure RDSH in a load balance farm where it can be managed by RD Connection Broker. For that we need to use DNS RR where need to make entry for all RDSH server which will be handled by RDCB Server or we can use any load balancing method to load
    balance the different RDSH server and thus that connection will allow the disconnected session for reconnection and can identify the connection.
    The RD Connection Broker for RDS serves the following main purposes:
    • Determining the best RD Session Host server to connect to - this is based on the amount of current sessions per RD Session Host Server as a form of load balancing. 
    • Reconnecting a user to an existing session, in case there is one - this is called reconnecting to disconnected sessions. 
    • Being a resource for RD Web Access to deliver information about what Remote Apps are available on RD Session Host Servers that are a member of the broker.
    More information.
    Remote Desktop Server farms explained (Part 1
    & Part 2) (Link is for Server 2008 R2 but it’s only for reference).
    Step by Step Windows 2012 R2 Remote Desktop Services – Part 3 (For Server 2012 R2)
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • What to store in session/request

    Hello.
    I'd appreciate some input on a design issue that i have. I am building some new components in a system that consists of JSP pages and servlets, which is new technology to me. I will try to describe my question in a simple and straightforward way:
    My JSP page has a function where i can retrieve a list of people, based on some filtering criteria. It calls a servlet, that uses underlying components to read the persons from the database and compose an ArrayList of Person objects. It then attaches this ArrayList to the Session bean using the setAttribute method on the HttpSession object.
    The JSP page then lists the result list from the search for people and using a control on the page, the user can move one or more persons from the search result list to a list of selected people, creating a team of one or more persons. This team is stored in an ArrayList attached to the session object and it's retreived, updated and re-attached to the session object by the servlet every time the user clicks on the control that selects a person to be added to the team. On form submit, the JSP page stores key information about the selected person in hidden fields in the form and the servlet extracts this information from the request object and updates the ArrayList and re-stores it in the session object.
    When the "save team" button is pressed (form submit) and control returns to the servlet, it extracts the selected persons from the request object and uses underlying components to save the list. In essence, the session object is used to "send" the search result and the current list of members in ther team to the JSP page. The request object is used to send the current list of persons in the team from the JSP page to the servlet.
    Now to my question: what is the best practice design for a function like this one? Is using the session object to transfer the search result list from a servlet to a JSP page a good solution? Is it a good solution to keep the list of selected persons in an object attached to the session object until it is finally saved a good solution. It is not entirely clear to me when i should store data on the session object and when to use the request. Also, what mechanisms are there to transfer data from the servlet to the JSP page, other than attaching it to the session object?

    Can the servlet attach an object to the request object and can the JSP page access it just like it can with objects attached to the session object?Yes. Just use HttpServletRequest#setAttribute() and forward the request to the JSP.
    Is there a general guideline for what to store in the session and what to store in the request? Store request scoped variables (form input values, request-specific variables, etc) in request scope and session scoped variables (logged in user, user settings, user specific dropdown list contents, session-specific variables, etc) in session scope.
    My picture of this was that the request is something that is generated when a form (JSP page) is submitted and that it cannot be used to transfer data from a servlet to a JSP page. Is that wrong?Yes, it is wrong.

  • Invalid session id when logging in after logging out.(Stale session token?)

    When I logout and then login again I get an exception in the agent debug log which seems to indicate that it is trying to use the old session token. The agent is correctly seeing the logout event and redirecting to the logout page and then to the login page. Am I missing something from my cookie rest values? What values should I have there?
    amFilter:07/29/2009 04:06:23:141 PM EDT: Thread[WebContainer : 6,5,main]
    WARNING: {color:#ff0000}SSOTokenValidator.validate():{color} Exception caught: AQIC5wM2LY4Sfcxv06BBMMZtbjHlFhrdIBTHWoP23atm718=@AAJTSQACMDE=#
    {color:#ff0000}Invalid session ID{color}.AQIC5wM2LY4Sfcxv06BBMMZtbjHlFhrdIBTHWoP23atm718=@AAJTSQACMDE=#

    If you are being redirected to /amserver/UI/Logout the ssotoken id cookie should have been erased. Check that, and check in amFilter log what value of ssotoken id cookie in the request. It should change if you go to Logout then Login.
    Please provide more detailed information of the environment and behaviour.

  • What kind of visa session should i use to communicate with a serial instrument?

    I´m trying to communicate with a serial board, i don´t want to use the Measurement and automation explorer, so the resource name should be COM1 instead of ASRL1::INSTR, how can i do this?. What king of session should i use? Waht visa VI should i use to open, close read and write from the srial port?. I want this to work with out MAX. Thanks in advance

    The below link dtalks about LabVIEW.ini settings.
    Go to this link and scroll down to the entry for serial. It will show you the syntax you need and alos provide another link for more info.
    I seem to remeber (not sure) that Visaconfig.ini defines the aliases normally assigned by MAX.
    http://labview.brianrenken.com/INI/undoc.shtm
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • What is an APEX session?  Where is it documented?

    Exactly what defines an Oracle APEX session? Is it documented somewhere? (I can't see blogs because they filter them out here.)
    I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session.
    Thanks -- Howard

    Hi,
    This might help
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref103
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#sthref124
    I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session. Can you create some example to apex.oracle.com to demonstrate what you mean?
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

Maybe you are looking for

  • Recovery in archivelog mode

    hi experts around the world. i have oracle 9i release 2 on server 2003. we make partitions on windows like C (windows os) D (oracle) E (oracle physical datafiles) F (oracle physical datafiles) G (oracle physical datafiles) H (ARCHIVE logs) we have si

  • I am not able to move files. Adobe 'unexpectedly quit'. Request assistance.

    Adobe 'unexpectedly quit' when I try to move files in my mobile device. This started after Adobe updated.

  • Apex Websheets. Will such thing be possible there...

    Hello Apex-Team! We are moving now our ERP-application to the Apex environment very intensively, many old Excel reports and tables are also moved to the Apex application thanks to the outstanding Interactive Reports feature. But I'm receiving more an

  • Java print service + print specific page

    is there anybody know how to print specific page to the printer in java? i am using below code. it able to print any txt file from page 1 to n. it just cannot work on printing on specific page?? code String fileName = "NORMAL.txt";      DocFlavor fla

  • HELP! A QUESTION ABOUT CHARING!

    hey i know that when your done charging your ipod it says "charged". Would it be ok if i left the thing overnight if i was asleep, or should i get the charger out as soon as it says "charged"?