batch processing to create the user

Hello
I created a table in which all details are stored for the user to migrate in the apex.
My dynamic action does not create an user.
Apex 4.1.1
Kindly help.
 declare
 
 cursor c1 is
     (SELECT xyz.LAST_NAME,
  xyz.FIRST_NAME,
  xyz.MIDDLE_NAME,
  xyz.USER_NAME,
  xyz.EMAIL,
  xyz.MOBILE_PHONE,
  xyz.WORK_PHONE,
  xyz.ORGANIZATION,
  xyz.TITLE,
  xyz.GROUPX,
  xyz.GROUP_ID
FROM xyz

);
BEGIN



FOR r1_xyz_LAST_8MONTHS in c1
LOOP
apex_util.create_user(p_user_name => xyz.USER_NAME,
p_email_address =>xyz.EMAIL,
p_first_name =>xyz.FIRST_NAME,
p_last_name => xyz.LAST_NAME,
p_web_password => 'password',
p_change_password_on_first_use => 'Y',
p_group_ids => xyz.GROUP_ID,
p_attribute_01 =>xyz.MIDDLE_NAME,
p_attribute_02 => xyz.MOBILE_PHONE,
p_attribute_03 =>xyz.WORK_PHONE,
p_attribute_04 =>'',
p_attribute_05 =>xyz_LAST_8MONTHS.TITLE,
p_attribute_06 =>xyz_LAST_8MONTHS.ORGANIZATION,
p_attribute_07 =>sysdate,
p_attribute_08 =>'system',
p_attribute_09 =>sysdate,
p_attribute_10 =>null);



END LOOP;



END;
Published by: Red_Bull on August 26, 2012 14:24

Red Bull,

FOR r1_xyz_LAST_8MONTHS in c1
LOOP
apex_util.create_user(p_user_name => xyz.USER_NAME,
p_email_address =>xyz.EMAIL,
p_first_name =>xyz.FIRST_NAME,
p_last_name => xyz.LAST_NAME,
p_web_password => 'password',
p_change_password_on_first_use => 'Y',
p_group_ids => xyz.GROUP_ID,
p_attribute_01 =>xyz.MIDDLE_NAME,
p_attribute_02 => xyz.MOBILE_PHONE,
p_attribute_03 =>xyz.WORK_PHONE,
p_attribute_04 =>'',
p_attribute_05 =>xyz_LAST_8MONTHS.TITLE,
p_attribute_06 =>xyz_LAST_8MONTHS.ORGANIZATION,
p_attribute_07 =>sysdate,
p_attribute_08 =>'system',
p_attribute_09 =>sysdate,
p_attribute_10 =>null);

END LOOP;

If it should not be:

FOR r1_xyz_LAST_8MONTHS in c1
LOOP
apex_util.create_user(p_user_name => xyz_LAST_8MONTHS.USER_NAME,
p_email_address =>xyz_LAST_8MONTHS.EMAIL,
p_first_name =>xyz_LAST_8MONTHS.FIRST_NAME,
p_last_name => xyz_LAST_8MONTHS.LAST_NAME,
p_web_password => 'password',
p_change_password_on_first_use => 'Y',
p_group_ids => xyz_LAST_8MONTHS.GROUP_ID,
p_attribute_01 =>xyz_LAST_8MONTHS.MIDDLE_NAME,
p_attribute_02 => xyz_LAST_8MONTHS.MOBILE_PHONE,
p_attribute_03 =>xyz_LAST_8MONTHS.WORK_PHONE,
p_attribute_04 =>'',
p_attribute_05 =>xyz_LAST_8MONTHS.TITLE,
p_attribute_06 =>xyz_LAST_8MONTHS.ORGANIZATION,
p_attribute_07 =>sysdate,
p_attribute_08 =>'system',
p_attribute_09 =>sysdate,
p_attribute_10 =>null);

 END LOOP;

Robert
http://apexjscss.blogspot.com

Tags: Database

Similar Questions

  • Batch processing to create the button sets in Fireworks - help

    Hello

    I'm still new to Fireworks, I created a few really simple buttons and I was wondering if it is possible to do a batch on them to repeat a few for example change of background color, the border color, the color of text etc... This would allow me to save a lot of time and I was able to do a few extra games then.

    Thank you
    Rob

    "sanchothefat" wrote in message
    News:ee8qm0$1pm$1@forums. Macromedia.com...
    | Thanks Peter!
    |
    | You are a true hero, a beautiful

    Not sure about that! I am struggling with this.

    I had put on it in a different way

    I opened a Web say 600 x 600 and import all your buttons on the
    canvas.
    Organize them in a way that makes sense to you. You can duplicate each set
    and change the colors in several ways. In my example
    http://www.fasterthanu.com/Rob.html I used the color adjust > levels with just
    the selected funds.

    Sorry, I couldn't be more help

    Peter

  • «Login process failed create the dialog box options security.»

    On a Vista desktop, startup takes up to 2 hours to display the desktop icons. After that the icons appear Finally, none will run. The error message before full boot, I get up, it's "" logon process failed create the dialog box options security. " I tried a clean boot, boot without failure, even booting with a boot disk and try to do a restore. All I get is "no restoration is available on this computer." Once he finally starts, I can run regedit, but not the Task Manager or any other executable. Finally had to reformat and reload, but would like an answer for this strange behavior.

    Hello

    You could deal with the issue because of some third-party security patches on the computer. Most of the time, it will be a virus on the connection process attack. She would not allow the user profile of all loading as well as the security settings of the created user profile.

    Reference:

    10 ways to fix your PC

    http://Windows.Microsoft.com/en-us/Windows/explore/10-ways-to-tune-up-your-PC

  • Approval process to disable the user

    Hello

    I need to have an approval process before disabling the user and the approver is not not responsible for the user. I'm not sure how to implement it. Please guide.

    Thank you

    You can simply create a task assignment adapter that will assign the task to a dynamic user which if present in the field OWNER UDF on this user.

    findGroups - error when getting the group list for the user of the connection

  • Login process failed create the security options dialog

    Login process failed create the dialog box options security can someone help me?

    Hello

    Are you tired? Or why do you post this brief description?

    In any case, I used google and searched the error message and google has provided a lot of visits.
    The solution; Uninstall or disable the Symantec "Norton antivirus/internet security suite scans idle time-out.

    To be honest, I don t use Symantec Antivirus because it takes a lot of resources material I use the free and smart Antivir Ariva.
    It analyzes the complete systems and my laptop runs much faster

  • I want to create the user in the direct areas but I found thi message: the requested account name is already in use.

    Over the period of re - use the account in the domains.live

    I want to create the user in the direct areas but I found thi message

    The requested account name is already in use or has been used in the past and has not been through the waiting period required of re - use.

    Can you help me

    Hi, Ahmed.

    It seems that the domain name you have selected is not available (or has already been used and it is found that the previous owner of the domain has used the same user name as an account).  In any case we can not help you here.  You need help from domain.live.

    Please go to http://help.live.com/help.aspx?project=domains&market=en-us&querytype=keyword&query=SNIAMODTUOBA&tmt=&domain=domains.live.com&format=b1 and down, click on support and follow the prompts to get help.  Although it is technically to the implementation of the field, I'm sure that your application will be either still answered or they will direct you to the proper location for assistance.

    In addition, you can try http://windowslivehelp.com/product.aspx?productid=25 for help Windows Live Administration.  If you can not find help with solutions validated or by performing a search, try posting in the forums.  I suggest the following for the problem that you specified: http://windowslivehelp.com/forums.aspx?forumid=7e6f04c0-6a48-4719-98f4-a9729d34c76e.

    I hope this helps.

    Good luck!

  • FAILURE - Security Options. Login process failed create the security options dialog.

    I'm running Windows Vista Business Edition 32 bit on a Dell XPS M1330 desktop; 4 GB OF RAM. 120GB HD. I use McAfee Security Center.

    Sometimes, the system hangs with the following symptoms :

    • I'm starting to receive messages "not responding" in an application or a program that I opened, for example when using Firefox or windows explore.
    • The system starts to slow down and works with breaks and stills.
    • Gradually, the system does not meet the clicks or keyboard, but I can move the pointer. I am also unable to bring up the Task Manager (no response to C-A-D)
    • Eventually the screen goes black with the exception of pointer, which moves with the mouse
    • After a few minutes, you receive the following message:

    Title bar: login process failed create the dialog box options security.
    Message text (with X-red): failure - Security Options

    • The only button available is the OK button. When I click on the button, Windows is displayed again, but it is completely insensitive (move the pointer). Wait long enough and repeat the sequence preceding.
    • The only thing I can do is stop hard by dint of power off. When I have the power back and reboot, everything seems back to normal, until the next time.

    I have tried the following options:

    • restarted the system and you press F8. So I tried to run the system restore. But in doing so, I got a different error message:

    Title bar: the disk OS (C :) has errors. )
    Text of the message: Windows has detected corruption on OS (C :) file system. You should check the drive for errors.
    Action line: check the disk for errors

    • I clicked on the above action line and the disk check has started, but after about 20 minutes, it got stuck at one point and didn't move forward despite me waiting for 3 hours.
    • Tired of waiting I finally canceled everything.
    • So I decided to restore my laptop to factory settings. After restoring the system to the factory settings that I was hoping it would work very well, but he worked the same and error message "failure-security option" is new.
    • Now the system not yet properly starts in safe mode.

    I would be grateful if someone from microsoft can help me with this problem that I need my laptop for urgent and important work.

    1. start windows in safe mode, press start and type "msconfig" in the search/run box. go to the services tab, find the 'superfetch' service and uncheck the box next to it. Click OK and restart normally (if you have exactly the same problem, I had - that should fix it).

    2. check in the clean boot state: http://support.microsoft.com/kb/929135

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • Create the user by using the API OIM11g R2 with custom attributes

    Friends,

    I am trying to create a user using API in OIM 11 g 2 with a custom attribute.

    < String, Object > HashMap createUserMap = new HashMap < String, Object > ();
    createUserMap.put (UserManagerConstants.AttributeName.FIRSTNAME.getId (), "Test);
    createUserMap.put (UserManagerConstants.AttributeName.LASTNAME.getId (), "tester);
    createUserMap.put (UserManagerConstants.AttributeName.USER_LOGIN.getId (), "tester1");
    createUserMap.put (UserManagerConstants.AttributeName.USERTYPE.getId (), "End user");
    createUserMap.put (UserManagerConstants.AttributeName.EMPTYPE.getId (), "EMP");
    createUserMap.put (UserManagerConstants.AttributeName.PASSWORD.getId (), "Welcome1);
    createUserMap.put (UserManagerConstants.AttributeName.EMAIL.getId (), "[email protected]");
    createUserMap.put ("act_key", new Long("1"));
    createUserMap.put ("USR_UDF_DEPTNO", "10");

    Try
    {
    UserManager userService = oimClient.getService (UserManager.class);

    User user = new User (userLogin, createUserMap);
    Result = userService.create (user) UserManagerResult;
    System.out.println ("State of creation: '" + result.getStatus ());
    }
    catch (System.Exception e)
    {
    e.printStackTrace ();
    }

    But it fails with the error below.
    Create a user application cannot set or change the USR_UDF_DEPTNO attribute, since it is not defined in the corresponding dataset. : create user: USR_UDF_DEPTNO. *

    But this attribute exists in the IOM and I was able to create the user using the user interface with this custom attribute.

    Please let me know what I am doing wrong.

    You must pass a long time don't value not int. It should be that way.

    Long deptno = 1234;
    createUserMap.put ("deptno", deptno);

  • Assignment of roles to the user when creating the user

    Hi all

    I gave a roll deposited (< dsp:input bean = "ProfileFormHandler.value.roles.role" maxsize = "30" size = "30" type = "text" / > on the registration page.) After registration, each field in db except role (table dps_role).
    Pls let me know what I am doing wrong.

    Thank you

    You should not assign roles to the user as 'ProfileFormHandler.value.roles.role' of 's profile. You can link formhandler property to which you can pass the name or id of the role that you want to assign role assignment must always route through safety ATG API in order to properly update the mappings of Homeland Security. Because of these dependencies, you should not try the role of simply call profile.setPropertyValue ('roles',...) The code cannot fail this way, but if you assign the role in this way then it may not work as expected when checking for role based privileges. Here's one possible way to do it:

    1. in your file properties formhandler declare a dependency on the directory of the default user, which by default points to the profile database:

    userDirectory = / atg/userprofiling/ProfileUserDirectory

    So, in the form Manager, you declare corresponding setUserDirectory() and getUserDirectory().

    2 then in the formhandler, get the DirectoryPrincipal objects associated with the user profile and the role you want to assign and then assign the role to the user:

    import atg.userdirectory.UserDirectory;
    import atg.userdirectory.DirectoryPrincipal;
    import atg.userdirectory.User;
    import atg.userdirectory.Role;
    import atg.userdirectory.DirectoryModificationException;
    
    import java.util.Collection;
    import java.util.Iterator;
    
    ..
    ..
    
    private boolean assignRoleToUser(String roleName, String userId) {
    
      UserDirectory userDirectory = getUserDirectory();
      DirectoryPrincipal userPrincipal = userDirectory.findUserByPrimaryKey(userId);
      DirectoryPrincipal rolePrincipal = userDirectory.getRoleByPath(roleName);
    
      User user = (User)userPrincipal;
    
      Collection collection = userDirectory.getRoles();
    
      boolean status = false;
    
      Iterator iter = collection.iterator();
      while(iter.hasNext())
      {
        Object obj = iter.next();
        if(obj instanceof Role) {
          Role role = (Role)obj;
          if(roleName.equals( role.getName() ) && user!=null) {
            try {
              status = user.assignRole(role);    //will return true if the role was added otherwise false
            }
            catch (DirectoryModificationException e) {
           //handle exception
            }
            break;
          }
        }
      }
      return status;
    }
    

    In the code above 'roleName' parameter is the name of the role to be assigned to the profile with the id as "userId". If you want to do the role assignment when creating the user, then you can do the things above in postCreateUser() so that you can get the Principal associated with the profile. For more information about the interfaces and classes used here, you can refer to the documentation of the API of the ATG.

    http://docs.Oracle.com/CD/E26180_01/platform.94/APIDoc/ATG/userDirectory/package-summary.html

  • What should I use to create the user interface of a CEAP plugin on mac

    Hey there,

    I'm new to the development of a plugin, but I did development of script for quite a long time however. I'm tring to develop an ECAP plugin. I go to the sample project of "Panelator" (from AE CC SDK), but I don't know how to create ui for the control panel plugin stuff.

    The sample project is not an example of code to do this on a mac computer, I found the code examle for windows however.

    So, can someone generously tell me how? I had to do with cocoa? But as I understand it, I can only use Objective-C to write cocoa ui.

    Thank you very much!!!

    Hi Li Zhiqing,

    We have just announced in the next major update to AE CC signs HTML5 is supported:

    http://blogs.Adobe.com/AfterEffects/2014/04/new-changed-after-effects-CC-2014.html

    This will allow to create the user interface using HTML5 and use your scripts for the conduct of AE.  It is quite a bit easier than the use of cocoa for the construction of the UI panel.  Thoughts?

  • create the user role

    I would like to know if it is possible to create the user on the CodldFusion server role.

    Your iand help information is great appreciated.

    Kind regards

    iccsi,

    See http://forums.adobe.com/message/4907241#4907241

  • How to find the owner of the user or who created the user?

    Hi all

    I want to know owner of user or users who created?

    example:
    system created the test user.
    test has created the user xyz.

    So I want to know who created xyz?

    Thanks in advance,
    Sandeep.

    You can not find who created the user unless you enable the audit of the database or write a trigger (CREATE ddl event-based) that will track the session information of the user who executes a command from the user to CREATE.

  • Create the user in question plsql apex

    Hi, I did a form which receives information about a user and I want to create a user from the apex to connect to my request with the information provided in my form, however the user create is not able to connect to my apex application. I already gave my shchema privileges to create users, but I don't know if I have to take a few special considerations to make an oracle apex account to connect. The code that I use to create the user is:

    Start
    run immediately "create a user" | : P6_LOGIN | ' identified by ' | : P6_CLAVE;
    end;

    Thanks in advance.

    Edgar.

    Hello

    What authentication scheme your use of the application?
    Are you sure you like to create users from the database and use the account database to your application?

    You would like to create workspace users (end users, developer).
    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/apex_util.htm#BABCFBGG

    BR, Jari

  • Create the user who needs to see all Tables

    I'd like my developer to be able to view all the tables when it connects to SQL developers and browse the tables.
    What is the best that I can do this?

    Please see what I've done below:
    I have to create the user and granted privileges below, but he can't see any table when he opens a SQL Developer session.

    GRANT CREATE session, CREATE table, CREATE view,
    CREATE the procedure CREATE synonym
    To mydeveloper;

    The only way it can the tables so I'll give him the dba role, I don't want to do.

    Any suggestion?

    Hello

    If by "all tables", you mean all the tables/views in the database, including those in the SYS schema (such as V$ session) SELECT ANY TABLE are not enough. To display tables/views of SYS, you may need to look into SELECT_CATALOG_ROLE or SELECT ANY DICTIONARY. For security reasons, I prefer to create a role and grant select necessary findings and then grant this role to the developers.

    Ioan

Maybe you are looking for

  • Pavilion a6010n

    A friend asked me to fix an office given to him by someone else.  The Tower will feed, then beige nothing appears in the bios will cause a long beep followed a very long.  What does this code mean? While writing this the Tower activated without probl

  • Buffer clear?

    Hi, how can everyone, I clear the usrp buffer before I read it? is there a VI or command?

  • Why e-mail messages are saved as .fol when I record to the Flash drive?

    When I save my Windows Mail emails to my flash drive it saves them as files .fol and I can not open them. How do you open them and is it possible to save the email in an easily accessible format?

  • SANHQ 3.0 EAP error

    Hello Select a group from SanHQ 3.0 EAP (update 2.6) throws an error for us:

  • on ENVY 5530 cartridge slot

    I was installing ink cartridges in my new e-all-in-one printer of HP ENVY 5530 and mistakenly cover ink cartridge for the color cartridge was pushed in and down until the cartridge has been installed.  How to lift this cover to the top so I can insta