Linux安装Oracle 10g

目录

  • 目录
  • 环境
  • RHEL6 Configuration
  • Update JDK
  • 配置Oracle安装环境
    • 硬件检测
    • 软件检测
    • 编辑配置文件
    • 安装Oracle Database

环境

  • 系统
    • RHEL6
  • 软件
    • Oracle 10g
    • VMWare 12
    • JDK 1.8

RHEL6 Configuration

Step1:Setup hostname & Close the selinux

vim /etc/sysconfig/selinux

立即生效关闭防火墙

Step2:Setup Static IP
vim /etc/sysconfig/network-scripts/ifcfg-eth0

Re-start network service

Step3:Edit /etc/hosts
vim /etc/hosts

Step4:创建用户和用户组

Step5:创建安装路径目录

Step6:配置内核参数
vim /etc/sysctl.conf

刷新配置

Step7:修改limits.conf配置文件

Step8:修改login配置文件
vim /etc/pam.d/login

Step9:配置Oracle用户环境变量

vim .bash_profile

刷新用户环境变量

Step10:修改/etc/profile文件

Update JDK

卸载OpenJDK并更新JDK,下载JDK1.8 点这里

Step1:rpm安装JDK1.8

配置JDK环境变量
vim /etc/profile

加载配置

配置Oracle安装环境

硬件检测

官方安装文档对硬件额要求

#At least 512 MB of physical RAM
内存要大于512M
#The following table describes the relationship between installed RAM and the configured swap space requirement.
内存和Swap分区的大小要求

RAM Swap Space
Up to 512 MB 2 times the size of RAM
Between 1024 MB and 2048 MB 1.5 times the size of RAM
Between 2049 MB and 8192 MB Equal to the size of RAM
More than 8192 MB 0.75 times the size of RAM

#400 MB of disk space in the /tmp directory
必须被目录留下400MB
#Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type
需要预留1.5G到3.5G的磁盘空间
#1.2 GB of disk space for a preconfigured database that uses file system storage

Step1:查看内存大小

Step2:查看Swap空间大小

Step3:查看分区的大小

软件检测

因为在安装Oracle的过程中,要重新编译安装许多内置软件程序。所以Oracle的安装环境需要软件依赖包的支撑,Oracle官方安装文档提供了需要预安装的软件包列表:

  • Red Hat Enterprise Linux 4.0:
    • binutils-2.15.92.0.2-10.EL4
    • compat-db-4.1.25-9
    • control-center-2.8.0-12
    • gcc-3.4.3-9.EL4
    • gcc-c++-3.4.3-9.EL4
    • glibc-2.3.4-2
    • glibc-common-2.3.4-2
    • gnome-libs-1.4.1.2.90-44.1
    • libstdc++-3.4.3-9.EL4
    • libstdc++-devel-3.4.3-9.EL4
    • make-3.80-5
    • pdksh-5.2.14-30
    • sysstat-5.0.5-1
    • xscreensaver-4.18-5.rhel4.2

注意:因为Oracle 10g官方推荐在RHEL4上安装,所以提供的软件包列表版本会偏低。我们在RHEL6中安装Oracle时,无论是检测还是安装的过程中都需要忽略软件包的版本问题。

Step1:配置光盘YUM源
vim /etc/yum.repos.d/local.repo

Step2:安装依赖软件包

来源:范桂飓

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2016年4月21日
下一篇 2016年4月21日

相关推荐