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

Similar Messages

  • 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

  • Create user from oracle form builder 10g

    dear all,
    anyone to help me? I want to try, to create a new user from form builder oracle 10g in windows, I use a default script like 'create user user_name identified 123' in toad 9.0 for oracle and the result is success but when I try to combine with form builder oracle 10g this script doesn't work...I hope somebody can help me to solve my problem..
    thank you,,,
    Dedy Prasetyo T.

    Dear Francois,,
    I've tried the way you suggested and success. but how if I take the value of user_name and password from the data block to insert table dba_users ? would you like to help me?
    regard,
    Dedy P.T

  • Trouble Creating Users Via Web Form

    I'm having trouble creating user in a 9i database via web front end.
    I use the following sql to create the user
    strSQL="CREATE USER"""+strUser+"""PROFILE ""DEFAULT"" IDENTIFIED BY ""HELLO"" DEFAULT TABLESPACE ""DATA"" TEMPORARY TABLESPACE ""TEMP"" ACCOUNT UNLOCK"
    I then execute another two sql statments to grant "connect" thus
    strSQL="GRANT ""CONNECT"" TO "+strUser+""""
    strSQL="ALTER USER """ strUser"""DEFAULT ROLE ALL"
    Whenever I try connecting using the new users details, but get an error message that the server had problems accessing the LDAP directory service(ORA-28030).
    I'm happy that the SQL is correect as I created the account that I wanted using Enterprise Console and coppied the SQL it produced. I'm assuming that there's something in the background that is not being triggered when creating the user via the web front end.
    Can anyone tell me where I'm going wrong?
    Thanks
    Jason

    My apologies, I didn't realise HTML DB was a product. I thought it was a forum for questions regarding HTML and databases.
    Doh!!!
    Jason

  • 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 created a form using acrobat XI pro.  SOME users of the form cannot save the form.  what can i do from my side to 'correct' the issue?

    i created a form using acrobat XI pro.  SOME users of the form cannot save the form.  what can i do from my side to 'correct' the issue?

    Do you know what PDF viewer those users were using? Do you have any more details about what happens when they attempt to save?

  • How to add User Permissions to form created in InfoPath 2010 created for SharePoint document Library

    Hi,
    I created a form in InfoPath 2010 with three views (one for user input, the other two views to be used by supervisors) and published this to a SharePoint 2010 document library. Now the way this form is supposed to work is that when a User goes to the document
    library and adds a document, it is supposed to open the Form with the User's input view. When the User submits the document, only him/her should be able to open and possibly edit the the form. When the Immediate Supervisor opens the form, it should open in
    the Supervisors view and allow them to fill in only their section and not be able to edit or alter the user's data. When the Immediate Supervisor saves the document, the Over-all Supervisor should be able to open it in their view and not be able to edit or
    alter the sections filled out by the User and Immediate Supervisor.
    How would i go about completing this? I have the views created but now have the problem of associating these views with their respective users or groups.

    Hello,
    You need to first create user group in sharepoint site then add user in group according to their role. Later you need to call usergroup.asmx web service to get current logged-In user group name so you can switch view and also apply rule for editing or disabling
    controls in form.
    Follow this link to get group name:
    http://social.technet.microsoft.com/wiki/contents/articles/13271.sharepoint-2010-extracting-user-group-of-current-login-user-in-infopath-2010.aspx
    http://social.msdn.microsoft.com/Forums/en-US/018f5184-5c83-4a53-b66b-8c376fc800fc/how-to-get-current-users-sharepoint-group-name-sharepoint-2010-infopath-2010
    To apply rule on control:
    http://office.microsoft.com/en-in/infopath-help/add-rules-for-performing-other-actions-HA101783373.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • 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.

  • 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>

  • OIM 11gR2 - custom attribute with illegal binding on Create User form in published sandbox

    Hi,
    I think I have managed to paint myself into a corner!
    In OIM 11gR2 I have added a number of custom attributes to the "User Form" - some Text-, some Lookup-type attributes.
    While customizing the "Create User" page within a sandbox and adding a SelectOneChoice item and fiddling around with its binding, I was distracted by a phone call and the browser timed out.
    The binding property on the new item is now not correct and the sandbox has unfortunately been published, and I am now unable to enter the "Create User" page - when I try, I get the following:
    <Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /user/createView URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff actual-URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff.
    javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
            at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
            at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
            at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
            at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
    <Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /catalog-tf/cart-details URI: /oracle/iam/ui/catalog/pages/cart-details.jsff actual-URI: /oracle/iam/ui/catalog/pages/cart-details.jsff.
    javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
            at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
            at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
            at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
            at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
    Caused By: java.io.IOException: javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
            at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:764)
            at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
    etc.
    Of course the sandbox should not have been published - but it is - and I am stuck trying to figure out how to somehow undo this mess.
    Is it possible to clean up this mess by diving to the database and removing some rows from the right tables - or perform some other operations undo my mistake?
    Thanks in advance,
    - Tom

    oim version is oim 11gR2 with BP4

  • 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

  • Add user validation in create user form during Configure User Object Classe

    Hi friends,
    I like to add a user validation code (javaScript or PL/SQL) into create user form during Configure User Object Classes.
    Is any way to pick user information and role assignment for validation in Portal side?
    or pre event in OID provisioning befor loading LDAP?
    We like to make a rols assignment validation. But portal does not have this function.
    TOM, Any suggestion?
    Thanks!!

    after study, portal form --LOVGroupSearch take a  role search and display user name  for select role.
    Who know we are can find system object LOVGroupSearch in portal or OID?
    the source SCR as /oiddas/ui/oracle/ldap/das/search/LOVGroupSearch?title=Role%3Fredirect=/oiddas/ui/oracle/ldap/das/search/LOVGroupSearch%3Ftitle=Role
    When we search a role and added it. selected role appears in form Search and Select:.
    When click role name in Search and Select form. system will display Group Members and group owner.
    Who can find behind codes for this form or samilar pl/sql codes?
    Thanks!!

  • Mandatory Attributes in Create User Form

    Hi All
    i want to make the mandatory fields in create user form (ie Organization name) as optional.
    For this i edited the FormMetada.xml file by making optional as true. (in the attribute reference for Organization field in User management section), as mentioned in the docs.
    Now when i try creating user, it shows me 'You do not have permissions to perform this operation' error.
    while when i give some value in the organization field, then it creates the user.
    please provide some pointers in this regard.
    Thanks.

    You MUST provide an organizatation name. There is a system entity adapter on the Users data object. You cannot avoid populating this.
    -Kevin

Maybe you are looking for