centos 6.6 oracle 11g installation & configuration
CentOS6.6_x64 Desktop
before os installing,you’d remove java option. libreoffice is useless too.
remember your hostname for future configuration
sed: replacing first with second
cmds
sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
setenforce 0
yum -y install gcc gcc-c++ make binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commong libc-devel libaio libaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel
groupadd -g 200 oinstall
groupadd -g 201 dba
useradd -u 440 -g oinstall -G dba oracle
sysctl -p
find,edit, or append according to the following in the file /etc/sysctl.conf
net.ipv4.ip_local_port_range= 9000 65500
fs.file-max = 6815744
kernel.shmall = 10523004
kernel.shmmax = 6465333657
kernel.shmmni = 4096
kernel.sem = 250 32000 100128
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=1048576
fs.aio-max-nr = 1048576
append the following to /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
modify /etc/pam.d/login ,append 'session required pam_limits.so'
after 'namespace.so'
append to /etc/profile:
export JAVA_HOME=/usr/local/jdk1.8.0_45
export ORACLE_BASE=/opt/oracle/app
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=eachm
export PATH=$PATH:$JAVA_HOME/bin:$ORACLE_HOME/bin
cmds:
mkdir -p /opt/oracle/app/
mkdir /opt/oracle/oradata
chmod 755 /opt/oracle/
chmod 775 /opt/oracle/app/
chown oracle:oinstall -R /opt/oracle
xhost +
install nb-jdk8
download ora 11g install files
unzip and su oracle and run file runInstaller
after installation, how to start
su - oracle
lsnrctl start
dbstart $ORACLE_HOME
sqlplus '/as sysdba'
startup
download sqldeveloper, and enjoy now enjoy.