Configure Oracle Linux for Oracle Database 12c
This article will show how to configure Oracle Linux 7 for Oracle Database 12c:
- System and Kernel parameters
- Users and Groups for Job Role Separation
- Directories
Users and Groups
For Job Role Separation, groups and users will be created as follow :
Description | OS Group Name | OS Users Assigned | Oracle Privilege | Oracle Group Name |
Oracle Inventory/Software Group (mandatory) | oinstall | grid, oracle | ||
Database Administrator (mandatory) | dba | oracle | SYSDBA | OSDBA |
Database Operator | oper | oracle | SYSOPER | OSOPER |
ASM Administration Group | asmadmin | grid | SYSASM | OSASM |
ASM Database Administrator Group | asmdba | grid, oracle | SYSDBA for ASM | OSDBA for ASM |
ASM Operator Group | asmoper | grid | SYSOPER for ASM | OSOPER for ASM |
RMAN Management Group | backupdba | oracle | SYSBACKUP | OSBACKUPDBA |
Data Guard Management Group | dgdba | oracle | SYSDG | OSDGDBA |
Encryption Key Management Group | kmdba | oracle | SYSKM | OSKMDBA |
RAC Management Group (from 12.2) | racdba | oracle | SYSRAC | OSRACDBA |
Groups
Create groups with the following commands as root:
Users
Create oracle
users with the following commands as root:
Create grid
users with the following commands as root:
Users Profiles
For both oracle and grid users, do the following:
0- Connect to the user with su
1- Add the following code to ~/.bash_profile
if use bash or ~/.profile
if use ksh as shell login
2- Then create ~/ora_profile
file as follow:
3- Reconnect to the user to reload the profile.
Now to change environement, you can use :
gridenv
alias to load grid db environementdbenv
alias to load default oracle db environementoenv
for other oracle db environement
Directories
Mountpoint (/u01)
It is optional but recommended to create a mountpoint with a dedicated filesystem to store oracle software binaries for several reasons:
- to not fill up root filesystem
- to increase this specific filesystem only if needed
- to be able to move disk and filesystems to an other server
Execute theses commands as root for a new sdb
disk:
Expand/Collapse
It is optional but recommended to create a mountpoint with a dedicated filesystem to store oracle software binaries for several reasons:
- to not fill up root filesystem
- to increase this specific filesystem only if needed
- to be able to move disk and filesystems to an other server
Execute theses commands as root for a new sdb
disk:
Expand/Collapse
Oracle software directories
Oracle inventory file
If not already exist, create /etc/oraInst.loc
file:
If not already exist, create /etc/oraInst.loc
file:
System:-
Kernel
If not already present, add the following lines to:
- Either
/etc/sysctl.d/99-oracle_db-sysctl.conf
- Or
/etc/sysctl.conf
Reload kernel parameters with the following command:
If not already present, add the following lines to:
- Either
/etc/sysctl.d/99-oracle_db-sysctl.conf
- Or
/etc/sysctl.conf
Reload kernel parameters with the following command:
Shell Limits
If not already present, add the following lines to:
- Either
/etc/security/limits.d/oracle_users_limits.conf
- Or
/etc/security/limits.conf
If not already present, add the following lines to:
/etc/pam.d/login
file
session required pam_limits.so
If not already present, add the following lines to:
- Either
/etc/security/limits.d/oracle_users_limits.conf
- Or
/etc/security/limits.conf
If not already present, add the following lines to:
/etc/pam.d/login
file
session required pam_limits.so
User limits
Make sure oracle user's default shell is Bourne, Bash, or Korn shell.
Then add the following lines to the end of /etc/profile
file:
Make sure oracle user's default shell is Bourne, Bash, or Korn shell.
Then add the following lines to the end of /etc/profile
file:
Disable SELinux
Edit /etc/selinux/config
config file and set SELINUX to "disabled" or "permissive":
And execute the following commands as root to immediately disable SELinux:
Edit /etc/selinux/config
config file and set SELINUX to "disabled" or "permissive":
And execute the following commands as root to immediately disable SELinux:
Services
Packages
Install prerequisite packages manually or automaticaly with the special oracle preinstall package
Install prerequisite packages manually or automaticaly with the special oracle preinstall package
No comments:
Post a Comment