Redhat 安装 oracle 10g 详细步骤

1,安装必备软件

 下面软件来自于oracle官方文档,但是下面的是对RedHat 4要求,对于RedHat 5或者更高版本包名可能发生变化

Redhat 安装 oracle 10g 详细步骤_第1张图片

2,设置oracle环境变量
     export ORACLE_SID=orcl               //实例名
     export ORACLE_BASE=/opt/oracle              //oracle的基地,安装目录
     export ORACLE_HOME=$ORACLE_BASE/product/10.2.0             //安装的是哪个版本....根据第一个和这个环境变量可以标识一个oracle数据库服务器
     export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
     export PATH=$PATH:$ORACLE_HOME/bin:$PATH           
     export LANG=en_US

3,创建相应目录并授权
      [root@rogao ~]# mkdir /opt/oracle
      [root@rogao ~]# chown -R oracle:oinstall /opt/oracle/
      [root@rogao ~]# su - oracle
      [oracle@rogao ~]$ mkdir -p $ORACLE_HOME

4,

配置内核参数

[root@rogao Server]# vi /etc/sysctl.conf

kernel.shmmax=2147483648
kernel.shmmni=4096
kernel.shmall=2097152
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 = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
使配置立即生效
[root@rogao Server]# sysctl -p


相关安全设置
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


vi /etc/pam.d/login
session    required     /lib/security/pam_limits.so

将安装软件授权给oracle用户

[root@rogao srv]# chown -R oracle:oinstall /opt/database

root用户执行
# xhost +

运行oracle软件安装命令
[root@rogao database]# ./runInstaller

 

安装过程中可能遇到的问题

1.启动不了图形界面,出现如下错误

 Redhat 安装 oracle 10g 详细步骤_第2张图片

解决办法:切换到root用户下,在/etc/redhat-release中加入redhat-3,redhat-4后重新启动

2.启动时出现如下问题:

解决办法:

安装错误中所说的libXp这个rpm包,重新启动

2,如下问题

解决办法:

安装gcc-软件包

下面是一些依赖的解决

[root@hxy Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm
warning: gcc-4.1.2-14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-14.el5.i386
        libgomp = 4.1.2-14.el5 is needed by gcc-4.1.2-14.el5.i386
        libgomp.so.1 is needed by gcc-4.1.2-14.el5.i386
[root@hxy Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm
warning: glibc-devel-2.5-18.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        glibc-headers is needed by glibc-devel-2.5-18.i386
        glibc-headers = 2.5-18 is needed by glibc-devel-2.5-18.i386
[root@hxy Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm
warning: glibc-headers-2.5-18.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        kernel-headers is needed by glibc-headers-2.5-18.i386
        kernel-headers >= 2.2.1 is needed by glibc-headers-2.5-18.i386
[root@hxy Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm
warning: kernel-headers-2.6.18-53.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...           (100%########################################### [100%]
   1:kernel-headers         ########################################### [100%]
[root@hxy Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm
warning: glibc-headers-2.5-18.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:glibc-headers          ########################################### [100%]
[root@hxy Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm
warning: glibc-devel-2.5-18.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:glibc-devel            ########################################### [100%]
[root@hxy Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm
warning: gcc-4.1.2-14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        libgomp = 4.1.2-14.el5 is needed by gcc-4.1.2-14.el5.i386
        libgomp.so.1 is needed by gcc-4.1.2-14.el5.i386
[root@hxy Server]# rpm -ivh libgomp-4.1.2-14.el5.i386.rpm
warning: libgomp-4.1.2-14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:libgomp                ########################################### [100%]
[root@hxy Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm
warning: gcc-4.1.2-14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]

你可能感兴趣的:(Redhat 安装 oracle 10g 详细步骤)