Installation of Oracle Database

Source: Internet
Author: User

Oracle Install Guide

Memory Requirements:

Minimum:1 GB OFRAMRECOMMENDED:2GB of RAM or More#grep Memtotal/proc/meminfo

To view virtual memory space:

Df-h/dev/shm/


To install a dependency package:

Yum install binutils compat-libcap compat-libstdc++ gcc gcc-c++glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel Lib AIO libaio-devel makesysstat UnixODBC unixodbc-devel


Modify the user's SHELL the restrictions, modifications /etc/security/limits.conf file

Vi/etc/security/limits.conforacle softnproc 2047oracle hardnproc 16384oracle softnofile 1024oracle hardnofile 65536


Modify the Linux kernel, modify the/etc/sysctl.conf file

FS.AIO-MAX-NR = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912/ 4398046511104kernel.shmmni = 4096kernel.sem = 32000 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_ Default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576

Edit /etc/profile

if [$USER = "Oracle"]; thenif [$SHELL = "/bin/ksh"]; Thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fifi


Create User:

Groupaddoinstallgroupadd dbauseradd-goinstall-g dba-m oraclepasswd Oracle


Create the installation directory

Mkdir-p/data/u01/app/chown-r oracle:oinstall/data/u01/chmod-r 755/data/u01/app/

Configuration Oracle user's environment variable, first, switch to the newly created Oracle users under

Su Oraclevi. bash_profileexportoracle_base=/data/u01/app/exportoracle_home= $ORACLE _base/oracle/exportoracle_sid= Oraclesidexportpath= $ORACLE _home/bin: $PATH: $HOME/bin


Execution ./runinstaller The installation interface appears as follows :

Cd/opt/tmp./runinstaller

Here I met a big pit:

Issue: Execute./runinstaller Self Test However, there is a problem with the graphical interface. After a long time to check the information is: Export display= 0:0xhost + #执行此命令返回结果为xhost: Unable to open DISPLAY "" is wrong. The correct return result is acess CRONL resolution: Close all windows and execute Xhost + on the graphical interface only

There is also a pit:

Wgethttp://mirror.centos.org/centos/5/os/x86_64/centos/pdksh-5.2.14-37.el5_8.1.x86_64.rpmrpm-ivh pdksh-5.2.14-37.el5_8.1.x86_64.rpm #如果报错就卸载以下rpm-E ksh-20120801-33.el6.x86_64 and then install it: RPM-IVH pdksh-5.2.14-37.el5_8.1.x86_64.rpm

Oracle self-Test but there is another one:

Vi/etc/sysctl.confkernel.shmmax =1536870912 This value can be set to a larger point, or it will be an error.


Oracle Self-Test Swap Memory:

DD If=/dev/zeroof=/home/swap bs=1024 count=512000 This creates/home/swap such a partition file. The size of the file is 512,000 blocks, normally 1 blocks are 1 K, so the space here is 512M. Then turn the partition into a swap partition. /sbin/mkswap/home/swap then use this swap partition. Make it a valid state. /sbin/swapon/home/swap now with the FREE-M command to see the size of the memory and swap partitions, it is found to increase the space of 512M. However, when the computer restarts, it is found that the swap is still the same size, the new swap does not start automatically, but also to start manually. Then we need to modify the/etc/fstab file, add the following line/home/swap swap swap defaults 0 0

#end can be installed now!


This article from "Wang Jiadong elder brother" blog, declined reprint!

Installation of Oracle Database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.