Creating User account via SQL query

Hi,
Is it possible to create a user account programmatically?
thanks,
Dekel

In SQL, use the CREATE USER statement. In PL/SQL, see Re: Creating user in PL/sql procdure.

Similar Messages

  • Creating APEX pages via SQL scripts..

    Hi Guys,
    I want to create APEX pages via SQL Script. The main reason to have this option that I have couple of applications which has XML files for screen definition where I can read all screen properties (field types, sizes, caption, etc...)
    Is there any documentation or help stuff where I can find the APEX page definition tables? I found something like WWV tables but I couldnt figure it out properly...
    Any help ?
    Thanks,
    Osman...

    We have built our entire apex app in a similar way. We create the shell apex pages using apex (eg, Item Detail, Insert Item, etc.). Then we create a PL/SQL region on the page. The PL/SQL region simply calls a stored procedure to render the controls on the page. For example, our regions looks similar to this:
    begin
    apex_pkg.sp_render_page('ITEM_DETAIL',Param1,Param2,Param3);
    end;
    The sp_render_page procedure in the database generates the appropriate HTML for the page. This procedure reads meta data in the database (eg, field label, field size, field type, field position, etc.) and renders the same HTML that apex would render if the apex page was manually created. For example, in the procedure we use lines similar to these:
    HTP.p(apex_item.text(...))
    HTP.p(apex_item.select_list_from_query(...))
    Because the procedure is reading meta data, the apex page is dynamic and can be different for different users or clients.
    Darrin

  • Create user account in Child Domain

    Dear all.
    Kindly, i have Forest contain two domain Root domain, child domain.
    in the child domain i can create a user account using the root domain.
    i want to stop this. i want the IT Department there create users for there domain only?
    thanks
    Ashraf Hilal

    Hi Ashraf,
    Your query is not clear. Do you want to restrict enterprise administrators from creating user accounts in child domain?
    By default, Enterprise Admins group is part of Builtin Administrators group in the child domain.
    When child domain is introduced, by default Enterprise Admins group is added to Child Domain\Administrators group (Builtin local Security group).
    How to Restrict Enterprise Admins From Child Domain
    http://social.technet.microsoft.com/wiki/contents/articles/16919.how-to-restrict-enterprise-admins-from-child-domain.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/a72dc036-3375-4124-9ef7-d30af104451a/enterprise-administrator-and-child-domain?forum=winserverDS
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • Access Denied creating user accounts through vba

    Hello,
    I have a MS-Access application that runs on a Windows 2012 server. My customer logs into the server using RDP. The MS-Access application is started up automatically by means of the environment variable in the user settings. The customer needs to be able
    to create new windows users for this application, simply by clicking a button.  
    The VBA script to create users works, because when I start up the MS-Access application with my own logged on Administrators account, the new users get created. If my customer tries it, he gets 'Access Denied' error. I have added his user account to
    the Power Users group, but that did not solve the problem. I also tried to make him member of the DCOM Users Group, the 'Access Denied' error remains...
    I do not want to give him administrator priviliges, because he is 'just a customer'...
    What do I need to do for this setup to work? I tried altering some DCom settings, but frankly I do not have enough knowledge to feel comfortable with this. Hope anybody can help me out here...
    best regards, Rob

    Is this a standalone server? Only administrators can create user accounts, so there is no work around for that. You could look at something that has the administrator account/password stored and launch PSEXEC or something else in an elevated session behind
    the scenes but that is a security volunerability because the credentials are stored.
    If the account is being created in an Active Directory environment you could delegate permissions to the appropriate OU for your customer.
    Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years.

  • How To Create User through Pl SQL Block

    Want to create user from pl sql block using dynamic SQl. Used dbms_sql package . But when I run the block it does not recognises the parameter v7 which is a constant in dbms_sql package. Message displayed is Can not access parameter from package being restricted procedure.
    Is there any method to create user through PL SQl block

    hi ranjit,
    hope this will work
    declare
    uname varchar2(30):=&uname;
    pword varchar2(30):=&pword;
    begin
    execute immediate ('grant connect, resource to '| |uname| |' identified by '| |pword);
    end;
    regards

  • Help , how to auto create user account

    Hi, guys,
    i wanna to know how to auto create user account after use the suppliers' api to create supplier.
    i didn't find out how to auto create user account by use ap_vendor_pub_pkg.create_vendor_contact procedure.
    how to auto create the user account ?
    if you know ,tell me ,pls
    best Regards !
    Edited by: wanjin on 2013-4-15 下午11:50

    Hi Gareth,
    I wanna create an Oracle E-business Suite use account ,but how to use fnd_user_pkg.createuser procedure to relation the AP suppliers , not employee suppliers.
    the result like N:Purchasing Super User -->supplier-->Contact Directory --> create user
    then use "Create User Account for this Contact" to create user account
    Regards,
    Wanjin

  • Creating user accounts with OIDDAS and use them from the OS

    Hi,
    I have a customer that is experiencing an error creating user accounts from OIDDAS, and use that user accounts from the operating system.
    My customer is using OID/OAS4OS 10.1.4.2.0, and that version is not longer available to download, then, I will try in my own environment
    with OID/OAS4OS 10.1.4.3.0.
    And the question is the following: is supported to create user accounts with OIDDAS and expect that users can work with OAS4OS and be
    able to authenticate in the operating system?
    For the reference, SR# 7222351.993:
    Thanks,
    Luis Vivero.
    Edited by: LV in ORCL on Dec 11, 2008 6:47 AM

    Hi Jacco,
    I didn't see your post before.
    Nop, unfortulately I don't have a document with that. I just received that answer
    from development (related to the plugin for AD that is not certified, and DAS is
    not intended to work with OAS4OS).
    Anyway, about the plugin to work with AD, this is working for me; at least I tested
    it by configuring the plugin, I configured synchronization, the mapping file, I did
    the bootstrap, and the accounts that were bootstraped now shows the OS attributes
    on DAS.
    Regards,
    Luis Vivero.

  • Creating User Accounts So I Can Set Parental Controls?

    My nine year old son loves to use YouTube to watch video game videos and apparently there are NO parental controls or any kind of filters on YouTube. The majority of the ones he finds are ok but there's about 15% that are just plain shocking even to me. Its pretty sad the things that people put up there. I hate to have him never be able to get online again so I want to set some sort of filter where I can block content according to keyword but I just cant figure it out at all. So I tried to set controls over the whole MacBook but it tells me that as administrator I cannot. I cant figure out how to create non-admin users though. Searched all the forums and guides, etc. but no answer.
    Thanks, so in summary, I just want to know how to create user accounts if thats the right term.
    I am using a MacBook, running Mac OSX version 10.4.11.

    Hi
    Apple menu (top left hand corner) > System Preferences > Accounts. Click the lock to authenticate. Just above the lock are two icons; a 'plus' and 'minus'. Click the 'plus' icon. Enter the name of your son, tab down into the next field and that should autofill for you with the information you placed in the name field; tab down again and enter a password; tab again to key in the password again; don't tick the box that says "allow user to administer this computer"; click 'Create Account'. You should be prompted with a window asking if you want to leave automatic login on or if you want to turn it off - turn it off. You'll see why later on. What you should see after this has finished is in the left hand window at the top your account details with your name and underneath it should 'Admin' and below your account details will be your son's. Underneath his name it should say 'Standard'.
    Click on his name to select it and now click on the Parental Controls tab on the right hand side of that window. You should now have the option to enable and configure control for the 5 applications listed there: Mail, Finder & System, iChat, Safari and Dictionary. Explore and configure to your hearts content from there. When you are happy quit out of System Preferences and select Log out from the Apple Menu. You should now be presented with the Login Window displaying not only your account but also the newly created one for your son. Log in s your son and test to see if what you've set as a control has worked. Keep going backwards and forwards between the two accounts until you are happy.
    Bear in mind there is only so much you can do.
    It's virtually impossible to block everything potentially morally harmful without basically stopping your son from having any access at all. You could look at supplementing Parental Controls with the built-in filters in your router - if you have one? If you don't then consider getting one. I'm struggling to think of a router for residential use that does not have some sort of built-in web filter?
    The tab button is the key immediately to the left of the 'Q' key. It will have an arrow going from left to right printed on it.
    Tony

  • What do you use to create user accounts?

    I have used Passenger to create my school's user accounts in the past. Since upgrading to Mavericks Server 3 I can't import the user accounts from Passenger. Does anyone know of a program that will create user accounts for 10.9?

    I downloaded the Passenger 4.2 beta and was able to export a user list that included passwords that I could import into Workgroup Manager 10.9. The format of the export file has changed for 10.9.
    The old format:
    0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 39 dsAttrTypeStandard:RecordName dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID  dsAttrTypeStandard:Comment dsAttrTypeStandard:Expire dsAttrTypeStandard:Change dsAttrTypeStandard:RealName dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:UserShell dsAttrTypeStandard:PrintServiceInfoXML dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:HomeDirectoryQuota dsAttrTypeStandard:MailAttribute dsAttrTypeStandard:Keywords dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:JobTitle dsAttrTypeStandard:OrganizationName dsAttrTypeStandard:Department dsAttrTypeStandard:Building dsAttrTypeStandard:PhoneNumber dsAttrTypeStandard:MobileNumber dsAttrTypeStandard:FAXNumber dsAttrTypeStandard:PagerNumber dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:Street dsAttrTypeStandard:City dsAttrTypeStandard:State dsAttrTypeStandard:Country dsAttrTypeStandard:PostalCode dsAttrTypeStandard:Picture dsAttrTypeStandard:SMBHome dsAttrTypeStandard:SMBHomeDrive dsAttrTypeStandard:SMBProfilePath dsAttrTypeStandard:SMBScriptPath dsAttrTypeStandard:WeblogURI dsAttrTypeStandard:IMHandle
    ppiper:dsAuthMethodStandard\:dsAuthClearText:123456:2200:1026::::Peter Piper::::::::Peter:Piper:::::::::::::::::::::
    The new format:
    0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 46 dsAttrTypeStandard:RecordName dsAttrTypeStandard:GeneratedUID dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:PasswordPolicyOptions dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID dsAttrTypeStandard:Comment dsAttrTypeStandard:Expire dsAttrTypeStandard:Change dsAttrTypeStandard:RealName dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:HomeDirectoryQuota dsAttrTypeStandard:UserShell dsAttrTypeStandard:PrintServiceUserData dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:MailAttribute dsAttrTypeStandard:MCXSettings dsAttrTypeStandard:Keywords dsAttrTypeStandard:Picture dsAttrTypeStandard:MCXFlags dsAttrTypeStandard:SMBHome dsAttrTypeStandard:SMBHomeDrive dsAttrTypeStandard:SMBProfilePath dsAttrTypeStandard:SMBScriptPath dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:Street dsAttrTypeStandard:City dsAttrTypeStandard:State dsAttrTypeStandard:PostalCode dsAttrTypeStandard:Country dsAttrTypeStandard:WeblogURI dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:PhoneNumber dsAttrTypeStandard:MobileNumber dsAttrTypeStandard:FAXNumber dsAttrTypeStandard:PagerNumber dsAttrTypeStandard:IMHandle dsAttrTypeStandard:ServicesLocator dsAttrTypeStandard:URL dsAttrTypeStandard:JobTitle dsAttrTypeStandard:OrganizationName dsAttrTypeStandard:Department dsAttrTypeStandard:Building dsAttrTypeStandard:Company
    ppiper:::123456::2220:1026::::Peter Piper:::::::::::::::Peter:Piper::::::::::::::::::::

  • Suspect Adobe ARM creating user account

    Hello
    I was helping a user with a problem about 2 days ago. The problem is that everytime Windows reboots the netbook shows a newly created User Account called icsokern.
    The user has a Samsung netbook, Windows 7 Starter & Service Pack 1 as well as ESET AV.
    Trying to delete the account doesn't make any difference as the account is recreated after a reboot. However, securing the account I put in a password as well as changed the login time access to 0. When I try to change the applications that the user account can access I see only Adobe ARM as ticked. No other application is ticked. This leads me to believe that Adobe ARM could be creating this account, but there is no logical explanation why?
    Checking for a malware reveals no alerts. No quarantined files and Windows' Event Viewer shows no alerts regarding system or application errors.
    Having said the above I decided to ask on the Adobe forum to see if anyone else has had this experience and if so what did they do to fix this?
    w

    Latest Adobe ARM installs task in the Windows Task Scheduler.
    If you see this task, can you try to disable it and check if new User account gets created?
    If new account no longer created after task is disabled, you can conclude that Task Scheduler does it for some reason, which will need to be investigated.

  • SSIS execution via sql query with dtexec utility by passing proxy account

    Hi, 
    i am executing ssis package with dtexec utility, with xp_cmdshell
    package is not a file based, but stored in sql/msdb
    while executing i am getting 'authentication failed'
    i haved tried with sa user and password, by passing it...but no luck
    so finally i want to authenticate it via proxy account, because same happen in sql agent job also but after creating proxy account it worked.
    please suggest me way to pass proxy account in query....i have used many combination like
    SET @SQLQuery = 'DTExec /SQL ^"\DataTransfer.dtx^" '
    SET @SQLQuery = @SQLQuery + ' /SET \Package.Variables[ServerName].Value;^"'+ @ServerName + '^" '
    EXEC master..xp_cmdshell @SQLQuery

    Have the EXEC master..xp_cmdshell run a batch instead that inside it it has a run as DOS command that runs the package with DTExec
    Arthur My Blog

  • Possibility to show opening balance of a GL account through SQL query?

    Hi experts,
    Is it possible to run an SQL query in SBO that shows the opening balance
    of a GL account based on a date entered by the user?
    This is similar to how the general ledger shows the opening balance of a GL account based on the posting dates entered.
    Thanks for your ideas.

    Hi Gordon,
    Thanks for that idea.
    I am thinking of the following:
    1. Create a virtual table (#TEST) from a SELECT statement that gets all journal entries for the specified GL account BEFORE the specified posting date.
    2. Perform a SELECT statement that sums the debit and credit from (#TEST).
    This should show the opening balance of the GL account right?
    Regards,
    Eric
    Edited by: eceguerra on May 18, 2011 7:02 AM
    Edited by: eceguerra on May 18, 2011 7:02 AM

  • Serial numbers via sql query

    Hi,
    I'm having trouble getting the correct serial numbers via SQL.
    From PHP I run the following query to get the Delivery Notes:
    select ODLN.DocEntry,ODLN.CardCode,ODLN.CardName,ODLN.DocDueDate,ODLN.DocDate,ODLN.NumAtCard,NNM1.SeriesName,ODLN.DocNum,ODLN.SlpCode,ODLN.CANCELED,ODLN.DocStatus,DLN1.ItemCode,DLN1.Dscription,DLN1.Quantity,DLN1.ShipDate,DLN1.LineStatus,ODLN.NumAtCard,ODLN.U_CodSit,ODLN.DocTotal,ODLN.DocCur,ODLN.CreateDate,ODLN.TrackNo,DLN1.SerialNum from ODLN INNER JOIN NNM1 ON (ODLN.Series = NNM1.Series) INNER JOIN OCRD ON (ODLN.CardCode = OCRD.CardCode AND OCRD.CardCode = '".$_POST["sapcode"]."' AND OCRD.Password = '".$_POST["sappwd"]."') INNER JOIN DLN1 ON ODLN.DocEntry = DLN1.DocEntry ORDER BY ODLN.CreateDate DESC,ODLN.DocEntry ASC
    While I loop through the results I then try to grab the serial numbers. I tried this:
    SELECT OSRI.IntrSerial FROM OSRI INNER JOIN SRI1 ON ( (SRI1.SysSerial = OSRI.SysSerial) AND (SRI1.BaseNum = ".$row['DocNum'].") ) INNER JOIN DLN1 ON (DLN1.DocEntry = SRI1.BaseEntry) WHERE ( (DLN1.DocEntry = ".$row['DocEntry'].") AND (DLN1.ItemCode = OSRI.ItemCode) AND (DLN1.ItemCode = '".$row['ItemCode']."') ) ORDER BY OSRI.IntrSerial
    but it gives me incoherent results compared to what appears in the SAP b1 client. For ex., some serial numbers are fine but in other cases I get more serial numbers than accounted for (article quantity = 1 but get 2 serial numbers; in SAP B1 client only one of the two serial numbers appears, as expected).
    So I then modified the query and added a check for the CardCode:
    SELECT OSRI.IntrSerial FROM OSRI INNER JOIN SRI1 ON ( (SRI1.SysSerial = OSRI.SysSerial) AND (SRI1.BaseNum = ".$row['DocNum'].") AND (SRI1.CardCode = '".$_POST["sapcode"]."') ) INNER JOIN DLN1 ON (DLN1.DocEntry = SRI1.BaseEntry) WHERE ( (OSRI.CardCode = '".$_POST["sapcode"]."') AND (DLN1.DocEntry = ".$row['DocEntry'].") AND (DLN1.ItemCode = OSRI.ItemCode) AND (DLN1.ItemCode = '".$row['ItemCode']."') ) ORDER BY OSRI.IntrSerial
    This query is slightly better in the sense that at least I don't get serial numbers that are not supposed to be there (eg. if quantity=1 I will not get 2 serial numbers as in the previous query). However, in some cases it works as expected and in other delivery notes it doesn't because it simply doesn't list the serial numbers (which where found in the first query).
    It might be because the CardCode field isn't always thoroughly set?
    If so, is it just a "user problem" so I should tell my company to review the way they fill SAP data?
    Or am I doing the wrong query?
    (The SDK doc regarding OSRI is confusing as it doesn't even point to SRI1 and I don't fully understand the relationships)
    Regards,
    Vieri

    Vieri,
    you can catch (using MS SQL Profiler) the query which is executed by SBO once you click on serial nambers report from Delivery Note form.
    this is one of the ways to get a solution quickly.

  • Create user accounts on multiple networked computers

    I have a computer lab of 21 identical systems:  20 student computers and 1 instructor computer.  All are running Win 7 (32 bit).  They are connected via a simple Windows network.  I have 50 users, and I was wondering if I could simultaneously
    create local standard user accounts for each of them on all of my computers.  I know this is possible if I am running Windows Server, but I am not.  Will I be able to accomplish this using Windows 7 (Ultimate)?  Doing this one-by-one will be
    quite tedious, and probably not feasible given the allocated resources).  I am a novice, so perhaps I have omitted some key information.
    Thanks in advance.

    You can use VB script, and create multiple accounts on multiple computers.
    Follow this : http://blogs.technet.com/b/heyscriptingguy/archive/2009/03/23/how-can-i-create-the-same-user-account-and-password-on-multiple-computers.aspx
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How Do I Create User Account with "limited admin rights"?

    Hello;
    I would like to give a handful of users the ability to login to the DCC and enable them to add/delete/modify users and or hosts only, I.e. People and/or hosts.
    Is there anyway to:
    1.  Make a user with this admin capability?
    2.  Segregate the containers they are able to modify?
    Thanks to all in advance.

    BobM53, That would be needed regardless of what front end my users log in with, in my case I was looking for them to access the DIT via the DSCC/DCC, which is not possible.  Regardless, thank you for your reply, it is reassuring to know I am headed in the right direction.
    I am now looking towards installing something else like Apache Directory Studio, or some other GUI for users to manage the directory. 
    I will most likely create one or more ACI's to build groups, adding members to those groups as needed; each group being allowed to perform functions such as create users, lockout users, add/modify hosts, etc.
    I will most likely follow the steps outlined in:
    Directory Server Groups, Roles, and CoS - 11g Release 1 (11.1.1.7.0)
    Slightly OT, does anyone have a suitable and similar proven method to "lockdown" root accounts, and who has root access?
    Thank you

Maybe you are looking for

  • [SOLVED] Find all users with a MAILTO option in their crontab

    Anyone know if this is possible? I have a script that lists all scheduled cronjobs but I need to find out which users have email notifications configured. If anyone else wants it, here is the script I use to check all user's crontabs. I did not write

  • WLC-4402+AIR-LAP1142N problem

    Hello all, I've got a following problem with bringing up simple wireless configuration. There is a WLC-4402 controller and several remote locations (I am testing one so far). Two WLAN configured (one for employee and the other for guest access - no m

  • Enclosing characters for namespace in XI

    Hi, I have a file (FCC) to file (XML) scenario. The output that I am getting is a .xml file. When I open the output file in Notepad (text editor) I got the following <?xml version='1.0' encoding='ISO-8859-1'?> <if:product xmlns:if='data.interface' xm

  • How to import RAM files to iMovie

    Does anyone know of a program that will import RAM or WMV files into iMovie so I can make a DVD out of them that will play on a DVD player and not just on a computer? Powerbook G4   Mac OS X (10.4.3)  

  • What about all these files/folders?

    * I looked through my Applications and located the following files that do not seem to be applications and perhaps should not be in Applications at all: -Epson LFP Remote Panel empty folder; -Epson Printer Utilities 57kb Alias; -Epson Stylus Pro 3800