creation of user and grant privileges

I ask each of you to help me to solve my problem. I want to create a user in a form and to grant privileges when I am logged in as system.
Please provide syntex
Thanks in advance

Published by: user4480557 on June 3, 2010 12:32 AM

You can use the FORMS_DDL built-in to create the user.

FORMS_DDL ('create user identified by bar foo');

Tags: Database

Similar Questions

  • Creation of names of users and storage space began with the numbers or _ $#.

    Hi all

    Could you please explain to me

    If the creation of users and storage names began with numbers or _ $# is fine. Are there any constraints or slandered oracle. ?


    Thanks in advance.
    Dev

    After watching a few google links, I want to sum-up rule for the design of Tablespace:

    1. always create tablespace locally managed (management of the measure).

    2. never create tablespace with hundreds of small data files to avoid a slower recovery.

    3. the types of segments that are used in the same way must be stored together.

    4. the system must be designed for the most common usage.

    5. the regions should be exceptions.

    6 feud among storage space should be kept to a minimum.

    7. the data dictionary must be isolated.

    8. always give a name to the tablespace; so it may be easy to know what contains this tablespace.

    9 http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Recommendations_to_minimize_disk_I/O_contention&anchor=iooracle

    10. never use quotation marks double tablespace name.

    11 create the tablespaces explicitly using CREATE TABLESPACE rather than implicitly by creating a table without specifying a tablespace name.

    12. create an a tablespace less as temporary for user types.

    13 specify the suffix ".dbf" for names of applications datafile, '.log' for log data file names.

    14. set the default storage parameters to take into account the size of the typical object.

    15 specify PCTINCREASE 0. Exceptions can only be made with the approval of the Central s/n.

    16 AUTOEXTEND must be enabled.

    17 MAXSIZE must be set.

    After posting the links to doc, I want to sum-up rule for the creation of the user:

    1. always follow "Requirements Minimum for passwords"
    http://docs.Oracle.com/CD/B28359_01/network.111/B28531/authentication.htm#CHDFDHAJ

    2. never use double quotes with username and passwords.

    3 assign a default Tablespace for the user.

    4 assign a Tablespace Quota for the user.

    5 avoid giving the ability for users to create objects in a table space, because the schema is the logical database for the user.

    6 enable auditing for many reasons.

    7 assign a temporary Tablespace for the user.

    8 identify the appropriate profile and role to the user.

    9. only letters, numbers and the underscore character are allowed in names. Although Oracle allows for $ and the #, they are not needed and may cause unexpected problems.

    10. all names are uppercase. Or at least unimportant in which case. Ignoring this rule usually leads to making reference to the tables and the columns very clumsy because all names must be in double quotes.

    11. the first character of the name must be a letter.

    12. keep meaningful names, but at the same time, do not use long_names_describing_every_single_detail_of_particular_object.

    Sources: https://www.cms.gov/DBAdmin/downloads/OracleStandardsandGuidelines.pdf
    http://www.gplivna.EU/papers/naming_conventions.htm
    http://www.Oracle-base.com/articles/Misc/NamingConventions.php
    http://SS64.com/ora/syntax-naming.html

    Concerning
    Girish Sharma

    Published by: Girish Sharma on March 2, 2012 15:09

    Published by: Girish Sharma on March 2, 2012 15:12

  • Difference between Oracle user and security

    Hi all

    Can someone give me the difference between--> Oracle--> user and security-> system oracle apps R12 resp. administrator user.


    Thank you
    Mahesh.

    Published by: 991854 on March 12, 2013 01:49

    Can someone give me the difference between--> Oracle--> user and security-> oracle apps R12 resp. system administrator user.

    Security > Oracle > register:

    Use this window to register a username with Oracle E-Business Suite ORACLE. An ORACLE user name grants privileges to access the ORACLE database
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12893/T174296T174305.htm

    Security > Oracle > DataSet:

    A data group defines the mapping between the products Oracle E-Business Suite and ORACLE database ID. A data group determines which accounts of liability forms, concurrent programs and reports Oracle database to connect to. see: Definition of data groups, the Oracle eBusiness Suite system administrator Guide - Configuration.
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12843/T156458T156461.htm

    Security > user > define:

    This window allows to set user Oracle E-Business Suite. This user is an authorized user of Oracle E-Business Suite and is identified by a user name.
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12843/T156458T156461.htm

    Thank you
    Hussein

  • How to grant privileges to update on the custom procedures created in the apps schema?

    Hello
    We have a R12.0.6 instance that runs within our Organization. Our programmers keep requesting access on some custom procedures that are initially created in the apps 'write (update)' scheme. I have created a read-only as database user and granted ' run/debug' privilege on these custom procedures, but always using this procedure user cannot be updated (in sufficient privileges).

    Once they change the procedure, send me the code. Using profile user apps, I can recreate it using procedures create or replace the control. In this way it works very well. Our concern is how they (programmers) themselves using database read-only user does this work? What privileges should be granted?

    Please guide me?
    Concerning
    Ariz

    Arizuddin wrote:
    Hello
    First of all, I have to give ' run/debug"on a particular procedure that exists in the apps schema. Grant then 'edit any proceedings', it works.

    "alter any procedure" is a privilege of system and now the user can change any procedure in the database. You will need to remember this security risk.

    Concerning
    Rajesh

  • Creating table in the schema has with the user B and granting permissions to the user C

    Hello, I have a problem fun - we have a large table which requires a batch to make millions of updates, and he needs to finish more quickly. It takes several hours as an update, but a select create table did the same thing in about a minute. Yay! Then we just delete the old table and rename the new table to the former, rebuild all the index and grant select/insert/update/delete permissions to another user who needs access... and there is the problem, Oracle said insufficient privs.

    We have A figure, which is the owner of the table, userid B who done all the stuff of application batch and userid C which performs inserts for a process of middleware. None of them are actual users, of course. We want that user B to do the ETG, rename, rebuild and re-grant of the authorisation of the index. But user B apparently cannot grant permissions on objects in the schema A to user C, even if B has created the table and has the role DBA (not ideal, I know)!

    What's really crazy is that there is no sense unique user b can grant permissions to user C, which is to:

    grant select any table USER c;
    grant insert any table USER c;
    grant update any table USER c;
    Grant delete any table USER c;

    It seems really perverse can create tables in diagram A and even grant C privs "whole table" that user B, but may not grant privs specifically on this object in the schema A, even with DBA privs. I must be missing something... right?

    Yes. By default, the stored procedures are stored procedures from DEFINER rights. If A is the owner of a stored procedure, this stored procedure can do whatever A enjoys the privileges to directly. If A grants B privileges RUN this stored procedure, when B calls the stored procedure, the procedure runs with the privileges.

    I agree point stew, however, re-creating objects in Oracle is generally a bad idea and a TRUNCATE with one insert direct-path, possibly combined with the deactivation and the rebuilding of the index would be more appropriate than a DEC. If you're going to stick with this Assignment, however, that really do in a stored procedure owned by A while B has no need to CREATE ANY TABLE.

    Justin

  • find the user added or deleted... and grants

    Hi all

    I want to find what new users have been added to my db and users where it fell in my DB? Basically, I have to watch when a new user is added, and when a user is deleted and same with subsidies... you need to know what grants when revoked for a user and what grants were awarded to an existing users... we must work from 9i - 11 g?

    Are there views dba that we ask for this?

    I want to find what new users have been added to my db and users where it fell in my DB?

    CREATION OF USER AUDITING
    CHECK DROP USER

    This type of activity should be limited to non-existent.

  • need help with the privilege of the user and triggers

    Hello

    I need to create users in general that can insert a row into a table, but should not be able to remove all the data, so what minimuim privileges I have to assign.
    Grant connect session and grant resources or something else?

    and a prob more in the triggers, I wrote a trigger to trigger if expamt is greater than eclimit. I'm getting errors


    create or replace
    TR_EXCEEDLIMIT RELAXATION
    AFTER INSERTION OR UPDATE OF EXPAMT ON EXPENSEITEM
    FOR EACH LINE
    DECLARE
    V_ECLIMIT EXPCAT. TYPE OF ECLIMIT %;
    BEGIN
    SELECT ECLIMIT IN THE V_ECLIMIT OF EXPCAT
    WHERE ECNO =: NEW. ECNO;
    IF(:NEW.) EXPAMT > V_ECLIMIT) THEN
    INSERT INTO LOG_TABLE (excno, exctrigger, exctable, exckeyvalue, excdate, exctext) VALUES (LOG_SEQ. NEXTVAL, 'TR_EXCEEDLIMIT', 'EXPENSEITEM': NEW. EINO, SYSTEMSTAMP, (' INSERTED OR UPDATED DATA OF EXPAMT IS GREATER THAN THE VALUE IN ECLIMIT');
    ENDIF;
    END TR_EXCEEDLIMIT;


    Errors
    Error (7.30): PLS-00103: encountered the symbol "%" when expecting one of the following values: = (; not null default range symbol '%' character has been ignored.)
    Error (12,235): PLS-00103: encountered the symbol ";" when expecting one of the following values :), * & | = - + <>/ is mod remains not rem = >... < a superscript (*) > <>or! = or ~ = > = < = <>and LIKE2_ LIKE4_ LIKEC_ or between overlapping | Member of type multiset year DAY_ SUBMULTISET_ the symbol ")" has been replaced by a ';' to continue.
    Error (14.5): PLS-00103: encountered the symbol "TR_EXCEEDLIMIT" when expects it one of the following values: If
    create or replace
    TRIGGER TR_EXCEEDLIMIT
    AFTER INSERT OR UPDATE OF EXPAMT ON EXPENSEITEM
    FOR EACH ROW
    DECLARE
    V_ECLIMIT EXPCAT.ECLIMIT%TYPE%;
    BEGIN
    SELECT ECLIMIT INTO V_ECLIMIT FROM EXPCAT
    WHERE ECNO = :NEW.ECNO;
    IF(:NEW.EXPAMT > V_ECLIMIT) THEN
    INSERT INTO LOG_TABLE (excno, exctrigger, exctable, exckeyvalue, excdate, exctext) VALUES (LOG_SEQ.NEXTVAL, 'TR_EXCEEDLIMIT', 'EXPENSEITEM', :NEW.EINO, SYSTEMSTAMP, ('INSERTED OR UPDATED DATA OF EXPAMT EXCEEDS THE VALUE IN ECLIMIT');
    ENDIF;
    END TR_EXCEEDLIMIT;
    

    line 6, it should be

    V_ECLIMIT EXPCAT.ECLIMIT%TYPE;
    
  • Object grants to users and roles

    A question about the Oracle grants. Searched and found wires that are close, but not exactly what I'm looking for.
    I'm on an Oracle 10 g Enterprise Edition (64-bit) database running on Sun Solaris 5.10

    We have a test database (say TEST1) having 2 schema SCHEMA1 and SCHEMA2. These patterns have nearly 2000 items in each of them.
    Then we have a different database (say TEST2) with the same 2 schemas with the same name and containing as many objects.

    My goal is to export these two patterns of TEST1 and import them into TEST2. By doing this, I chose the path is, am I completely drop every single object from the 2 diagrams in TEST2. And then, do an import. I do import with grants = y option enabled.

    The dilemma I am, is that, although the DDLS objects are identical between SCHEMA1 and SCHEMA2 TEST1, SCHEMA1 and SCHEMA2 TEST2 respectively, users on the databases are different. Of course, I like to keep all subsidies of the object to other users in TEST2 after my import just the way which is prior to importation. So, looking for a way to pre-generate a script before the Tomb object so that I can just run the script and retrieve all my grants do lose I. as...
    GRANT SELECT ON TEST2.table10 to USER01;
    GRANT INSERT ON TEST2.table10 to USER02.
    GRANT INSERT ON TEST2.table20 to USER02;...

    (I really don't like if the TEST1 grants is imported when you import, thus introducing unnecessary grants... wanted to just make sure that TEST2 does not lose a thing)

    Another round here, is that we also have a good amount of roles that have received subsidies for SCHEMA1 and SCHEMA2 of TEST2 database objects. How to generate a script that has something like...

    GRANT SELECT ON TEST2.table1 to ROLE1.
    GRANT INSERT ON TEST2.table1 to ROLE2.
    GRANT INSERT ON TEST2.table2 to ROLE2;...

    Thank you

    You can start from these scripts:

    SQL> grant select on a.t13 to b;
    
    Grant succeeded.
    
    SQL> select 'grant ' || privilege || ' on ' || owner || '.' || table_name || ' to ' || grantee || ';'
      2  from dba_tab_privs
      3  where owner = 'A'
      4  /
    
    'GRANT'||PRIVILEGE||'ON'||OWNER||'.'||TABLE_NAME||'TO'||GRANTEE||';'
    ------------------------------------------------------------------------------------------------------------------------------
    grant SELECT on A.T13 to B;
    
    SQL> create role role1;
    
    Role created.
    
    SQL> grant insert, delete on a.t10 to role1;
    
    Grant succeeded.
    
    SQL>  select 'grant ' || privilege || ' on ' || owner || '.' || table_name || ' to ' || role || ';'
      2  from role_tab_privs
      3  where owner = 'A'
      4  /
    
    'GRANT'||PRIVILEGE||'ON'||OWNER||'.'||TABLE_NAME||'TO'||ROLE||';'
    ------------------------------------------------------------------------------------------------------------------------------
    grant INSERT on A.T10 to ROLE1;
    grant DELETE on A.T10 to ROLE1;
    

    With greetings
    Krystian Zieja

  • try to install a printer and receive a message error «software cannot be installed...» To resolve this problem, log off and log in as a user with administrative privileges.

    original title: help installing a printer

    I try to install a printer on my computer and continue to receive an error message indicating that the "software cannot be installed using the command" run as ".". To resolve this problem, he told me to sign out and then sign in as a user with administrative privileges. I am the owner of this computer and that you have had for several years. I need to know how to solve this problem. Can anyone help?

    Hello

    have you tried right clicking on setup.exe printing software then run as administrator?

  • I have a creative Member Cloud (one year). As you know, when I download/install delegating creation software, ask the name of user and password. I typed the name of user and password, but it was rejected. Is the user name is the same as Adobe ID? Please a

    I have a creative Member Cloud (one year). As you know, when I download/install software of Creative delegating, askUsername and password. I typed the name of user and password, but it was rejected. Is the user name is the same as Adobe ID? Please advise me.

    Hello

    He would ask your Machine user name and password.

    Kind regards

    Sheena

  • Hi friends this is the code for the dynamic creation of user in plsql, but these statements are not run if pls help for this error

    DECLARE

    n NUMBER.

    BEGIN

    n: = 1;

    WHILE (n < = 10)

    LOOP

    CREATE a user EM | IDENTIFIED BY KLU n;

    SESSION CREATION GRANT, GRANT ANY PRIVILEGE TO EM. n;

    COMMIT;

    n: = n + 1;

    END LOOP;

    END;

    Hello

    Here is the dynamic creation of user query and giving grants to the user,.

    DECLARE

    n NUMBER.

    cr_user VARCHAR2 (300);

    gr_user VARCHAR2 (300);

    BEGIN

    n: = 1;

    While (n<=>

    LOOP

    cr_user: = 'CREATE user EM | n | "IDENTIFIED BY KLU";

    gr_user: = "GRANT CREATE SESSION, GRANT ANY PRIVILEGE to EM '. n | '';

    EXECUTE IMMEDIATE cr_user;

    EXECUTE IMMEDIATE gr_user;

    n: = n + 1;

    END LOOP;

    END;

    Edited: Removed when OTHER exceptions to Code.

    See you soon!

  • Grant privileges on schema objects

    Hi all

    I need all the privileges of a user on another user, any objects.
    I'm not findign exact command to do so.

    for example: x has y objects.
    z of the user should be able to select, update, delete all objects x.y.

    Any help/insight is appreciated. !

    You must grant privileges on an object-by-object basis.

    You can use a bit of dynamic SQL to automate the process (note that I'm only show the process of granting privileges on tables - you can write similar pieces of code to grant privileges on views and other types of objects as well).

    BEGIN
      FOR i IN (SELECT * FROM dba_tables where owner = 'X')
      LOOP
        EXECUTE IMMEDIATE 'grant select, update, delete on x.' || i.table_name || ' to z';
      END LOOP;
    END;
    

    If Z has no privileges granted directly, you'd probably better to create a role, granting privileges to the role and then the role to the Z. Which will facilitate in the future if you need to create another user that has the same privileges as Z.

    Justin

    Published by: Justin Cave on October 15, 2012 11:50

  • It not install on Win7 Home - don't say no admin tho I'm only user and admin profile

    Running Acer laptop Win7 Home Edition, Avira Antivirus, Windows Firewall. Mozilla's Firefox downloaded installer stub. On running it, it reads "extract" and then displays a message saying "some facilities may not work Installationavecuneracine current user" and shows two options: run with the current user and administrator (to be completed only for the administrator password).

    Click the current user and the program disappears - nothing happens. There is only 1 profil_utilisateur on this system - user current, called 'a' with privileges and no password. Click on administrator insists on the password, will not accept the empty password field and disappears.

    I created an ID of administrator with the password and logged, but the same two options new pop up - and the disappearance even once program is selected.

    Tried with Avira and disabled Firewall. Makes no difference. Running Firefox earlier version with the active user profile and no problem. When the upgrade program itself, this problem started while I have to use IE or Chrome.

    I'm typing this from my desktop system where Firefox works fine.

    OK, your sub windows 7 when you downloaded the file to go to her and right up until it clicks. On this list, there is an option "Run as Administrator".
    Click it and proceed with the installation.
    This is what may be the problem as Windows 7 has problems with UAC.

  • I can't open my Dungeon of docs word any error message "user lacks access privileges.

    I can't open my imported word docs Dungeon receive an error message 'user lacks access privileges' ideas of what she may be contacting Apple and they tried a lot of things and tell Microsoft that the docs are corrupt and nothing wrong with the word 2016.

    More info, please.

    When you say that it is "any word docs", do you mean another user on the same Mac, another Mac, an earlier version of Mac OS X, an earlier version of Word, another type of computer, from another type processor, or something else?

    These documents are currently stored in your Documents folder, into another directory user on an external drive, on a server, or elsewhere?

    You do it on El Capitan? What version of 10.11.x?

    Your copy of the word 2016 is perfectly up to date?

  • connection of users and configuration of MAX

    I searched the site for 3 days and finally found a post titled; "IAK login user and configuration MAX" on 04/21/2009 who has asked pretty much the same problem, I'm going to. I wonder if there is something new on this subject because I need a solution.

    I installed an application and the NI FP driver suite see 6.0.11. I run NI MAX and open my. File IAK, which is located in the folder/common directory as well as the executable file of my application. At the beginning I used to hit the 'Save' selection but have found since that it makes no difference, so now, I'm not hitting 'Save', but just close MAX. This process is to record the location of my. IAK file somewhere, because after that my application runs and communicates very well with my e/s.

    The problem comes when I have the new station operators connect to the computer that controls the operation of my test. the application that auto starts because it is in the startup folder "All Users" cannot communicate with inputs and outputs.

    MAXIMUM running and opening the. IAK file under each new user login then immediately closing MAX solves the problem and all is well, and this process must occur the first time that a new user connects to the computer. The post mentioned above indicates that it is a normal behavior.

    The problem is that some of my operators do well to find the power button and turn on all the morning. The application is no "Exit", "Task Manager" should be used to stop it. Login information is stored on a post-it in their portfolio, and ask them to open MAX and save the configuration is just too much for them to do - be unfamiliar with the operation at first.

    Can someone explain to me how to fix this or refer me to a validated solution?

    Thank you

    OK - here it is:

    It works for me under Windows 7 with FP1000 e/s on a serial Comm. port other configurations may or may be not the same in these respects.

    While logged in as a privileged user configure you application to work and communicate with the e/s using an IAK file. Create the IAK via NI MAX.

    Is the key to register of interest here: [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer\Recent File List]

    The string value is: "File1"="C:\ApplicationPath\IOConfigurationFile.IAK."

    Start the REGEDT32 Registry Editor. EXE and navigate to the key just below SOFTWARE that tells of National Instruments.

    Select the key, and then right-click on it. Select EXPORT, select a path and name of the output file.

    There will be many other entries, but this recent file one is the only one that may be necessary.

    You will end up with one. REG file with the specified name that contains the following elements:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\National tools]

    [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer]

    [HKEY_CURRENT_USER\Software\National Instruments\FieldPoint Explorer\Recent File List]
    'File1"="C:\\ApplicationPath\\IOConfigurationFile.iak '.

    Create a BAT file under the name of your choice. Configure.BAT for example.

    This BAT file will reside in the directory of your application with your Important file and it will contain 1 line.

    This:

    REG IMPORT "C:\ApplicationPath\ConfigurationRegistryExportFile.REG" > rejconfig.log

    Place a shortcut to it. BAT file in the 'All Users' Start menu.

    Any user who connects will receive this update of the registry which will allow the driver to IO to know how to communicate with your IO.

    Replace your appropriate to the ApplicationPath, IOConfigurationFile, ConfigurationRegistryExportFile, rejconfig.log file names. The log file will be written only for in the case of an error.

    Good luck

    Dfhotz

Maybe you are looking for