Creating user in forms

I am trying to create a user from my forms. Everything seems alright as no error is generated when I run the form, but the user is not created. below is the code I am calling from a when_button_press trigger. Can anyone tell me what I am doing wrong.
PROCEDURE Video_Shop_User(User_name IN VARCHAR2, pass_word IN VARCHAR2)
IS
BEGIN
FORMS_DDL('CREATE USER '||user_name||'IDENTIFIED BY'||pass_word);
FORMS_DDL('GRANT CREATE SESSION TO Video_Shop_Users');
FORMS_DDL('GRANT CONNECT TO Video_Shop_Users');
FORMS_DDL('GRANT RESOURCE TO Video_Shop_Users');
FORMS_DDL('GRANT VIDEO_SHOP_USERS TO'||user_name);
IF NOT FORM_SUCCESS THEN
MESSAGE('Cannot Create A New User, Contact Your DBA');
MESSAGE(' ');
ELSE
MESSAGE('New User Created');
MESSAGE(' ');
END IF;
EXCEPTION
WHEN VALUE_ERROR THEN
DBMS_OUTPUT.PUT_LINE ('User Error Has Occurred');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE ('Unknown Error Has Occured, Contact Your DBA');
END Video_Shop_User;

Hi,
Be careful to let at least one space between words....
For example in the first line you wrote:
FORMS_DDL('CREATE USER '||user_name||'IDENTIFIED BY'||pass_word);
But , you have to write:
FORMS_DDL('CREATE USER '||user_name||' IDENTIFIED BY '||pass_word);
Simon

Similar Messages

  • How to create user using Form Builder

    How can use Oracle Developer2000 Form6 to create user in database (oracle 8i) from Trigger of Form6. I've try to use statement "create user ..... identified by ...." in PL/SQL editor of When-Button-Pressed trigger and it had complilation error with that statement.

    Probably best not to create the user directly from Forms.
    Create a DB Package with a procedure to create a user. This proc should take, e.g. username & password as parameters (& maybe other things - default tablespace, etc.):
    PROCEDURE cre_user(p_username VARCHAR2, p_password VARCHAR2) IS
    BEGIN
    EXECUTE IMMEDIATE('CREATE USER '||p_username||' IDENTIFIED BY '||p_password);
    END cre_user;
    Give the package the correct user creation privileges & DEFINER or INVOKER s rights.
    Grant EXECUTE on the package (or its SYNONYM) to the appropriate end-users
    Finally, call the packaged procedure from your Form with the appropriate parameters.
    If you need to return info. to the Form, use OUT parameters.
    Also, consider the security implications of sending the password in an unencrypted form.

  • How to Create User define forms.

    Hi,
    We are replace old system of our Client. Client has some Exit form,approval form for terimination of employee and approval to access various resource respectively.
    Can any one tell me how to achive this in OIM.

    Go through some OIM Document first and you'll be able to find out exact components to achieve the same.

  • Regarding query generation to user defined forms

    Hi all,
    i had created user defined form with some fields and tables
    tables in the sense matrix
    i had entered the data in that table
    and added that data
    after that i came back to that form and used the fields that are below the table to calucalate the maximum and minimum from the columns of matrix
    so to get the data of that particular form only i used the $ command to extract data depending on the report number
    but iam unable to get the result
    any one help me regarding this
    it is required urgent
    Thanks And Regards
    sravanth.sm

    Sravanth,
    Let's see if I can help you.
    Assume your form's title table is called @TITLE and the matrix table is called @ROWS. In the form's title you have the record key DocEntry. In the Matrix you have a column COLUMN from were you are going to get some value. ok?
    Maximum of the column
    SELECT Max(T0.COLUMN) FROM [dbo].[@ROWS] T0 WHERE T0.DocEntry=$[@TITLE.DocEntry]
    To get the minimum, just use the Min() function.
    Regards,
    Vítor Vieira

  • How to create a pdf form allowing Reader user to insert picture - NOT from their local hard drive - but from photos I want them to choose from?

    Is there a way to create a PDF form where a Reader user can insert an image - that's NOT on their local hard drive?
    I have 4 photos available - the users of my form will choose one of them and insert it in the pdf form. The users will NOT have the photos saved on their local hard drives so ideally, they will see thumbnails or a preview of the available photos and then select and insert the photo they want to use.
    Is this possible? If so, how do I go about this? Right now, all I can find are ways to insert a photo located on the users local hard drive.
    Hopefully someone can answer my question.

    George, I'm not sure where the photos would go or how to include them. I'm a complete newbie when it comes to making pdf forms so i'm not sure if it's even possible.
    I'm planning to make a flier. I want the end user to be able to choose the photo displayed on the flier - the photos would be ones that I choose and supply. I know I could just make four different fliers, but I thought it would be more efficient if I had one flier and gave the Reader user the ability to select the photo they like.
    Does this sound possible to you?

  • Error while Creating user using Custome form

    Hi,
    I created a custom form same as create user form
    updated in xlDefaultAdmin.properties,xlWebAdmin_en_US.properties,struts-config.xml
    on this custom every thing is working fine but when on submit(Create User) it gives me below error
    in Admin Console : You do not have permissions to perform this operation.
    in App server log: maoRejections:You do not have permission to insert this object.

    My response is based on the following assumptions:
    Your custom form is similar to that of CreateUser form in all manners. The logic at the back-end has been written by you as well. As soon as you get all the values you call the createUser API of OIM to create the user. You have wriiten your custom action classes as well.
    The insert error may be due to the reason that the user which you are using to create the user doesn't have sufficient permissions. In other words, if this is done through Java code then while instaniating the API, the user used must be missing these permissions.
    If the error is due to this permission for users then we can give these additional permissions to individual users, if in case its not and you have some other scenario then just give me more details, probably I can help you for it.
    Thanks
    Sunny

  • Want to add a prepopulated User defined field in create user form

    Hi,
    I have an entity adapter which will perform a pre-insert check on the user group of the user logged in to the oim.
    If the logged in user belongs to a group say "IT ADMIN", another validation check will be imposed on the create user action performed by him.
    If not from "IT ADMIN" group then create user action will be handled normally.
    Now the catch is, how would I determine the group name of the user logged in from the adapter code I have written?
    I decided to keep an User defined field "Created by" in the create user form which will be non-editable and auto-prepopulated with the group name of the logged in user. This way I will be able to map the variable field from the User definition drop down list while mapping the adapter variables.
    May you please guide me how I can achieve this?
    Would highly appreciate suggestion/inputs.

    Thanks for all your replies!
    However I am still in dark.
    I tried to retrieve the groupname using tcUSerOperationsIntf. But iit tries to retrieve the group name of the user getting created.
    Please note, the group name I want is not of the user yet to get created, but that of the user creating it i.e., the logged in user.
    My requirement is to have this created_by field in the create user form already prepopulated with the group name of the logged in user.
    So that I can put a check based on this field value in the netity adapter.
    If the group is IT ADMIN then proceed with the validation.
    Else no validation required.
    In short, I want to know,how can I auto-prepopulate a UDF in Create USer form?

  • How to change the text "form of address" while Create User in EP6.0??

    Hi All,
      We are using NDS 2.0.9 & EP6.0.
      I have the following doubts:
      1) I have to change the text <b>Form of Address</b> which comes when we <b>Create User</b> in EP.
      Can any1 please let me know how to change that text? Is there any .par file? What is the name of .par file (if any) which is used to <b>Create User</b> in EP6.0??
      2) I am getting the value of this <b>form of address</b> by <b>request.getSalutation()</b> in PDK, but this value is coming in the <b>Welcome Message</b> in the masthead. I tried to change the masthead by changing the corresponding code, but i am getting a runtime error. Is there any other method of making this salutation value <b>NOT</b> appear in the masthead welcome message?
      Please help me in this regard. Thanks in Advance. Bye.
    <b>Regards,
    Sai Krishna.</b>

    Hi Sai Krishna,
    within HeadiView.jsp, you'll find this code fragment:     
    if(salutation != null) {
      return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
    } else {
      return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
    Just delete the first part and always use the second:
    return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
    This will delete the salutation without errors
    Hope it helps
    Detlev
    PS: For both solutions, 1. and 2., think of it: These workarounds will be overwritten witch patches / maybe hotfixes.

  • I have created an editable form which cannot be saved as a completed copy by adobe reader users.

    I have a created an editable form in indesign and acrobat, however when other users open up the form and fill it in they cannot save the completed copy. It comes up with that the user needs to click done signing, however there is no done signing button in adobe reader.

    Unless they're using Reader XI then you have to first apply a special right in Acrobat that allows them to save the filled-in form in Reader.
    The exact location of this command depends on your version of Acrobat.

  • How to create a PDF form which can be filled out and saved with change by end user

    I am using Acrobat 8.0 - Mac - and want to create a PDF with text form fields. Simple one page file. The end user needs to be able to fill out the text form fields and SAVE those changes. so far they can fill out the fields but can not save the file with changes.
    Thanks

    Sandee Cohen wrote:
    Phillip Jones said:
    After the uproar from Users about Standard being little more than Apple's Print to PDF; there hasn't been a Standard version for Mac since version 6. So many people were use the features in Acrobat 5  to create Forms that could be filled out by Reader. when the bought 6 Standard they were ready to hang the CEO of Adobe in effigy. When 7 came out is was Pro only.
    I'm confused.
    The current version of Acrobat comes in Standard, Pro, and Extended Pro versions. Only the Pro version is on the Mac. But that doesn't mean that the Mac community wouldn't have wanted the Standard version of Acrobat.
    The Standard version is hardly a mimic of Apple's Save to PDF. The most important features of Standard is to enable Rights in Reader as well as add comments, form fields. etc.
    The only thing that Standard does do are the pre-press and production features of Pro.
    However, given the difference in price ($450 vs. $300) there is ample reason for business on the Mac OS to buy Standard--if they could buy it.
    I didn't say PC users.
    I should have said Mac users. Because the Print system and sytem by which Mac users view anything is based on the PDF engine. The Mac sytem can do anything Standard Standrd could do. although in order to placate Adobe the pdf engine used is a version or two behind. If the Mac OS could do everything Acrobat could do there would be no reason for Adobe to provide Acrobat Or Reader for Mac.
    And you basing your assumption of what Standard can do a PC. Standard on Mac is basically Mac's Print to PDF  wrapped in an Adobe Package. It shad no ability to confer rights to reader (that didn't come to Acrobat Mac until Version 8) and was unable to to create forms. The current version of Acrobat PC comes as Standard, Pro, And extended. There never has and never will be an extended pro version for Mac (that adds the ability to create XML based forms) They don't have the interest. To adobe is little more than a Play toy. Because Windows has so much clout They can dictate what they want. Apple not so much. One advantage Mac does have is that Forms creator is built in. on PC its an adon (it free but an addon or was).
    Now back in OS 9 days and Acrobat 5.x Acrobat for Mac and PC were equal. except to have the print press features Mac users had to pay an addition $200.00.  (It exactly as you described in your last sentence - except Acrobat 5.x without the printpress and The Acrobat 5 without Print press was $299.00 and $499.00 with Print press.) I know I've used Acrobat since version 3.

  • Gaps appear in IE 6 browser window for hidden fields in Create User form

    Hi,
    I need an urgent input on this one.
    I hid an OIM default attribute for users in the 'Create User' form by modifying clear_all_fields.js
    The field is hidden from the 'Create User' page fine!
    But if I open the page from Internet Explorer 6 it shows a gap in the place of the hidden field.
    For Mozilla 3.0.5 the gaps are not appearing.
    I tried removing these gaps by deleting the tags and the field in the clear_all_fields.js
    or, by reducing the dimension of the spacer.gif in GenerateCreateUserForm.jsp.
    But it reflected no change in the form look n feel.
    The requirement is to hide the fields and not remove them.
    Any suggestion as to what may be the way out?

    Thanks for the update Leonard. This would be an extremely useful plugin. I've been looking for it on http://labs.adobe.com/technologies/ under the plug-ins tab but have been unable to find it. It wasn't even there in the Pre-Release Programs. Is it located somewhere else or with a different name? Please let me know.
    Meanwhile, I've been trying to write my own VB script to get the button clicked. Here's what I've come up till now-
    FindText
    HiliteList.Add->CreateWordHilite->SetTextSelect->GetBoundingRect->PointToDevice
    The last function seems to be deprecated. Also there's nothing to connect the text highlighted by findtext with HiLiteList.Add. I guess
    I may have to use the JSO word search method.
    Any advice, as always, would be much appreciated.

  • Need to create a user policy form

    Can anyone help?
    I need to create a policy form in Dreamweaver CS4 that a user needs to accept, or not, before proceeding further to another page in my site? After they accept the form the functionality needs to take the individual to another page where they are able to make charitable contributions using credit cards that would be sent directly to the organizations bank. They are trying to avoid using PayPal.
    This is my first time using this concept and I'm getting lost.
    Thanks
    Swany

    Unfortunately it's not perfect. With the other recommendation a user could simply go to the URL without viewing the policy page and thus not accepting the terms. For instance in the example anyone could just go to http://google.com without accepting the terms. Just view source code and see where GoTo URL directs upon accept. Also because there is no server side restriction to the page then the page is crawled by search engines so someone searching for your page online may go to your form page without first being redirected to the policy page.
    With server side restriction the page is not crawled by search engines so the page will not come up in search results and users could not simply visit the URL because it would restrict access and redirect to the "login" AKA policy page first. Server side authentication is always the best method.
    If you'd still like to go about doing it the recommended way let me know and I can walk you through the process. Basically just create a MySQL database table for the users username and password then user Dreamweaver Server behaviors to create the restrict access page and login page. It's pretty straight-forward to use the server behaviors in Dreamweaver once the database is setup. I walked someone through how to setup a database with GoDaddy recently and it's a similar process with other hosts.
    If the other imperfect method that can be worked around works for you then that's great!

  • OIM 11gR2 Add combo box UDF on Create User Form

    Hi.
    We have created a new UDF on user form. It is a lookup field and has the following lookup associated: "Lookup.Users.Continente"
    "Lookup.Users.Continente" has two values, both of them checked as Enabled.
    From the form designer all the values are displayed when selecting one default value so it is reading correctly from the lookup.
    We published the sandbox after this.
    Then we created a new sandbox and tried to add that field to the Create User Page. We went to "Create User Page", customize it and add content from "Data Component - Catalog" -> "userVO" -> Select the UDF, clicked on "Add" and selected "ADF Select One Choice".
    A new combobox is added but no values are shown. We have plublished the sandbox, restarted OIM, purged cache, etc... but it still shows an empty combo box. We have also tried adding it as "ADF Input List of values" but it does not add the field to the create user page.
    Any ideas of what are we doing wrong?
    The idea is very simple, just create a field with the same behaviour as, for example,  "User Type" field. A combobox that displays the enabled values from a lookup...
    We have also tried creating the UDF cheking the searchable option, searchable picklist and all the possible combinations.
    Thanks in advance!!

    oim version is oim 11gR2 with BP4

  • How to avoid special charecters in create user form

    Hi all,
    I am new to Sun IDM.Please u people have to help me in giving the solution.
    Actually,in create user form ,we have first name and last name text fields.These two fields accept any special charecters.I want these fields to accept only alphabets.Do i need to create new rule for it?Please tell me the steps to be done to allow only alphabetic charecters in this fields.Thanks in advance,
    regards,
    suresh

    Hi,
    I should thank for the quick response u have done.But,still my problem was not solved.I did wat u hav said in the last reply...Now iam getting "1" in that create user form.I have send the XML code of the "isAlpha" and "Firstname"..Please check whether i have done any mistake..waiting for ur reply.
    <Rule name='isAlpha'>
    <Description>Tests to see if testStr is comprised of only alpha characters.</Description>
    <RuleArgument name='testStr' value='testStr'/>
    <block>
    <defvar name='testList'>
    <appendAll>
    <rule name='Alpha Numeric Rules:AlphaCapital'/>
    <rule name='Alpha Numeric Rules:AlphaLower'/>
    </appendAll>
    </defvar>
    <containsAll>
    <ref>testList</ref>
    <rule name='Alpha Numeric Rules:stringToChars'>
    <argument name='testStr' value='$(testStr)'/>
    </rule>
    </containsAll>
    </block>
    </Rule>
    <Field name='global.firstname'>
    <Display class='Text'>
    <Property name='title' value='_FM_FIRSTNAME'/>
    <Property name='size' value='32'/>
    <Property name='maxLength' value='128'/>
    </Display>
    <Validation>
    <rule name='Alpha Numeric Rules:isAlpha'>
    <argument name='global.firstname'/>
    </rule>
    </Validation>
    </Field>

  • Create user in a form

    I want to create a user in a form trigger such as Pre_insert or other trigger
    CREATE USER :daten.oracle_user PROFILE "DEFAULT" IDENTIFIED BY "xy"
    PASSWORD EXPIRE DEFAULT
    TABLESPACE "USERS" TEMPORARY
    TABLESPACE "TEMP" ACCOUNT UNLOCK;
    GRANT "CONNECT" TO :daten.oracle_user;
    GRANT "DBA" TO :daten.oracle_user;
    doesn't work when I compile. how can I solve the problem to create an user from a form??
    answers in german highly recomended.
    I use
    ORACLE FORMS DEVELOPER AND FORMS SERVER 6i (Patch 2) RELEASE NOTES
    and I belive its an 8.i database version. but I am not shure

    Ok I tried it in a button-trigger and it worked.
    one more I learened:
    DDL (Data Definition Language) commands like CREATE, DROP and ALTER are not directly supported from Forms because your Forms are not suppose to manipulate the database structure.
    A statement like CREATE TABLE X (A DATE); will result in error:
    Encountered the symbol "CREATE" which is a reserved word.
    However, you can use the FORMS_DDL built-in to execute DDL statements. Eg:
    FORMS_DDL('CREATE TABLE X (A DATE)');
    FORMS_DDL can also be used to create dynamic SQL statements at runtime. The FORMS_SUCCESS built-in can be used to determine if the last executed built-in was successful.
    I got it from:
    http://www.orafaq.com/wiki/Forms_FAQ
    but thanks a lot!! your answer solved me the problem and after googling the meaning of "forms_ddl" I understood the technik
    regard
    robert koch

Maybe you are looking for

  • Creating View for an extractor with reference field

    Hi All,          Here is my requirement. I need to create a DB view for an extractor. I need to join 3 tables : AUFK,AFIK & AFKO. Table Join Conditions: AUFK     MANDT     =     AFIH     MANDT AUFK     MANDT     =     AFKO     MANDT AUFK     AUFNR   

  • Cross References Being Lost InDesign CS4

    I am setting up cross-references in a multiple document book using InDesign CS4 (Windows). When our editors open the files using InCopy CS4 some of the cross-references are broken (little red flag icon appears). I've relinked the cross-references sev

  • Resize the swf in an elastic div

    Hi, i want to explain my problem: I've an elastic css layout, and there is a div hat countains my swf, this div has height and width variables, that is, the dimension of the div is not fixed, height and width are not in px but in %. Now, I want to kn

  • Asp:button

    Does anyone have a hello world for using an asp:button in a 10.3 portlet? I have tried a few and can get the code to run on the page load, but not when the button is clicked. I have tried with and with out gateway, and inline refresh with the same re

  • Adobe vs Sun

    I'd like to discuss about what technology is better today for web-development. Coldfusion vs JSP. Flex vs Applets Apollo vs Java Applications FDS vs JEE I know that this is a difficult question since there're many usability branches from both vendors