Using logged in user in DBTransactions

Using JDeveloper 11.1.1.6
Currently, I have 1 database connection created using a generic database user.  All database transactions are creating using the generic user.
What I would like to do is have the database transactions created using the user that logged in to the application (app user and db user are the same).
Thanks,
Raymond

Duplicate of User-Specific Database Connection

Similar Messages

  • Using Logged in user as query limit

    <p>Can you capture the logged in user's username to use as a queryparameter? If so, how do you access it through the Hyperion 8 webclient?</p><p> </p><p>Thanks,</p><p>John</p>

    Duplicate of User-Specific Database Connection

  • How to use logged in user in the portlet

    Hi,
    From the portal application I have to get the logged in user and use the same user to filter the records in Portlet. I have to execute a view Criteria in portlet as a default method activity which takes logged in user as a input param.
    Is this achievable? Please let me know.
    Thanks in Advance
    Morgan.
    Its a duplicate of How to set userName from security context to Criteria in portlet
    Edited by: Morgan Freeman on Aug 24, 2011 1:24 AM

    It's possible. It's somewhat large to explain so i will write an example portlet. I will post the link to the application when it's finished.
    You just need to request the username from within your portlet. WebCenter passes the username to your portlet on the PortletRequest.
    From your business component you should write a query with a bind variable that you expose to your client. In your JSPX (portlet) you execute the method that sets the bind variable and create an InvokeAction in the executables so it gets executed upon load.
    That's the short description :)
    I'll give some more info when i finish the app.

  • 'The logged-on user does not have permission to use this object'

    Hello everyone,
    I am getting the message 'The logged-on user does not have permission to use this object' while saving the Sales Order. I am logging in as a CRM user. There is an addon also running on the server, that saves some data into a user defined table when the Sales Order is saved. Is there any authoisation for users to access user defined tables.
    Regards,
    William

    hi William,
    this is an Authorization issue. provide the user with authorization on your UDT. Definition of user authorization can be found in Administration -- >> System Initialization -->> Authorizations -->> Additional Authorization Creator.... if already defined from here you can fined the additional authorization from the General authorization window.
    regards,
    Fidel

  • How to get the currency of the logged in user using an el expression

    I want to get the currency of the logged in user using an el expression. I can get the same using ApplSessionUtil.getCurrency(). But can i get the same using an el exprssion?. I want to use this el expression for setting the default value of a VO attriubte
    Thanks in advance

    Hi
    If you are getting the currency value from ApplSessionUtil.getCurrency() set the result of the value to one of your VO on Bean and use it in your el expression .
    Thanks
    Raghav

  • OIM11gr2 - How to get currently logged in user details using oim api

    Hi All,
    I have a requirement to retrieve currently logged in users profile in the process adapter.
    I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
    Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
    DOes any one has idea how to achieve this.
    PS. - i am using platform to retrieve API's.
    Thanks & Regards
    Swati Pandey

    You can get the logged in user name using the below java code:
    ADFContext adfCtx = ADFContext.getCurrent();
    SecurityContext secCntx = adfCtx.getSecurityContext();
    String user = secCntx.getUserPrincipal().getName();
    HTH

  • Using credentials of a logged in user with JMX (Admin console extension)

    Hello,
    I would appreciate any info regarding creation of a connection to the DomainRuntimeService MBean server in an administration console extension in BEA Weblogic 9.2.
    The problem is that if I provide no security credentials, I'm not able to invoke any operations on the MBean server. Also the possibility of providing "default" user credentials within the extension "configuration" used to authenticate is not an option.
    The most convenient way would be to use the same mechanisms used by the rest of the administration console, but there seems to be very little information around about where to retrieve the username/password used to log in to the console.
    Thank you very much in advance, If you didn't understand my question, please ask for more information since English is not my native tongue.

    Hi,
    Check the following wiki content submitted by Michael Nicholls:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/excel%252bspreadsheet%252bof%252bume%252bassignment%252bdata
    The code for getting groups for your case (current logged in user) should be like:-
    IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();
    IUser user1 = clientUser.getSAPUser();
    Iterator groups = user1.getParentGroups(false);
    while (groups.hasNext()) {
    IGroup group = groupFact.getGroup(groups.next().toString());
    String groupname = group.getDisplayName();
    Add this group name to a list
    I do not have NWDS access at the moment so haven't checked it myself... you may try it out.
    Also check out the following threads on the same issue:
    Re: Get all Groups for current user
    Re: Portal User and Role info

  • Running a non mandatory program from remote using powershell without a logged in user

    Hi all,
    is there a way to execute a non mandatory program (a task sequence in my case) from remote using powershell
    without a logged in user on the target system?
    I have the following code: 
    $ProgramObject = Get-WmiObject -Class CCM_Program -Namespace "root\ccm\clientsdk" -ComputerName $ComputerItem | Where-Object { $_.Name -match "$ProgramName" }
    Invoke-WmiMethod -class CCM_ProgramsManager -Namespace "root\ccm\clientsdk" -Name ExecutePrograms -argumentlist $ProgramObject -ComputerName $ComputerItem | Out-Null
    Works like charm, but only with a user logged in on the target system what is not a good solution for me. 
    I saw some other ways on the internet but these only work when the program is mandatory.
    Is there a way to archive what I need ? 
    thanks 

    Hi,
    If you deploy the program as a available deployment, there need a user to run the program. Otherwise, the program will never run. This is contradicted with your requirement(run the program at log off).
    So I concur with Peter.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • This log in user does not have proper rights to use WebCenter Capture

    Hi experts,
    We have WCI 11.1.1.8.0 setup. It has WEC configured. However when I login with "weblogic" user. This is domain admin user. WEC allows user to login and shows top navigation bar. However in the body it shows below message
    "This log in user does not have proper rights to use WebCenter Capture"
    I am sure i have not gives a proper group/ role to this user. I am not sure which one is that.
    Regards,
    Vikrant Korde.

    Hi Vikrant,
    This happens if user is not in Capture Application Role.
    Check this:
    Log in to EM
    Right-click the capture_domain, select Security, and then Application Roles
    In the Application Stripe field, select capture, and then click the Search application roles icon to display the Capture application roles.
    In the Capture User add this weblogic.
    It will work now.

  • How to check logged in user belongs to particular group using workflow

    HI All,
    I have a list  and I want o implement row level security based on the list filed called Relevant group.
    I have a list filed called RelevantGroup , this filed is a choice filed and it has  couple of SharePoint site's groups that I have created. Now what I want to do is give current logged in user to edit the record based on his/her security group. For example
    if I logged in and if I m a member of  the current record RelevantGroup I can edit the record, if I m not a member of the RelevantGroup then the system shouldn't allow to edit the record. 
    I want to do this SharePoint designer workflow. Can someone please help me. Using SPD2013. 
    Thanks. 
    d.n weerasinghe

    Is the form being served up from livecycle? If not how is the form being served up to the user?

  • Logging in users without using cookies

    I'm designing a website using JSP for devices that don't support cookies, so I want to find another way to log on users and keep them logged in. The closest example of what I want to do is http://wap.oa.yahoo.com/ . If you completely disable cookies and you login, yahoo attaches a "ySid" to the end of each URL, which is discarded once you log out.
    How exactly do I implement such a process?
    I have a simple sign on page with a form and fields for the username and password. Once the form is submitted, "login.jsp" authenticates the user. Now if the authentication goes well, I want to create something like an ID that can be used only by this user for this session (right now, I set a cookie instead, which doesn't work on the cookie-less devices).
    Any help is appreciated. :)

    Hi ancade
    How exactly do I implement such a process?
    Well that's entirely upto the designer.
    Just like u said that Yahoo attaches a SID, so u can have ur own way of creating a custom SID. How u do that is the notion of ur brain.
    Say for instance, a user named "abc" logs in. Once authenticated, u can have a random number function generate a random number.
    Then u can declare a variable say user_sid and append it to the username.
    What I mean is, say the random number generated is 123456. Then u can append it to "abc" as, say, "abc_123456". Now this becomes ur custom SID...the way Yahoo does.
    Hope this helps.
    Cheers !!
    Sherbir

  • Current logged on user using Powershell script

    Hi,
    i found a vb script which works fine and gives me desired output however i am looking to get this converted to powershell, so that i can add this to an existing shell script
    Purpose : the shell script should display/Echo currently logged on user, by reading the wmi
    Below is the vb script which i found, also i dont want its first line because i will be running the script locally on the computer with admin rights
    strComputer = "atl-ws-01"
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set colItems = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where Name = 'explorer.exe'")
    If colItems.Count = 0 Then
    Wscript.Echo "No one is logged on to the computer."
    Else
    For Each objProcess in colItems
    objProcess.GetOwner strUser, strDomain
    Wscript.Echo strDomain & "\" & strUser
    Next
    End If--------RegardsTanoj
    OSLM ENGINEER - SCCM 2007 & 2012

    Thank you for the reply
    yes mjolinor you caught me, i am working with sccm 2012 trying to create a universal script which will work flawlessly on VM, windows 8, Windows 7 etc ....
    so which one you think is good to fullfill my need,
    Get-WmiObject
    -Class win32_process
    -filter "Name = 'explorer.exe'" -computer VMNAME    ?
     also it will be great help if you could help me get the complete script wich includes the above line,
    i get following error when executing the above command
    Regards
    Tanoj

  • Please Help! How to capture logged on user id and use it in applications

    Friends,
    I have created a procedure to view account balance which takes userid as parameters and displayes his latest account balance.
    I have put an URL in my page. but I am not able to capture the current logged on user id so that I can pass it to my procedure.
    reply for this question would be of great help to me, because all y applications require passing user login id.
    Thanks in advance.
    Murthy

    I have read this in Oracle Metalink, but I haven't tried it yet.
    Hope this will help !
    select * from portal30.wwctx_sso_session$ where trunc(session_start_time) = trunc(sysdate) and
    active = 1 and IS_LOGGED_ON = 1
    This should give you the logged in users..

  • Multiple simutaneously logged in users accessing AFP home directories?

    Hi,
    Many of our problems are described in this guy's blog:
    http://alblue.blogspot.com/2006/08/rantmac-migrating-from-afp-to-nfs.html
    The basic capability we want is to have multiple simultaneously logged in users to have access to their AFP mounted home directory, which is configured in a sane, out-of-the box setup using WGM and Server Admin.
    Multiple user access could take the form of FUS (fast user switching), or simply allowing a user to SSH into a machine that another user is already logged into and expect to be able to manipulate the contents of her home directory.
    From my extensive searches, I have no reason to believe this is currently possible with 10.4 Server and AFP.
    (here's the official word from apple: http://docs.info.apple.com/article.html?artnum=25581)
    I've read that using NFS home directories will work, though.
    I want to believe that Apple has a solution for this by now (it's been almost a year since we first had difficulty), or at least a sanctioned workaround. If Apple doesn't have one, maybe someone else has come up with something clever. I find it hard to believe that more people haven't wanted this capability! (not being able to easily search the discussion boards doesn't help, though...)
    Thanks for your help!
    Adam

    Parallels Issue. Track at http://forum.parallels.com/showthread.php?p=135585

  • Getting Logged on User'Information in an Oracle-Form SSO Partner Application

    Hi.
    I could run Flight-of Fancy Application and capture user's information by calling the
    "Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
    and defined an Oracle-Form application as Partner application like FOF.
    I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
    Thanks in advanced.

    Hi.
    I could run Flight-of Fancy Application and capture user's information by calling the
    "Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
    and defined an Oracle-Form application as Partner application like FOF.
    I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
    Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
    from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
    of cookie and persistent storage in the database. Take care of the security implications while doing this.
    On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
    are using a combination of the cookie and database storage to keep your info.
    The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
    These routines work fine, when invoked correctly.
    If you are having trouble with them, you're probably not using the calls properly.
    The following code provides an example of how to use the owa_cookie calls...
    create or replace package testcookie
    is
        procedure show (p_name IN VARCHAR2);
        procedure send
            p_name    IN VARCHAR2,
            p_value   IN VARCHAR2,
            p_path    IN VARCHAR2 default null,
            p_expires IN VARCHAR2 default null
    end testcookie;
    show error package testcookie
    create or replace package body testcookie is
        procedure show (p_name IN VARCHAR2) is
            v_cookie owa_cookie.cookie;
        begin
            v_cookie := owa_cookie.get(upper(p_name));
            htp.htmlopen;
            htp.bodyopen;
            htp.print(v_cookie.vals(1));
            htp.bodyclose;
            htp.htmlclose;
        exception
            when others then
                htp.htmlopen;
                htp.bodyopen;
                htp.print('NO COOKIE FOUND.');
                htp.print(SQLERRM);
                htp.bodyclose;
                htp.htmlclose;
        end;
        procedure send
            p_name    IN VARCHAR2,
            p_value   IN VARCHAR2,
            p_path    IN VARCHAR2 default null,
            p_expires IN VARCHAR2 default null
        is
            v_cookie owa_cookie.cookie;
            l_agent varchar2(30);
            l_expires varchar2(30);
            l_path varchar2(100);
        begin
            if p_expires is null then
                l_expires := null;
            else
               l_expires := to_date(p_expires, 'MMDDYYYY');
            end if;
            if p_path = 'ALL' then
                l_path := '/';
            else
                l_path := null;
            end if;
            owa_util.mime_header('text/html', FALSE);
            l_agent := owa_util.get_owa_service_path;
            l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
            owa_cookie.send(
                name    => upper(p_name),
                value   => p_value,
                expires => l_expires,
                path    => l_path
            owa_util.http_header_close;
            htp.htmlopen;
            htp.headopen;
            htp.headclose;
            htp.bodyopen;
            htp.print ('Cookie set.');
            htp.bodyclose;
            htp.htmlclose;
        end;
    end testcookie;
    show error package body testcookie;
    grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
    generate cookies.
    To generate a cookie, issue the following from your browser ...
    http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
    To view the cookie:
    http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test

Maybe you are looking for

  • The option to extract pages from a PDF document as described does not appear for me.

    Im currently running Acrobat Pro XL and the option to extract pages from a PDF document as described in the below tutorial does not appear for me.  Please help! Extracting pages from a PDF https://acrobatusers.com/tutorials/extracting-pages

  • How Can I Tighten the Space Between Table Rows?

    I am trying to reproduce the resume I created in a different word processing application several years ago. I have created a table that lists all the work for a given employer with each row representing a different employer. I do want a little more s

  • I feel dumb for asking this, but... please

    I ussually work with text based or frame, but now i'm working with paint and I cant even get it to display a rectangle. When I try to run it it says, "applet notinited" I do have an init() Method but I dont know if it's related or not, heres the visu

  • Duplicate document generated while doing mrko

    Hi experts, While doing mrko, 1. Two documents are generated. The correct one is A and the duplicate one is B 2. FBL1n shows both these documents A& B If i Cancelled all material documents associated with A Now wht will happen to B? Because I can see

  • Kernel trap problem

    Hi I'm using a 13 inch mid-2012 MacBook Pro with OS X 10.9.2 For some weeks the computer has been crashing at random points, usually with the screen getting glitchy and freezing. The only alternative is to power off and then power on. Normally it won