CREATE MANY USERS AT ONCE

Hi,
How do I create more than one user at once?
Thanks

Hi seashell,
Let me make your life little easy.
CREATE OR REPLACE PROCEDURE create_user( p_user_list VARCHAR2, p_tablespace_name VARCHAR2) AUTHID CURRENT_USER AS
l_user VARCHAR2(30);
l_comma_pos NUMBER := 1;
l_cursor_pos NUMBER := 1;
l_user_sql VARCHAR2(100);
l_grant_sql VARCHAR2(100);
BEGIN
LOOP
l_comma_pos := INSTR(p_user_list,',',l_comma_pos,1);
               DBMS_OUTPUT.PUT_LINE('sTEP1 :'||l_comma_pos );
IF l_comma_pos = 0 THEN
l_user := SUBSTR(p_user_list,l_cursor_pos);
                                        DBMS_OUTPUT.PUT_LINE('sTEP2');
                              l_comma_pos := -1;          
ELSE
l_user := SUBSTR(p_user_list, l_cursor_pos, l_comma_pos-l_cursor_pos);
                                        DBMS_OUTPUT.PUT_LINE('sTEP3');
l_cursor_pos := l_comma_pos + 1;
          l_comma_pos := l_comma_pos + 1;
END IF;
l_user_sql := 'CREATE USER '||l_user||' IDENTIFIED BY '||l_user||' DEFAULT TABLESPACE '||p_tablespace_name;
l_grant_sql := 'GRANT CONNECT,RESOURCE TO '||l_user;
DBMS_OUTPUT.PUT_LINE(l_user_sql);
     EXECUTE IMMEDIATE l_user_sql;
     DBMS_OUTPUT.PUT_LINE(l_grant_sql);
     EXECUTE IMMEDIATE l_grant_sql;
EXIT WHEN l_comma_pos = -1;
END LOOP;
END create_user;
Just create this procedure in system user of your database.
To use this procedure you need to pass two things one is list of user seprated by ',' and tablespace in which you want to create your user.
example I want to create two user lets suppose 'Raj' and 'seashell', and I want to use tablespace 'users'
SQL> execute create_user('raj,seashell','users');
I hope this will help you out.
Message was edited by:
rajs

Similar Messages

  • How to create many user in the same database

    hi
    my question is "How to create many user in the same database(application)?"
    for example, i have students, teachers, and staffs user using my application.
    i can create many users to use the same application right?, how ^^''' ???
    (right now i can only create application and then it shows every data in my DB
    but i want it to show only the data for the user who login to that application)
    Thanks.
    ps. i'm newbie, please help T^T

    You need to create a user table within your application that maintains their privileges. If you have LDAP you could use this for authorisation otherwise the table would handle that as well (store passwords etc). Your reports etc would then be filtered on information from this table.
    Check out some of the sample applications to see how authorisation and access is implemented (Online store is one). The how-to on the issue tracking system should also have some useful pointers.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/issue_track.htm#BABBGBJG
    cheers,
    Ron

  • Create multiple user accounts

    How could I create multiple user accounts?...
    We have about 2000 students register every year and each of them will be given a user account

    I managed to create many users using the command
    imadmin -D serviceadmin n xxx.com -w password -i <inputfile>....
    the content of the input file
    l KA1000
    F new
    L user1
    W secret
    l KA1001
    F new
    L user2
    W secret
    so I have created 2 user accounts [email protected] and [email protected]....
    I have one more question to ask..how can I create new accounts which have different login id and email address using the input file....for examples for login id KA1000 the email address would be [email protected].
    I've tried this using ldapadd and it worked, so I would like to know wether imadmin command will work the same.....

  • How many users for remote connection can I  create, from support SAP

    Dear all
    I have a doubt with how many users can be created in my system ERP 6.0 for the remote connection, for the error product  messages on the marketplace SAP,without this counts as user license.
    I have not found any notes or documents from SAP to explain this.
    I appreciate your help.
    Best Regards,
    Erika

    Ok...I will reply to myself. I can use more than 10 simultaneous connection, using vnc.

  • How many users/ schemas can we create in an oracle database?

    How many users can we create in an oracle database? Or how many users can oracle handle?
    Problem-
    I have to store information of ontologies (I will use countries instead) in db.
    I have to store information regarding countries.
    I have 13 tables in all to maintain for each country.
    Now there are two approaches:
    1) keep only 13 tables. Have an extra column in each table to indicate that a particular
    row stores information for which country.
    2) create a new user/ schema for each country. So we can get rid of the extra column
    needed in 1st approach.
    I have used the second approach. This is because number of entries in each table for a
    given country will be large.
    So initially when the s/w is installed I create a central-user. Each time data for new
    country has to be entered central-user creates a user/ schema, and creates tables for
    this user/ schema. The central user can access the tables of all the countries by
    country_name.table_name. By this approach I believe searching would be easy.
    If there is any flaw in my approach kindly mention it.
    Thank you

    There is no (practical at least) limit to the number of users & schemas you can have in Oracle.
    Your approach, however, is not going to scale nearly as well as the first option you outlined (adding a column). You are going to end up caching every possible variation of the various queries you're going to be executing because you will be referring to so many different tables, which is going to mean that you are doing a lot more work to parsing statements and generally churning through the shared pool. If you create enough users, you're liable to start hitting ORA-04030 errors because your shared pool is so fragmented.
    Additionally, you're likely going to end up with a whole lot of dynamically generated SQL to accommodate new schemas getting added over time which is going to cause you even more pain. Figuring out dynamically what table to join in is a heck of a lot more difficult for the programmer to write and for the database to handle than simply passing in a different country code.
    If you're concerned about having too much data, you can have your cake and eat it to by adding the country column and partitioning the tables based on country.
    Justin
    One other item I forgot to mention is maintainability. Having dozens or hundreds of "identical" schemas makes maintenance a huge pain because something like adding a new column now requires dozens or hundreds of separate DDL statements. You're almost guaranteed that some schema isn't going to be in sync-- it's going to miss a column or miss an index, etc.
    Message was edited by:
    Justin Cave

  • Help on -  IBOT report to be generated once and then sent to many users.

    Hello All,
    I need some advice to make Ibot efficient. The Ibot at my institution is configured to send a specified report to many users and group. The problem now is the report is generated for every user and then sent to individual user, which takes a lot of time and limits the usage of the resources to other.
    Is it possibel that a report which has to be mailed to many users can be generated once and then sent to all the recipients?
    Thanking you for time and efforts!
    regards
    Ankit

    OK...
    . Do you have the complete application suie of the Audigy SE installed?
    2. If so, in Control Panel do you have the Audio Console or Audio Control Panel?
    3. If you do, change the settings for Decoder Settings to SPDIF passthrough. (THis is however only of AC-3 content, it doesn't affect other formats) (I am not sure the Audigy SE does have a decoder, if not, you need to change the setting in the AC-3 decoder you use)
    4. Then go to Device settings and change the Digital Output sampling rate to 48kHz.
    Now if you cannot find Audio Console, then you should download the latest drivers. They specifically state they allow you to change the "SPDIF output Sampling rate", so you should be able to access the option. I believe your problem lies to the fact your SPDIF is configured for 96kHz output and most probably these very old speakers do not support more than 48kHz.
    PS: The instruction I posted above, are based on an Audigy 2 ZS setup, so the naming of the settings and access programs could be different on the SE, but nevertheless present.

  • Need help creating many, many users.

    Hi,
    I need to create around 500,000 users in the iFS schema in the quickest possible way.
    The java API will do about 2 a second, which gives me an overhead of a few days?!?
    Any suggestions would be greatly appreciated.
    Thanks, this list has never let me down yet ;o)
    Paul.
    null

    Paul, we have not tested creating that many users in iFS, so we don't know if you will run into any issues. And I don't have any timed stats for creating users through XML.
    But we believe that using the Java API is the fastest way to create users.
    You will want to create the users in batch, and disconnect between batches, as the JVM memory will increase during the create.
    So you may want to create the users 10,000 at a time, and then disconnect and reconnect to create the next 10,000. Set your java MX setting for the JVM as high as you can (say, 768M), and then measure your memory usage for the first 10,000 users to see close to the MX setting the JVM gets.

  • HT3910 Once I register my MBP and create a user account, I get a gray screen and it does nothing.

    Once I register my MBP and create a user account, I get a gray screen and it does nothing.

    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.

  • Create Inspection plan at once for many materials through QP01. Possible?

    Dear Friends,
    Is it possible to create Inspection Plant for more than one material at onece through QP01 when operation activity and Characteristics are same. I will change the Characteristics specifications afterwards.

    As suggested in earlier reply you can assign multiple materials to one inspection plan.
    But you may still need more than one plan because of
    1. UOM is maintained in Inspection plan header. So you have to create different inspection plan if you receive materials in different Unit of measures.
    2. Usage is also at header level, so depending on configuration, usage for 01 inspection type may be different from usage for 0101 inspection type.
    If you like the user exit approach.
    1. Create a dummy material and assign default inspection plan to this material.
    2. In the user exit change the inspection plan assignment.  Assign inspection plan from this dummy material.
    Form us this was a very useful approach during testing or for new material where inspection plan was not created in time.
    Once this default inspection plan is assigned, inspection lot is released even without inspection plan. If we need,  we can always change the default inspection plan in QA02 transaction before RR
    AK Marwadi.

  • Drag multiple photos to create many blog entries at once?

    I wanted to make many blog entries at once from some photos. This is trying to catch up with many entries at once, and make basically photo pages with one photo and more than just a caption (like you get with a photo page).
    I did this by the usual method when I first tried iweb (try something, it works...). Then I noticed that it just assigned today's date to all the entries. I didn't want that, so I deleted all of them. Then I found out you could edit the dates...
    Now, I want to recreate all those entries again, and I can't for the life of me repeat that initial 'try it, it works' of just making many blog entries all at the same time. I can't remember if it was a drag in, or what...
    help!
    Doesn't help that iweb goes to SBOD when I first open the media browser for 10 min...

    Peter...
    I have not tried this myself, so I'm not sure if this is what you did....but try this...
    In iPhoto, select all the photos (Apple-click to select multiple photos) that you want to send to your blog pages. Then do you see the iWeb icon at the bottom of the iPhoto window there??? Click on it and select "publish to photoblog". See if this is what you were looking for...

  • Creating two users for one desktop Address Book

    I apologize for posting this more than once but I haven't received a response and I think perhaps the first post was not in the right place.
    Why is it not easier to create two Groups under the common AB rather than creating two users and exporting/importing files? I read an earlier question from someone who needed two ABs for two users but didn't want to do two Groups yet it seems so easy to do.
    I created a Group called 'Dedo'; highlighted, dragged and dropped, the entire All listing in AB. I then edited out the names I don't need by Remove From Group (under AB, Edit). The Group-edited names still remain in the ALL listing on the desktop AB. I then synced only the selected groups I wanted to my iPhone, including 'Dedo'. It created a new All Contacts and all the groups I selected.
    I can create a second group called 'Speedo' for the other user, drag & drop All from the desktop AB, and they can edit from 'Speedo' the names they don't want, and sync their groups to their iPhone. Again, the All Contacts are still intact on the desktop AB for reference to info we might want occasionally but don't need on our phones.
    So .............. what's the downside to what otherwise seems like an easy fix? What am I not seeing?
    Thanks for any insight I'm missing.

    No one responded. However, dividing the names of interest to each of us into two groups seems to be working well. We sync the particular group we want to our individual iPhone and don't bear the burden of having many, many names we don't want in our own personal contacts.

  • How many users can you have on one account ?

    Hi,
    I have just created a ID with Adobe Reader for a group to use files stored in cloud. I would like to know how many users can access the account at one time via, mobile devices, ipad, desktops ?

    I don't know if there is a limit; you do mean the free https://cloud.acrobat.com/ ?
    I will move your post to the Acrobat.com forum, where someone hopefully can give you a definitive answer.

  • Error in phase creating java users during installation!!

    Hi,
    We are getting error at step "Creating java Users" while installing NW 2004s SR1  non unicode dual stack on HP Ux Pa Risc 64 bit with database Oracle 10g.
    Erro logs of file /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/sapinst_dev.log are as:
    ==================================================================================================
    ERROR      2011-07-21 13:20:37
               CJSlibModule::writeError_impl()
    CJS-30197  . For more details see output of logfile:
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2011-07-21 13:20:37 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0|createJSF was executed with status ERROR .
    =================================================================================================
    Also please note that we have already 1 instance (dual stack) on same host and that is running fine.
    Could someone please assist us in proceeding further.
    Regards
    Joy Garg

    Hi,
    Issue gets resolved by  extracting manualy from JAVA_DVD_DIR/J2EE_OSINDEP/J2EEINSTALL.SAR to SAPINST install directory using SAPCAR. The path of this install directory is:/tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install as:
    > pwd
    /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install
    > SAPCAR -xvf /SW/NW_2004s_SR1Java_based_SW_Comp/J2EE_OSINDEP/J2EE-INST/J2EEINSTALL.SAR
    Once we have extracted the J2EEINSTALL.SAR relaunch SAPINST again and the installation continue.
    Regards
    Joy garg
    Once you will have extracted the J2EEINSTALL.SAR please launch SAPINST again and the installation will continue.

  • How do I create new user table in program and then access it?

    I am writing an application where I check for the existence of user objects when the add on starts and run the setup if the objects do not exist. I can create the user tables and fields but after the setup completes these objects still are not visible.
    If the user objects exist when the add on is first run everything is detected correctly.
    When a user object is added in SAP the user is eventually prompted to restart so I suspect something needs to happen prior to the add on being able to use the new fields.
    Does the add on need to wait for the DI Server to perform some action? Do I need to just quit the add on's class and rerun it, disconnect and reconnect to the company, or get a new Application and/or company object?
    What I want to do is figure out a way for the add on to automatically run the configuration if the user tables and fields do not exist yet and then kick off the regular add on code. I haven't seen anyone else's code so I don't know what is recommended or required here.
    Thanks for any assistance!

    I found that the add on can validate the existance of the user fields if I disconnect from the company object, set the SAPbouiCOM.Application and SAPbobsCOM.Company objects to null, set the new application, context, and company objects, and reconnect once more.
    HOWEVER...
    I still have to wait for the client to be restarted manually before I can run any of the form I added to the menu.
    So, I'd still like to know what the best practice is here. Should I just exit after setting up the tables and tell the user to restart SAP?

  • How to know how many users uses Report Designer?

    Dear Experts,
    Somebody knows if it's possible to know how many users have made look ups in Report Designer on one period or how many modifications?
    Thanks in advance.

    Hi,
    If the cube is checked for Statistics, there is a option settings for BI Statistics under tools, then all the user related info is stored in Techincal Content Cubes. Based on TCT(technical Content Cubes), you need to create a report based on the requirement. From then we can know user log info for the particular queries.
    Hope this helped you
    Thanks
    PT

Maybe you are looking for