Retrieving Local User Logged In to Oracle Apps

Hi,
I have a report that issues Employee Payslips. I need to modify it so the user submitting the request will only be able to view his/her payslip.
I have the following bit of code:
SELECT distinct user_id
FROM v$session vs, v$process vp, fnd_logins fl
WHERE vp.addr = vs.paddr
  AND fl.spid = vs.process
  AND vs.sid=(select distinct sid from v$mystat)I also tried linking V$SESSION, V$PROCESS, and FND_CONCURRENT_REQUESTS using oracle_process_id and oracle_session_id.
The problem is neither is returning any results. When linking V$SESSION and V$PROCESS alone, I get one record, which is what I need. But upon adding FND_LOGINS to the equation, no records are retrieved.
So my question is, is there another way to be able to get the User_ID (that can be linked in FND_USER) of the session? I've looked up previous threads and articles but none of the solutions worked.
Thanks.

The main idea of the report is that a user logs into Oracle Applications and submits a request. The code in the report linked to this request has to get the username that the user logged in with and use it to retrieve only information that are related to that user.
When taking the record with SID from sys_context, the data in V$SESSION are actually related to the server not the user so they're the same for all users.
Executing the following query:
select username, osuer, machine, user#
from v$session
where SID = sys_context('USERENV', SID);Returns the following:
USERNAME: APPS
OSUSER: applqa
MACHINE: ebusdev1
USER#: 183Same with sys_context('USERENV', SESSIONID'). And linking it to FND_LOGINS using the PROCESS column returns no data.

Similar Messages

  • Adding a domain user to the admin role within the local user management breaks all metro apps for all users!!

    Hi,
    I have posted this in another large thread under the "Windows 8 General" group but have not had any appropriate feedback from MS.
    After hours of testing and working with other users I have managed to isolate a simple situation that breaks all metro ui applications within Windows 8 for all users on the machine. Here are my exact steps and notes.
    Before continuing if you are running Avast then your solution may be to turn of the behaviour shield functionality as this also breaks metro apps. This is NOT the problem we are having!
    I have performed 3 cleans installs after isolating the problem and am able to reproduce the issue every time using the same steps on two different machines. 
    First thing to say is that for us it has nothing to do with simply joining the domain, domain/group policies nor does it appear to have anything to do with the software we installed, the problem here is much more simple but the result is pretty terrible.
    Here are my exact steps of what I did to reproduce our problem:
    Complete format of HDD in preperation for a clean install
    Clean install performed
    Set up the machine initially with a local account
    Test metro apps - all working fine
    Open control panel from the desktop, click on System, change the system to join the domain, click reboot
    Log into the system using my domain account
    Test metro apps - all working fine
    Here's were the problem starts. I need my domain account to have admin rights on the local machine so I can install programs without the IT men having to come over and enter their password every 5 mins.
    I go to control panel via the desktop and click on User Accounts. From with here I then click on "Manage User Accounts". This requires the IT guys to enter their details to give me access to such functionality. This is fine
    In the dialog box that opens I can only see the local user that was initially created during setup. The "Group" for this local account shows as "Administrators" - Image included below (important to note that metro apps are working at this point)
    I click add and then add my domain account - also giving it administrator access
    Sign off or reboot to ensure the new security is applied
    Sign back in to the domain account
    Test metro - ALL BROKEN
    Sign out
    Sign in as local account
    Test Metro - NOW ALL BROKEN FOR THIS USER ALSO
    So as soon as I add my domain account to the local user accounts and set it as admin it breaks all metro apps for all users. This is on a totally clean install with nothing at all installed other than the OS.
    Annoyingly if I go back and change the domain account to a standard user or if I totally remove the domain account from the local account management system the problem does not go away for either user. basically it is now permanently broken. The only fix I
    could fathom was a full re install and not giving the domain user admin access to the local  machine.
    Screen one - this is the local user accounts window AFTER joining the domain and logging in with my domain account (All metro apps working at this point)
    Screen 2: User accounts AFTER joining the domain and AFTER adding domain account to local user management (METRO BROKEN)
    I have isolated my machine from all group policies so nothing like that is affecting me. Users I have spoken to in different companies have policies that automatically add users to the local user management. This means that metro apps break as
    soon as they join the domain which leads them to wrongly think it is group policies causing the error. Once they isolate themselves from this they can reproduce following my steps.
    Thanks

    Hi Juke,
    Thank you for the response and apologies for the delay in getting back to you. My machine was running a long task so I couldn't try your suggested solution.
    I had already tried running the registry merge suggested at the top of the thread to no avail. I had not tried deleting the OLE key totally so I did that and the problem still exists. I will post all the errors I see in event viewer below. For
    your info, since posting my initial comment I have sent out my steps to 7 different people and we can all reproduce the problem. This comes to 10 different machines (3 of them mine then the other guys) in 3 different businesses / domains. We see the same errors
    in event viewer.
    Under "Windows Logs" --> "Application" : I get two separate error events the first reads "Activation of app winstore_cw5n1h2txyewy!Windows.Store failed with error: The app didn't start. See the Microsoft-Windows-TWinUI/Operational log for additional
    information." The second arrives in the log about 15 seconds after the first and reads "App winstore_cw5n1h2txyewy!Windows.Store did not launch within its allotted time."
    Under "Windows Logs" --> "System" : I get one error that reads "The server Windows.Store did not register with DCOM within the required timeout."
    Under "Applications And Services Logs" --> "Microsoft" -->  "Windows" --> "Apps" --> "Microsoft-Windows-TWinUI/Operational" : I get one error that reads "Activation of the app winstore_cw5n1h2txyewy!Windows.Store for the
    Windows.Launch contract failed with error: The app didn't start."
    If you require any further information just let me know and I will provide as much as I can.
    Thanks

  • Network services do not respond until local user logs in!

    My OS X Server install will not respond to ANY outside network requests (web, server admin, VNC, etc.) until I physically log in a user at the system itself (i.e. using the attached keyboard, mouse and monitor attached to the system.)
    Obviously this is an issue after reboots etc. Thanks for any ideas.

    I'm having a similar problem. VNC and server monitor don't work for me without physically logging in either. As you mentioned, this certainly is an issue with reboots.
    I would recommend doing the version 10.5.6 combo update however, as it did seem to solve some of my other problems.

  • NT users used for installing Oracle Apps 11ir3

    Hi,
    I read through the installation manual for Oracle Applications 11iR3 and have made several attempts to install it on NT4. However, I notice the only user account RapidWizard prompts me was the NT account for Concurrent Processing server, which is usually the "applmgr" account. This make me wonder: do we have to have two accounts, one for Oracle DB and the other for Applications on NT? If I only need one, which environment setup file should I run? APPSORA.CMD or <SID>.CMD in ORACLE_HOME?
    Thanks!

    If you are using a separate account for the DB, then yes, you will end up with 2 accounts. Also, by default, the APPSORA.CMD calls the <SID>.CMD so it will not have to be run again.

  • API to Maintain User Defined Tables in Oracle Apps

    Hi,
    Is ther any API to INSERT/UPDATE the Values into the User Defined Tables. I found one API (+AD_DD+) which is all about registring Table/Rows/Columns to it but NOT about VALUES.
    Please help me out.
    Thanks !

    Yes, check below -
    Regarding the UDT(User Defined Tables)

  • One Time Password (OTP) on mobile/email required in Oracle Apps R12

    Dear All,
    Good Day! Hope you all are doing well.
    My management needs OTP on mobile/email for log-in into Oracle APPs R12 for some key users in our Organization.
    Let me explain the requirement is detail, When user log-in to oracle apps by entering his/her user name and password then system send an email or send sms on mobile for One time password. When user provide this OTP then he is able to log-in to the Oracle Apps.
    Any body have some idea then please guide.
    Regards,
    Saquib.

    Hi,
    Based on our experience, if the NTLM error occurs, please check the password.
    Regards,
    Mike
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Display current user logged into Oracle DB

    Is there any way to display current user logged into our Oracle DB using this version. We don't have the Enterprise solution.
    thanks

    Hi, I am new to this in Crystal but created a SQL expression such as:
    SELECT USER FROM DUAL
    and tried
    SELECT USER FROM DUAL;
    and received a compile error (failed to retrieve data) in Crystal?
    any help is appreciated!

  • How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.

    Hi Experts,
    Kindly let me know
    how to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Also, in the database level too ,Do we need to write any trigger for this?
    Thanks in advance.

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • Retrieve user logs

    Hi,
    I am trying to retrieve a login id stored in a database when
    a user logs in with their username and password.
    This ID then needs to be inserted into another table in the
    same database that I am using to track time logged on.
    Also I need to know how to read/insert current times into the
    table.
    Can anybody help?
    I am using Dreamweaver CS3, ColdFusion
    Thanks,
    Kenneth

    >Yes, my question is how to retrieve a user log. Do you
    have any idea of this?
    Sure, you just need to create a page that selects the user
    log data and takes a user id as an input parameter, or displays all
    ids. You could add additional filters for date range, etc. Try
    using DW's Recordset and Go to Detail SB's - that should get you
    going.

  • Error on installing oracle apps 11i on RHES3 _URGENT!   HELP~

    Hi can anyone help on how to resolve i error i get when i install the oracle application 11.5.10.2 on RHES3. i follow and applied all required patches but i received an error:
    FINISHED INSTALL PHASE : 9i RDBMS : Fri Aug 22 03:03:28 PHT 2008
    There was an error while running the command - su oradb -c /d01/vision/visdb/9.2.0/temp/VIS_oratest/adrun9i.sh APPS APPS
    Exception in thread "main" java.lang.RuntimeException: AC-00002: Unable to create log file - /home/oraappl/oraInventory/logs/OracleHomeCloner_08220303.log
    Raised by oracle.apps.ad.util.LogFile
    at oracle.apps.ad.util.LogFile.appendLogFile(LogFile.java:343)
    at oracle.apps.ad.util.LogFile.log(LogFile.java:233)
    at oracle.apps.ad.util.LogFile.info(LogFile.java:212)
    at oracle.apps.ad.clone.util.OracleHomeCloner.registerOracleHome(OracleHomeCloner.java:272)
    at oracle.apps.ad.clone.util.OracleHomeCloner.main(OracleHomeCloner.java:859)
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process. Check log file for details.
    Running Database Install Driver for VIS instance
    Database Availability Check
    HELP PLEASE!

    Exception in thread "main" java.lang.RuntimeException: AC-00002: Unable to create log fileDo you run RapidWiz as root user? Is this a multi-user or single user installation?

  • Jumping from oracle apps 11.0 to web apps

    <<I do not know which is the proper forum for this question so if any has a suggestion of which forum to post this in I would be appreciative>>
    We have a situation where we have a screen in a module in the Oracle Apps 11.0 which has a part number. We want to be able to zoom from that field into a web application which will take that part no and move directly to the web page with all the pertinent info.
    Our problem is that the web applications of course want the user to login as well, even though the user has already logged into oracle apps. I can garnish the user id from the oracle apps but not the password. The web apps requires for proper validation of the session the user login name and the password.
    In talking to Oracle about this they give the standard line that this is something for Oracle Consulting and will provide no further support. Is there anyway that one can seamlessly transition from apps to web apps?
    Thanks,
    Steve

    hi ,
    Well there is an option to deploy oracle 11i apps's form or build web page using 'self service WEB applications '.You have to make some neccessary changes in 'config' files needed for it...If u can pass the session in developer forms and report then it's possible in all other oracle application also b'cos it's all upgradation of one from another..
    well refer the 11i doc's technical---->Products--->oracle self service web applications implementation manual.
    if u get any new information,i would also be happy to hear from u
    [email protected]

  • Creating security similar to Oracle Apps

    We have an application that has security similar to Oracle Apps. i.e. maintaining the users and roles (responsibilities) within our application. Discoverer has a special login mechanism for Oracle Apps users. Is there a way to configure Discoverer to work with other application which has similar secuirity mechanism?

    Hi Maruthi
    I'm afraid I have no documentation to point you at because this was done for a specific client and I have just not had the time to put together some generic documents. I can't use the client's documents because that would be unethical and has pictures of their data.
    Nevertheless, here is an overview.
    1. Look at all of the Oracle base tables and determine which ones have one of the following: ORG_ID, Set of Books ID (SOB_ID) or Chart of Accounts ID (COA_ID).
    2. Look at the same tables and run some scripts such as this: SELECT COUNT(*) FROM TABLE
    3. For all such tables that have more than say 200,000 rows add one partition for each ORG_ID, SOB_ID or COD_ID
    4. As you know, when a user logs in using an Apps account, the system sets a SYS_CONTEXT variable identifying the ORG_ID that user has access to. This is fine for tables that have an ORG_ID, but for those which only have a SOB_ID or COA_ID you can't use the ORG_ID. Therefore, what you do is create a new table, let's call it ORG_ORGANIZATIONS, that links an ORG_ID with its associated SOB_ID and COA_ID. The table is indexed on the ORG_ID.
    5. Create one function per type, thus one for ORG_ID, SOB_ID and COA_ID.
    For ORG_ID - function named 'DP_ORG_SECFUNC, the heart of the function is:
    select substr(userenv('CLIENT_INFO'),1,5) into x_org_id from dual;
    v_statement := 'ORG_ID = '||x_org_id;
    return (v_statement);
    For SOB_ID - function named 'DP_SOB_SECFUNC, the heart of the function is:
    select substr(userenv('CLIENT_INFO'),1,5) into x_org_id from dual;
    SELECT SET_OF_BOOKS_ID INTO v_set_of_books_id
    FROM ORG_ORGANIZATIONS WHERE ORG_ID = x_org_id;
    v_statement := 'SET_OF_BOOKS_ID = '||v_set_of_books_id;
    return (v_statement);
    For COA_ID - function named 'DP_COA_SECFUNC, the heart of the function is:
    select substr(userenv('CLIENT_INFO'),1,5) into x_org_id from dual;
    SELECT SET_OF_BOOKS_ID INTO v_chart_of_accounts_id
    FROM ORG_ORGANIZATIONS WHERE ORG_ID = x_org_id;
    v_statement :='CHART_OF_ACCOUNTS_ID = '||v_chart_of_accounts_id;
    return (v_statement);
    6. Create a view for each table you want to protect. For example, here is the code that creates a view for AP_INVOICES_ALL
    CREATE OR REPLACE VIEW DV_AP_INVOICES_ALL
    AS SELECT * FROM AP_INVOICES_ALL ;
    SHOW ERRORS
    EXEC DBMS_RLS.ADD_POLICY('APPS', 'DV_AP_INVOICES_ALL', 'SecByOrg', 'APPS', 'DP_ORG_SECFUNC', 'SELECT');
    Notice how this view is being protected by a policy that when anyone runs a SELECT against this view a VPD policy kicks in and calls the ORG security function.
    7. Change all of your code that Discoverer is pointing at to use new views similar to the above.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • Oracle Apps and HTML DB Integration Problems

    Hi,
    I have integrated Oracle Apps and HTML DB, using custom authentication schema so that HTML DB looks for APPS username and password for validation.
    Also, i have created menu, responsiblity, functions, custom application etc, so that user can login from Oracle Apps login screen and then select the responsibility which will redirect to HTML DB Applications page.
    My problem is, once the user clicks on the Responsbility and the function(which is nothing but HTML DB Page), it is redirecting to login page and i need to re-enter the apps user name and password again to access HTML DB applications.
    Is there any way, can i redirect the user directly into my HTML DB application page, without taking him to login page of HTML DB application and also uses the APPS user name and password which he had entered in the Oracle Apps login page.
    I need your help on doing the same. Please respond.
    Thanks
    Ram

    Hi Scott,
    Thanks for the quick reply. I agree with you in terms of validating the session but I haven't been able to get that to work - one of my earlier posts describes the issues I have experienced:
    Authentication and SSO (non-Oracle)
    I suppose my question is - is there a simple way for the APEX app to validate that there is an active Apps session cookie?
    In terms of the encrypted password, what I have been trying to do was make use of the FND_WEB_SEC.VALIDATE_LOGIN method which is described in other posts and the Scott Spendolini presentation on integrating apps.
    Thanks,
    Stuart

  • Create an load New EUL before upgrading to 11.5.10 Oracle Apps

    We are scheduled to upgrade from 11.5.9 to 11.5.10 and I have 3 Discoverer EULs to upgrade for cutover. On top of that we need to create a new EUL that will not be available to the users until after the Oracle Apps upgrade. My question is, can I create the new Discoverer EUL and load the business areas, and import the upgrade EEX files before the actual upgrade of Oracle Apps. No one will have access to this EUL. Once Oracle Apps is upgraded I would refresh all the Business Areas per the usual upgrade instructions, then grant user access.
    Thanks
    Grant

    Thanks for the reply. I will be using MKS Toolkit to import the eex files. My admin tool is 4.1.xxx. The main thing I was worried about was that I would not be able to regenerate the views before the import. I guessed that it would not matter as long as I did the generate views before I do the refresh. I didn't think this would be a problem but I wanted to ask.
    Again, Thanks
    Grant

  • Query or Profile Option to find Current logged in user in oracle apps R12

    Query or Profile Option to find Current logged in user in oracle apps R12.
    I want to get value of current user who is logged in to that particular session, based on the value of user_id or user_name returned i have to do a Forms Personalization.
    Plz help.
    Regards,
    Sadiya P.

    Hi Sadiya,
    do you have the answer for this? please send it to me because i am also have same requirement. so plz post it here....

Maybe you are looking for