the
Preparation:
Modify startup items
/etc/inittab
the
rpm -qa | grep binutils
If not, install:
rpm -ivh *.rpm
www.2cto.com
create group, user
group add oinstall
group add dba
mkdir -p /u01
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle
chown -R oracle:oinstall /u01
the
Implement sqlplus memory
tar zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure && make install
the
edit profile file
vi.bash_profile
ORACLE_SID=orcl
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH
DISPLAY=192.168.1.101:0.0 ###Local address
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH PATH DISPLAY
stty erase ^h
alias sqlplus=”rlwrap sqlplus”
alias rman=”rlwrap rman”
the
Save and exit oracle, then log in to take effect
Check the environment variable: www.2cto.com
env | grep ORA
Check package:
rpm -qa | grep binutils
rpm -ivh * –force –nodeps
the
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
the
vi /etc/pam.d/login
session required pam_limits.so
the
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
Execute the following command to make it effective
sysctl -p
the
mkdir -p /u02/app/oracle
chown -R oracle:oinstall /u02/app/oracle
chmod -R 775 /u02/app/oracle
the
ORACLE_SID=orcl
ORACLE_BASE=/u02
ORACLE_HOME=/$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib;$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin;$path www.2cto.com
DISPLAY=192.168.59.129:0.0
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH PATH DISPLAY
the
stty erase ^h
alias sqlplus = “rlwrap sqlplus”
alias rman=”rlwrap rman”
the
Solve the error reported by sqlplus: ./sqlplus: error while loading shared libraries:
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot
restore segment prot after reloc: Permission denied
root user login
Use the cd command to switch the current directory to /etc/selinux
Open the config file with vim
Find the SELINUX entry inside and set it to disabled
restart the system
the
the
Author jtchan
Install oracle11.2 under CentOS5.6
This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/install-oracle11-2-under-centos5-6/