记得去年4月份的时候,为公司部署测试环境和UAT环境时,在红帽RHEL6 64位系统安装ORACLE 10g 64位数据库时遇到了许多小问题,当时匆匆忙忙也没记录一下这些问题,前几天在虚拟机安装ORACLE 64位 10g时,又有一些常见问题又遇到了,顺便整理一下这篇文章。也许在RHEL6 64版本上安装64位Oracle 10g 的问题是最多的,估计很多人都被这个虐过无数次(很多人都是Oracle虐我无数遍,我待Oracle如初恋)。从网上搜索关于这方面的内容就可见一斑。好,废话少说,正式进入正题。

步骤1准备系统以及在虚拟机上设置共享目录DataBase,准备数据库安装介质。有些细节东西我可能会一笔带过,不清楚的可以看看我这篇文章Rhel-Server 5.5 安装ORACLE10

                  安装介质文件10201_database_linux_x86_64.cpio.gz,必须先用gunzip解压,然后用cpio解压cpio格式的文件。

解压安装文件
  1. [root@bogon DataBase]# cd /mnt/hgfs/DataBase/
  2. [root@bogon DataBase]# ls
  3.      10201_database_linux_x86_64.cpio.gz
  4. [root@bogon DataBase]# gunzip 10201_database_linux_x86_64.cpio.gz
  5. [root@bogon DataBase]# ls
  6.      10201_database_linux_x86_64.cpio
  7. [root@bogon DataBase]# cpio -idmv < 10201_database_linux_x86_64.cpio
  8. [root@bogon DataBase]# cd database/
  9. [root@bogon database]# ls
  10.   doc  install  response  runInstaller  stagewelcome.html

 

步骤2查看安装文档,在解压目录下打开welcome.html文件,点击“Installing Oracle Database”下的“Documentation”链接即可进入。安装前最好将安装文档初略看一遍,当然你也可以在安装过程中参考。


[root@bogon database]# firefox welcome.html 

RHEL6 64位系统安装ORACLE 10g 64bit 数据库

步骤3:检查硬件要求(Checking the Hardware Requirements)

 

官方文档对系统硬件的要求

#At least 512 MB of physical RAM

#The following table describes the relationship between installed RAM and the configured swap space requirement.

    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

#Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type

#1.2 GB of disk space for a preconfigured database that uses file system storage (optional

内存检测:内存最低要求512M,如今不能满足这个条件的计算机的都是老古董了,虚拟机我分配的是2G内存,如下所示

Code Snippet
  1. [root@bogon Desktop]# grep MemTotal /proc/meminfo
  2.         MemTotal:2051700 kB
  3.  
  4. [root@bogon Desktop]# free -g
  5.              total       used       free     shared    buffers     cached
  6.              Mem:1          0          1          0          0          0
  7.           -/+ buffers/cache:0          1
  8.             Swap:3          0          3

交换空间(Swap Space)检测:

Code Snippet
  1. [root@bogon Desktop]# grepSwapTotal /proc/meminfo
  2.      SwapTotal:4128760 kB

磁盘空间检测/tmp目录检测:

Code Snippet
  1. [root@bogon Desktop]# df -m /tmp
  2.       Filesystem           1M-blocksUsed Available Use% Mounted on
  3.                 /dev/sda213878      2186     10987  17% /
  4.  
  5.  
  6. [root@bogon Desktop]# df -h
  7.   Filesystem            Size   Used  Avail  Use% Mounted on
  8.   /dev/sda2               14G  2.2G   11G    17%     /
  9.    tmpfs                1002M  100K 1002M     1%     /dev/shm
  10.   /dev/sda1             291M   30M  246M     11%     /boot
  11.   .host:/                30G   16G   15G     52%     /mnt/hgfs
  12. [root@bogon Desktop]#

CPU检测:

[root@bogon Desktop]# grep "model name" /proc/cpuinfo

model name : Intel(R) Core(TM)2 Duo CPU     T6670  @ 2.20GHz

[root@bogon Desktop]# 


步骤4检查软件要求(Checking the Software Requirements)

 

    下面是官方文档的系统要求

The operating system must be one of the following:

Red Hat Enterprise Linux 3.0 (Update 4 or later)

Red Hat Enterprise Linux 4.0 (Update 1 or later)

SUSE Linux Enterprise Server 9.0

The system must be running the following (or later) kernel version:

Red Hat Enterprise Linux 3.0

2.4.21-27.EL

Red Hat Enterprise Linux 4.0

2.6.9-11.EL

SUSE Linux Enterprise Server 9.0

2.6.5-7.201

The following packages (or later versions) must be installed:

Red Hat Enterprise Linux 3.0:

make-3.79.1-17
compat-db 4.0.14-5.1
control-center-2.2.0.1-13
gcc-3.2.3-47
gcc-c++-3.2.3-47
gdb-6.1post-1.20040607.52
glibc-2.3.2-95.30
glibc-common-2.3.2-95.30
glibc-devel-2.3.2-95.30
glibc-devel-2.3.2-95.20 (32 bit)
compat-db-4.0.14-5
compat-gcc-7.3-2.96.128
compat-gcc-c++-7.3-2.96.128
compat-libstdc++-7.3-2.96.128
compat-libstdc++-devel-7.3-2.96.128
gnome-libs-1.4.1.2.90-34.2 (32 bit)
libstdc++-3.2.3-47
libstdc++-devel-3.2.3-47
openmotif-2.2.3-3.RHEL3
sysstat-5.0.5-5.rhel3
setarch-1.3-1
libaio-0.3.96-3
libaio-devel-0.3.96-3

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

SUSE Linux Enterprise Server 9

binutils-2.15.90.0.1.1-32.5
gcc-3.3.3-43.24
gcc-c++-3.3.3-43.24
glibc-2.3.3-98.28
gnome-libs-1.4.1.7-671.1
libstdc++-3.3.3-43.24
libstdc++-devel-3.3.3-43.24
make-3.80-184.1
pdksh-5.2.14-780.1
sysstat-5.0.1-35.1
xscreensaver-4.16-2.6
View Code

相关文章:

  • 2021-07-14
  • 2021-07-30
  • 2022-01-05
  • 2022-12-23
  • 2021-08-21
  • 2021-05-22
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2021-08-25
  • 2021-06-25
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案