Retrieve user name inside oracle application

Hi,
I have a form which i installed in the oracle application. One of the fields needs to retrieve the name of the user which has logged into
the application via WHEN-NEW-FORM-INSTANCE.
:sponsor is my field (i omitted the block because its only one in the form,so it works like this)
What i tried :
:sponsor := user; this retrieves the logon name into my database (which is linked with the logon on the forms builder 6i) e.g. APPS
:sponsor := GET_APPLICATION_PROPERTY('SSO_USRID'); this retrieves nothing
:sponsor := GET_APPLICATION_PROPERTY('SSO_USRDN'); this retrieves nothing
:sponsor := GET_APPLICATION_PROPERTY(USERNAME); this retrieves nothing
:sponsor := GET_APPLICATION_PROPERTY(CONNECT_STRING); this retrieves my oracle application instance name e.g. TEST
What i need is the actual user that has logged into the oracle application to access the responsibility that holds my form. This happens with
the classic logon of Oracle Applications 11i (no SSO or anything like that).
Thx guys!
Iulian

If you are in the eBusiness-suite, there is a package FND_USER where you somehow get the current username from. Ask your question in an eBusiness-suite related forum, maybe here OA Framework

Similar Messages

  • Unable to get Windows User Name using Oracle Forms 6i, Jinitiator 1.3.1.17

    Hi,
    Requirement: Get Windows User Name using Oracle Web Forms 6i.
    Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
    Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
    Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
    I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
    Also, please let me know if there is any other workaround for this requirement.
    Thanks & Best Regards,
    Mo

    Hi,
    Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
    Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
    I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
    I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
    Thanks so much for your help.
    Thanks & Best Regards,
    Mo

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • Retrieving User name using SAP id

    Hi Experts,
        I want to retrieve my name using my SAP user id. Can anyone say in which table I can find.
    I searched usr01,02,...06 table where I didn't get my user name. But in all session, in title bar I am getting my name. From where it may be taken.
    Thanks and regards,
    Venkat

    Use USR21 and ADR6 tables.
    you can check the same here.
    [Retrieving User name and id|Table for Username & Email address]

  • Method to capture User ID of Oracle Applications?

    Dear Members,
    We want to create some database triggers on GL_INTERFACE table.
    The requirement is as follows:
    We want to capture the information of the users like user id etc when ever they update the information on GL_INTERFACE.
    We dont want to customize the form.
    Are there any DB commands based on which we can capture the user id of the applications.
    Please help me on this regard.
    Thanks in advance.
    Regards,
    Arun Reddy

    Dear Members,
    thanks a lot for your valuable replies.
    Actually I have a requirement as follows:
    Iam getting data into GL_INTERFACE from other subledgers.
    Once the data is there in GL_INTERFACE ,because of some reasons users are updating the values in GL_INTERFACE via Correct Journals form.
    But in GL_INTERFACE table there is no provision to capture the last updated by and last updated date values.
    I tried to enable the audit trails on GL_INTERFACE table but couldnt do that because oracle's standard functionality says that we can enable audit trails only on the tables which have primary key.
    But GL_INTERFACE doesnt have a primary key so we couldnt enable audit trails.
    now i want to create some database triggers on GL_INTERFACE.but iam not getting a way by which i can capture the user name who is updating the values.
    Can anyone please suggest me a way.
    Regards,
    Arun Reddy.

  • How to know current form name in oracle applications 11i.

    Hi all,
    By clicking on Help menu-> About Oracle Applications, it will display environment variables info, and current form info, on which we r working.
    I want to know from where this information is coming,
    Where oracle applicaitons will store this information.
    Is there any database table which regularly updates the current form info.
    Or is there any log which contains info about current form name.

    Hi
    For viewing this information you need to read system administration guide , Go through this pdf file
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115saug.pdf
    Nitin

  • How to change IP, Hostname and domain name for Oracle Application R12

    Hi,
    I'm new to Oracle, we used to have one production and one test server for Oracle Application R12, but the test server was corrupted, so we decided to clone production server and create a new test server, after cloning and creation of test server, how should we do to change IP address, hostname and domain name for test server?
    Our production and test server environment is:
    Linux Enterprise AS 2.6.9
    Application module: E-Business Suite Treasury only
    Your advice will be much appreciated.
    Regards,
    Kenneth
    Edited by: 850209 on Apr 7, 2011 5:37 PM

    850209 wrote:
    Hi,
    There are few tnsnames.ora and listener.ora files in the system, how to know which one are effective? If I change tnsnames.ora hostname entry, do I need to change listerner.ora file also?
    Thanks.
    Regard,
    Kenneth.tnsnames.ora is used only by client processes. listner.ora is used only to configure the listener, and that is a server side issue only. In addition, the listener can start without any listener.ora at all, using all default values. See my discussion of tns issues at edstevensdba.wordpress.com
    If you are using dbcontrol, you will most likely need to reconfigure it, using the emca utility.

  • What is Best Way to Get Table Name in Oracle Applications : 12.1.1 (web)

    Hello Friends..
    I need your Help My Friends...
    we are working currently on Oracle Applications : 12.1.1
    i would like to know the best way to get Table name from Web Based Form..
    Regards
    Yas.

    Hi Yas;
    Please follow below 2 thread i belive you will find some hint in those thread
    table name for a jdeveloper page
    Re: EBS, 11.5.10, table name
    Hope it helps
    Regard
    Helios

  • How to restrict user access in Oracle Application Server 10g (9.0.4)?

    Can anybody please let me know how to restrict user access in 10g AS? To be specific, how to allow http requests from specific IPs only?

    Hi,
    You have to edit httpd.conf and modify acces rights for each protected directory
    e.g.
    <Directory /var/www/sub/payroll/>
    Order allow,deny
    Allow from 192.168.1.0/24
    </Directory>
    then you have to restart Oracle HTTP Server
    jm--

  • Retrieve authenticated user name from environment

    Hi All,
    I'm connecting to Oracle from C++ using OCCI API. At the same time, the database authentication is based on secure Oracle Wallet feature.
    conn = env->createConnection("","",connection_string);
    Now, after I've created connection can I retrieve user name from the environment or connection object without querying database?
    Thank you.

    Hi Patrick,
    I'm just trying your code example in Eclipse but it gives me plenty of errors so I guess I'm not importing the right libraries or so.
    My goal was to write just a simple response.write of the userID stored in the cookie...
    The first error appears in the "ticket.setCertificates(this.certificates);" line, saying that "certificates cannot be resolved"..
    Here's what I used :
    import com.sapportals.portal.prt.component.*;
    import com.sap.security.*;
    public class cookie extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              try
              com.sap.security.core.ticket.imp.Ticket ticket = new com.sap.security.core.ticket.imp.Ticket();
              ticket.setCertificates(this.certificates);
              ticket.setTicket(base64Value);
              String vali = ticket.toString();
              ticket.verify();
              if (ticket.isValid())
              info = new SAPTicketInfo(ticket.getUser(),ticket.getSystemID(),ticket.getSystemClient(),ticket.getExpirationDate(),ticket.getCodepage());
              response.write (info);
              else
              throw new TicketVerifierException("Ticket is invalid ");
              catch (Exception ex)
              throw new TicketVerifierException("Error in verifying ticket "+ex.getMessage(),ex);
    What am I missing ?

  • Oracle Application server User group

    Can somebody know of a users group for Oracle Application Server in Chicago land area (Naperville to be precise).
    Thanks
    Rashid

    check the script to start the iAS is having a variable called FORMS_PATH . If yes modify this. Also do an echo $FORMS_PATH after setting this.
    Otherwise you can edit the profile or script which sets the ias env variable with FORMS_PATH.
    Also check the value in the default.env which can be found in ORACLE_HOME/forms/server
    best regards
    Rajesh Alex

  • Retrieving user detail, group name for all users

    Hi,
    How can I retrieve User name, email, authentication, user group name
    for all users using SDK.
    It is possible to create this report in webi or CR?
    Thank you for reply,
    Gregor

    Use the following code to retrieve this information:
    IInfoObjects users = oInfoStore.query("select * from ci_systemobjects where si_kind='user'");
    for (int i=0; i<users.size(); i++)
             IUser user = (IUser)users.get(i);
             // user.getTitle(); for user name
             // user.getFullName(); for user's full name
             //  user.getEmailAddress(); for user's email address
             //  for authentication type:
             IUserAliases alises = user.getAliases();
             for(int j=0; j<aliases.size();j++)
                       IUserAlias alias = alises.get(j);
                       // alias.getAuthentication() for authentication associated with this alias, since same user can have more than 1 authentication. e.g. Enterprise and Ldap.
             // for user group memberships:
             java.util.Set groups = user.getGroups();        
             // the groups Set object will contain SI_ID of all the user groups that this uses is member of. You need to query by the SI_ID of the usergroup to get the group names.
    //  e.g.
    //    oInfoStore.query("select si_id, si_name from ci_systemobjects where si_kind='usergroup' and si_id in (a,b,c....)");
    where a,b,c are the SI_IDs of the usergroups.
    To create a report based on the above fetched data, there are several methods such as:
    you can use Java resultset where in you create the report structure in designer and push the data at runtime using java result set objects. Another way is to push this info in Excel or Access and design your report based on that excel\access.

  • FNDPASS를 이용하여 ORACLE APPLICATIONS USER, DB USER의 암호변경방법

    제품 : AOL
    작성날짜 : 2003-05-15
    FNDPASS를 이용하여 ORACLE APPLICATIONS USER, DB USER의 암호변경방법
    =========================================================
    PURPOSE
    FNDPASS를 이용하여 ORACLE APPLICATIONS USER, DB USER의 암호변경방법
    Problem Description
    Workaround
    Solution Description
    1. 11.5.5 보다 아래의 버젼인 경우 patch 1685689를 적용한다.
    2.
    - APPS와 APPLSYS암호변경
    FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS <new password>
    Ex: $FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS NEWPASSWORD
    * APPLSYS의 암호를 변경하면 APPS도 같이 자동변경된다.
    - Oracle Database User 암호변경
    FNDCPASS apps/apps 0 Y system/manager ORACLE <oracle user> <new
    password
    Ex: FNDCPASS apps/apps 0 Y system/manager ORACLE GL GLPASSWORD
    - Application User 암호변경
    FNDCPASS apps/apps 0 Y system/manager USER <username> <password>
    Ex: FNDCPASS apps/apps 0 Y system/manager USER VISION WELCOME
    3. 만약 APPS의 암호를 변경하였을 경우에는 아래의 파일들을 모두 체크해서
    암호변경을 같이 해주어야한다.
    1) $ORACLE_HOME/listener/cfg/wdbsvr.app
    2) $FND_TOP/resource/wfmail.cfg
    3) The concurrrent manager start script.
    4) $OA_HTML/bin/appsweb.cfg
    5) $AD_TOP/admin/template/CGIcmd.dat
    Reference Documents
    Note 159244.1

  • Web pages in Oracle Application 12.0.6

    Hello every one.. i am having a one problem.. i want to create the SSHR LOGGING report.. in which i want to show the list of employees how have visited the application... this is the following query :
    SELECT
    p.employee_number employee_number,
    p.first_name || ' '|| p.last_name Name,
    u.user_name Login_name,
    u.email_address,
    a.start_time login_dates,
    u.last_logon_date,
    tl.responsibility_name
    FROM
    FND_LOGINS A ,
    fnd_user u,
    per_all_people_f p,
    fnd_login_responsibilities s,
    fnd_responsibility t,
    fnd_responsibility_tl tl
    WHERE
    u.user_id = a.user_id
    AND A.START_TIME >'20-NOV-09'
    and s.responsibility_id = t.responsibility_id
    and t.responsibility_id = tl.responsibility_id
    and s.login_id = a.login_id
    and u.person_party_id = p.party_id
    and tl.responsibility_name in ('JBL Employee Self-Service','JBL Employee Self-Service (CE)','JBL Employee Self-Service (JAS)','JBL Manager Self-Service','JBL Manager Self-Service (Admin)','JBL Manager Self-Service (JAS)','Notification')
    and sysdate between p.effective_start_date and p.effective_end_date
    and nvl(p.employee_number,'1') = nvl(nvl(:p_emp_no,p.employee_number),'1')
    and to_CHAR(a.start_time,'RRRR/MM/DD HH:MM:SS') between :P_DATE_FORM AND :P_DATE_TO
    order by
    2 ,a.start_time desc
    Now problem with this is that.. its not showing the rercord of the person.. how have visited the web pages in Oracle Application R12.. like we have Leave Management web page in this 'JBL Employee Self-Service' responsibility.. please help me that how and by using what table in can view webpages visiting data as well

    Hi,
    Please see if the queries in these documents helpl.
    Note: 295206.1 - How to Count Total Number of Users Connected to ORACLE Application
    Note: 471673.1 - R12.0.6+ : Oracle Application Object Library Active Users Data Collection Test
    Thanks,
    Hussein

  • Model to Oracle Applications returns no columns with Standard Reverse

    I'm connecting a model using the apps user to an Oracle Applications 9.2 database for selected tables. It will return the table as a data store but it won't populate any columns. Anyone know why?

    Thanks for the responses. I realized over the weekend that they were synonyms.
    I created a number of models for each of the schemas where the tables reside. This allows me to retrieve the table columns as I needed to do.
    It brings up another question though about the suitability of data integrator with Oracle Applications or applications that are organized similarly. Since the synonyms don't create column definitions creating a separate model for all of the OA schemas certainly isn't very convenient at best. Is there something that I am missing, or do I need to create a model for each schema as I suspect.

Maybe you are looking for

  • Windows Vista is not installing using MDT 2012 update 1

    I have created a media using selection profile in MDT 2012 update 1, but it is not deploying my physical machine. I get error message that Windows Cannot copy files required for installation. Make Sure all files required for installations are availab

  • Lists Driving Me Crazy!

    I am trying to use automatic lists in Pages '09. I want a list that looks like this (the indents on the a, b, c don't show up in this message but are there in Pages): 1. Title 1 a. one b. two c. three 2. Title 2 a. one b. two c. three But, when I use

  • OS 10.4.9 freeze bug and fix

    My Intel Xserve (10.4.9) had a freeze which disabled the keyboard and mouse after searching for a non-existent file from the keyboard attached to it. Keyboard and mouse remained disabled after forced power downs and reboots. I rang Apple and they adv

  • Webutil date help

    Hello, in KEY-LISTVAL trigger i have the code date_lov.get_date('01-'||:control.luna||'-'||:control.an,         -- initial date                   'pontaje.data',  -- return block.item                   240,             -- window x position           

  • What happens after updating to iOS5 re iCloud?

    Can anyone detail what life will be like after I upgrade my iPad1 and iPhone4 to iOS5 since I've been syncing them via MM? My is still on 10.6.8. I was waiting for 10.7.2 before converting to Lion. I'm wondering how things will work. When you upgrage