Installing Oracle
Installing Oracle
Oracle Linux 7
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo
Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Oracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
soft
hard
soft
hard
soft
nproc
nproc
nofile
nofile
stack
2047
16384
4096
65536
10240
Add the following lines to the "/etc/pam.d/login" file, if it does not already exist.
session
required
pam_limits.so
oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
oracleasm init
chown oracle linux.x64_11gR2_grid.zip
cd /dev/oracleasm/disks
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
groupadd oper
usermod -g oinstall -G dba,oper oracle
passwd oracle
mkdir /u01/app
chown root:oinstall /u01/app
chmod 775 /u01/app
mkdir /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
mkdir -p /u01/app
chown -R oracle:oinstall /u01
chmod -R 775 /u01/app
export ORACLE_BASE=/u01/app/oracle
PATH=$ORACLE_HOME/bin:
https://docs.oracle.com/cd/E26370_01/doc.121/e26358/dbinstall.htm