How to batch create SSO accounts from Windows or a PL/SQL script

We have just converted our 6i Forms and Reports to 10g (10.1.2.0.2), and run them against a 9i database. In order to be able to securely run reports we set up and configured SSO for a few accounts via the Oracle Identity Management Provisioning Console. We do not have PORTAL – nor do we want it. However, now we need to create about 500 SSO accounts at once. We would prefer to be able to create these accounts in a batch method – eg run something from Windows command line or run a PL/SQL script. We have the DBMS_LDAP package successfully installed in that 9i database. Currently our list of 500 users is simply in a table in the 9i db.
Spent several hours looking through both this site and Metalink, but so far no luck – especially because we don’t have or want PORTAL. If anyone can help, would appreciate it very much.
Thanks

User dbms_ldap package in the database to use PL SQL to create your database
account and then an OID account with a RAD to match the database login. If you
You may have to load the DBMS_Ldap package from the database ADMIN directory first to be available in the database.
LDAP SQL Ex.
user_username := LOWER(new_user) || '@domain.com'; -
retval := dbms_ldap.search_s(my_session, ldap_base,
dbms_ldap.scope_subtree, 'uid=' || user_username, my_attrs, 0,
my_message);
retval := dbms_ldap.count_entries(my_session, my_message);
my_entry := dbms_ldap.first_entry(my_session,my_message);
my_dn := dbms_ldap.get_dn(my_session,my_entry);
dbpassword := 'PASSWD01';
isvalidrad := forms_rad.newraddefinition(radname,new_user,dbpassword,
dbtnsnames,errormessage);
sessionestablished := forms_rad.createoidsession(ldap_user, ldap_passwd,
ldap_host, ldap_port, ldap_base);
radcreated := forms_rad.createradforcn(my_dn, 'false', errormessage);
-- Create new user's database account same as RAD account.
v_sql := 'CREATE USER "' || new_user || '" IDENTIFIED BY ' || dbpassword ||
' DEFAULT TABLESPACE JLIM TEMPORARY TABLESPACE TEMP';
EXECUTE IMMEDIATE v_sql;
v_sql := 'GRANT CONNECT TO ' || new_user;
EXECUTE IMMEDIATE v_sql;

Similar Messages

  • Create SSO Account from Java/JSP ?

    I was just wondering if there is any good documentation around about how to use a custom JSP page to register a user in the SSO scheme of things (forgive me if my terminology is not quite correct).
    Basically, I want any Joe User to be able to come to "Some Site" and create an account, but I want that account to be created utilizing Portal's built in SSO functionality.
    Is there a good/documented way to go about doing this in Java. Am I going to have to make PL/SQL calls from my Java to do this? Or can Java talk to the SSO schema directly?
    Any comments would be much appreciated.

    This is what we need too.
    The best thing, though, would be if Oracle developed a portlet
    that can be configured to create accounds by PUBLIC user and
    also manage account. This is a general need and for, what I've
    seen in Portal discussion forums, almost every portlet developer.
    When will such a portlet be available?
    When when will a documented API for acocunt management be
    available in JPDK?
    Thanks,
    /Peter

  • How do I create an account from a home folder already on the hard drive?

    I did the archive and install option after my Microsoft Office starting acting up. Unfortunately, it had an error about half way through, leaving my old accounts under the "Previous Systems" folder without migrating them. I managed to do a fresh install of Tiger on the drive, and can see the user folder fine.
    How do I take that user's folder and create an account out of it? The migration assistant doesn't see it because it is on the same volume. Can I just drag the folder to the "users" folder on Machintosh HD?

    The following articles should help:
    http://docs.info.apple.com/article.html?artnum=107297
    http://docs.info.apple.com/article.html?artnum=302150
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • How can i switch my account from windows to mac

    I am buying an mac mini and have already bought Photoshop elements 13 and need to install it on there, but my account says I have a windows platform for download.  Is there not a number to call and speak to someone to switch this over.

    See here:
    Order product | Platform, language swap

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • HT2534 how can i create an account in itunes from Bangladesh ?

    how can i create an account in itunes from Bangladesh ?

    If you go to the artist's/group's page in the store then you should be able to do it e.g. search for the artist in the store, and on the right-hand side of the results page there should be list of content categories that match that search, and below it a link for the artist
    Click on the artist's name to go to a screen listing their items, and at the top right of that screen there should be a 'share' icon'
    Click on that and on the popup you should have an option for 'alert me' (I haven't used it but I assume that it works).
    You can see what alerts that you have, and remove them, by logging into your account via the Store > View Account menu option - on your account's screen there should be an Alerts link

  • How can I have 2 accounts from 1 itunes account?

    We have an existing ipos touch account with my email that is linked to itunes.  We recently got an iphone and I wanted my son to have his own account with itunes separate from mine.  I changed one computer's itunes email address account then turned on sharing and now I am unable to use my old email and password to access my itunes. How can I create an account on one computer for my son and his ipod touch and maintain my itunes on another computer for only my iphone?

    get him his own computer.

  • I bought my friend's used laptop. She doesn't know how to get her itunes account off the laptop, so I'm not able to do anything. How do I remove her account from the laptop?

    I bought my friends Toshiba laptop. Her itunes account is on there, hooked up to a credit card. She doesn't remember her ID. I think I had it emailed to her by typing in her email address and first and last name. Now that she probably HAS her Apple ID and Password, how do we remove her account from the laptop so I can use MY itunes?

    Delete the ENTIRE iTunes folder from her user directory.
    Frankly, you should be restoring the laptop as new, either using the restore CD provided by Toshiba or by reinstalling Windows with a Windows CD to remove ALL of her personal information.

  • How do I create a DVD from an iMovie '08 Project?

    How do I create a DVD from an iMovie '08 Project? I followed the directions in the help section but when I open iDVD, my project is "grayed out" and I cannot open it in iDVD.
    Rich Rector

    In general, in imovie Share to Media Browser or Share to iTunes.
    Then open iDVD. Open the Media Browser in iDVD (at bottom right of window). Navigate to your movies and you should see the movie you made. Drag it in to the iDVD project.

  • My daughters computer crashed along with her itunes library.  She can plug it into my computer so how do we create her account on my computer?  When we plug it in, it wants to replace her nano songs with my library.

    My daughters computer crashed along with her itunes library.  She can plug it into my computer so how do we create her account on my computer?  When we plug it in, it wants to replace her nano songs with my library.

              Not quite surewhat your asking exactly. You look here for different ways on importing media from nano to your computer! https://discussions.apple.com/thread/2417169?start=0&tstart=0

  • How do you print a pdf from Windows 8?

    How do you print a pdf from Windows 8?

    What is your operating system?
    Is this a local or online PDF file?  If online, in what browser?

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • HT204053 the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    Isa Garduño wrote:
    the only way to creat an icloud account is with a ipad, iphone or imac Apple computer.
    As you already knew, no, you cannot create a new iCloud account from anything but the above devices.
    http://support.apple.com/kb/HT4436

  • HT2731 how can i create an account to sell my music?

    how can i create an account to sell my music?

    iTunes - Partner Programs -Content Providers
    http://www.apple.com/itunes/content-providers/iTunes - Partner Programs -Content Providers ...
    iTunes - Partner Programs - Sell Your Content
    iTunes - Partner Programs - Affiliates

  • How can i move my account from canada to USA

    how can i move my account from canada to USA

    Go to your account information.
    Change your address to your U.S address.
    Input your U.S credit card.

Maybe you are looking for

  • Tiger + Vista Possible? Vanguard SoH.

    I want to play the game Vanguard: Saga of Heroes. However, it requires Windows. I have Vista Home Premium installation disc. Is it possible to run Windows Vista and Mac OS X 10.4 Tiger on my Intel iMac with Tiger installed currently? I don't really w

  • HT201343 Can a mid-09 Mac Pro be upgraded to accommodate AirPlay?

    Trying to use an older Mac with AppleTV.

  • New activation of Sony prs 600

    I am having a nightmare with my new reader. I obviously screwed up on activation and even though I have deact ivated and reactivated I cannot open or transfer any books I have purchased either on the Sony e reader library OR the Adode Dig ital Editio

  • Find files with key words

    trying to find files using key words is not working using bridge with cs3 and windowsxp. when key words are attached to a file they are evident when the image is open. when i try to search for the file using the selected key word i get a no results f

  • How to Confiming an adjustment

    Please can you help? I have just purchased PSE11 and Photoshop C5 in both items of software I can't find how to confirm an adjustment action. If I go into levels for example and make an adjustment no where can I find a OK tick box. In "Digital Photo"