Display Active users and there username

Hi im really stuck im trying to build a small chat
application for my website but iv come across somthing which has
really stumped me i need to be able to display how many active
users are currently in each chatroom but also there usernames any
advice would be good as im pulling my hair out

The following query finds all the responsibilities that are assigned to a user. This query can be useful if you want to know if a user has a particular responsibility or any responsibility that has been end dated. However, if you just want to see the current "Active" responsibilities of the user, uncomment the "FURG.END_DATE" condition (very bottom line of the query).
In the following example, I used "AMOHSIN" as my user name to list all my responsibilities.
-- Query to find all responsibilities of a user
SELECT fu.user_name                "User Name",
frt.responsibility_name "Responsibility Name",
       furg.start_date             "Start Date",
       furg.end_date               "End Date",      
       fr.responsibility_key       "Responsibility Key",
fa.application_short_name "Application Short Name"
FROM fnd_user_resp_groups_direct        furg,
       applsys.fnd_user                   fu,
applsys.fnd_responsibility_tl frt,
applsys.fnd_responsibility fr,
       applsys.fnd_application_tl         fat,
applsys.fnd_application fa
WHERE furg.user_id             = fu.user_id
AND furg.responsibility_id   =  frt.responsibility_id
AND fr.responsibility_id     =  frt.responsibility_id
AND fa.application_id        = fat.application_id
AND fr.application_id        =  fat.application_id
AND frt.language             =  USERENV('LANG')
AND UPPER(fu.user_name)      =  UPPER('AMOHSIN')  -- <change it>
-- AND (furg.end_date IS NULL OR furg.end_date >= TRUNC(SYSDATE))
  ORDER BY frt.responsibility_name;
source:- Oracle Apps R12 Help: Query to find all responsibilities of a user
ApPsMaStI
sharing is Caring

Similar Messages

  • Active users and responsibilities r12

    Is there a query for R12 of oracle EBS to list all active users and the responsibilities they have been assigned to? I only want to data to return the list of responsibilities for active users, i.e. those without an end_date.

    The following query finds all the responsibilities that are assigned to a user. This query can be useful if you want to know if a user has a particular responsibility or any responsibility that has been end dated. However, if you just want to see the current "Active" responsibilities of the user, uncomment the "FURG.END_DATE" condition (very bottom line of the query).
    In the following example, I used "AMOHSIN" as my user name to list all my responsibilities.
    -- Query to find all responsibilities of a user
    SELECT fu.user_name                "User Name",
    frt.responsibility_name "Responsibility Name",
           furg.start_date             "Start Date",
           furg.end_date               "End Date",      
           fr.responsibility_key       "Responsibility Key",
    fa.application_short_name "Application Short Name"
    FROM fnd_user_resp_groups_direct        furg,
           applsys.fnd_user                   fu,
    applsys.fnd_responsibility_tl frt,
    applsys.fnd_responsibility fr,
           applsys.fnd_application_tl         fat,
    applsys.fnd_application fa
    WHERE furg.user_id             = fu.user_id
    AND furg.responsibility_id   =  frt.responsibility_id
    AND fr.responsibility_id     =  frt.responsibility_id
    AND fa.application_id        = fat.application_id
    AND fr.application_id        =  fat.application_id
    AND frt.language             =  USERENV('LANG')
    AND UPPER(fu.user_name)      =  UPPER('AMOHSIN')  -- <change it>
    -- AND (furg.end_date IS NULL OR furg.end_date >= TRUNC(SYSDATE))
      ORDER BY frt.responsibility_name;
    source:- Oracle Apps R12 Help: Query to find all responsibilities of a user
    ApPsMaStI
    sharing is Caring

  • Admin Console not displaying new Users and Groups from LDAP

    We created a new Realm in WebLogic, which specifies the location of the Netscape
    LDAP server. Our Weblogic application, called TGSLC, is able to find the ldap
    server to use for authentication. My problem is this- the Admin Console is not
    displaying the new users and groups from the LDAP server. Shouldn't the WebLogic
    Admin Console display any users and groups specified in the ldap server, which
    is referenced in the customized Realm?

    Hi Andy,
    I am not sure why you are unable to see the users and groups through the
    console., you should be able to. Can you post the config.xml?
    thanks,
    -satya
    Andy Levy <[email protected]> wrote in message
    news:3b700c36$[email protected]..
    >
    We're running WLS 6.0 Sp2 on Windows 2000 Professional.
    "Satya Ghattu" <[email protected]> wrote:
    Andy,
    Could you please tell us what Version of Weblogic you are running?
    thanks,
    -satya
    Andy Levy <[email protected]> wrote in message
    news:[email protected]..
    We created a new Realm in WebLogic, which specifies the location ofthe
    Netscape
    LDAP server. Our Weblogic application, called TGSLC, is able to findthe
    ldap
    server to use for authentication. My problem is this- the Admin
    Console
    is not
    displaying the new users and groups from the LDAP server. Shouldn'tthe
    WebLogic
    Admin Console display any users and groups specified in the ldap
    server,
    which
    is referenced in the customized Realm?

  • Active users and connections in v$session

    How can I write an SQL script or query to find the following :
    1. The total number of times a user called BRIGG connects to the database in a day(24 hour period)
    2. The STATUS in V$SESSION could be ACTIVE or INACTIVE. I needed to track as to how many times, the user BRIGG was ACTIVE on a given day(24 hour period)
    Thanks

    1.
    You can audit user logons with the database trigger and then run sql over your own audit table (http://www.dba-oracle.com/art_builder_sec_audit.htm)
    or
    you can use oracle audit trail (http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/audit.htm#1108)
    to audit brigg's session using
    audit session by brigg;
    Check out this article - http://www.securityfocus.com/infocus/1689
    2. I don't think there is straightforward way to do it. You can wite the procedure or script to
    select sysdate,status,username from v$session where username ='BRIGG' ;
    run it at desired interval (i.e every second) and capture the output in the table for the later analysis.
    What are you trying to achive by 2? I don't see a lot of sense in monitoring ACTIVE/INACTIVE status of the session - what kind of infromation are you trying to extract from it? May be there is another way ...
    Mike

  • Mac Pro 2008 Apple Cinema Displays are black and there are start up issues

    I have a Mac Pro 2008 Dual quad 2.8 GHz. I have two Apple Cinema Displays (graphics are the standard ATI Radeon HD 2600 – 2 dual link DVI. I have 4 2-GB RAM sticks (8 GB total).
    Neither of my displays are showing anything. Their power lights are on but they are completely black throughout the start up process. In addition when I try to boot up with both graphics cards installed, I get nothing – no beeps no chimes. If just one card is installed (either card in either slot) the computer beeps, chimes and makes the sounds of booting up, but not a flicker on the displays. RAM does not seem to be the issue as I have tried booting with several configurations of RAM sticks with no negative or positive effects. I tried booting up with Hard Drives 1 & 2 removed with no effect.  I have tried several different start up moods and have reset PRAM.
    My guess is that there is something wrong with the motherboard. Or is it possible that both graphics cards are bad?

    The "least intensive" thing you can do is hold down Alt/Option at Startup. Thsi invokes the all-in-ROM Startup Manager, which will light up the screen gray or blue, then attempt to draw an Icon for each potentially-bootable Volume attached (if any). It works as if in slow motion, so you must be patient. If no activity after about two minutes you may count that as a failure.
    The next most intensive is to attempt to boot from an incorruptible source of software, such as an Installer/Utilities DVD. This again uses the "one-size-fits-all" display driver, and attempts to load software off the DVD. The dark colored Apple is loaded off a drive -- it is not present inside your Mac.
    The next most intensive step is to attempt to boot into Safe Mode. This also uses the "one-size-fits-all" display Driver, and does a disk check as it starts up, adding five minutes to the startup time. It then drwas a login screen and deamds your username and password, even if you normally auto-login.

  • Can't drad psd file or image file to illustrator CS6; PC user, and there is no Font X plug-in

    I've searched for the answers, but there is no "Font X" plug-in PC to disable, whatelse should I do?
    I just install the HotDoor plug-in dimension tool, and it is too important for me to disable it.

    You may be dragin to a locked layer.
    Try enabling > layers palette >> paste remembers layers
    This would fix that in most cases as Ilustrator would create a new layer one for your dropped image, since threre was no layer to remeber when using the place command (or drag and drop).
    If thsi does nto solve your problem, can you let us knwo if file >> place is greyed out?

  • I have the problem described in /forums/knowledge-base-articles/704725. (Firefox is already running but not responding). My only solution is to use Task Manager to end the firerfox process. I am the only user and there are no other profiles on my system

    Occasionally I have the problem discussed in /forums/knowledge-base-articles/704725 , Firefox is already running. My only fix is to use Task Manager to end the firefox process. At such tmes, I have no other instances running.

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

  • Active Directory Users and Computer not displaying column data?

    I am running Windows 8.1 Enterprise with RSAT installed.  My Domain controllers are Server 2008 R2.
    I am having and issue with Active Directory Users and Computers.  Typically I will turn on Advanced Features and then add Columns for Email address and Display Name.  This for example allows me to easily export lists of users and there email
    addresses among other things.
    The issue is that on my Windows 8.1 client, the columns for Email and Display Name are empty.  It simply will not display this information.  It only displays Name, TYpe and Description.
    If I use a Windows 7 client, the information displays correctly.
    Has anyone run into this issue or heard of this problem when using ADUC on Windows 8.1?

    ADUC is an AD tool that is no longer being improved, with Microsoft now focusing on ADAC (Administrative Center). In 8.1, it has improved quite a bit since 7. You can also just try using the
    ActiveDirectory PowerShell Module, which is easy to use and fairly powerful. It can be simple to export lists, and the module for AD is included with RSAT tools.
    Example:
    Import-Module ActiveDirectory
    Get-ADUser -Filter {Manager -eq "John.Smith"} -Properties DisplayName,Mail | Export-Csv dump.csv -NoTypeInformation
    So, recommendation: either use ADAC, or PowerShell -- ADUC is part of the wave of deprecation.

  • Displaying active and inactive links in a table.

    Hi all,
    I'm trying to display active links and inactive links in a table.  The problem that I have is that the inactive links are grey, I would like them to appear like normal text in a textview.  From what I understand, I can't have two different celleditor types in the same column, so there goes that idea.
    Does any one have any suggestions on how I may be able to display this intermixing?

    Hi Michael,
    you're right, as for now there is only one cell editor assotiated with one column, probably in near future that won't change.
    Maybe you should try to change the stylesheet of your application?
    Best reagrds,
    Christian

  • User and group names truncated with ls

    Hello,
    When using the 'ls -l' command the resulting list truncates user and group names that are longer than 8 characters.
    Is this a know issue?
    I'm running Mac OS 10.4.10.
    Thanks,
    Anthony

    Jun T. wrote:
    If a program like "ls" wants to know the username corresponding to the uid, it must call a library function of the operating system. But there are two library functions, one gives the correct username and the other truncates the username.
    The basic library function is getpwuid(3) which returns the correct username.
    Hello Jun,
    I ran a search using Xfind (Rixstep) on /bin for 'userfromuid' and /bin/ls was listed as I might of expected.
    Also, /bin/ls was also listed when 'getpwuid' was used as a search Key.
    Peeking further into /bin/ls further with Xstrings (which is Rickstep's "adaptation" of the "strings' tool" ) reveals the string '_ getpwuid'.
    Does this mean that at some point the 'ls' command can call the getpwuid() directly under some circumstances rather than going through userfromuid() which relies on the cache you mentioned?
    The problem is the size of the table; userfromuid() allocates only 8
    characters for each username (the number 8 comes from UT_NAMESIZE in /
    usr/include/utmp.h), and truncates the username if it is longer. This
    may be "fixed" in a future version; or it may not be "fixed" to keep
    backward compatibility. I'm not sure.
    I've heard that utmpx.h has 'UTXUSERSIZE' which is defined as 32. Does not that allow for user and group names larger than 8 characters?
    By the way, I can't find the directory usr/include/utmp.h on my drive.
    Is there a way to reset or redefine this 'UT_NAMESIZE' field to more than 8 characters wherever the userfromuid() function stores it?
    The commands "users", "who", and "w" read the file /var/run/utmp, in
    which truncatd usernames of the currently logged-in users are saved.
    Does some command initially call the function as 'ls', userfromuid(), to result in truncated names being saved in file /var/run/utmp as well?
    I think there are many programs which depend on this fixed-width utmp
    file, so it may not be "fixed" in a future version. "
    I believe there are third party tools which rely on the userfromuid() call which require this bug to be fixed in order to display accurate user and group name data.
    Thanks for your informative reply,
    Anthony

  • Managing Disco Users and reports

    Hi,
    I am finding it very difficult to manage the increasing discoverer users and reports.
    I need to develop a tool or process to report, manage Discoverer active users and reporting for license compliance.
    How to review user reports for possible deletion/preservation and final deletion of a user database logon?
    How to delete a list of users?
    How to preserve any shared reports that are actually used.?
    How to clean up and delete their unused reports?
    How to report: all active in a year (in last 6 months rolling), top 50, inactive?
    any suggestions on how to get started with this?
    Visakh

    Marcelo,
    You can manager users using EUSM (executable) found on the oid/ovd installation. Global/local role has to be created on the database side. All EUS mapping can be done on the OID or OVD side using "eusm". There is a metalink note that gives lots of examples on this. Or you can also use enterprise manager grid control that lets you do the same.
    As or OVD vs. OID, I am not aware of any major limitations. just operational limitations. Since OID is a ldap server by itself, you can do a lot of tracing/auditing yourself instead of relying on other LDAP admins (unless you manage other ldap servers also). We are currently implementing oid 11.1.1.2 for EUS and I know of my previous employer who is in the middle of implementing OVD 11g (with sun one directory).
    Regards,
    Shaji
    http://www.linkedin.com/in/shajivps

  • Uptime command in terminal displays 2 users?

    Hello everyone,
    When I type in "uptime" in terminal I get this message back:
    20:54 up 14:34, 2 users, load averages: 0.08 0.11 0.13. Does anyone know why it would register 2 users when I am the only user and there are no other accounts enabled?

    Your machine is special!
    Anyways, I sorry that my post aren't clear, english is my second language. My primary language is UNIX.
    I thought I'd post a snippet of /private/etc/ttys->
    # @(#)ttys 5.2 (Berkeley) 6/10/93
    # name getty type status comments
    # To secure single-user mode, enable Firmware password protection.
    # http://docs.info.apple.com/article.html?artnum=106482
    #console "/usr/libexec/getty std.57600" vt100 on secure
    console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow" vt100 on secure onoption="/usr/libexec/getty std.9600"
    Interestingly, not on my machines:
    Last login: Tue May 18 14:32:09 on ttys000
    And?

  • Oracle users and revoking privileges

    Hello,
    To test out some error conditions in an application, I'd like to temporarily revoke a privilege on a table from a database user.
    I am trying to do that, logged into SQL*Plus as "sys" or "system", and running the command:
    REVOKE UPDATE ON USERX.TABLE_A FROM USERX;
    However, this is failing with the following message:
    ORA-01927: cannot REVOKE privileges you did not grant
    I've also tried logging into my server as oracle, typing "sqlplus /nolog" at the command line, then "connect internal as sysdba;" from the SQL*Plus prompt, and then running the REVOKE command, but that results in the same error message.
    So basically my question is: if neither the "sys" nor the "system" user is able to revoke the privilege from the "userx" user (because they did not specifically grant it), how would I determine which oracle user would be able to do this? Or how else would I go about revoking the privilege?
    I'm running Oracle8i Enterprise Edition Release 8.1.6.1.0 on Linux.
    Thanks for your help with this. I am not very familiar with Oracle DBA concepts.

    Hello,
    I am fully agree with Eric....Yes! a User created a table means...the User is OWNER of the table....and that means......the User is by default having the privilege of DML operations...i belive...OK
    And the privilege which you have not granted...then how could you revoke them...Whether it may b e SYS or SYSTEM or for that matter any User a/c.
    If you really want to restrict the restrict option on table owned by your User, then i can suggest to put a Schema Level Trigger on DML action. This will be fired when update in invoked on table by the user and there you can have your STOP mechanism.....BUT..this is not really suggested.
    Regards,
    Kamesh Rastogi
    Oracle - DBA

  • "too many active users"

    Had an MS Access database on a Drobo-FS that a few staff were sharing.  Worked fine.
    Set up a new Lion server mac mini and moved the database to that machine and set up SMB sharing. (server's running 10.7.2 Server).
    Works fine for all afp and smb file-sharing uses *except* for those users who are accessing a Microsoft Access database sitting on a shared volume.   Even if only one user is active, they get "Too Many Active Users" and the database won't open.  I see this when using Access 2007 and/or Access 2010.
    If I drag the access db file from the server to a local volume, it opens and runs fine.
    Guessing it's an edge case for the new smb software in Lion.
    Have reported this to Apple but no solution yet.  If any one has a workaround (or clue), I'd love to hear it.

    The problem is due to Lion not supporting byte level file locking on its implementation of SMB which is required by some older applications such as Excel 2003, Pastel accounting, Caseware and MS Access.. Upgrading the app sometimes fixes it as in Excel. If the latest release does not resolve it then the only way I have found to fix this is to disable SMB sharing in Lion and install a 3rd party SMB sharing stack. I tried Samba but could not get it to work properly even using SMBUp which takes a lot of pain out of the install. I eventually found an app from Thursby.com called Dave which works really well, unfortunately it does not integrate with OpenDir at this stage but you can create users in the local dir for use with Dave while continuing to use OD for other stuf. Ive asked their developers to consider adding LDAP support. If more people ask then they might do it. The big downside is that it is really expensive at over $100.
    I've not tested Lion 10.7.3 update yet to see if it resolves the file locking problem. I plan to test this during the week.

  • Framework to handle users and roles

    hi
    is there any framework that allow to manage security(users and there roles) in swing application

    Swing is a graphic user interface toolkit. What do users and roles have to do with user interfaces?
    Anyway, in Java of course you have a multitude of possibilities at your disposal.
    [check here|http://java.sun.com/javase/technologies/security/]

Maybe you are looking for

  • How to get a custom web safe font

    How do I get a custom web safe font so that it doesnt look pixelated in the preview? Please don't ask for images to "clarify my query".

  • Button is not opening URL in a new window

    I have set the action and the URL and the NEW window ...but nothing opens in Preview or once published...can you help me?

  • How to get a build definition with Online TFS and a shared drop folder

    Hi, We VSTS Premium license. We use online TFS as source control. I want to make a build definition. Use Team Explorer for the same. I get error message when I enter a shared path as my build drop location. Please find below the image showing the dif

  • Thunderbolt confusion - "Daisy Chaining"

    I'm not sure where to ask this as there isn't a subforum dealing with external storage, but here goes: I want to buy 2 x 8TB external thunderbolt HDDs for my rapidly growing iTunes library.   I want Mavericks to see them as 2 seperate 8TB volumes so

  • ITunes U lectures not sorted

    I have a ton of iTunes U content that shows up under the "Music or Podcasts" section of my iTunes library but I can not get it to now show up under the "iTunes U" section. They are not sorting automatically and when I attempt to drag and drop them to