Create an user from the existing user.

Hi All,
Recently i have created one user from the existing user in a different server.
Oracle version :10.2.0.1.0
I have granted the similar roles same as in production.
In Production:
SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
GRANTED_ROLE                   GRANTEE
RESOURCE                       TRADELOANS
CONNECT                        TRADELOANS
In Test:
SQL> select granted_role,grantee from dba_role_privs where grantee in ('TRADELOANS');
GRANTED_ROLE                   GRANTEE
RESOURCE                       TRADELOANS
CONNECT                        TRADELOANS
But the user complained that he is getting error like 'user lacks CREATE SESSSION privilege'. He also says he is able to connect to production but for the test he is getting that error
Can anybody let me know where i have done the mistake?
Regards
Arun

arundba wrote:
Hi Kamran,
I listed the roles given to the user in my first post. I have granted connect and resource role to the user.
and it is same in production also. But the thing is why he is able to connect to production and not for test?
Regards
ArunSee the following demonstration:
SQL> create user t identified by t;
User created.
SQL> connect t/t
ERROR:
ORA-01045: user T lacks CREATE SESSION privilege; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn / as sysdba
Connected.
SQL> grant connect to t;
Grant succeeded.
SQL> conn t/t
Connected.
SQL>

Similar Messages

  • Create User from the end user pages

    I tried to create a user from a end user page and I get this error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    Anybody knows where the error is?
    Thanks!
    My workflow:
    <!-- MemberObjectGroups="#ID#Top" createDate="Wed May 30 10:36:29 CEST 2007" extensionClass="WFProcess" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA" name="PRUEBA" visibility="runschedule"-->
    <TaskDefinition id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA' name='PRUEBA' lock='Configurator#1181667176671' creator='Configurator' createDate='1180514189312' lastModifier='Configurator' lastModDate='1181666876671' lastMod='129' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
    <WFProcess name='PRUEBA' maxSteps='0'>
    <Activity id='0' name='start'>
    <Transition to='activity1'/>
    <WorkflowEditor x='88' y='120'/>
    </Activity>
    <Activity id='1' name='end'>
    <WorkflowEditor x='457' y='89'/>
    </Activity>
    <Activity id='2' name='activity1'>
    <ManualAction id='0' name='prueba' syncExec='true' itemType='wizard'>
    <WorkItemName>
    <ref>probando voy</ref>
    </WorkItemName>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm'/>
    </FormRef>
    </ManualAction>
    <Transition to='Create View'/>
    <WorkflowEditor x='177' y='266'/>
    </Activity>
    <Activity id='3' name='Provision'>
    <Action id='0' process='Provision'>
    <Variable name='op' value='provision'/>
    </Action>
    <Transition to='end'/>
    <WorkflowEditor x='380' y='305'/>
    </Activity>
    <Activity id='4' name='Create View'>
    <Comments>Initialize a new view.</Comments>
    <Action id='0' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='createView'/>
    <Argument name='type' value='User'/>
    <Argument name='viewId' value='User'/>
    </Action>
    <Transition to='Provision'/>
    <WorkflowEditor x='247' y='416'/>
    </Activity>
    </WFProcess>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='PRUEBA'/>
    </Properties>
    </TaskDefinition>

    Hi gvivek99,
    I have put a link in the �Anonymous User Menu�
    <Field name='Test'>
      <Display class='Link'>
        <Property name='URL' value='user/anonProcessLaunch.jsp?newView=true'/>
        <Property name='id' value='PRUEBA'/>
      </Display>
    </Field>This link start "PRUEBA" Workflow (see my first post).
    This workflow call a ManualAction and open PRUEBAForm. In this form I request the accountID, firstname and lastname. But when I submit it, I get the next error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    <!--  MemberObjectGroups="#ID#Top" extensionClass="Form" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5" lastMod="247" lastModifier="Configurator" name="PRUEBAForm"-->
    <Configuration id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm' lock='Configurator#1182147751359' creator='Configurator' createDate='1180518677968' lastModifier='Configurator' lastModDate='1182147451343' lastMod='247' wstype='UserForm'>
      <Extension>
        <Form name='PRUEBAForm' noDefaultButtons='true' objectLocationID='objectName=PRUEBAForm&isBegin=true&objectPath=0&objectType=UserForm'>
          <Display class='EditForm'/>
          <Field name='waveset.accountId'>
            <Display class='Text'>
              <Property name='title' value='_FM_ACCOUNT_ID'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='required'>
                <Boolean>true</Boolean>
              </Property>
            </Display>
          </Field>
          <Field name='global.firstname'>
            <Display class='Text'>
              <Property name='title' value='_FM_FIRSTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
            </Display>
          </Field>
          <Field name='global.lastname'>
            <Display class='Text'>
              <Property name='title' value='_FM_LASTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='noNewRow' value='true'/>
            </Display>
          </Field>
          <Field name='global.fullname'>
            <Expansion>
              <cond>
                <and>
                  <ref>global.firstname</ref>
                  <ref>global.lastname</ref>
                </and>
                <concat>
                  <ref>global.firstname</ref>
                  <s> </s>
                  <ref>global.lastname</ref>
                </concat>
              </cond>
            </Expansion>
          </Field>
          <Field name='nextCancelButtons'>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Next'/>
                <Property name='value' value='Submit'/>
                <Property name='command' value='Save'/>
              </Display>
            </Field>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Cancel'/>
                <Property name='value' value='Cancel'/>
                <Property name='command' value='SaveNoValidate'/>
              </Display>
            </Field>
            <Field name=':complete'>
              <Default>
                <s>true</s>
              </Default>
            </Field>
          </Field>
        </Form>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
      <Properties>
        <Property name='editorOriginalName' value='PRUEBAForm'/>
      </Properties>
    </Configuration>Thanks

  • How to switch user from the current user using shell script code

    Hi Experts,
    I have an requirement to login into a particular user from the shell script concurrent program. I do have credentials for that particular user. I want to login and run few commands from that particular user. Please let me know if there are any methods to login as a particular user using the username, password from shell script program.
    Thanks a lot.

    Thanks for your reply. However we cannot use su command from a shell script program. How to enter password from shell script program?http://tinyurl.com/3t7cwjh
    Thanks,
    Hussein

  • How to Pull out single common T-code from the existing User's profiles.

    Hi experts,
    Here in my company we are using 4.7 Enterprise with 230 users.
    recently management decided to pull out authorization for one Common T-code assigned to 100 people in their profiles.
    we had created customized profile for each user.
    So, here i had 100 profiles. i need pull out one common T-code assigned in all these 100 profiles.
    not only in this 100 profiles, i want to remove for all customized profiles in my SAP PRD server.
    request you to more inputs concerned to this.
    Thanking you in anticipation,
    best regards,
    Raghav

    I agree with Alex that shows again that roles per user is NOT best practice.
    Best practice design:
    1.     Let the functional process designers describe the whole process on TRX Level.
    2.     Let business decide which part of the process is to be done by which user.
    3.     Split the process in point 1 in such a way the you can mach every user in step 2. In this try to avoid a single TRX to be in more than one single role.
    4.     Create roles for the part process in 3 and assign to users (if the number of roles per user is making it hard to maintain, you can decide to create Composite roles).
    If you would have followed steps aforementioned you would have to remove the TRX from one role ONLY!
    I would suggest to find time to make a redesign, It will definitely pay-back in far less maintenance.

  • People picker are not displaying all the users from the existing Synchronization Connections

    Hello, I need help.
    I have two domains, an old domain and a new domain that were are migrating to.
    I have 2 connections for Users Synchronizations, one to the old domain and one to the new domain.
    Here is what is happening: when I open people picker from any of the web applications only the users that existed in the old domain are showing and not the new users that are been added to the new domain. Basically people picker is displaying old data/users.
    What can I do?

    The People Picker doesn't leverage UPA Sync Connections. Is there a one way or two way trust set up between the domains? If it is one way (where the old trusts the new), then you need to leverage the peoplepicker-searchadforests property: http://technet.microsoft.com/en-us/library/cc263460(v=office.12).aspx.
    You also need to make sure your SharePoint servers have port access to the Domain Controllers in the new domain: https://peoplepicker.codeplex.com.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Custom workflow... creating a new user from the End User's point of view

    Hello I am trying to design a new Request for the end user so that they are able to create a new user. I am having problems with my workflow at this point and keep getting the error "Missing view id." Below is my code please help me out... I am very new to this so be gentle.
    P.S. All my fields are named with " view.waveset.* " where * is either accountId or firstname or any attribute I need to set
    <Extension>
    <WFProcess name='End User Create New User' maxSteps='0'>
    <Activity id='0' name='start'>
    <Transition to='Create View'/>
    <WorkflowEditor x='33' y='5'/>
    </Activity>
    <Activity id='1' name='Create View'>
    <Action id='0' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='createView'/>
    <Argument name='id' value='$(accountId)'/>
    <Argument name='type' value='User'/>
    </Action>
    <Transition to='Update View'/>
    <WorkflowEditor x='107' y='81'/>
    </Activity>
    <Activity name='Update View'>
    <Action process='Update View'>
    <Argument name='type' value='User'/>
    <Argument name='id' value='$(accountId)'/>
    <Argument name='options'>
    <map/>
    </Argument>
    </Action>
    <Transition to='Provision'/>
    </Activity>
    <Activity id='2' name='Provision'>
    <Action id='0' application='com.waveset.provision.WorkflowServices'>
    <Argument name='op' value='provision'/>
    <Argument name='user' value='$(view)'/>
    <Argument name='options'>
    <map/>
    </Argument>
    </Action>
    <Transition to='end'/>
    <WorkflowEditor x='296' y='83'/>
    </Activity>
    <Activity id='3' name='end'>
    <WorkflowEditor x='393' y='5'/>
    </Activity>
    </WFProcess>
    </Extension>

    I ran across the same error today. Since it's been over a month, I assume you've fixed it already or decided you didn't need it at all? What was your fix?
    For me, I noted that in the sample directory, a similar "createView" call (in End User Anonymous Enrollment) also includes this argument:
    <Argument name='viewId' value='User'/>
    When I added that to my createView call, the "Missing view id" error went away, and the user are gets created.
    I'm not entirely comfortable with the value specified, though; seems like view IDs should be more unique. I would have thought it should have been something like this instead:
    <Argument name='viewId' value='User:$(accountId)'/>

  • How to execute a transaction with a different user from the logged user?

    Hello Experts!
    I'm trying to find out a solution about this scenario: our users need to release a Purchase Order (ME28) and/or a Service Entry Sheet (ML85) in SAP from a WEB based application through TIBCO, but the requirement is to execute this operation with the same SAP User name of the user (with his authorization) and not with the TIBCO user that is logged to SAP.
    Is there someone that could suggest me a real time solution and how to develop it? I really appreciate your contribute and I'm at your disposal for any further information.
    Thank you very much!
    Alessandro

    Hi Rob!
    Thank you for your help, but I can't apply this solution, because we need to execute the transaction with a specific user name and not a generic user, besides our user have different authorization, for example the user Mr. Rossi can release only his Purchase Order but not the PO of another user Mr. Bianchi. Moreover we need to see the PO released/modified from a specif user name. So this is our constraint.
    Bye Ale.

  • Creating FBA user from the timer job

    Hi,
    I'm trying to create FBA users from the timer job,
    The code to it:
    MembershipCreateStatus createStatus;
    MembershipUser user = Membership.CreateUser(strUserID, strPassword, strEmail, "Test Question", "Test Answer", true, out createStatus);
    switch (createStatus)
    case MembershipCreateStatus.Success:
    //SendMail
    break;
    case MembershipCreateStatus.DuplicateEmail:
    //Log in to the error file
    break;
    But it throws the error:
    Unable to connect to SQL Server database in the timer job
    Regards,
    Sachin

    timer job has its own app.config, which is completely separate from the web.config
    plus, this is a terrible idea.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • New User with the task from the copied user

    Hi frnds,
       I created a new SAP user id by copying the existing. When i logged into the portal using the new user id, i was able to see the task from the original user id in the task list. But this should not happen. Is there any configuration to control it?
    Let me know if you have any solution for the same.
    Thanks,
    Suganya

    1. Its not happening now.

  • Script to Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    You can use an external table :
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    USERNAME
    USER1
    USER2
    USER3
    SYS@db102 SQL> !cat users_to_drop.txt
    USER1
    USER2
    USER3
    SYS@db102 SQL> create table test.users_to_drop
      2  (
      3     userx   char(30)
      4  )
      5    organization external
      6  ( type oracle_loader
      7    default directory work
      8    access parameters
      9     ( records delimited by newline
    10     )
    11     location ('users_to_drop.txt')
    12  )
    SYS@db102 SQL> /
    Table created.
    SYS@db102 SQL> begin
      2     for U in (select userx from test.users_to_drop) loop
      3             dbms_output.put_line('Dropping '||U.userx);
      4             execute immediate 'drop user '||U.userx||' cascade';
      5     end loop;
      6  end;
    SYS@db102 SQL> /
    Dropping USER1
    Dropping USER2
    Dropping USER3
    PL/SQL procedure successfully completed.
    SYS@db102 SQL> select username from all_users
      2  where username like 'USER%';
    no rows selected
    SYS@db102 SQL>

  • Delete more than 1 user from the database

    Hi All,
    I have a list of users in a file and i want to write a script to delete all these
    users from my database.
    I have tried deleting users using:
    drop user user1,user2,user3..... but it doesn't seem to work.
    Can anyone suggest how do i read the users from the file and delete them one by one

    I have written a script but getting a error.Can anyone help :-
    create or replace PROCEDURE drop_user
    is
    v_filehandle utl_file.file_type;
    v_user VARCHAR2(20);
    lv1 VARCHAR2(200);
    err_code VARCHAR2(20);
    err_msg VARCHAR2(250);
    BEGIN
    v_filehandle:=utl_file.fopen('/tmp','user_list.lst','R');
    LOOP
    BEGIN
    utl_file.get_line(v_filehandle,v_user);
    lv1:='drop user'|| v_user;
    execute immediate lv1;
    EXCEPTION
    WHEN OTHERS THEN
    err_code := SQLCODE;
         err_msg := substr(SQLERRM, 1, 200);
         dbms_output.put_line(err_code|| ':-' || err_msg);
    END;
    END LOOP;
    utl_file.fclose(v_filehandle);
    END DROP_USER;
    ERROR :
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_FILE", line 98
    ORA-06512: at "SYS.UTL_FILE", line 157
    ORA-06512: at "TOM.DROP_USER", line 9
    ORA-06512: at line 1

  • I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    Unless you transfer the files from Setup Assistant, Migration Assistant creates a new user with the data.
    To transfer the files to your first user, you have to log on this new user, and copy all your files to /Users/Shard folder. This is a folder where you can put the files you want to share between two or more users, and all users can read and write in it.
    After copying the files, go to your first user, open /Users/Shared folder, and copy the files to your user folders. If you migrated applications, you must know that they are stored in a common folder (/Applications), so you don't have to transfer them. To open /Users/Shared folder, open Go menu (in the menu bar) > Go to Folder, and type the folder

  • Gracefully logging out user from the session

    Hi,
              I have seen this issue coming up in my current project and last project. If there is a certain window in which the server is scheduled to be bounced as part of regular maintance, what is the best way of gracefully shutting down the existing users and not letting new user come in.
              My thinking is more on the lines of defining a filter. This filter once knows that it is time to bring the server down, will not let new user come in and will turn on a flag that every jsps check to see whether to display the message(that server is going to come down in a litte while) or not
              Any ideas, feedback??

    Hi NIgel,
    Thanks for your response. I've made those changes and I think it has made an improvement, but I'm still experiencing the same issue.
    Something I have noticed is that each time I log back into the room, there's an extra line of
    #FMSConnector# Mon Jun 14 19:42:16 GMT+0100 2010 mainNetStatusHandler: NetStream.Connect.Success
    is added to the debug trace in the dev environment. So on the second time I enter, it prints the line 3 times, and on the third entry, its printed 4 times etc....
    I assume this is not supposed to happen, and usually by the 5th login, one of the clients has crashed. I seems logical to me that all the NetStreams are not being closed.
    Does this point to something I'm doing wrong? Is there anyway to get more description from the LCCS SDK code?
    Thanks again,
    Mark

  • How to find out the user from the Jobs queue in Report server

    Hello All!
    I have a doubt about finding out the user from the scheduled jobs queue. Say I go ahead and schedule a report on Reports Server how can I find out the user name. When I view the jobs using showjobs I could see that the DBMS_JOBS table has a column under "Job Owner". But it invariantly shows it is "rwuser". So is there a way to find out which user has scheduled which job?
    Regards
    Shobha

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • Cannot delete users from the Central Management Console

    I cannot delete users from the Central Management Console.  I'm logged in to Enterprise as administrator but still get the following error:
    There was an error while writing data back to the server: Sorry, you do not have the right to 'Delete objects' (id - 22) for 'koberg' (id - 725415). Please contact your system or permissions administrator if you require this right.
    Thanks in advance for any help on this matter.

    Oops, my mistake, sorry. Ok, so the Administrator cannot delete user koberg.
    Check top level:
    Logon to CMC, browse to Home > Settings and select the Rights tab. These are your top level settings. Factory default will show only Administrators and Everyone. Select the Net Access "Advanced" for the Administrators group. NB: Do not select these group names links - they will jump you out of the top level! On the Advanced rights page, ensure the right to "Delete objects" is explicitly granted.
    Then set for the Users top level folder:
    In the CMC, browse to Home, and select Users. Select the "Rights" button. Again - NB: Do not select these group names links - they will jump you out of the Users top level folder! Set the Administrators group to "Full Control". Save.
    That should be all you need. However, there is a possibility the previous admin was busy setting security not only at the account level, but on groups so we need to verify the user:
    In the CMC, browse to Home, and select Users. In the User list, select koberg. In the koberg account page, select the Rights tab. If the Administrators is not set to (Inherited Rights), make it so, and when you select the "Update" button, you should see the Net Access update to "Full Control". If this is the case, you should follow these steps on each account and accomplish this.
    And if you still can't delete it, verify the groups:
    In the CMC, browse to Home, and select Users. In the User list, select koberg. In the koberg account page, select the "Member of" tab. Note all groups koberg is a member of. Then in the CMC, browse to Home, and select Groups. Select the name hyperlink for the group(s) that koberg belongs to. On the group page, select the Rights tab, and ensure the Administrators have (Inherited Rights) - Full Control on all of these, also. If not, set it.
    Finally, I know you inherited this, but let's overview some basics of simplifying your deployment administration. Follow these guidelines, and your administration life will be so much easier.
    1. The Everyone group should never have any subgroups. Ever. All accounts on the system are a member of the Everyone group. Adding subgroups to the Everyone group is redundant.
    2. For simplicity's sake, Application level access should be set on the Adminstrators Group, and the Everyone group. I know there are customers who add groups to application rights. I don't understand why users would have an account on the system if they are not allowed access to InfoView, but it's your system.
    3. From a report object perspective, the Everyone group should be set at the top level to "No Access". This will result in them having no rights on anything at all. You break this inheritance at the application level to give them access to InfoView and other apps. On folders and objects, you ADD groups, then assign (ADD) rights as desired.
    4. If you can help it, never explicitly deny a right to any user or group for any object or application. Explicitly deny overrides any other setting. If a user belongs to group A and group B, and group A is explicitly denied a right, you can explicitly grant it for group B or the user all day long, and it will still be denied. Always try to put yourself in the position of adding groups/users, and adding rights, then inheriting as far down the folder tree as you can.

Maybe you are looking for