Create user like

Hi
I want to create a new user with exactly same roles and priveleges with a user which is created before.
How can I do that in Oracle 9i ? There is no enterprise manager

OrionNet wrote:
Hello,
YOu can genric script like in this example and create different users with the same privs and grants. It will prompt you to enter username and tablespace name, you can also do same for the password
CREATE USER &username
IDENTIFIED BY "password"
DEFAULT TABLESPACE &tsname
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
GRANT IMP_FULL_DATABASE TO &username;
GRANT RESOURCE TO &username;
GRANT EXP_FULL_DATABASE TO &username;
GRANT CONNECT TO &username;
ALTER USER &username DEFAULT ROLE NONE;
GRANT CREATE SESSION TO &username;
GRANT ALTER SYSTEM TO &username;
BEGIN
Not sure that the script is going to work foolproof. For example, I don't think that there is a need to give explicit create session when already user is getting connect role in 10g . Also resource role comes with an unlimited tablespace priv , a big NO IMO to be given just to anyone. A much better option than this can be to make stand alone user-created roles for all the different types of users and grant them to the users when they are created. By this, all one would need to do is to issue a create user and couple of grant role commands and he is done.
Cheers
Aman....

Similar Messages

  • Create user like ias_admin user but with less previlege in Oracle 10g AS

    Hi Friends,
    I am using Oracle 10g AS(10.1.2.0.2).
    I am using ias_admin user to admistrate it.
    Is it possible to create one more user like ias_admin but with less previleges like Read-only previlege and if so whats the procedure.
    Please suggest
    Regards,

    If you are talking about creating additional admin users for AS Control for Oracle Application Server 10gR2 (v10.1.2), than that's not possible. It does not support role based access administration. You can do it though with EM Grid Control and AS Control in Oracle Application Server 10gR3 (v10.1.3.x).
    Thanks
    Shail

  • Need a help to create user and assign BP to it

    Hi,
    I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
    Can anybody please help on which Function Module I need to use to create user and assign BP to it.
    Thanks in advance..
    Sushant

    Hi,
    Many post post are there for your query in SDN search if my below shown link is not helpful.
    Hope the below will help you.
    Users Created ...
    Cheers!!
    VEnk@

  • Create user with User ID like A123456.

    Hi,
    We have requirement that all user ID must be starting with alphabet and than appended with six digits like Z345678.
    So, please suggest how can we force in create user page the above restriction. And if user violates this rule we want to generate error message.
    Thanks

    Hi,
    There are two option to achieve the same....
    First one to let the user enter the user id in the fomat, and make the adapter which will check the whether the userid in desired format or not, and if any user voilate that error message will be displayed.
    Just go through the design guide to know more about the erros and how we can put in the adpters.
    Second option, let the user enter any id and genetate the user id through entity adapter under pre-insert as per desired format.
    Let me know if you have any question for the same.
    Regards
    Alabhya Goel

  • Create a new DB user like APPS user

    Hi all,
    I want to create a database user that have [select] and [execute] privilages for all tables under all schemas in eBusiness Suite database instance.
    My aim, is to create a safe user that can execute any query like APPS user do, but he can not update\insert\delete like APPS user do. Because APPS user should be limited to a few DBAs only, while other IT developers need to select or exexte programs only.
    the problem come from that not all eBusiness Suite DB objects under one schema, they are distributed under many schemas like APPS, HR, ..ect.
    Any advice on how to create such user pls?
    Regards
    Bas.

    Check the following thread:
    Create read only user like apps
    create read only  user like apps

  • Create new user like another user with select privilege???

    our user requested create another user similar to "apps" , but only "selec t" privilege to "apps" objects and other user's objects which grant to "apps".
    In this case they can use tool login and do some work.
    Does anyone know how to "create a new user like APPS", bur only copy APPS "select" privilege to this new user?
    Thanks.

    This has been discussed many times in the forums. Pl see this thread Re: How to create a read only database or conduct a search for more hits.
    HTH
    Srini

  • Create dummy user like oracle on linux OS?

    Hi All,
    Is it possible to take export import to the Oracle DB/Schema/Table from other linux user?
    i have plan to create dummy user like oracle on Linux box, so developer will use this dummy user and logging to oracle BOX and take the dump.
    I have created one user "TEST" in linux OS.
    but what is the next?
    what priviledge is requred or take dump from other linux user?
    oracle:x:501:502::/home/oracle:/bin/bash
    test:x:502:504::/home/test:/bin/bash

    RK wrote:
    Hi All,
    Is it possible to take export import to the Oracle DB/Schema/Table from other linux user?
    i have plan to create dummy user like oracle on Linux box, so developer will use this dummy user and logging to oracle BOX and take the dump.
    I have created one user "TEST" in linux OS.
    but what is the next?
    what priviledge is requred or take dump from other linux user?
    oracle:x:501:502::/home/oracle:/bin/bash
    test:x:502:504::/home/test:/bin/bash
    Why do you think you need to create a 'dummy' OS account?  export and import a simply client applications.  They connect to the database using normal database account credentials.  The OS account has nothing to do with it.  The developers don't even need an OS account at all, as they can run imp from their oracle client-enabled desktops.

  • "The CREATE USER statement must be the only statement in the batch" in SQL Azure - why? what to do?

    I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
    IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
    CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
    GO
    Error: "The CREATE USER statement must be the only statement in the batch."
    I don't actually understand what 'the only statement in the batch' means.
    What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
    Thanks,
    Tim

    >IF...ELSE imposes conditions on the execution of a Transact-SQL statement
    I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
    It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
    am setting up the database on a clean server?
    IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    If I try and execute this script, it throws the same error as above.
    The first unworkable workaround idea is to omit the if statement
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    But if the login already exists on the server (because a similar script was already run), then the script throws an error.
    The second unworkable workaround idea is to do
    DROP LOGIN [foouser]
    GO
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    Obviously this throws an error in the second block if the login doesn't already exist on the server.
    The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
    Unfortunately that doesn't work for me either!
    "The DROP LOGIN statement must be the only statement in the batch"
    (This is despite the fact that 'drop login' is listed on the
    supported commands page, not the partially supported page..?! Which disagrees with the notes on
    this page.)
    Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
    if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
    If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
    Tim

  • Error creating user defined tables: Ref count (-1120)

    Hi all !
    I have to create user defined tables per code, so I wrote <b>2 main functions</b>, first <i>to create a table</i> (with TableName,TableType and TableDescription properties)and  and <i>second to add fields</i> (to a certain table which is sent as parameter).
    I call these functions to create multiple tables. For the first 6 tables it works totally ok. But beginning from the 7th table it gives that "<b>Ref count for this object is higher then 0.</b> " (-1120) error. All parameters are ok just as the first 6 tables.
    Found such an explanation like below in help files.
    <i>The DI API allows only one instance of a meta data object at a time. This maintains data integrity by preventing any manipulation of a business object while modifying the object's user fields. Therefore, verify that no other DI object is active except the meta data object.</i>
    But why do I get such an error after sixth call of the function (but not beginning from the second table )?

    Gül,
    Have you tried doing some grbage collection?
    Search for a topic: "Add Usertables and Fields while having a recordset"
    HTH
    Juha

  • Error has come while creating USER from SU01

    Dear Expert,
    I have got typical error while creating user from T-Code SU01.
    Problem is like that : I suppose to  use SU01 and "User Maintanace: Initial Screen
    has come. Now I put the new user name like ABAP2008 or FI2008 (what ever the name thats hardly matter) and click on CREAT button then next screen Maintain User has been appeared.In this screen Address TAB is on and asking for fillup all the required user information.So I have been made all information like :First name /Last name /Tele ph/Fax / email etc etc. After complete this tab when I clicked on next tab is called "LOGON DATA, it has been given a error "Specify a valid country indicator
    Message no. T5027" . Even thogh I didn't able to go to next screen LOGON DATA.Because of these problem I doesn't able to creat a user.
    SAP : IDES version ECC 6
    DB:SQL2005
    OS: Windows 2003 server
    Please do the needfull
    Thanks & Regards
    Pavel

    Hey Pavel,
    Are you using ECC with ISU.. ? I am not sure but I feel your issue can be solved with information provided in SAPnote,
    Note 1046566 - EC70: address-independent telephone number no country.
    The system does not transfer any country from the master data template with the address-independent telephone number.  The system issues the warning message T5027 "Specify a valid country indicator".
    All the best !

  • Error while create user in LDAP - LDAP: error code 1

    Hi Guy's, I am getting below error while creating user in LDAP MS AD.
    cn=3001,ou=sAP_IDM,dc=springswf,dc=comcn<mx:TEXT>putNextEntry failed storingOU=SAP_IDM,DC=springswf,DC=com</mx:TEXT>
    <mx:LTEXT>Exception from Add operation:javaxnaming.NamingException: {LDAP: error code 1 = 00000000: LdapErr: DSID-OC090AE2, coment: In order to perform this operation a successful bind must be completed on the connection.,data0,vece
    Steps I am following:
    1. create a job through wizard and pick from (IC->jobs->Active Directory->Create Active Directory User)
    2. Destination tab values that I am passing:
    dn: cn=Dummyuser,ou=SAP_IDM,dc=<main domain>,dc=com
    objectClass: top|person|organizationalPerson|user
    sn: Surname
    givenName: GivenName
    displayName: Dummy user displayname
    Under <main domain> an OU has been created called SAP_IDM for testing user creation from IDM.
    Admin user account created called <XYZ> and has full control over SAP_IDM OU.
    I am passing <XYZ> credentials into my job for user creation.
    Thanks for you help!

    Farhan,
    Based on the error message presented,
    In order to perform this operation a successful bind must be completed on the connection
    Make sure that you're using the correct information to do the AD Bind.  User name should be something like cn=administrator,cn=users,dc=xxx,dc=xxx and the proper password.
    Matt

  • How to create user in UME,

    HI gurus,
    In requeriment for project, the customer request is about a aplication to create user in the UME automaticall after fill a survey with questions of security, my questions are;
    1. Exist a way for create users automatically ??, a RFC ? a Web Service ? or this step is strictly done for a human
    (UME isn´t integrated with abap data source).
    2. ¿ In KM exist a application that permit show a questionary, and questions and answers were filled from information hosted in tables z in R3 ?
    THanks in advance

    Hi Pacheco Mauricio,
    1. Exist a way for create users automatically ??, a RFC ? a Web Service ? or this step is strictly done for a human
    (UME isn´t integrated with abap data source).
             It is already answered by Erhan
    1- There isnt a standart way to create user in portal. You can code a web service to create user using portal apis
             using API's only you can create Application which help to create Users in Portal UME.      
    2. ¿ In KM exist a application that permit show a questionary, and questions and answers were filled from information hosted in tables z in R3 ?
    2- And also there isnt a standart way to create a poll using ecc tables. But there is a way to create poll in portal.
              SAP had provided a Poll Facility in Portal what Erhan suggested, but problem is you can at a time put only one question in a poll, but if you want some more functionality along with polls, you can go for Sweetlets which is third party tool.
             But if you want to develop a Survey kind of application where you want different type of questions along with different answer options than you have to build application from scratch like how we develop Custom Web Dynpro Java Applications.
    Regards,
    Tushar Shinde.

  • Creating users in enterprise portals with CUA as userbase

    Hi All,
       we are using CUA system for maintaining the users and we want this users to be used in enterprise portals. So while installing WebAs itself, we specified the connection details to this CUA system. then we installed portal and we were able to view the users of CUA in portal.
      now i am creating a user from portal, create user option in UserManagement. but i just get an error like, could not create a user.
    i checked out in system administration->umconfiguration-> sap system. all the details that we specified during the webas installation appear there by default.
    so could you please let me know what the problem could be
    thank you

    Raj,
    I know that your problem was solved, but I've come across following SAP link. Hope, it helps other ppl..
    TITLE: Requirements for Service User Used to Connect to SAP Systems
    http://help.sap.com/saphelp_ep60sp2/helpdata/en/8f/67d27676ace84080964d4c4223bb3c/content.htm
    Thanks,
    Pritesh.

  • Error while creating user

    Hi,
    I am trying to craete user in portal which is ending up with error  " an error occured in the persistance.the original message was LDAP- error code 50-00000005 SecErr DSID-03151E04, Problem 4003(Insuff_Access_Rights) data 0 : something like taht.
    I am new to this creating users. 
    The UME config shows
    Datasource: Microsoft ADS(Deep heirarchy)+database
    Data Source file name: dataSourceConfiguration_Ads_deep_writable.db.xml
    What does the above config means? If i create a user under sys admin in portal, where is the user getting created? is it the portal DB or LDAP?
    Thanks in advance.

    Hi,
    if i want to create some portal users in portal DB, what should be the UME configuration?
    if you want to create user in portal database then you have to use UME confiuration as DATABASE ONLY.
    pls refer the below link
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7e/a2d475e5384335a2b1b2d80e1a3a20/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/38/caeaf49cce45d0a11fb8d7fef151b0/content.htm
    Thanks
    Anil

  • OIM Provisioning - Error during OID Create User Task

    Hi,
    I am getting the following error during OIM Provisioning to OID (Create User Task).
    I added few more attributes to the OID_USR form and then to the "OID User" Process Definition.
    Also, I added the Code/Decode Key Values in AttrName.Prov.Map.OID.
    DEBUG,08 Dec 2010 21:19:04,547,[XELLERATE.SERVER],Class/Method: tcDataBase/readPartialStatement entered.
    ERROR,08 Dec 2010 21:19:04,555,[XELLERATE.ADAPTERS],Class/Method: tcAdapterMappingUtility/getRunTimeVariable Mappings encounter some problems: No data available for variable having key = 350
    ERROR,08 Dec 2010 21:19:04,555,[XELLERATE.ADAPTERS],Class/Method: tcAdapterMappingUtility/getRunTimeVariable Mappings encounter some problems: No data available for variable having key = 350
    java.lang.Exception: No data available for variable having key = 350
    Earlier, before adding these attributes, the OID Create User Task was working. So I belive this is from the newly added attributes.
    Questions:
    - How to identity the attribute with this key? It looks like some of the attribute values that it gets during Run Time is not populated correctly. Any suggestions?
    - "key = 350"- Is there a database table that this gets stored? SPD? or anything else?
    Regards
    Vijay Chinnasamy

    @Keviin,
    I added 13 new attributes and corresponding "* Updated" Tasks.
    For all these, ProcessInstanceKey is mapped to Process Data -> Process Instance.
    I am going to validate the mappings again. Also, I noticed, some of the fields that I am prepopulating is not populated.
    Regards
    Vijay Chinnasamy

Maybe you are looking for

  • IPhone not syncing properly with iTunes 10.5

    Hi, I recently updated my iPhone 4 to the iOS 5 and also updated my iTunes to 10.5. A few days later I got an error message on my iTunes which said that the library was damaged, it would create and new one and save the 'old' one has "iTunes Library (

  • When using URLConnection read input stream error

    hi, In my applet I build a URLConnection, it connect a jsp file. In my jsp file I refer to a javaBean. I send two objects of request and response in jsp to javaBean. In javabean return output stream to URLConnect. At that time a error happened.WHY???

  • [SOLVED] HP LaserJet 1020 Installation impossible... yet

    By following Arch wiki instructions, I've installed CUPS, and related packages for my printer. I've configured CUPS (Adding user to lp group and setting SystemGroup root lp) and restarted it. First, I've tried to install drivers using hp-setup method

  • Iphone quartz border around line

    Hello, what's the best way to draw a (solid black) border around a line in quartz for iphone? I'm drawing lines on streets on a map and if the line is yellow (which is a legit use case), it blends in with the street color. One thing I could do is lay

  • Javadoc, what are the benefits?

    i'm new to java and have just heard about the javadoc tool. What are the benefits of using this tool rather than just commenting your code well?