CentOS6.5 _ x64 install Oracle11gR2

Source: Internet
Author: User
Installation environment: Operating system: CentOS6.5 _ x64Desktop host name: oracledb memory: 1 GB (minimum official requirements: 1 GB) hard disk: 40 GB (4.29G and 1.7G data files required for Enterprise Edition installation) system preparation before installation: # Modify the host name [root @ oracledb ~] # Sed-I & quot; s/HOSTNAME = localhost. localdomain/HOSTNAME = oracledb/& quot;/etc/sy

Installation environment:

Operating system: CentOS6.5 _ x64 Desktop

Host Name: oracledb

Memory: 1 GB (minimum official requirement: 1 GB)

Hard disk: 40 GB (4.29G and 1.7G data files required for Enterprise Edition installation)

System preparation before installation:

# Modifying host names

[Root @ oracledb ~] # Sed-I "s/HOSTNAME = localhost. localdomain/HOSTNAME = oracledb/"/etc/sysconfig/network

[Root @ oracledb ~] # Hostname oracledb

# Add a host name and IP address record

[Root @ oracledb ~] # Vi/etc/hosts

192.168.1.160 oracledb

# Disable Selinux

[Root @ oracledb ~] # Sed-I "s/SELINUX = enforcing/SELINUX = disabled/"/etc/selinux/config

[Root @ oracledb ~] # Setenforce 0

1. install the dependency package


[root@oracledb ~]# yum -y install  gcc gcc-c++ make binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devellibaio libaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel

2. create Users and Groups


[root@oracledb ~]# sysctl -p[root@oracledb ~]# groupadd -g 200 oinstall[root@oracledb ~]# groupadd -g 201 dba[root@oracledb ~]# useradd -u 440 -g oinstall -G dba oracle[root@oracledb ~]# passwd oracle

3. modify kernel parameters


[root@oracledb ~]# Vi/etc/sysctl. conf # add the following at the endnet.ipv4.ip_local_port_range= 9000 65500fs.file-max = 6815744kernel.shmall = 10523004kernel.shmmax = 6465333657kernel.shmmni = 4096kernel.sem = 250 32000 100128net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=4194304net.core.wmem_max=1048576fs.aio-max-nr = 1048576

4. modify system resource limits


[root@oracledb ~]# Vi/etc/security/limits. conf # add the following at the endoracle   soft  nproc   2047oracle   hard  nproc   16384oracle   soft  nofile   1024oracle   hard  nofile   65536

[root@oracledb ~]# vi/etc/pam.d/loginsession    required    pam_namespace.so  # Add a pam_limits.sosession    required    pam_limits.so


[root@oracledb ~]# Vi/etc/profile # This feeling is not very usefulif[ $USER ="oracle"]; thenif[ $SHELL = "/bin/ksh"];thenulimit-p 16384ulimit-n 65536elseulimit-u 16384 -n 65536fifi

5. create an installation directory and set permissions


[root@oracledb ~]# mkdir /opt/oracle/app/[root@oracledb ~]# mkdir /opt/oracle/oradata/[root@oracledb ~]# chmod 755/opt/oracle/[root@oracledb ~]# chmod 775/opt/oracle/app/[root@oracledb ~]# chown oracle.oinstall -R /opt/oracle/

6. set oracle environment variables


[oracle@oracledb ~]$ vi~/.bash_profileexportORACLE_BASE=/opt/oracle/appexportORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1exportPATH=$PATH:$ORACLE_HOME/binexportROACLE_PID=orcl[oracle@oracledb ~]$ source.bash_profile  # Effective immediately

7. install oracle

Download and unzip:

Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html


[root@oracledb~]# unzip /media/linux.x64_11gR2_database_1of2.zip[root@oracledb~]# unzip /media/linux.x64_11gR2_database_2of2.zip[root@oracledb~]# Xhost + # enable all users to access the graphic desktop[root@oracledb~]# su ?oracle[oracle@oracle~]#./media/database/runInstaller

# Enter the email address for receiving security questions

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.