How to find the last time that a user has performed an activity?

Hi guys,.

How to find on any sysdba user, when a user has been active last connection?

Suppose user SCOTT logon time is 10:00 and it is INACTIVE ( SELECT username, STATUS, SID, SERIAL # FROM V$ SESSION) @ 11:00

I want to know his last activity, as when he fired any principle request.

Thanks in advance

(Edited)

I found my solution:

SELECT username, terminal, SID, Serial #, status, SchemaName, to_char (LOGON_TIME, 'DD HH24') Logon_Time,.

Floor(last_call_et / 60) 'Ideal_Minutes', to_char (Sysdate, 'DD HH24') 'SYSDATE.

from v$ session by LAST_CALL_ET

When Status = 'INACTIVE ';

Tags: Database

Similar Questions

  • find the last time that a procedure has been called

    Hi DBAs,

    How to find when a procedure or function was called again in 10g. Besides, even when a table last access. If this can be done without activating the audit? is there a such views or tips to find such changes?

    Thank you!

    Without verification, it is not possible, generally speaking.

    If a procedure has side effects, you could potentially look through the database to find these side effects. If inserting a new row in a table with a SYSDATE CREATE_DATE, it would be very useful. If you mean a function that does not have the side effects, however, it is not an option. If the function or procedure works for a relatively long period, his performances can be picked up in an AWR / statspack report. But it is unlikely that each execution would be seized, it is unlikely that the history is kept very long, and it is not always trivial to these research reports for the last time that a procedure has been run. And if you have a relatively quick process, it is unlikely that the executions would be ever recorded.

    Statistics at the level of the segment could give you advice on access to the table. But these statistics are cumulative since the last restart. And there are likely background processes that affect all tables at certain interval (i.e. statistics collection), which is probably not the kind of 'access', you are interested.

    Justin

  • How to find the last time that the execution of the procedure and by whom?

    Hi all

    Can be found as the last run and the procedure by which the user in the dictionary of data or something else?

    Thanks in advance.

    At least that audit you, you can probably not.

    If the goal is a particular stored procedure, you can maintain a work table so he can follow the execution time, audit owner etc.

    Concerning

    Biju

  • How do you find the last time that an address older Windows Live Hotmail has been used if you don't remember the password?

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    original title: old hotmail address

    How do you find the last time an old hotmail address was used... especially if you can't remember the exact password?

    Good enough if you can't on the account and you can't prove it is yours in order to regain access (via password self-service reset, etc)-then you won't know anything about the account.

  • How to find the last update date, time and user of the file field peoplecode

    How to find the last updated date time fields of peoplecode records?

    Thank you.

    We can check the update date-time using the following query

    SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".

  • How to find the last pasted paragraphs FMP?

    I'm sticking FMP several objects at once in a file (a file of changes to the sections containing the changebars) in the main text flow. I want a separator line to go at the end of each pasted section, so I try to insert one after the paste operation. But instead of a line between each section, all lines are added at the end of the file, after all the sections. So if there are 3 glued sections at the end of the file are three lines. My code is below, do you know how I could fix this?

    Thank you, Mark

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var firstChgPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    var lastPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    }

    Hi Mark,

    The problem is that the dough does not occur when you think. The dividing line is added at the end of the file, but are not your actions of dough. Actually, I think that maybe a little random where pasta is produced, because this line:

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    .. .is does not create a valid text location. You can check this by abandoning the service after:

    changesDoc.TextSelection = changesTRange;

    .. and look at where's the insertion point. It will probably be everywhere where you left it last, because the call is not valid. I can't tell you exactly why, except that it has something to do with the fact that you are using the last paragraph in the stream. There is something weird to try to define a range of full-paragraph text with the last paragraph. I'm sure it's related to how the last TFP in a stream does not show a mark of FMP, but beyond that, I don't know how to do what you're trying to do with the last paragraph.

    Having no knowledge of how do it right, any time I need to do this, I create a paragraph "dummy" at the end of the flow to fill that space strange 'last FMP", then do the work around it. In the end, I just want to remove fake TFP. I don't know if it's a good idea or not, but it's the only way I ever get it to work and it sorts the mirror how you could do this manually in the GUI.

    With this, I modified your script as follows, and it seems to work better. Note that I also modified the logic of how to find the last paragraph of the flow by writing a separate function. Your call to the 'FirstTextFrameInFlow' is OK, unless your doc begins to span several pages and/or begins with several empty pages. The function I wrote ensures that you really the last TFP in the stream.

    I hope this helps.

    Russ

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var lastPgf = getLastPgf (changesDoc);

    var dummyPgf = changesDoc.NewSeriesPgf (lastPgf);

    var changesTloc = new TextLoc (dummyPgf, 0);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    Don't forget that last TFP is now fake TFP

    lastPgf = getLastPgf (changesDoc);

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf.PrevPgfInFlow);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    dummyPgf.Delete ();

    }

    function getLastPgf (doc)

    {

    textFrame var is doc. MainFlowInDoc.LastTextFrameInFlow;

    var lastPgf = textFrame.LastPgf;

    While (! lastPgf.ObjectValid () & textFrame.ObjectValid ())

    {

    textFrame = textFrame.PrevTextFrameInFlow;

    lastPgf = textFrame.LastPgf;

    }

    Return lastPgf;

    }

  • How to find the library files that are not due to problems of indexing

    I need help to know how to find the library files that are not as a result of indexing problems?

    I use Windows 7

    Thank you

    Charlene

    Try to open the folder that the library uses directly.  For example, if it is your Documents folder, open C:\Users\Charlene\Documents

  • cost me twice the money, only then I saw that I had two subscriptions. You told me to recover the last time that the subscription again. I don't want to pay twice for a single product!

    cost me twice the money, only then I saw that I had two subscriptions. You told me to recover the last time that the subscription again. I don't want to pay twice for a single product!

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

  • How to find the last date of execution of the objects in database

    Hi all

    We're going for an upgrade of the database 11g and for the same thing, we want to know the last date of the following-

    Packages, Tables, views
    Conc. programs / value Sets / look up / profile options

    Is there a way we can find the same thing.
    The answers would be really useful.

    Kind regards
    Shruti

    So can you provide clues on how to find the last opportunity registration

    I don't think you can find such a script with having activated audit.

    Thank you
    Hussein

  • Mr President, how to find the last DML operations

    Hello

    Please tell me how to find the last DML operations at least a minimum of 30 queries.

    Thanks in advance,

    Select sql_id, sql_text, last_load_Time from V$ SQLAREA

    or

    Select * from v$ sqltext

    Must be one of them. But don't know what exactly you are looking at.

    I usually use v$ sqlarea to see recent queries.

    Maybe you can limit the rows using rownum, order of last_load_time.

    I understand, if the same query is used again then only recent transaction is stored.

  • NET, updates not working do not, the last time that I removed net 1.1 (bad update) and reinstalled, cannot remove the net 4 logged as administrator? Connect said trust generic error

    IBM r52 x 86, xp sp3, clean install except for .net.

    updates will 1.1 2.0 or 4.0 (some) 10 bad.

    The last time I uninstalled all .net 1.1 and reran the updates for this problem on another processor.

    This time, add/remove doesn't let me delete 4.0 scope, connect said generic error of confidence.

    I only have 1 user, administrator and am logged on as administrator.

    Help please...

    I think that if all 1.1 .nets uninstalling and reinstalling will fix this.

    Thank you, David

    Hello

    1. What is the number of KB of the update that are impossible to install?

    2. What is the message exact error do you get when you try to install updates?

    I suggest to uninstall all versions of .net Framework completely from your computer by using the removal tool and then try to install .net updates the work of structure.

    See the link below:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    Hope this information is useful.

  • When was the last time that 5.5 ESXi host not re-initialized and total times restarted last month.

    Hi team,

    We have more than 100 ESXi host in our environment, and we need to know when was the last time ESXi host rebooted and no times restarted last month. Please help me get the power cli script. Any help will be much appreciated. Thank you

    Thank you

    VMware tech

    OK, so the ESXi nodes were hard started (as if you pushed the power button).

    This is probably why the task for a planned restart does not turn upward.

    Do you see the ESXi nodes with the following script?

    It shows the events where the connection to a host has been lost.

    $start = (get-Date). AddDays(-7)

    Get-VIEvent - MaxSamples ([int]: MaxValue)-start $start |

    where {$_-is [VMware.Vim.HostConnectionLostEvent]} |

    Select CreatedTime,@{N='VMHost'; E={$_. $host.name}}

  • How to find the last person from my iPad that is locked

    I need help to find who is the person who took my iPad 2, so I can't unlock

    Unfortunately, it is to you to find the previous owner. We can not help you with that.

    If you are trying to accomplish something else, we would need more information.

  • Please how to find the last location? !

    my iphone stolen and he sent me last location and this place deleted after 24 hours and always offline I need this place once again please

    How can I find it? !

    What to do if your iOS device is turned off or offline?

    If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.

    iCloud: find your device

  • 17 Firefox always opens the tabs that were open the last time that I closed it. I use NO history of restoration.

    This has started happening since I upgraded to v.17. I close Firefox with the red X or the button to exit the menu drop down. The next time I open, it displays some pages were open when I closed it.

    I've always had Firefox to use my Google account as my home page. He does not appear.

    It seems to me that in your quest to keep updated (how much this year...?) that you have lost a little something. It's very bad behaviour and I will stop just using FF altogether if it is not resolved quickly.

    Well, I drove back two versions to the right FF15 before 16 came out. It still works with the most recent NIS, and does not have the behavior, I complained to my original question.

    It might be that FF17 thought that it had crashed whenever I closed it. And it's true, no matter how I closed it.

    I lost all faith in Mozilla, R & D, but at least they still host their previous versions if/when the current does not work.

Maybe you are looking for

  • Old ipad updated

    After years of not using my ipad 2 I decided to pull back, but he's still on the old firmware. I'm stuck on 4.12 & everytime I try to update via wifi, I received an error report. Is this because his back where I have to connect it to a computer?

  • Powersupply upgrade for a WG to 730 to work in my eMachines el1352g-41W

    This work on the motherboard in a larger ATX case emachines el1352g-41w? http://m.eBay.com/ITM/450Watt-450W-...l-AMD-desktop-PC-PSU-/131030129712?NAV=search

  • Menu start remains open, Flash Windows

    Hello I'm having a problem with my computer that I think a lot of people have had, but I can't seem to find a definitive solution for her. My Start menu will not open, and my windows blink and light that I use my computer. The only new program I have

  • the keyboard of my laptop, do strange things when I type

    Hello When I type on my laptop especially when I'm on the internet internet letters or words go to the rear for.   for example when I type How are you today the word today goes behind how or are.  This always occurs. I changed the keyboard, but the p

  • BSOD DPC_WATCHDOG_VIOLATION

    I received a copy of Windows 8 free of charge through my school through the Microsoft DreamSpark network. I upgraded my laptop HP dv7t-7000 Quad Edition and since I get BSOD with error DPC_WATCHDOG_VIOLATION. This happens usually when I am producing