Oracle11G installation
I. create a new oracle user
[root@11g ~] # groupadd oinstall [root@11g ~] # groupadd dba [root@11g ~] # useradd-g oinstall-G dba oracle [root@11g ~] # echo "oracle" | passwd-stdin oracle
2. Install the environment package required for oracle (configure the yum source first)
[root@11g ~] # cat / etc/yum.repos.d/dvd.repo [server] name=serverbaseurl= file:///mnt/dvd/Serverenabled=1gpgcheck=0[root@11g ~] # ls / mnt/dvd/blafdoc.css eula.py README-en.html ServerCluster GPL RELEASE-NOTES-en supportinfoClusterStorage p_w_picpaths RELEASE-NOTES-en.html TRANS.TBLEULA isolinux RPM-GPG-KEY VTeula.en_ US README-en RPM-GPG-KEY-oracle [root@11g ~] # yum-y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh numactl-devel glibc-headers
3. Modify linux kernel parameters
[root@11g ~] # tail-13 / etc/sysctl.conf (insert the following at the end of the file) # oracle 11Gfs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 25032000100 128net.ipv4.ip_local_port_range = 900065500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576 [root@11g ~] # / sbin / sysctl-p (do not restart to make the parameters take effect)
4. Set the maximum number of files opened by oracle users
[root@11g ~] # tail-10 / etc/security/limits.conf (insert the following at the end of the file) # Oracle 11goracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 1024 End of file
5. Modify login configuration
[root@11g] # tail-2 / etc/pam.d/login#Oracle 11gsession required pam_limits.so
6. Configure hostname and hosts
[root@11g ~] # tail-1 / etc/sysconfig/networkHOSTNAME=11g.cubix.com [root@11g ~] # tail-1 / etc/hosts127.0.0.1 11g.cubix.com 11g
7. Create a new oracle installation directory
[root@11g] # mkdir-p / u01/app/oracle/product/11.2.0/db_1 [root@11g ~] # chown-R oracle:oinstall / U01 [root@11g ~] # chmod-R 755 / U01
Modify the environment variables of oracle users
[root@11g ~] # su-oracle [oracle@11g ~] $tail-5. Bash _ profile#Oracle 11gexport ORACLE_SID=orcl # Database instance name export ORACLE_BASE=/u01/app/oracle # Oracle installation directory export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 # Oracle home directory export PATH=$PATH:$ORACLE_HOME/bin # Path search path [oracle@11g ~] $source .bash _ profile # Refresh .bash _ profile configuration [oracle@11g ~] $echo $ORACLE_SID # Test .bash _ profile whether orcl is in effect
9. Unpack the installation package
[oracle@11g src] $unzip p10404530_112030_LINUX_1of7.zip [oracle@11g src] $unzip p10404530_112030_LINUX_2of7.zip
Start installing the database
[root@11g] # xhost + access control disabled, clients can connect from any host [root@11g ~] # su-oracle [oracle@11g ~] $cd / usr/local/src/database/ [oracle@11g database] $. / runInstaller Starting Oracle Universal Installer...Checking Temp space: must be greater than 120 MB. Actual 80306 MB PassedChecking swap space: must be greater than 150 MB. Actual 5023 MB PassedChecking monitor: must be configured to display at least 256 colors. Actual 16777216 PassedPreparing to launch Oracle Universal Installer from / tmp/OraInstall2016-02-21 0640-38PM. Please wait... [oracle@11g database] $