Create Multiple Developer logins with htmldb_util.create_user

Need some help in creating about 100 user ID's..
Using the htmldb_util.create_user process to do it and I keep getting an error about requiring ADMIN privs..
Code looks like -
DECLARE
V_USER_ID varchar2(30);
CURSOR names IS
select upper(contact_last_name) || upper(substr(contact_first_name, 1, 1)) as USER_ID
from contact
where contact_first_name is not null;
BEGIN
OPEN names;
LOOP
wwv_flow_api.set_credentials(p_company => 'default',
p_username => 'RNASSER',
p_password => 'XXX');
FETCH names into V_USER_ID;
htmldb_util.create_user(p_user_name => V_USER_ID,
p_web_password => 'XXX',
p_web_password_format => 'HEX_ENCODED_DIGEST');
EXIT WHEN names%NOTFOUND;
END LOOP;
CLOSE names;
END;
Can anyone fill me in on what I am missing here? The admin error happens at the call to the create_user, and I am an ADMIN for the application.
Thanks
Rob

Sorry, in addition to my above statement:
Here's my main conflict. From the HTMLDB_UTIL package, it says this:
PROCEDURE create_user (
-- Description:
-- This procedure allows for programatic and bulk creation of users.
-- Example:
-- From sqlplus logged in as a schema assigned to the target workspace
-- begin
-- for i in 1..10 loop
-- htmldb_util.create_user(
-- p_user_name => 'USER_'||i,
-- p_email_address => 'user_'||i||'@myworkspace.com',
-- p_web_password => 'user_'||i) ;
-- end loop;
-- commit;
-- end;
-- /So it appears this can be called outside the APEX environment. But you cannot simply call this statement outside of APEX, or you'll first get an Unauthorized Access Error. Calling wwv_flow_api.set_credentials() before the loop above will get you past the Unauthorized Access exception, but you will hit User requires Admin privs. (Even if you use the credentials of a workspace administrator).
Hope that helps in explaining how I've arrived at this point.
(APEX 2.0, Oracle 10g)
Chris

Similar Messages

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

  • IOS 8 creating multiple group messages with same recipients

    After updating to iOS 8.0, my iPhone 5s has started creating multiple group messages with the same recipients. For example, my phone has created three group threads with the exact same people in it. Different friends' messages go to different threads. It is terrible confusing and annoying. It has done this with several of my group messages. Deleting the duplicate threads have not worked. They keep recreating themselves when certain people text the group.
    Any suggestions? This has been a problem for many of my friends as well.

    Hi hkapn,
    Do you and your wife use the same Apple ID and are connected to the same wifi network?  Your phone ringing to multiple devices is called Continuity and is a feature of iOS8. https://www.apple.com/ios/whats-new/continuity/
    Essentially, it allows you to use your iPhone cellular connection on all of your iOS8 devices: iPhone, iPad, Mac computers with Yosemite.  On some devices the call will look like it is coming through FaceTime, but likely on your wife's iPhone it just looked like a regular call.
    Since your iPhone was "hosting" the phone call through it's own cellular connection, you were able to pick it up after your wife answered, which caused your wife's phone to disconnect.  This is called Handoff and is also a feature of iOS8.
    You can turn off Continuity if you'd like, but you could also look into getting your wife her own Apple ID.  I'm guessing you were sharing one so that you didn't have to make purchases twice.  Also in iOS8, there is a feature called Family Sharing which allows you to link multiple Apple IDs and share purchases (among other things).
    In regards to the group text message issue, as far as I can tell, splitting group messages is NOT a feature.   I agree that there should be an answer to this already!

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • Creating Multiple INSERT statements with SQL

    is there a way to create multiple INSERT staements with SQL .
    Example scenario : This is only example but i have lot of data in the real time.
    sql : Select Emplid from Table A where Emplid between 100 and 350 will retun me 50 rows . i want to insert those rows into another table.
    I am looking for output like below instead of Giving output just as EMPLIDs
    Insert into PS_LM_DATA ( EMPLID ) values ( 123 )
    Insert into PS_LM_DATA ( EMPLID ) values ( 234 )
    Insert into PS_LM_DATA ( EMPLID ) values ( 334 )
    and so on....
    thanks ,
    Karu

    If you are inserting into another table, you could use
    insert into PS_LM_DATA ( EMPLID ) 
    select Emplid from Table A where Emplid between 100 and 350Example:
    SQL> insert into emp2(empno) select empno from emp;
    14 rows created.
    SQL> insert into emp2(empno) select empno from emp where empno between 7369 and 7788;
    8 rows created.

  • ST3B17.1 Error with create icon when login with KO language

    I have bug 12405347 for ST3:B17.1.
    When login with Korean language from FSM, we get the following error clicking on the create icon on an application table:
    status=500,ecid=000IyPN0iN7y0A5jbP5if1Dhqlf00083z
    -------- in the Payable log -----------------
    in the Payables log
    Caused by: javax.el.ELException: java.lang.NullPointerException
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.parser.AstOr.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper.
    getProperty(UIXInclude.java:574)
    at
    org.apache.myfaces.trinidad.bean.util.ValueMap.get(ValueMap.java:67)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$AttrMap.get(UIXInclude.java
    :481)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:
    68)
    at o
    and
    Caused by: java.lang.NullPointerException
    at
    oracle.apps.financials.cashManagement.bankRelationships.ui.bean.BankAccountSea
    rchBean.isDisableEditButton(BankAccountSearchBean.java:466)
    at sun.reflect.GeneratedMethodAccessor134086.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    ava:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    at
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.ja
    va:200)
    at com.sun.el.parser.AstValue.getValue(Unknown Source)
    at com.sun.el.parser.AstOr.getValue(Unknown Source)
    at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper.
    getProperty(UIXInclude.java:574)
    at
    org.apache.myfaces.trinidad.bean.util.ValueMap.get(ValueMap.java:66)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude.getAttribute(UIXInclude.jav
    a:279)
    at
    oracle.adf.view.rich.component.fragment.UIXInclude$AttrMap.get(UIXInclude.java
    :481)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.j
    ava:173)
    java.lang.IllegalAccessException: Class
    org.apache.myfaces.trinidad.bean.util.StateUtils$Saver can not access a
    member of class
    oracle.adfinternal.view.faces.dynamic.DynamicForm$DependentValueChangeListener
    with modifiers ""
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
    at java.lang.Class.newInstance0(Class.java:349)
    at java.lang.Class.newInstance(Class.java:308)
    at
    org.apache.myfaces.trinidad.bean.util.StateUtils$Saver.restoreState(StateUtils
    .java:576)
    at
    org.apache.myfaces.trinidad.bean.util.StateUtils.restoreStateHolder(StateUtils
    .java:454)
    The error occurs only when using FSM and login with the Korean language. There are no issue if we access the page with the direct URL:
    http://fusionsystemtest-z-fs.us.oracle.com/payables/faces/CeManageBank
    Also, there are no issue when login with the English languge. I cannot reproduce the error locally using jdeveloper either.
    @###Environment name and url
    https://fusionsystemtest-z-fs.us.oracle.com/homePage/faces/AtkHomePageWelcome
    @###Steps to reproduce, including username / password & data used
    1. Login cash_manager / Welcome1 using Korian Login.
    2. Navigate to Setup and Maintenance > All Tasks > Name:Manage Bank% > Search
    3. Click on Go to Task button against Manage Bank Accounts record
    4. In Manage Bank Account page click on Create Icon - Error Message Appears.
    In the error message after the Korean characters (status=500,ecid=000IyPN0iN7y0A5jbP5if1Dhqlf00083z) message is displayed.
    Can you please advice how I can debug this issue?
    thanks,
    Lynn
    Edited by: user713482 on May 5, 2011 11:04 AM

    Look like you are an Oracle employee. In this case you should post your question on an internal forum and not on the public OTN forum.
    Timo

  • Disable multiple users login with single user id

    hi,
    I have a problem. I give a single user id to a  person and many people login to the server from different computers through that id.
    Please tell me how to block that only one user can login with a particular id at a particular time

    Hi Balaji,
    To disable multiple logins add parameter login/disable_multi_gui_login = 1 using RZ10
    Hope this help!
    Juan
    Please reward with points if helpful

  • Create multiple id's with same email

    I have 2 iPads, but want separate iTunes accts with the same email address.  Can I do this?

    pmfromtx wrote:
    I have 2 iPads, but want separate iTunes accts with the same email address.
    Are these iPads used by different people?
    If not, you don't need separate AppleIDs. You can still put different content on them.
    Creating multiple AppleIDs for one person is usually not good idea as it will be a pain with purchases/updates later on.

  • How to create multiple expanding outlines with all points equal distance to original shape?

    Here's an extremely simple example.. It works with a circle or a square, obviously because it has the same height and width. The problem is when you have irregular shapes, (or in this case, an oval). I know I've seen solutions to this in the past, but I just can't think of how to word this question and find them again.
    I know you can create multiple strokes for an object in the appearance palette, but I'm looking for something more effective than just having colored stroke > white stroke > colored stroke> white stroke > etc.
    Here's a couple examples of the kind of effect I'm looking for.
    Any help would be greatly appreciated.

    You need to use Offset path. Object>Path>Offset path. Use negative numbers to go inside of an existing shape, positive to go outside.
    [ signature removed by forum host - advertising is not permitted ]

  • How Do I Use Multiple iCloud logins With find my iPhone?

    With iOS 6, I was able to link Find My iPhone accounts across multiple devices. Now, with iOS 7, it appears that I can now only keep track of devices that share the same icloud login.
    Talk about a downgrade. I regularly use my phone to find my wife's iPad or my son's iPhone. Or should I say, I used to. Now I can only find the phone I'm using.
    Awesome.

    Here here!  it seems to me that Apple is looking to get people to have one major iCloud account and force families to buy additional storage..  WIth 7 devices (and thousands of $$$ in devices) I couldn't possibly use one account at 5 gb for back up, 10 GB would be a stretch between my wife and I between our combined 4 devices.  Why would I spend this kind of money again to put my kids in idevices when the BEST security device just got castrated?  Really disappointing.

  • How do I create multiple libraries & use with multiple ipods?

    Hi All,
    My wife and I have different tastes in music. Currently we use different user log ons to seperate our libraries. It's a complete pain because there's no other reason to use seperate log ons.
    We'll soon be upgrading to a new iMac and I'm wondering if it's possible to have two libraries operating in the one itunes sesssion?
    So here are my questions:
    1) Can I have two libraries sourcing the same music files?
    2) We each have an iPod, can it be set to only update one of those libraries, but still automatically update when connected?
    3) If we create playlists, will they be associated with only one library, or both (my preference is one, of course)?
    4) I'm pretty sure iPods can be set so my iPod only updates my playlists, and my wife's iPod only updates her playlists - is that correct?
    5) If we have seperate libraries, can we have seperate ratings? (Our opinion of what a five star song is is different)!
    Of course, for the above questions, if the answer is 'yes' please let me know how to do this. I've had a look through the itunes manuals online, but they don't seem to have any information.
    Cheers, Chris

    Chris,
    I have the exact same situation, and I have tried Doug's iTunes Library Manager, but it doesn't work for me. The first workaround I tried was to set up two smart playlists to group together any music that only one of us liked, which could then be checked or un-checked (control-click) depending on which iPod is being synced. This is clumsy, and if you aren't careful the Recently Added playlist will still "contaminate" your iPod.
    Last night I just made a new library for my wife (hold down Option when starting iTunes), copied everything over using the Add to Library command, exported all the playlists using the Export Library command, deleted all the music and playlists she doesn't want, and synced her iPod. It took a while to erase and re-sync, but it is now synced to HER library, and she doesn't see any music she doesn't like.
    Tonight I will do the same for myself. I will have, then, three libraries which can be selected by holding down the option key when starting iTunes: Mine, My wife's, and the main one with everything (called Library) All the music files stay on an external Firewire Drive. There is no way to toggle libraries from within iTunes, you have to quit and start it again holding down the option key.
    Podcasts are another story, and I haven't quite figured them out yet.
    Marty

  • Create Multiple Pie Charts with Drill Down capability(foreach in mainreport

    Hello All,
    i need to create a report with 4 pie charts, which should have drilldown capability. i tried to do that, and i can do only for two charts. i need for the rest 2 also.
    Please help.
    Thanks

    See this thread:
    BO Design studio Chart Component issue ...!! | SCN
    If Chart is bound to DS_1 and On Select event of chart is as below:
    DS_2.setFilter(dimension, CHART_1.getSelectedMember(dimension));"
    This works when you click a value on one chart it will select another.
    I haven't tried it with hierarchies.

  • How to Create Multiple Sources/Classes with one Script

    I am trying to get all of my java sources, or classes, into one script so that I can move them all to another server without having to compile each file individually. When I concatenate two files and try to compile I get an ORA-29536: badly formed source error.
    How can I get multiple definitions into one file and compile all of the classes?
    Thanks,
    Gregory

    Gregory:
    If you want to upload several Java classes in one script the solution is .sql file, for example:
    set define ?
    create or replace and compile java source named "my.Sleep" as
    package my;
    import java.lang.Thread;
    public class Sleep {
    public static void main(String []args) throws java.lang.InterruptedException {
    if (args != null && args.length>0) {
    int s = Integer.parseInt(args[0]);
    Thread.sleep(s*1000);
    } else
    Thread.sleep(1000);
    create or replace and compile java source named "my.App" as
    package my;
    public class App {
    public static void main(String []args) throws java.lang.InterruptedException {
    System.out.println(args[0]);
    exit
    Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
    HTH, Marcelo.

  • Creating multiple page report with single page excel template

    Hi,
    I have a created a single sheet excel template. When my LabVIEW program runs, I want to insert a data table in the excel report for each time the loop runs. Each time I add a new sheet in the report and add the data table. I want to get the same template in each new sheet. Please let me know how to insert the same template in each new sheet in the same file. Right now I need to create template file with 5-6 worksheets each with the same format.
    Rashmi

    Thanks for your reply.
    I tried to do the same you have suggested. As the "Save As" option does not work, I tried to copy the block diagram into a new vi but it gives the error. I am attaching here the screen shot of the same.
    Attachments:
    copy_error.png ‏208 KB

  • How to create multiple DTP REQUESTs with expert routine  ?

    Anyone know if it's posible to create new dtp request's manually from an expert routine, i want to write manually to 2 different ODS in the same expert routine the first is for success records and the second is for rejected records, the problem is that the routine only writes a new request for the succeed record and the rejected records are writed with abap to the other ODS manually without request ID

    hi,
    Just create a direct update DSO for collecting the rejected records.
    Use the function module RSDRI_ODSO_MODIFY for populating this DSo from the transformation ABAP coding.
    The direct update DSO will be having the rejected records after execution of the DTP and the correct records will be processed to the target DSO (correct records)
    Prathish

Maybe you are looking for

  • Managing multiple documents.

    Hi, In a text editor, i'm able to create multiple document (each document is an instance of a classe named MyDocument). I keep a list of my opened document with somethin' like Vector or ArrayList. Each time a document is created I add a menu item und

  • Merge Clips Question

    Have read the manual and searched the forums but can't work this out. Basically I'm syncing double system audio and creating merged clips. As the video is HDV all the shots are already seperate clips. However the audio files are 1 hour long clips (tr

  • How do I get Ghostery off Firefox - I am sick of the purple box ?

    I installed this, didn't like it and now I can't figure out how to get rid of it. It doesn't appear on the Control Panel list.

  • No preview (and crash!) with last Adobe muse 7.0

    I downloaded the last version of Muse yesterday (7.0314 ) . Since I reboot my mac, any preview is possible anymore! The error message is : Assert: "Calling optimizeImageDataForExport again before the first call completed. Links waiting to be optimize

  • New Update messed with my Application

    I tried to open FCE today and an error message came up that says I need a video card compatible with Quartz extreme or something along those lines. That my system doesn't meet the minimum requirements. I've had FCE installed and have been using it fo