Home  >  Article  >  Database  >  RedHat 4.8 AS下安装Oracle 11g

RedHat 4.8 AS下安装Oracle 11g

WBOY
WBOYOriginal
2016-06-07 17:11:451258browse

今天终于在RedHat下装好了Oracle11g,先写个概要,周末详细的温故一遍。

今天终于在RedHat下装好了Oracle 11g,先写个概要,周末详细的温故一遍。

1.下载oracle11g for linux

;
;

2.安装包的检测与安装

rpm -q gcc make binutils setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel unixODBC unixODBC-devel libaio-devel sysstat

在网上查找对应环境的安装包版本,用上述命令查找未安装的包,下载相关包,并安装之

3.系统参数配置

vi /etc/sysctl.conf

注意:在上面文件中加入以下内容(先直接拷贝过去,在安装时可以对照oracle安装要求进行修改,,第二步未安装的包安装oracle时也有相应的提示)。各参数具体意义:

#Below for oracle11g

kernel.core_uses_pid = 1
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000

4.添加用户组及用户

执行如下命令:

#groupadd dba
#groupadd oinstall
#useradd oracle -g oinstall -G dba
#passwd oracle

5.配置oracle环境变量

先切换用户到oracle:

su – oracle

修改.bash_profile文件(内容网上找):
vi /home/oracle/.bash_profile

6.将安装zip文件copy至opt目录下,为oracle用户配置权限

chown -R oracle:dba ./opt

(赋予oracle:dba用户对opt文件操作权限)

chmod 760 ./opt

(赋予oracle用户对opt文件读写权限)

用oracle用户解压安装文件

7. ./runInstaller

8.安装即将完成时会提示需root用户登录执行2脚本(orainstRoot.sh,root.sh)。

9.配置监听

netca

10建库

dbca

linux

Statement:
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