Setting Up User Accounts Before Provisioning

To use a host for provisioning a database, you must ensure that groups such as oinstall, dba, oper, and asmadmin are set up. Also, the user running these provisioning tasks must be added to these groups. To create the following groups, and ensure that the host user is part of these groups, you can run the following commands:

  • To create the database groups:

    • groupadd oinstall

    • groupadd dba

    • groupadd oper

    • groupadd asmadmin

  • To add a host user to these groups, run the following command, and enter the password when prompted.

    useradd -u 500 -g oinstall -G dba,oper,asmdba oracle

    Where,

    -u option specifies the user ID.

    -g option specifies the primary group, which must be the Oracle Inventory group, for example oinstall.

    -G option specifies the secondary groups, which must include the OSDBA group, and, if required, the OSOPER and ASMDBA groups, for example, dba, asmdba, or oper.