Shenzhen letter lion oracle installation

First, preparation before installation
a host name, IP, firewalld, SELinux, yum, the vmtools, SSH
2 records the hosts swap (at least 4g memory)
. 3 Free / dev / xday the swap the swap Defaults 0 0
. 4 Mount -t tmpfs -o size of shmfs = 10g / dev / shm modified fstab, finally added shmfs / dev / shm tmpfs size = 10g 0 0
check -H DF / dev / SHM /
. 5 -m See the uname system architecture
6 cat / etc / centos-release confirm the operating system version
7 check df -h / tmp check tmp least ensure 1G space
8 dependencies mounted
yum install -y binutils compat-libcap1 compat -libstdc + ± 33 gcc gcc-c ++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc ++ libstdc + ± devel libXi libXtst sysstat unixODBC unixODBC-devel the make
9 built users and groups
groupadd -g 50000 oinstall
groupadd -g 50001 dba
useradd -u 50000 -g oinstall -G dba the Oracle
passwd the Oracle
the above mentioned id the Oracle
10 kernel configuration parameters
/etc/security/limits.conf do not do this step grid can not install
the Oracle Soft nproc 2047
the Oracle 16384 Hard nproc
the Oracle Soft nofile 1024
the Oracle 65536 Hard nofile
the Oracle Stack Soft 10240

/etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so

/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

sysctl -p

11 to create the directory
needs a total of 3 directory, namely software installation root directory listing directory software

mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app/oracle

12 environment variable
to configure two user environment variables
Oracle: CD / Home / Oracle
Vim .bash_profile
added

ORACLE_BASE = Export / u01 / App / the Oracle
Export the ORACLE_SID = orcl this name and the specified time will establish a database instance sid must be the same, otherwise an error
export ORACLE_HOME = THE R A C L E B A S E / p r o d u c t / 12.2.0 / d b h o m e 1 e x p o r t N L S L A N G = " S I M P L I F I E D C H I N E S E C H I N A " . U T F 8 e x p o r t P A T H = ORACLE_BASE/product/12.2.0/dbhome_1 export NLS_LANG="SIMPLIFIED CHINESE_CHINA".UTF8 export PATH= PATH:$ORACLE_HOME/bin
export LANG=zh_CN.UTF-8

13 Copy the installation package to the root directory
14 extracting installation package
the unzip linuxx64_12201_database.zip
15 Add authorized to use the graphical terminal oracle
the xhost +
SU - oracle
16 DISPLAY environment variable
Export DISPLAY =: 0.0
. 17 officially installed
CD / Database
./runInstaller
18 is Follow the prompts to select the installation

Published 29 original articles · won praise 0 · Views 581

Guess you like

Origin blog.csdn.net/drrui520/article/details/105314448