Home > Database > Mysql Tutorial > body text

RHEL6 上安装Oracle 11g软件

WBOY
Release: 2016-06-07 17:30:06
Original
1053 people have browsed it

一、软件准备 1、 Oracle linux安装包 2、 Putty 3、 WinSCP 二、操作系统配置 1、 网络配置(红色为更改内容) cd /etc/sysconf

一、软件准备

1、 Oracle linux安装包

2、 Putty

3、 WinSCP

二、操作系统配置

1、 网络配置(红色为更改内容)

cd /etc/sysconfig/network-scripts

vi vi ifcfg-eth0

更改后的文件为:

DEVICE="eth0"

BOOTPROTO="none"

IPADDR="192.168.96.2"

NETMASK="255.255.255.0"

NETWORK="192.168.96.0"

BROADCAST="192.168.96.255"

GATEWAY="192.168.96.1"

HWADDR="00:0C:29:2D:5A:29"

NM_CONTROLLED="yes"

ONBOOT="yes"

TYPE="Ethernet"

UUID="6c17057e-d0d2-45dd-afec-64b2cf5bbe9c"

更改完成后,,service network restart

2、修改主机名(红色为更改内容)

      cd /etc/

      vi hosts

      127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4

      192.168.96.2  localhost      centora

      ::1        localhost localhost.localdomain localhost6 localhost6.localdomain6

      cd /etc/sysconfig

      vi network

      NETWORKING=yes

      HOSTNAME=centora

更改完成后,service network restart

2、 核心参数配置:编辑/etc/sysctl.conf

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

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 = 1048586

 

      参数生效: /sbin/sysctl -p

3、 Oracle用户的资源限制:编辑/etc/security/limits.conf

oracle            soft  nproc  2047

oracle            hard  nproc  16384

oracle            soft  nofile 1024

oracle            hard  nofile 65536

oracle            soft  stack  10240

4、 建立Oracle用户和目录

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd dba

/usr/sbin/useradd -g oinstall -G dba oracle

passwd oracle

mkdir -p /u01/app/

chown -R oracle:oinstall /u01/app/

chmod -R 775 /u01/app/

5、 配置Oracle用户的环境变量:vi .bash_profile

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$PATH

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

ORACLE_SID=orcl

NLS_LANG='TRADITIONAL CHINESE_CHINA.UTF8'

TNS_ADMIN=$ORACLE_HOME/network/admin

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

EDITOR=vi

export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_LANG EDITOR TNS_ADMIN LD_LIBRARY_PATH CLASSPATH

三、Oracle 11g安装需要的包验证

Rpm -qa包名称

Rpm –ivh包名称

RHEL6缺包pdksh-5.2.14-1.i386.rpm

下载网址见:

四、软件安装

Winscp上传Oracle软件到RHEL6上,用unzip命令解压。

用root命令登录,打开命令终端,输入:xhost +,切换到Oracle用户下,切换到Oracle软件目录下,./runInstaller进行安装。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!