Finding users and departments name

I am using the following query to find all users there department and there responsibilities
SELECT distinct employee_number, full_name,u.user_name, d.name ORGANIZATION_NAME, fr.responsibility_name,
u.START_date, u.end_date FROM apps.per_people_f a, apps.per_assignments_f c, apps.hr_all_organization_units d,
apps.fnd_user u, apps.fnd_user_resp_groups_direct frg,apps.fnd_responsibility_vl fr
WHERE a.person_id = c.person_id AND a.person_id = u.employee_id (+)
AND u.user_id = frg.user_id (+) AND frg.responsibility_id = fr.responsibility_id (+)
AND c.organization_id = d.organization_id
AND SYSDATE BETWEEN a.effective_start_date AND a.effective_end_date
AND SYSDATE BETWEEN c.effective_start_date AND c.effective_end_date
order by d.name
But this query is not fectching all users_id from fnd_user,i need all users list in fnd_user.....can any body help

The query looks fine, just make sure you have a person (From HR) attached to a user and it should work properly then.

Similar Messages

  • 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

  • Restricted Characters: User and Group Names

    I'm going through the documentation for Essbase and I'm trying to find an exhaustive list of all the restricted characters/keywords for User and Group Names.
    I've found what I think is the list for Apps, DBs, Dims, and Dim Members here: Oracle Essbase Database Administrator's Guide
    I've also found a link that says the only restricted character for User names is a backslash: Essbase Administration Services Online Help
    Does anyone know if there are any other restricted characters for User names and Group names? I recently created the user @<>/\:';[]{} in Shared Services. I was surprised that it actually let me do it. I was even able to log into EAS using this user name. However, I couldn't add the Essbase server. However, the user did show up in the Users Table in EAS for that server when I logged in as a different user.
    So, does anyone out there have any info on restricted characters and/or keywords for Users and Groups. Anything on Enterprise ldap systems?

    I'm going through the documentation for Essbase and I'm trying to find an exhaustive list of all the restricted characters/keywords for User and Group Names.
    I've found what I think is the list for Apps, DBs, Dims, and Dim Members here: Oracle Essbase Database Administrator's Guide
    I've also found a link that says the only restricted character for User names is a backslash: Essbase Administration Services Online Help
    Does anyone know if there are any other restricted characters for User names and Group names? I recently created the user @<>/\:';[]{} in Shared Services. I was surprised that it actually let me do it. I was even able to log into EAS using this user name. However, I couldn't add the Essbase server. However, the user did show up in the Users Table in EAS for that server when I logged in as a different user.
    So, does anyone out there have any info on restricted characters and/or keywords for Users and Groups. Anything on Enterprise ldap systems?

  • How to find users and group in sun box

    Please adivce How to find users and group in sunsolaris
    Thanks in advance

    We can get all the group details from /etc/group file .
    Similarly user details can be found in /etc/passwd .

  • How do I find out user and domain names in WL7.0 security

    Hi,
    I'm moving to WL7.0 security and now weblogic.security.acl.Security.getCurrentUser()
    that worked in CompatibilityMode throws NullPointerException. What is the alternative
    to deprecated weblogic.security.acl.Security in the new Weblogic security framework?
    Also, how can I find the current domain name?
    Thanks,
    Michael.

    "Michael Bogomolov" <[email protected]> wrote in message
    news:3ec515ae$[email protected]..
    >
    Hi,
    I'm moving to WL7.0 security and nowweblogic.security.acl.Security.getCurrentUser()
    that worked in CompatibilityMode throws NullPointerException. What is thealternative
    to deprecated weblogic.security.acl.Security in the new Weblogic securityframework?
    >
    See getCurrentSubject in
    http://e-docs.bea.com/wls/docs81/javadocs/weblogic/security/Security.html
    getCurrentUser only works in compatibilty mode

  • Query to Find Table and Column Name by using a value

    Dear Legends,
    I hope and surfed in our forums and google to find the Table Name and Column Name by having a value(Number/String). And my where clauses are
    where owner NOT IN ('SYS','SYSTEM') and
          data_type IN ('CHAR','VARCHAR2','NUMBER')
    May I have your help for building the query. and my query as follows
    select a.owner, c.column_name, c.data_type, c.owner, c.table_name
    from dba_objects a, all_tab_cols c
    where a.owner NOT IN ('SYS','SYSTEM') and
    where c.owner NOT IN ('SYS','SYSTEM') and
    where c.data_type IN ('CHAR','VARCHAR2')
    order by a.owner
    Thanks,
    Karthik

    You can use
    select * from user_tab_columns a, user_tables b
    where a.table_name = b.table_name
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR');
    Or if you want to user DBA_* tables, you can use.
    select * from dba_tab_columns a, dba_tables b
    where a.table_name = b.table_name
    and a.owner = b.owner
    and  a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and b.owner not in ('SYS', 'SYSTEM');
    And now when I look a bit more closely, you don't need DBA_TABLES there. dba_tab_columns alone is sufficient. And requirement is still not clear yet. Why you need a group by there? If I get it right, you can use this.
    select * from dba_tab_columns a
    where a.data_type in ('NUMBER', 'VARCHAR2', 'NCHAR', 'CHAR')
    and a.owner not in ('SYS', 'SYSTEM');
    Whether you use group by or not, the query will give you the same output.
    Ishan

  • Find user and event from auditor

    Hello friends,
    ill need your help for this situation,
    some user deleted a particular report today, is it possible to find out which user deleted this report (i know the reports name)? Also is it possible to list all the reports deleted in a particular day and user who deleted it?  i am looking for the report itself and not the instances of the report.
    we are running BO 3.1 SP5 with auditor enabled
    thanks

    Dear all,
    Be sure you have enabled the Audit event "Delete".
    In XI 3.1 you can do that in the Servers Area of the CMC, in the Audit Events of the CMS.
    After that, create a new report (eg with Web Intelligence) based on the Activity universe.
    You'll be able to select : User - Audit Event - timestamp, and filter on the "delete" audit event
    Hans

  • Find resources and resource name

    I'm using LV6i and I'm a little bit unhappy with that new data type VISA
    resource name which is input to the VISAOpen VI.
    If I use the FindResource VI, it returns a list with all the found
    resources. How can I select out of this list and wire the result to VISA
    resource name input. Is there a function to convert string into
    VISAResourceName? I found only VISAResource controls and constants, aren't
    there any conversion functions? If not, FindResources is useless, cause you
    can't use that information for further processing.
    Second question: Is the VISA Resource control a hidden FindResource because
    it offers me some resources in my system, but not all of them (in fact, it
    offers me COM1 and LPT1 but not GPIB).
    Last but not least a question
    of a more programming philosophy nature: If I
    execute a VISAOpen to a instrument on the GPIB bus, it changes into remote
    operation. But why does the VISAClose not the exact reverse the VISAOpen,
    e.g sends a GoToLocal to the device, so that the instrument returns into
    initial condition ? I find it more consistent to leave a VISA execution
    chain with device on local. If I want to set a device into local I have to
    use the Misc VI with loc xx input. And this VI doesn't use the VISA resource
    name but a string. That's rather inconsistent.
    Any opinions?
    Oliver Friedrich

    Okay, first, I put strings into VISA resources all the time. A VISA resource name is a special type of string. Create a VISA Resource Name control and then create a local variable from it. Wire your string to the local variable. When the program is run the string will be transferred in to the VISA Resource Name control. Be sure to enable the Allow Undefined Names in the VISA Resource.
    A VISA resource control only lists VISA resources that have been defined in NI VISA. If you have another type of VISA loaded on the system, or have not defined aliases in MAX, then they will not show up in the VISA Resource Control. Yes, this is annoying.
    I personally would not like VISA close to send a device back to local mode. I do not like languages (or word processors - hear
    this Microshaft?), that assume they know what I want to do. There is much more flexibility in letting the user decide when to go to local mode. If you want a close VI that also goes to local, then write your own library routine that does this.
    Rob

  • Finding column and table name

    Hi,
    I need to find out that '101c_0000000018' value is which column and table of database.
    Is there a way to find it? I am looking for table and column which is storing this data.
    Thanks
    Sandy

    It's possible but performance is going to be horrible.
    Assuming the data is stored in a CHAR or VARCHAR2 column, something like
    DECLARE
      l_value VARCHAR2(100) := '101c_0000000018' ;
      l_cnt   PLS_INTEGER;
      l_sql    VARCHAR2(1000);
    BEGIN
      FOR x IN (
          SELECT table_name, column_name
            FROM dba_tab_cols
           WHERE owner = <<name of schema>>
             AND data_type IN ('CHAR', 'VARCHAR2' )
      LOOP
        l_sql := 'SELECT COUNT(*) FROM ' || x.owner || '.' || x.table_name || ' WHERE ' || x.column_name || ' = :1';
        EXECUTE IMMEDIATE l_sql
          INTO l_cnt
         USING l_value;
        IF( l_cnt > 0 )
        THEN
          dbms_output.put_line( 'Found the value ' || l_value || ' in owner = ' || x.owner || ' table name = ' || x.table_name || ' column name = ' || x.column_name );
        END IF;
      END LOOP;
    END;Justin
    Edited by: Justin Cave on Dec 8, 2011 12:20 PM

  • How to find username and tablespace name indatapump import

    I have a datapump export without the logfile .I would like to import it into a db.Before starting import I would like to know the schema and tablespace which it is exported so that I can remap the schema and tablespace to some other.Is there anyway I can do this

    You can run your import command but add this:
    include=tablespace,user sqlfile=look.sql
    The file look.sql will have the create tablespace commands and the create user commands.
    Edit look.sql to see what the tablespace and user names are.
    Dean

  • Changing 'main' user and computer name

    Hi everybody!
    I got an older iBook from my sis. I'm trying to remove her stuff and clean it up a bit for my use. Is there a way to change the main user account so the computer isn't in her name anymore? I tried creating a new admin account, but I can't delete the first account. Also I can't change the computer name on the main log in screen. Any suggestions?
    I was thinking about bringing it in to a store. I'm sure they can do it quick fast in a hurry.
    cheers.

    Hi, and welcome to Apple Discussions.
    Matt Clifton has given his suggestions here:
    http://discussions.apple.com/thread.jspa?threadID=1076960
    You need to log out and log back in with the new account in order to delete the old one.
    (It really isn't necessary to delete the other account unless you need the hard drive space. You can simply choose to have it automatically log in to your account and not the old one.)
    To change the computer's name go to System Preferences > Sharing and change the computer's name there.

  • EDK/PRC  way to find user and his groups

    I need the infomation about the current userID and username who is logged in and his groups (name of group) in a portlet.
    If I call this function "ipContext.getRemotePortalSession();" the Tomcat Log write a JasperException.
    What's wrong?
    IPortletContext ipContext = PortletContextFactory.createPortletContext(request, response);
    IRemoteSession irSession = ipContext.getRemotePortalSession();
    IUserManager userManager = irSession.getUserManager();
    int[] userGroupIDs = userManager.getCurrentUserGroups();
    intuserID = userManager.getCurrentUserID();

    We use the PT Portal version 5.02 with Hotfix #137075
    The stacktrace in tomcat log:
    Remark: The "topNNews_jsp" is the JSP for the portlet.
    2004-08-11 17:07:52 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionorg.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)----- Root Cause -----javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.topNNews_jsp._jspService(topNNews_jsp.java:199) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

  • Detecting user and domain name

    I am developing an application that will have an autologin option based on OS current logged user.
    How do I determine what the domain name is in Windows?
    Thanks

    This link has the native windows code to retreive domain name:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;111544
    Use JNI.

  • Find transaction and exit name from the name of include program

    hai
    i want to know the transaction that is executing
    the exit which includes the include name
    as "LVKMPFZ2"
    can anyone tell me the procedure (dont forget steps )
    to know the transaction
    (but this program is include SAP automatic credit control configuration)

    Hi
    Try TSP01-Suffix2
    Regards
    Raj

  • Name in Find User Results Form

    Hi:
    I need to hide (or quit) the first column (Name) in Find User Results Form. It is possible?. There is a function that indicates all of columns, but the first column is not there.
    If is not possible to hide or quit it, can i move it to another position?
    Any idea?
    Thanks.
    MJ.

    Here is the summary:
    To set attribute view visibility/query indexing/accounts list view,
    edit in UserUIConfig.xml ->
    SummaryAttrNames
    QueryableAttrNames
    AppletColumns
    To modify Accounts Find Users and search results,
    edit idm/sample/userSearchDefaults.xml
    getSearchableAttrs
    getResultColumns
    If you do this method, you will not need to edit
    Find User Form
    OR
    Find User Results Form !
    This simplifies the problem greatly.
    I hope this helps somebody, because i didn't get any info from the forums.
    -jason

Maybe you are looking for

  • IPhone 6 Battery Usage setting not working.

    When I go to my setting and check my Battery Usage setting it states: "Battery information will be available after using iPhone for a few minutes". I've been using it for hours and I get the same response when I go to the setting. I've turned off my

  • Videos won't play in iPhoto

    I'm on Mac OS 10.6.8 and on iPhoto 7.1.5.  Quick Time no longer opens when I select a video to watch.  Nothing happens.  Anyone have a solution?

  • Estimation in Projects with reference to materials and expenses

    Dear Experts, Currently am undergoing a project implementation for a manufacturing industry also a construction firm. The client has a specific requirement from project system. They get a various constructions projects inquiry (they also deal with th

  • Using spry datasets with Googlemaps

    I am using googlemaps with XML as the data source. I want to have a spry data grid under my map that shows all of the map points. I am already parsing the map point's XML into a javascript array. Is it possible to use this array to populate a spry da

  • My keypad is unresponsive since up updating to ios 7

    HI since updating to ios 7 yesterday , my keypad for messaging doesnt work correctly , theres a 5 second delay ..any ideas ?