Linux Install Oracle Database

Source: Internet
Author: User


Check the memory space situation and the swap area
Free

Check disk space size,/tmp directory must have at least 200M space
DF-K/tmp

Shutting down the firewall
Service Iptables Stop

Disable SELinux
Vim/etc/selinux/config
Selinux=disabled

Check for software package installation what is missing
rpm-q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc Glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel ma Ke numactl-devel sysstat unixODBC unixodbc-devel
yum-y install binutils compat-libstdc++-33 elfutils-libelf elfutils -libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgo MP Libstdc++ Libstdc++-devel make Numactl-devel sysstat unixODBC unixodbc-devel

Configuring Kernel Parameters
Root identity edit/etc/sysctl.conf file
Vim/etc/sysctl.conf
#添加以下参数
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 262144
#以root身份运行一下命令 to make the settings effective
/sbin/sysctl-p

Create the user groups required to install the database
Groupadd Oinstall
Groupadd dba
#创建oracle用户以oinstall为主组以dba为副组
USERADD-G oinstall-g dba Oracle
Set the password for the Oracle user to oracle11g
passwd Oracle

Adding limit parameters for Oracle users

Modify the/etc/security/limits.conf file
Vim/etc/security/limits.conf
#添加以下内容
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536

Modify the/etc/pam.d/login file
Vim/etc/pam.d/login
#添加以下内容
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so

Modify the/etc/profile file
Vim/etc/profile
#添加以下内容
if [$USER = "Oracle"]; Then
if [$SHELL = "/bin/ksh"]; Then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

Create the directories required for the installation
Root login to create the following directory
Mkdir-p/data/app/
Chown-r oracle:oinstall/data/app/
Chmod-r 775/data/app/
Root login Create temporary folder to use when installing
sudo mkdir/data/tmp
sudo chmod a+wr/data/tmp


Setting Environment Variables for Oracle
Setting environment variables for Oracle users with Oracle user login

Tmp=/data/tmp
Tmpdir=/data/tmp
Export TMP TMPDIR

Oracle_base=/data/app/oracle
Oracle_home=/data/app/oracle/product/11.2.0/dbhome_1
Oracle_sid=bing
Export Oracle_base oracle_home Oracle_sid

Path= $PATH: $ORACLE _home/bin: $HOME/bin
Ld_library_path= $ORACLE _home/lib
Export PATH Ld_library_path

Export Lang=en_us. UTF-8
Chown-r Oracle:oinstall/data/app

Oracle User Login Sqlplus/nolog Verify that Oracle is installed successfully

Linux Install 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.