码迷,mamicode.com
首页 > 数据库 > 详细

redhat5.5安装oracle 11g

时间:2016-06-19 01:27:13      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:redhat oracle安装

首先上传oracle安装文件至linux服务器

1.解压zip

unzip linux.x64_11gR2_database_1of2.zip

unzip linux.x64_11gR2_database_2of2.zip

2.创建安装目录

mkdir /opt/oracle

3.创建用户组:

groupadd dba

groupadd oinstall

4.创建用户:

useradd -g oinstall -G dba oracle

passwd oracle (设置密码为:123456)

将/opt/oracle目录赋予oracle用户,oinstall用户组

chown -R oracle:oinstall /opt/oracle

5.安装依赖包(通过redhat5.5安装截至安装)

 挂载cdrom

 mkdir /mnt/cdrom

 mount /dev/cdrom /mnt/cdrom(/mnt/cdrom/Server)

 进入软件包所在路径:

 cd /mnt/cdrom/Server

 开始安装所需软件包:

 rpm -ivh unixODBC-2.2.11-7.1.x86_64.rpm

 rpm -ivh unixODBC-devel-2.2.11-7.1.x86_64.rpm

 rpm -ivh unixODBC-2.2.11-7.1.i386.rpm

 rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm

 rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm

 rpm -ivh libstdc++-devel-4.1.2-48.el5.x86_64.rpm

 rpm -ivh libaio-devel-0.3.106-5.x86_64.rpm

 rpm -ivh libaio-devel-0.3.106-5.i386.rpm

 rpm -ivh elfutils-libelf-devel-0.137-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm(互相依赖,同时安装)

 rpm -ivh kernel-headers-2.6.18-194.el5.x86_64.rpm

 rpm -ivh glibc-headers-2.5-49.x86_64.rpm

 rpm -ivh glibc-devel-2.5-49.x86_64.rpm

 rpm -ivh glibc-devel-2.5-49.i386.rpm

 rpm -ivh libgomp-4.4.0-6.el5.x86_64.rpm

 rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm 

 rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm

 

6.修改linux内核参数

 /etc/sysctl.conf

 /etc/security/limits.conf

7.以oracle用户身份登录(不是通过su)

 执行:

 export DISPLAY=:0.0

 xhost +

 xdpyinfo

8.进入oracle文件目录,执行

./runInstaller


本文出自 “青云流水” 博客,请务必保留此出处http://wxhhbdx.blog.51cto.com/2986356/1790693

redhat5.5安装oracle 11g

标签:redhat oracle安装

原文地址:http://wxhhbdx.blog.51cto.com/2986356/1790693

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!