OCI: Oracle users creation

To standardize on all users and groups creation on Oracle Public Cloud:

Linux

To setup a middle tier:

groupadd -g 1001 oinstall 
useradd -u 1001 -g oinstall -G 1001 -m -d /home/oracle oracle
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oraInventory
chown oracle:oinstall /u01/app/oracle /u01/app/oraInventory

To install the database:

groupadd -g 1001 oinstall
groupadd -g 1002 dba
groupadd -g 1003 oper
groupadd -g 1004 backupdba
groupadd -g 1005 dgdba
groupadd -g 1006 kmdba
useradd -u 1001 -g oinstall -G 1001,1002,1004,1005,1006 -m -d /home/oracle oracle
useradd -u 1002 -g oinstall -m -d /home/emagent emagent

Solaris

groupadd -g 1001 oinstall
groupadd -g 1002 dba
groupadd -g 1003 oper
groupadd -g 1004 backupdba
groupadd -g 1005 dgdba
groupadd -g 1006 kmdba
useradd -u 1001 -g oinstall -G 1001,1002,1004,1005,1006 -m -d /export/home/oracle oracle
useradd -u 1002 -g oinstall -m -d /export/home/emagent emagent
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s