Need to authenticate a user and create session thru a procedure.

I am doing loadtest on portal and I need to authenticate a user and create user session to simulate user logging thru the web and I want to see a record is created in the wwctx_sso_session$ table.
can we do this from stored procedure ?
thanks.

Hi,
I guess the message is pretty clear !! you lack privilege.
SQL> conn imx/imx
Connected.
SQL>
SQL> create user testproc identified by testproc;
create user testproc identified by testproc
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> create or replace procedure sp_createsuser(username varchar2)
  2  as
  3  begin
  4  execute immediate 'create user ' || username || ' identified by ' || username;
  5  end;
  6  /
Procedure created.
SQL> exec sp_createsuser('testproc');
BEGIN sp_createsuser('testproc'); END;
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "IMX.SP_CREATESUSER", line 4
ORA-06512: at line 1
SQL> conn sys/******* as sysdba
Connected.
SQL> grant create user to imx;
Grant succeeded.
SQL> conn imx/imx
Connected.
SQL> exec sp_createsuser('testproc');
PL/SQL procedure successfully completed.
SQL> conn sys/syssys as sysdba
Connected.
SQL> select username from dba_users where username like 'TESTP%';
USERNAME
TESTPROC
SQL>Regards

Similar Messages

  • I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    weblogic credentials are different.
    and using thode credentials I am able to login to weblogic server
    the users I am talking about is the process users defined in realm.
    in realm those users are defined as Default authenticator and OID authenticator.
    and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g

  • Restrict concurrent user and/or session from a client

    Hi All:
    We have an application with database Oracle 10g.
    I want to add a new validation to restrict concurrent user and/or session from a client. (we have almost 60 client firms using the software to enter daily trasnactions).
    All users from all clients are connecting to the database using a common functional ID.
    What I did was:
    1) Add a column 'user_logged_in' in the master table for client and update it as Y when user from that client logged on to the system,
    2) Insert the application logon details (we can figure out the client details from this) into a global temp table,
    3) Create a logoff trigger to update the 'user_logged_in'flag in client master table by using values from global temp table when session logged off and
    4) Restrict the users from same client if the flag is 'Y'
    But the problem in this case is logoff trigger will not be executed in case if the session got killed or terminated abnormally.
    Is there any other good solution for this scenario?
    Thanks
    Robin

    >
    But the problem in this case is logoff trigger will not be executed in case if the session got killed or terminated abnormally.
    Is there any other good solution for this scenario?
    >
    A better question might be - is there any other 'worse' solution than that?
    >
    2) Insert the application logon details (we can figure out the client details from this) into a global temp table,
    >
    Meaning - if that session goes down you have NO logon details since the data isn't persistent. Is that really useful?
    There is nothing you can do to account for someone just pulling the plug on: the server, the network connection, the bridge, the router, etc. And if a user is connected, starts a long-running process and then gets disconnected the process is likely to keep running in the background until Oracle needs to talk to the user again and then realizes that they are gone.
    Meanwhile the user is trying to logon again but can't because the system thinks they are already logged on.
    >
    All users from all clients are connecting to the database using a common functional ID.
    >
    Doesn't that kind of make it harder, not easier, to track who is really connecting and using your application?

  • I have bought a iphone 5 second hand and i restore it and now i need the icloud original user and i don't know it!what can i do?i can not activate my iphone

    I have bought a iphone 5 second hand and i restore it and now i need the icloud original user and i don't know it!what can i do?i can not activate my iphone

    If you're able to contact the previous owner, send them this link and tell them to follow the instructions.
    If not, you can't activate the device but may be able to get it refunded.
    Apple won't remove the lock for anyone other than the original owner(assuming they're alive.)
    (112266)

  • SharePoint: Workflow to retrieve all users and Create list item record for each user

    Hi all,
    My share point site have two Lists as Holidays and MyCalender.
    Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
    on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
    I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
    solution for this.. Thanks in advance!

    You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
    Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • CONNECT ROLE and CREATE SESSION

    Oracle 8.1.7.4.1 Enterprise RDBMS
    User has CONNECT role but receives ORA-1045 when trying to log in. Problem resolved after explicitly granting CREATE SESSION. This should not have been necessary. Has any one else had this problem? What would cause such behavior?

    Verify that CREATE SESSION is in the role. (Yes, it should be, but ...)
    Verify that nothing has revoked CREATE SESSION from the user.
    Besides, it is probably is good idea to get out of the 'CONNECT', 'RESOURCE' and 'DBA' role habit.

  • How to delete existing user and create the account

    Hi All,
    How to delete the existing user and does not loose the shopping cart link, confirmations for etc and then create back the account for the user?
    Please tell me the steps.
    Thank you.
    Regards,
    Henry

    How to delete the existing user and does not loose the shopping cart link, confirmations for etc and then create back the account for the user?
    I believe you can not delete the user 100% fully since all documents must be closed before.since it had a relation in crmd_partner table. However it has links with business objects..
    Copied from forum threads.. for your reference..
    Note 1148837 - SRM user cannot be deleted
    in consulting note 550071
    Q8. What happens if I delete the user who has created the shopping cart
    A8. If the user is deleted, and the shoping cart exists in the application, then the shooping cart cannot be displayed. If you want to view/ process those shopping carts, then you have to create a dummy user and retrieve the document. In CRMD_PARTNER table, the old user GUID should be replaced with the new user GUID.
    User deleted from SRM, deletion of SC not possible
    if you have a central recipient cancel them with that role or as advised by akash cancel from r/3.
    discussions are welcome..
    regards
    Muthu

  • RFC - Receiver create Customer (Cannot see created user and created time)

    Hi,
    My scenario is JDBC - XI - RFC to create/change customer master. My problem happens with customer created/changed by RFC. When I look at administrative data of customer master, created by and created date are empty. http://www.imagecross.com/07/image-hosting-view-11.php?id=53673.png My requirement is that log on user which i input in receiver cc of RFC in ID should be used as created user in customer master and created  date should also be updated too.
    Any solution for this? Is there any configuration in XI required or may be a guideline for using ABAP in RFC to do this?
    Thanks,
    Pavin

    Hi
    When u execute form se37 it wud update with the user logged in
    same wud happen when Receiver Adapter RFC wud log in and update r change
    shud update with user wat u have entered in Config
    try to run the RFC from se37
    rgds
    srini

  • Get input from user and create a file and run a script in command line.

    Hi all,
    i'm trying to get a input from user and write it into a file named alpe.jacl
    To get multiple userinputs like address and jobtitle etc etc in the same single window.
    and the code will save the inputs in alpe.jacl one by one in a new line like
    nameis name
    address russia
    jobtitle dev
    So i coded like below.
    Though GUI for user input looks dull Its working fine.
    Now I want this code to perform one more task which is the GUI will contain one more button INSTALL with OK and CALCEL .
    and when after putting all inputs and creating the alpe.jacl file if someone clicks INSTALL it should start ./install.sh script present at the same folder which contains some unix shell commands.
    Here am not able to figure out how to go further...
    One more thing after all the inputs given when I am clicking on the OK button its closing the window instantly which i dont want. I want it like it should wait till someone press CANCEL to exit.
    Please some one help me.
    import javax.swing.*;
    import java.io.*;
    public class file
    public static void main(String []args)throws IOException
    FileWriter ryt=new FileWriter("alpe.jacl");
    BufferedWriter out=new BufferedWriter(ryt);
    JTextField wsName = new JTextField();
    JTextField sName = new JTextField();
    JTextField cName = new JTextField();
    Object[] message = {    "Web Server Name:", wsName,"Server Name:", sName,"Cluster Name:", cName};
    int answer = JOptionPane.showConfirmDialog(    null, message, "Enter values", JOptionPane.OK_CANCEL_OPTION);
    if (answer == JOptionPane.OK_OPTION){    String webserver = wsName.getText();
    String server = sName.getText();
    String cluster = cName.getText();
    out.write("set webservername " +wsName.getText()+"\n");
    out.write("set ClusterName " +cName.getText()+"\n");
    out.write("set ServerName " +sName.getText()+"\n");
    out.close();
    }}Thanks,
    Ricky

    Thanks a lot.
    Is there any way through which i can assign a scroll bar to my panel.
    As when the number of user inputs grows the GUI becomes more bulky and some of the fields are not showing up.
    Cheers
    _Ricky                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need help migrating OD users and user data

    I need some advise.
    I have OD user accounts, more precisely NetHomeAccounts,  and the users home folders reside on a 1TB RAID.  The RAID is full.  No surprise, new that would happen.
    I've acquired a 12TB RAID that i plan to move the home folders too. 
    I also want to consolidate two servers into one. I believe I can use migration assistant to move the OD acounts from one server to another.
    my question is about the user data i need to move between two RAIDs... 
    should I use rsyc to move the NetAccount Home folders from the full RAID to the new 12TB RAID?
    - will the accounts migrated from server A to server B recognize there old home folder that is now hosted on a new 12TB RAID?  will i run into permission errors?
    please advise. Thank You.

    There are serveral ways you can do this, and would depend very much on how you have set things up, although I feel the simplest would simply to shut your file sharing services down, clone the old RAID volume to the new RAID volume, modify/recreate your Users file sharing volume to point to the new RAID drive (so there's no need to modify OD records) and start your file sharing services again.
    Another way would be to use the ditto (or rsync) command in Terminal to do the copy process if you aren't wanting to more the entire contents of a volume. Ultimately if your OD user records aren't being changed then user IDs, and hence permissions, should remain constant.
    Without know exactly what is where and how things are set up it's hard to know exactly what the preferred route would be.

  • Query apex users and thier session

    I would like a query of all current users of an apex application and the user's associated sid. Is that possible? How?
    Thanks,
    Todd

    Since the question has not sparked much interest from forum users, I'll just reply with some info that I found.
    Scot had a good comment found in thread Re: Problems with Standard Apps views (eBusiness Suite)
    His comment:
    Anyway, for every APEX page request the engine executes something like the following, depending on your version:
    begin
    dbms_application_info.set_client_info(g_user);
    dbms_session.set_identifier(substr(g_user,1,(64 - length(g_instance)-1))||':'||to_char(g_instance));
    dbms_application_info.set_module('APEX:APPLICATION '||to_char(g_flow_id),'PAGE '||to_char(g_flow_step_id));
    exception when others then null;
    end;
    In the above code, the value of g_user is the logged-in username, perhaps ADMIN in your case.
    Keep in mind that when you do a set_client_info in the database session, that persists only for the duration of the session. On the next page request, you'll get a new database session (or a recycled one).
    Also comments made in the following thread were interesting.
    Re: user status
    To retrieve AUDSID from v$session for the current user the query below works. This is good for the current session but really does not do what I would like to do. What I would like is to query all application users and their associated SID not just current users SID/AUDSID.
    select userenv('sessionid') from dual
    Todd

  • :USER and :GROUP session variables

    Hi,
    Please let me know the purpose of :USER and :GROUP variables. I have gone thru obiee docs but not understand clearly about these session variables.
    regards
    CK

    If you have to display a welcome message in a dashboard page with the user name, you can refer the USER session variable in the request. It will automatically get substituted with the log on name of the user
    Also you can use these variables in Authentication, authorization and data filters.
    Regards,
    Dpka

  • New user with CREATE SESSION privilege

    Which statement is true concerning a new user that has only been granted the CREATE SESSION privilege?
    The user can create a table.
    The user can alter their password.
    The user can select from tables they have created
    I belive he can change his password , for that does not requir any sp. privileges.

    The user can alter their password. this is your answer

  • Need to eliminate the request existing from earlier user and create my own

    Hi gurus!
    I have a program in SBX which I have to make changes to . When I go in the change mode a pop up screen pops out saying that u201CA new task will be created for the user  XXXX: u201Cand the request number is given  with desc. This particular user is no longer with us and the changes he made to the report is no longer required . So I am not sure If I should be going ahead with adding my request under his and go ahead with changes. What I have thought is to copy the PRD copy in SBX so that the changes are overwritten and the earlier existing request goes of and I create a new request . How do I copy the report from the prod so that I donu2019t get the request that has been there from the provious owner . I want to completely wipe of the request he had created. Even if I donu2019t have to copy from PRD how do I just eliminate his request and generate my own request fresh.
    Thanks

    >
    Aarav  Agnihotri wrote:
    > Yes , Retriving the through version management is ok but I wanted to get the latest version that is on PRD and then make the changes to that . SO how do I import it from PRD and then start making chnages.
    >
    > Thanks
    Use version management in PRD to determine the transport number and then use version management in DEV to restore to that version.
    Rob

  • Need Help; Must accept email and create item in custom list

    Hello Forum,
    We have a Sharepoint 2010 site that has been using Microsoft's ticketing system for years. What I need to confirm is if there is a way to email the sharepoint list and have it create a ticket (parsing the from address, subject and body then creating a ticket
    from that and sending a confirmation email reply to the user).
    I understand there may be some coding needed, but don't know where to start without having to start over and lose our years of  lists / data. Can someone please help provide information or at the very least a starting point for me?
    Thanks.

    I coded something similar very recently. This community project helped me a lot; http://www.codeproject.com/Articles/32899/Reading-an-Outlook-MSG-File-in-C
    I called
    out to this code from an ItemAdded Event Receiver on the library to parse the email metadata.
    It's also possible to email enable Libraries and receive items emailed straight to the library. There's a special event receiver available for that which helps you parse email metadata. (But I couldn't receive email directly from my project so I didn't use
    this approach though I daresay it's simpler); http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver.aspx
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

Maybe you are looking for

  • Configurations Required for Excel download in IR

    Hi, Please let me know the configurations req for enabling Excel download feature from Interactive report. Currently i see only CSV and PDF options in report attributes page. Regards, CKLP

  • Error Message "Not Enough Memory to Open Illustrator"

    Hi, Im running adobe illustrator cs5 on windows 7 and have previously had no problems. Today however when I opened a pdf I got the error message "Not enough memory to open illustrator" I have searched and cannot find a reason for this error. It now h

  • Prevend UD (QA11) without Review (QE12)

    In our business process, we have created three levels for Result recording, Review and UD through QE11, QE12 and QA11 respectively. My requirement is when the Review (QE12) is not carried out or incomplete while doing the UD (user decision), the syst

  • Osb jms query

    Hi, I have generic jms client code as part of my web application sits on weblogic 11g, which publishes the text message file to different jms providers based on configuration (set the file path to be published, connection factory and destination info

  • When validate trigger forms 6i

    Please help me to create when validate item trigger. There is one table "job" - id, status status is X or null. i want to do in forms. when someone is entering value for id, it should check first the status for that id in job table status field. if s