Query to to know user is logged in

Hi
i am new to OAF and EBS development.
i need to quey apps db whether user is logged in or not?
Can any one help how we query it?

Hi,
Below queries may help you to find no. of users connected to application EBS
- to see No of user sessions;
select 'Number of user sessions : ' || count( distinct session_id) How_many_user_sessionora0121s
from icx_sessions icx
where disabled_flag != 'Y'
and PSEUDO_FLAG = 'N'
and (last_connect + decode(FND_PROFILE.VALUE('ICX_SESSION_TIMEOUT'),
NULL,limit_time, 0,limit_time,FND_PROFILE.VALUE('ICX_SESSION_TIMEOUT')/60)/24) > sysdate
and counter < limit_connects;
/* currently login users */
SELECT distinct icx.session_id, icx.user_id, fu.user_name, fu.description
FROM icx_sessions icx, fnd_user fu
WHERE disabled_flag != 'Y'
AND icx.pseudo_flag = 'N'
AND ( last_connect + DECODE (fnd_profile.VALUE ('ICX_SESSION_TIMEOUT'),
NULL, limit_time, 0, limit_time, fnd_profile.VALUE ('ICX_SESSION_TIMEOUT') / 60 ) / 24
) > SYSDATE
AND icx.counter < limit_connects
AND icx.user_id = fu.user_id
order by 4;
Thanks,
Nitin

Similar Messages

  • How to know users currently logged in Content Server ???

    Hi
    How could we know the no of users currently logged in the Content Server ???
    Any database entries....???
    please Help
    Thanks in advance
    Vishal
    Edited by: Vishal Anand on Jun 7, 2011 12:56 AM

    There's no database table that tracks currently logged in users - the users table simply tracks the users that have profiles in the system. As mentioned above, if you needed this info you'd have to use the WebLogic server API or write a component that captures the users' login and logouts and tracks that in a custom table.
    Raoul

  • How to know active sessions logged in by same database users

    This is 10g. I need to query list of DB users who have logged in using the same database user accounts. How can I achieve this? This is on 10g and 9i

    Hello,
    You may enable audit. Then, with the following query you may get the list of User who logged on the same Oracle User account:
    select username, os_username, userhost, terminal, timestamp, action_name
    from dba_audit_trail
    where action_name in ('LOGON','LOGOFF')
    order by username;Please, find below a link about audit:
    http://www.oracle-base.com/articles/10g/Auditing_10gR2.php
    Hope this help.
    Best regards,
    Jean-Valentin

  • Query of Clients with a user currently logged on

    This is probably a pretty simple one
    I am trying to build a query of machines that have any user currently logged on.
    I am aware that we can find a list of last logged on user, but I am just looking for a way to find systems that currently have any user currently logged into the computer.

    To do that you would need to have hardware inventory running every 1 minute on clients.
    Or DCM running every 1 min.
    let me clarify before someone actually tries to do this.... I think this was meant to be sarcasm. You CANNOT run HINV each 1 min.
    John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/

  • How can i know about any users who log on sap last one month..all data and

    Dear all,
    how can i know about any users who log on sap last one month..all data and  transaction code they used in a month.
    Regards,
    ASHUTOSH
    9891595497

    Dear Ashutosh,
    I think your question is in the wrong forum. This is for SAP MDM related questions and answers. SAP MDM does not use Transaction codes. So you may not get much help here.
    Please try posting your question in the ABAP forums and you may get the right resources to help you.
    Thanks.
    Siva K.

  • How can I know Which windows user is logged in

    Hello friends,
    I want to know,
    1) which window user in logged (User Name)
    2)Whether he is Adminstrator or a guest
    Please help whether my environment variables is correct or not, whether i am calling the perfect dll or whatsoever
    My PATH Environment Variable
    under user variable is *%path%*
    under system variable is *%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem*
    I searched the internet and found two link for this problem
    1) *[http://www.codeguru.com/forum/archive/index.php/t-197626.html]* which tell such info is in advapi32.dll
    so here is the code based on above solution
    public class dllwindow
    private static native String GetUserName () ;
    public static void main(String[] args)
              System.loadLibrary("advapi32");
              String UserName =GetUserName();
              System.out.println("UserName :"+UserName);
    }and the error i get is
    Exception in thread "main" java.lang.UnsatisfiedLinkError: GetUserName
         at dllwindow.GetUserName(Native Method)
         at dllwindow.main(dllwindow.java:11)
    2) *[http://www.sinotar.com/download/swin/doc/com/sinotar/jni/Windows.html]* tells such info will be in swinlib.dll
    so here is the code based on aboves solution
    import java.lang.*;
    import java.lang.Object.*;
    public class dllwindow
    private static native String getComputerName();
    private static native String getUserName () ;
         public static void main(String[] args) {
              System.loadLibrary("swinlib.dll");
              String ComputerName =getComputerName();
              System.out.println("ComputerName :"+ComputerName);
              String UserName =getUserName ();
              System.out.println("UserName :"+UserName);
    }and the error i gets is
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no swinlib.dll in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at dllwindow.main(dllwindow.java:9)
    Really need your help
    Edited by: venkat_walking on Jul 14, 2008 9:23 AM

    System.getProperty("user.name");

  • How to find Responsibility through which the user has logged in to Disco.

    Hi All,
    I have got a requirement to create a "Usage Report Summary by Responsibility" for all Oracle user having an Access to Oracle Disco Viewer.
    In the report, I need to show the list of Oracle Users and the Responsibilities through which an User has logged in to Disco Viewer.
    Kindly help me in finding the corresponding Disco tables to full-fill this requirement.
    Available Information/queries in my Hand:
    1. Query to find the list of Workbook and its shared Responsibilities
    2. Query to find number of times an Oracle Disco Report has been run.
    Thanks a ton in Advance
    Arun

    Hi Arun
    The first place to look is to try running one of the pre-built workbooks created by Oracle for this purpose.
    I see you are working in Apps mode. Therefore, you'll need to run both of these scripts when logged in as the owner of the EUL:
    1. EUL5.SQL
    2. EUL5_APPS.SQL
    You will find both scripts in the $ORACLE_HOME/Discoverer/Util folder where your Discoverer Administrator tool is located.
    Next, you will need to log into the Administrator tool and import this EEX file: EUL5.EEX
    You will find the EEX file located in $ORACLE_HOME/Discoverer, again on the PC where Discoverer Administrator tool is located.
    After you have imported the EUL, log into Desktop or Plus and open up the EUL5 workbook that you will now see in the list and work through the various worksheets. You should find one or two that will give you what you want.
    Let us know how you get on
    Best wishes
    Michael
    http://ascbi.com

  • Error erase Queries in Query Manager- The query is used with user-define...

    Hello Experts
    I have deleted a User Field that had a Formatted Search and now I can not remove it because it is linked according to a UF, the error message is as follows:
    "The query is used with user-defined values [Message 952-23]"
    There will be a way to resolve this issue???
    Thanks in advance

    Hi Juan,
    I have tried this very limited, but the formid, is this a number in your case?
    SELECT * from cshs t0 inner join ouqr t1 on t0.queryid = t1.intrnalkey
    where t1.qname = '[%0]'
    Running this query I can get the form id that I need to recreate, but I have a feeling you already know the form id, is this correct?
    - Is there an error when you try to recreate the form id?
    - Will it not let you recreate the same form id because the id is given by the system?
    If it is not possible to recreate the form id, please prepare a backup and log a message. Support should be able to correct the entry in table cshs.
    Hope it helps.
    Jesper

  • User access log -Analytics

    hello
    I need to get the user access log in order to know the user who access to the applications analytics OBIEE????

    Then use Usage Tracking Feature of OBIEE.
    The Oracle BI Server supports the accumulation of usage tracking statistics that can be used in a variety of ways such as database optimization, aggregation strategies, or billing users or departments based on the resources they consume. The Oracle BI Server tracks usage at the detailed query level.
    When you enable usage tracking, statistics for every query are inserted into a database table or are written to a usage tracking log file.
    You can find more details about Usage Tracking in Server Administrator Guide.
    - Madan

  • Validate if user is logged in

    Hi,
    I need to develope an application (java) that checks if a user session is valid (user is logged in) given an SSO_ID? I would like to use the SSO_ID string and know if the user has a valid session and eventually get access to some of the information related to this user from the OID.
    ex: is_valid(<SSO_ID string>) => returns true or false.
    Is there a way to do this in Java? I've read a lot on Oracle SSO but I get a little bit confuse.
    Thks in advance,
    Martin

    Actually, is there a way to specifically use the SSO_ID string found in the browser or any other string that I could use to query the SSO server about the validity of the session. The mod_osso almost does it but I would like to be able to validate the session from anywhere. I would just need to use the string, query the SSO Server and get a positive or a negative answer..
    I need to convert an application that does exactly that but with Sun ONE Identity Server using the iPlanetdirectorypro string found in the the session once the user is logged in.
    anyway.. if someone knows.. please let me know..
    thks in advance,
    Martin

  • Simple trigger to allow users to log on at certain times

    I am trying to create a trigger that will allow certain users to only log into the database between 12am - 4 am.
    Can I assign a trigger to a user or to a role or how do I parse it out. I dont think I have this trigger just right yet...
    Or can this be set in the database it self? I looked at the user accounts, profiles, roles and dont see anything about connection times.
    Oracle 10.2.0.4
    I want to create a trigger that will only allow the user to log into the database between 12 and 4 am.
    My next question is can I assign this trigger to the role that the user has been assigned to?
    I have pulled some similar code that I would like to use but do not know how to modify it to be either assigned to a user: npq or to the role ntq_ro.
    create or replace trigger logon_time after logon on database
    begin
    if to_char(sysdate,'HH24') between 4 and 24
    then
    raise_application_error(-20001,'Not allowed to logon database during this time');
    end if;
    end
    /

    yes, I would love to all by command line...
    Bere in mind I change to to test...
    SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER
    2 LOGON ON DATABASE
    3 BEGIN
    4 if to_char(sysdate,'HH24') between '14' and '16' AND USER='NPQ' THEN
    5 raise_application_error(-20001,'Not allowed to logon database during this time');
    6 end if;
    7 end;
    8 /
    Trigger created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@kali ~]$ sqlplus
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Jan 10 14:41:02 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter user-name: npq
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Alert log triggered errors:
    Mon Jan 10 14:41:10 2011
    Errors in file /u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Not allowed to logon database during this time
    ORA-06512: at line 3
    /u01/app/oracle/admin/NASARPT/udump/nasarpt_ora_17508.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name: Linux
    Node name: kali.mtsallstream.com
    Release: 2.6.18-164.6.1.el5
    Version: #1 SMP Tue Oct 27 11:28:30 EDT 2009
    Machine: x86_64
    Instance name: NASARPT
    Redo thread mounted by this instance: 1
    Oracle process number: 31
    Unix process pid: 17508, image: [email protected] (TNS V1-V3)
    *** ACTION NAME:() 2011-01-10 14:41:10.293
    *** MODULE NAME:([email protected] (TNS V1-V3)) 2011-01-10 14:41:10.293
    *** SERVICE NAME:(SYS$USERS) 2011-01-10 14:41:10.293
    *** SESSION ID:(54.49496) 2011-01-10 14:41:10.293
    Skipped error 604 during the execution of SYS.LOGON_TIME_RESTRICTION_NPQ
    *** 2011-01-10 14:41:10.293
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: Not allowed to logon database during this time
    ORA-06512: at line 3
    I also tried the setting for the to_num but it would not even compile:
    SQL> CREATE OR REPLACE TRIGGER "SYS".LOGON_TIME_RESTRICTION_NPQ AFTER LOGON ON DATABASE
    2 BEGIN
    3 if to_num(to_char(sysdate,'hh24miss')) between '000001' and '040000' AND USER='NPQ' then
    4 raise_application_error(-20001,'Not allowed to logon database during this time');
    5 end if;
    6 end;
    7 /
    Warning: Trigger created with compilation errors.
    SQL>

  • How to find out if a user is logged into a windows XP or VISTA machine

    Hi,
    Could somebody please tell me how to find out remotely over a LAN, whether a user is logged into a computer that is running windows XP/VISTA or not? How can this be programmatically done if we know the name of the remote machine?
    Thanks.
    Ravisara

    Hi,
    Thanks for all the replies.
    Actually it seems that my question has either been misunderstood or has been badly phrased by me.
    What I want to know precisely is the way to find out if a user is logged into a machine or not. Say for example in a LAN there are three computers called A, B and C. If my Java program is running on machine C, how can the program check whether a user is logged into machine A? Assuming JRE is present in all three machines, the machines have as their OS windows XP or VISTA and all machines are connected to a windows domain(Windows 2003 server based network)
    The idea here is to identify all the computers in a network that users are not logged into and then to remotely shutdown those computers in order to minimize wastage of electricity(preferably after a particular time of the day in an organization).
    Any replies would be much appreciated.
    Kind regards,
    Ravisara

  • List of users who logged into database

    Hi All.
    I want to know the list of users who logged in to database and the list of users for whom the password authentication is failed.
    I think we can get the logged in users information from v$session but i am trying to find the users list who failed to log in to the database with password authentication failure.
    Please help me...
    Thanks & Regards,
    Rajesh Amathi

    Hi,
    I suggest use trigger on system logon event. This is for general situation.
    Ex:
    create table user_log
    user_id varchar2(30),
    session_id number(8),
    host varchar2(30),
    last_program varchar2(48),
    last_action varchar2(32),
    last_module varchar2(32),
    logon_day date,
    logon_time varchar2(10),
    logoff_day date,
    logoff_time varchar2(10),
    elapsed_minutes number(8)
    create or replace trigger logon_audit_trigger
    AFTER LOGON ON DATABASE
    BEGIN
    insert into user_log values(
    user,
    sys_context('USERENV','SESSIONID'),
    sys_context('USERENV','HOST'),
    null,
    null,
    null,
    sysdate,
    to_char(sysdate, 'hh24:mi:ss'),
    null,
    null,
    null
    END;
    For unsuccessful logons:
    CREATE TABLE connection_audit (login_date DATE, user_name VARCHAR2(30));
    -- trigger to trap unsuccessful logons
    CREATE OR REPLACE TRIGGER logon_failures
    AFTER SERVERERROR
    ON DATABASE
    BEGIN
    IF (IS_SERVERERROR(1017)) THEN
    INSERT INTO connection_audit (login_date, user_name) VALUES(SYSDATE, 'ORA-1017');
    END IF;
    END logon_failures;
    Please refer for more several combination: http://psoug.org/reference/system_trigger.html
    Edited by: Ulfet Tanriverdiyev on Jul 7, 2010 10:49 PM

  • Move a query to from one user group to another user group

    Hi,
    it's possible to move a query (SQ01) from one user group to another user group ??
    Thank you.

    Hi,
    You can copy queries only if you have the authorization to make changes. Within your current user group, you can copy all queries. However, queries of other user groups can only be copied if the InfoSet used to define the query is assigned to both user groups.
    To copy a query, proceed as follows:
    1. Choose the name of the query you want to copy on the initial screen.
    If you do not know the name, use the directory functions to display the query directories and then choose a query to copy from there.
    2. Choose Copy.
    3. Enter the name and the user group of the query that you want to copy in the dialog box. Furthermore, you must enter a name for the copied query. The system proposes values for this.
    4. Choose Continue.
    This takes you to the initial screen. The query is added and appears in the query directory. You can now continue.
    Regards,
    Amit

  • Users cannot log into Remote Desktop after 3/11/2015 update!

    I have a simple network where users can log into a Windows SBS 2008 server with Remote Desktop to access various applications.  This worked quite smoothly until this morning, after the updates of last evening. (3/11/2015)
    When users tried to log into the Remote Desktop this morning their credentials were rejected, as if their username and/or password were incorrect.  Even I (as the administrator) could not log in remotely.  Finally I connected a monitor and keyboard
    directly to the server and was able to log in without an issue.  After logging in directly I was able to connect through remote desktop.
    This method worked for my other users as well - after I logged them in directly they were able to use remote desktop no problem.
    The trouble is that I have a couple dozen users, and this is an issue that should not be occurring.  What happened in the last update to cause remote desktop to reject users credentials?  Why does it only work after the user logs in directly? 
    And most importantly, how do I fix this?
    A few notes:
    Simply browsing for files on the server also asks for the user's name and password, and this works as well.  This is only a remote desktop issue.
    I have already checked to make sure the domain was correct.  It was.
    I have already checked to make sure the usernames and passwords were correct.  They were.
    I have already checked to make sure this was not a unique issue for a single (or limited number) of users.  This issue effected
    all users all the network.
    Thank you very much for your help,
    Dustin

    I'm curious here...  If the server is rebooted, does it put the RDS users back into a "credentials failed" situation?  If so, could you please have them log in with credentials:
    domain.local\username    (I suspect they may be currently using domain\username)
    and see if that fixes the RDS problem without having to first log into the server directly.
     The ".local" may be ".lan" or ".somethingelse" depending on how you initially configured your domain, but the default for SBS 2008 is ".local"
    Merv Porter
    =========================
    That's a good question - the server will auto-reboot this evening and I'll test again in the morning. 
    You are correct that we've been using domain\username.  I tried domain.local\username (which is the way we've set up), and that did not work either.
    I'll let you know how things turn out tomorrow morning.  I don't want to mess with my users anymore today. :P
    Dustin

Maybe you are looking for

  • How to paint image in the JInternalFrame Urgent plz

    sir i want to draw a image on the back side of the JInternalFrame how can i do I do this job by using the following code import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; public class MyInternalFrame exten

  • How to make the fields of BPM object not saved in database.

    Is it possible to declare some attributes of BPM object not saved in database. For example: Order has attribute orderId and date, user (other attributes)... we only want OBPM save orderId. We want the other attributes could be saved and retrieved by

  • Way to extract files from TM Backup from another Mac?

    Earlier this week my 2mo old work iMac's HDD got corrupted. I took the iMac into an Apple store and they decided it needed a new hard drive. Luckily, I use Time Machine on a constant basis so I have a backup of all my work files. However, while the i

  • Invoice clearing in Lock Box - FIFO basis

    hi experts, My client wants that for specific customer, all those outstanding invoices  be cleared with one payments received via check, that were received first, automatically. In other words, the stream of incoming payments will keep  clearing a se

  • Availability Check considering SLED

    Hi All, I want the system to consider the SLED of batches during my MRP. Suppose i have Material X 1000 kg in Batch Y which will expire on 28-02-09. I have requirements of 150,200,400 kgs in Jan 09 , Feb 09 & march 09 respectively. While running MRP