Killed session still showing in V$session

I have killed some 5 sessions. Its status is reflecting as KILLED for last 10 days. I searched for the relevant OS process to completely scratch the session. But it returned none.
Now i have that KILLED session in V$session view and no process from OS level.
How can i remove that KILLED entry from v$session view?

Those status KILLED in your V$SESSION you will have to kill them by the Operation System (kill -9 "spid"). So, you'll have to find in the V$PROCESS the SPID (process number) from the 5 killed session that you have. In a normal situation, with statuses ACTIVE or INACTIVE, you can easily find the SPID with:
"select p.spid, s.username, s.status from v$process p, v$session s where s.paddr=p.addr".
But, sometimes, when you have "KILLED" sessions for a long time, this link between both dict views are lost and you have to find all the SPID that doesn not have child record on v$session.
You have to do this carefully, because you cannot kill (on OS) the Oracle Processes (pmon, dbwr, etc..).
Paulo.

Similar Messages

  • SQL_Monitor for query shows DONE(ERROR) red X but Session still active

    Hi. I'm just a developer so I was wondering if someone might be able to answer my question relating to the subject.
    Basically I have a query that has been running for quite a while (12H) now. Thats not a problem. However, I'm confused about one thing. When I click on the SQL_Monitor tab for that query within my still Active Session it shows the SQL as having errored out. Nothing for my particular user shows up in V$SESSION_longops either. Its Oracle 11G with EM of same type. I believe that my session is still active as it still seems to be consuming resources. I don't need help optimizing my query, I've already managed to do that. I'd actually just like an answer to the following questions.
    How can I tell if a query has really died?
    Is it possible that a session will remain active while a query errors out and how could I detect this in my application?
    is it possible for a query to be running that does not appear in V$SESSION_LONGOPS (or sql_monitoring in EM which I'm assuming are nearly the same thing)?
    Is my only recourse to #2 if possible, to kill the session and start my query again?
    Anyways, thanks a lot in advance. (No need to optimize this query as I've got the one that prompted this question down to about 3H and it ran fine.

    Tom:
    Were you able to resolve this problem? I too have a similar problem where I imported the image, went into the shared components of the app, definition, and under logo selected a logo type of 'image', and the logo attributes of #workspace_images#cmclogo.gif
    This gets me a box with a red x in it, but no image and no clue what's wrong.
    Any help is appreciated!

  • While the session got started in ODI,but still showing me errors in Execution

    Hi Folks,
    Session got started in ODI but it is still showing me errors in execution:-
    Errors are coming marked in red
    Errors are like:-
    1)
    ODI-1217:Session INT_INFext_RT_RF(17001) fails with return code 30088.
    ODI-1226: STEP INT_INFext_RT_RF fails while performing a Loading operation.This Flow loads Target Table TRG_SALES_PERSON.
    ODI-1228:Task SRCSET0 (Loading) fails on the target ORACLE connection ODI_STAGE.
    Caused by :Java .sql.SQLException :ORA-30088 :datetime/interval precision is out of range
    at oracle.jdbc.driver.T4CTTIoer.processerror(T4CTTIoer.java:462)
    Hope this finds the solution ASAP.

    Please post your Data Integrator questions on the Data Integrator forum (this is Data Service Integrator) Thanks.
    Data Integrator

  • Dequeue sessions still active

    we have an application server(proc) that dequeues messages. If the application server stops or is killed the database session still remains active.(in v$session) Is there something that I missed in order to free up these sessions.

    Gerard Lager,
    What is the timeout you are specifying in the dequeue call?
    When the client process is killed, the session on the server does not get deleted immediately. It would get cleaned up only when the call times out. Please check v$session after the timeout seconds and you should not find the dequeue session.
    (e.g if you have a timeout of 100 seconds, and you kill the client process after 20 seconds, the session on the server would get deleted only after 100 seconds).

  • How to delete a Analytic Workspace even other session still attached it

    how to delete a Analytic Workspace even other session still attached that Analytic Workspace?
    or how to detach the Analytic Workspace with other session?
    or how to find session which connected to the Analytic Workspace?
    Thanks

    Here are the sql queries which will tell you who is attached to which aw in which mode.
    select username, sid, serial#, owner||'.'||daws.aw_name aw,
    decode(attach_mode, 'READ WRITE', 'RW',
    'READ ONLY', 'RO', attach_mode) attch,
    trunc(pool_size/1024)||' KB' as curr_opp_kb
    from dba_aws daws, gv$aw_olap gvawo , gv$aw_calc gvawc, gv$session
    where daws.aw_number = gvawo.aw_number and
    sid = gvawo.session_id and gvawc.session_id=sid
    order by owner, sid, daws.aw_name;
    select a.owner,a.aw_name,b.attach_mode
    from dba_aws a ,v$aw_olap b
    where a.aw_number = b.aw_number;
    You might have to kill the RO session before deleting the AW.
    Thanks
    Brijesh

  • [solved] who command doesn't show X server session

    Hi there,
    shouldn't the `who` command show all logged in user sessions, including my X server session?
    However, who only shows my tty1 session:
    [orschiro@thinkpad]$ who
    orschiro tty1 2013-10-25 17:01
    What is the output of who on your system?
    Last edited by orschiro (2013-10-27 20:21:32)

    Alright. The point is, what do I need to do in order that who shows my X session?
    I tried export DISPLAY=:0 but this doesn't add :0 to the who command listing.
    The reason I am asking is that I want to use the following dispatcher script which queries for :0, assuming that who shows the display variable.
    #!/bin/sh
    INTERFACE=$1 # The interface which is brought up or down
    STATUS=$2 # The new state of the interface
    case "$STATUS" in
    up) # $INTERFACE is up
    USERS=$(ps -o user --no-headers -C dropbox)
    killall dropbox
    for user in $USERS; do
    su -c "DISPLAY=$(who | sed -e "/$user/! d;/pts/d;s/^.*[^0-9]\\(:[0-9.]\\+\\).*$/\\1/p;d" | head -n1) dropboxd &" $user
    done
    down) # $INTERFACE is down
    esac
    Last edited by orschiro (2013-10-27 07:04:25)

  • Sessions are not showing in V$session in 10g RAC

    Hi All,
    I have 2-node 10gR2 Rac installed on RHEL4. It is up and running fine. And i'm able to connect from clients also(from other machines). My doubt is...If i connect to the RAC database using other clients, a record is showing in v$session. But if if connect to the database from one of the RAC nodes. that record is not showing up in v$session. What might be the reason?
    And how can we see, which user has connected from which node in RAC?
    Thanks,
    Praveen.

    Thanks for response...
    I checked with the query which you have given and i'm able to see which user has connected from which instance.
    Thanks,
    Praveen

  • How to find and kill session similar to forms user session

    We have a forms and reports based system that uses the oracle sessions. Sometimes if a form takes a long time we have the need to navigate to iAS>Forms>User Sessions, find the IP of the machine where the form is not responding and kill it based on the IP of the troublesome machine.
    I want to add this into our forms environemnt so people can kill their own sessions if need be but not sure how this is handled
    is it a simple alter system kill session in the db or something different.
    also how is the ip found to match the session?
    Thanks

    hi,
    Instead Set session timeout parameters..So that user gets logged off automatically from the application after a particular interval of time
    For this you have to make changes in httpd.conf file,web.xml file and env file
    Regards
    Fabian

  • RemoteApps still reconnecting to disconnected sessions, disableconnectionsharing:i:1 changes nothing.

    I have a scenario where multiple users run a 2008R2 remoteapp, and they all use the same windows credentials.  Multiple sessions is enabled, and I have it set to immediate logoff when the remoteapp is disconnected, and set to 1 minute logoff (the
    minimum) when any remote desktop sessions are disconnected.  In the remoteapp manager I have disableconnectionsharing:i:1 keyed in the custom rdp settings box, and I have this set in the icons as well.
    With all this in place, users should never be rejoining anyone else's sessions.  I thought it was all working fine until users started complaining that they were rejoining other people's sessions, and feared that users could possibly rejoin to their own. 
    I tested a bunch of scenarios and I can make it happen.  If User1 x's out of his session, logs off, or closes the app, it logs out the session just fine and can never be rejoined.  But, if he loses his internet, or for some reason the connection
    is severed such as someone pulled his ethernet cable out, it will put the session into a disconnected state.  This disconnected session is supposed to log itself off after 1 minute, but doesn't always.  I can't make this happen myself, but I've seen
    sessions that are there and they never go away.  But the real problem is, when there is a disconnected session still left there, User2 logs in and it joins to User1's session for him.  Even though I have disableconnectionsharing:i:1 in the rdp settings,
    and in the rdp icon itself, it still reconnects the existing session every time.  What am I missing here?

    I've done a lot more testing, and on multiple servers, so it's not just this one server.   In the local policy under Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session
    Time Limits,   I have the following;
    Set time limit for disconnected sessions -  "Enabled"  End a disconnected session "1 minute"
    Terminate session when time limits are reached "Enabled"
    Set time limit for logoff of RemoteApp sessions "Enabled" "Immediately"
    These settings work well, and they usually log off the sessions within one minute.  It's not perfect 100% of the time, I've seen sessions that never end before, but it's good enough.  Let's just say it works 99% of the time.  The problem isn't
    that sessions don't close, the problem is that you can rejoin ANY disconnected session even though the icons are set to always start a new session.  The session time limits should keep this to a minimum since the users only have a 1 minute window to reconnect
    to a disconnected session, but it is still 1 minute, and a reconnect will happen eventually given the amount of people that connect to this server.
    My rdp icon (edited with notepad) has the setting disableconnectionsharing:i:1
    The server's custom rdp settings has disableconnectionsharing:i:1
    If there is a disconnected session lingering out there, it may be only for a minute, but if anyone connects to the server within that time, it ALWAYS takes over that existing session.  It is my understanding from Microsoft, 3rd parties, and forums, that
    this disableconnectionsharing setting is supposed to eliminate this issue. That's it's whole purpose. But it does not actually do anything.  It changes nothing.  What is it used for then?
    Maybe I'm using the wrong setting.  If so, what is the proper setting so that when you log in remotely, it will always start a new session?
    Dave

  • Session Still Active

    Hello All,
    A program is calling SM35 using call transaction method in Error mode and the batch input session is filtered based on the session name.
    But when i try to process the session in foreground, an error message "Session still active" is stopping from further process. But I am able to process this session in background.
    Please help me in solving this issue.
    Regards,
    Phani.

    Hi!
    If a session contains numerous entries, it could take a lot of time until it is finished.
    We can say processing 1 batch input entry takes 1 second. If there are 100000 entries, then it will take 100000 seconds to process.
    Because it is already running, you can't continue it online, running it again in background will do nothing, however it will not give an error message.. But you can check how many processed entries there are using the BI log.
    You can delete unwanted and corrupted BI sessions, using program RSBDCDEL.
    Regards
    Tamá

  • Time machine icon does not rotate and back up icon on desktop does not show during backup session.

    Time machine icon does not rotate and back up icon on desktop does not show during backup session since I installed Maverick.  Why? How do I fix it?

    That's the new look of it. No way to change it other than file a complaint with Apple. If ENOUGH people do thst they may "fix it".
    http://www.apple.com/feedback/macosx.html

  • Restoring a session only shows blank tabs, same with opening last closed tab

    I opened a link from Trillian in the middle of loading a session with the Session Manager add-on, and now none of my sessions will show anything when I start Firefox or when I reload a session using Session Manager. The number of tabs that the session loads is correct, just none of them have anything except New Tab and nothing in it.
    Additionally, the closed tabs list doesn't update, or when I load the session using Session Manager, trying to open a closed tab will open another blank tab and turn that entry in the closed tabs list into a blank tab.
    Error console shows this when I open any page:
    > Frame Script init
    > "Cu" is read-only
    And this when I close any page:
    > Warning: attempting to write ##### bytes to preference recentlyClosedTabs. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file.
    I've tested this with and without Session Manager enabled, and it's the same behavior for both session restores (correct number of blank tabs). I've tested in safe mode and sessions appear to work normally (I can see closed tabs and restore them).
    Also, Session Manager saves the correct titles and URLs of the tabs when it saves to its external storage, even though they're "blank", so I suspect the issue is something preventing the writing of an important file in my Firefox profile, but I'm not sure what or how to fix it.
    Lastly, Session Manager's add-on page says it might help to record the error console while disabling/enabling the add-on, so here is that log:
    Disabling:
    Duplicate resource declaration for 'specialpowers' ignored. chrome.manifest:32
    Duplicate resource declaration for 'gre-resources' ignored. chrome.manifest:34
    Duplicate resource declaration for 'services-sync' ignored. components.manifest:168
    Duplicate resource declaration for 'services-common' ignored. components.manifest:170
    Duplicate resource declaration for 'services-crypto' ignored. components.manifest:171
    Could not read chrome manifest 'file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/chrome.manifest'.
    Duplicate resource declaration for 'pdf.js' ignored. pdfjs.manifest:1
    Duplicate resource declaration for 'cookieswap_res' ignored. chrome.manifest:3
    Duplicate resource declaration for 'cookiesmanagerplus' ignored. chrome.manifest:3
    Duplicate resource declaration for 'personas' ignored. chrome.manifest:7
    Duplicate resource declaration for 'abduction' ignored. chrome.manifest:2
    Ignoring obsolete chrome registration modifier 'xpcnativewrappers=no'. chrome.manifest:16
    Duplicate resource declaration for 'dta' ignored. chrome.manifest:2
    Duplicate resource declaration for 'dwhelper' ignored. chrome.manifest:75
    Duplicate resource declaration for 'tabmixplus' ignored. chrome.manifest:3
    Duplicate resource declaration for 'sqlitemanager' ignored. chrome.manifest:7
    Duplicate resource declaration for 'greasemonkey' ignored. chrome.manifest:15
    Could not read chrome manifest 'file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'.
    1417333357797 Services.Metrics.Provider.org.mozilla.addons WARN Add-on type without field: userstyle
    1417333357798 Services.Metrics.Provider.org.mozilla.addons WARN Add-on type without field: greasemonkey-user-script
    Enabling:
    1417333394803 Services.Metrics.Provider.org.mozilla.addons WARN Add-on type without field: userstyle
    1417333394804 Services.Metrics.Provider.org.mozilla.addons WARN Add-on type without field: greasemonkey-user-script

    OK I managed to fix this myself so I'll post what I did here:
    The problem was caused by TabMixPlus which also has its own session manager, so I had to reinstall that addon.
    I also had to disable/re-enable every addon and delete all my cookies/cache because of some other strange issues that were happening, but whoever is reading this might not need to do that if they don't have other problems.

  • PSE10 still shows "edit in progress" even when file in CS6 is closed

    I have used PSE for years and love the Organiser to store and navigate round my photos. I've considered Lightroom, but have stuck with PSE10.
    I've got the trial of CS6 and am considering purchasing. I have a problem though. If I edit in CS6, do my adjustments, save the file then close it, it still shows up as edit in progress in my PSE10 photo well. This happens with whatever photos I edit in CS6. Very annoying as they are then locked. My only option is to close PSE10 where a warning comes up about changes being lost, re open it and all is well.
    Why does PSE10 think the photos are still being editied in CS6 even though they have been saved and closed?
    Help appreciated

    What I have tried is after closing the file in CS6, then opening the file in PSE editor and closing that trying to "trick" the organiser into thinking it has been closed, but no luck.
    I have no problem with PSE organiser and PSE editor. As soon as I close the file in the editor it becomes live again in the organiser. This is just with editing in CS6 then closing the file.
    After a heavy edit session I will have numerous "edit in progress" messages over my organiser with the only way of clearing to shut down and re open PSE.
    Annoying to say the least!
    Thanks for your thoughts

  • ERROR: Error in getting session data: Invalid or Expired Session

    Hi,
    We are using ssrs 2008 r2 and have a report which has links that allow the user to drill down.
    When the link is clicked the same report is run but shows more detail. This works fine but we are now getting the error below for a user. 
    I have increased the time out for the report to 600 seconds.
    Error in getting session data: Invalid or Expired Session: fnxgxhjuveugvd552qfyv3fw
    session!ReportServer_0-6!4b0!03/18/2015-10:51:29:: i INFO: LoadSnapshot: Item with session: fnxgxhjuveugvd552qfyv3fw, reportPath: , userName: doman/user not found in the database
    Any ideas how this can be resolved?

    Hi Nasa1999,
    Based on your error message, If the all the users will sometimes got the same issue, it can be caused by the timeout issue. It happens a lot when rendering big report, and it exceeds the default Session Timeout. You can execute script
    to increase the Session Timeout time. Please refer to following blog:
    Session Timeout during execution. Also increase the value of <Query Timeout> in rsreportserver.config file. This file locate at XX:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
    Please also check to set the <legacyImpersonationPolicy> back to true(https://support.microsoft.com/en-us/kb/972328).
    Locate the Aspnet.config file in the following folder:
     %windir%\Microsoft.NET\Framework64\v2.0.50727
    If Microsoft Visual Studio is installed on the computer that is running SQL Server 2005, double-click
    Aspnet.config. If Visual Studio is not installed on the computer, follow these steps:
            a. Right-click Aspnet.config, point to
    Open with, and then click Choose program.
            b. In the Programs list, click
    Notepad, and then click OK.
    Locate the following tag in the <runtime> section of the code.
            <legacyImpersonationPolicy enabled="false"/>
    Change the tag to:
            <legacyImpersonationPolicy enabled="true"/>
    Save the Aspnet.config file.
    Reset IIS.
    Try your report again.
    Similar Thread for your reference:
    Using SharePoint Report Viewer
    Web Part: Error in getting session data: Invalid or Expired Session: xxxxxxxxxxx
    If only the one user or several users will got the issue, the issue can be caused by the permission setting, please reference to below blog:
    http://answers.flyppdevportal.com/categories/sqlserver/sqlreportingservices.aspx?ID=3506231b-9f4d-4f5a-884d-157137c56336
    http://blog.goobol.com/the-permissions-granted-to-user-domainusername-are-insufficient-for-performing-this-operation/
    If your problem still exists, please try to provide more details information as below:
    Did you reporting service installed in native mode or sharepoint mode, If in native mode, please try to provide more error message from the log file:
    C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Firefox 5 on Win7: All my plugin buttons have gone from the toolbar. They are not in the customise pane. Session manager offers the correct sessions but opens with last session instead. I've re-installed % and reset toolbars. Help!

    Win 7
    Firefox 5
    Problem with high memory use.
    restarted
    Plugin buttons gone from toolbar/
    Missing plugins still show in plugin manager but buttons missing from toolbar add buttons pane.
    Tried reset toolbars - no difference.
    Tried re-instal of Firefox 5 - no difference except:
    Session manager offers correct session on startup but starts with last session

    In case you are using "Clear history when Firefox closes":
    *do not clear the Browsing History
    *Firefox > Preferences > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).

Maybe you are looking for