溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

發(fā)布時間:2021-11-11 13:37:47 來源:億速云 閱讀:151 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要介紹了RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

RHEL6 64位系統(tǒng)安裝ORACLE 10g 64bit 數(shù)據(jù)庫

步驟1:準(zhǔn)備系統(tǒng)以及在虛擬機上設(shè)置共享目錄DataBase,準(zhǔn)備數(shù)據(jù)庫安裝介質(zhì)。有些細節(jié)東西我可能會一筆帶過,不清楚的可以看看我這篇文章Rhel-Server 5.5 安裝ORACLE10

                  安裝介質(zhì)文件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”鏈接即可進入。安裝前最好將安裝文檔初略看一遍,當(dāng)然你也可以在安裝過程中參考。


[root@bogon database]# firefox welcome.html 

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

步驟3:檢查硬件要求(Checking the Hardware Requirements)

官方文檔對系統(tǒng)硬件的要求

#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

內(nèi)存檢測:內(nèi)存最低要求512M,如今不能滿足這個條件的計算機的都是老古董了,虛擬機我分配的是2G內(nèi)存,如下所示

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)

    下面是官方文檔的系統(tǒng)要求

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

從文檔中可以看出ORACLE 10g只支持到Red Hat Enterprise Linux 4.0,并沒有明確表示支持Red Hat Enterprise Linux 6.0. 這是因為Oracle官方并沒有在Rhel 4以后的版本測試過Oracle 10g,另外一方面應(yīng)該是Oracle出于自己的商業(yè)利益戰(zhàn)略考慮。安裝過程中你必須修改配置文件 /etc/redhat-release 將“Red Hat Enterprise Linux Server release 6.0 (Santiago)” 改為“Red Hat Enterprise Linux Server release 4.0 (Santiago)”,否則安裝過程會報錯,無法繼續(xù)。

查看內(nèi)核版本,比文檔要求的版本要高。

[root@bogon Desktop]# cat /proc/version

Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010

[root@bogon Desktop]# uname -r

2.6.32-71.el6.x86_64

檢查必須安裝以下軟件包(或更高版本):注意千萬不要用下面語句檢查,否則全部都是沒有,因為Red Hat Enterprise Linux 6.0下的包的版本可能比這個高,所以你最好忽略那些版本號,然后去檢查。這部相當(dāng)重要。安裝過程很多報錯信息就是因為這一步?jīng)]有到位導(dǎo)致的。當(dāng)然有些錯誤是因為缺少一些包,安裝文檔也沒有提及(后面有講解)

rpm -q binutils-2.15.92.0.2-10.EL4

rpm -q compat-db-4.1.25-9

rpm -q control-center-2.8.0-12

rpm -q gcc-3.4.3-9.EL4

rpm -q gcc-c++-3.4.3-9.EL4

rpm -q glibc-2.3.4-2

rpm -q glibc-common-2.3.4-2

rpm -q gnome-libs-1.4.1.2.90-44.1

rpm -q libstdc++-3.4.3-9.EL4

rpm -q libstdc++-devel-3.4.3-9.EL4

rpm -q make-3.80-5

rpm -q pdksh-5.2.14-30

rpm -q sysstat-5.0.5-1

rpm -q xscreensaver-4.18-5.rhel4.2

[root@bogon Desktop]# rpm -q binutils

binutils-2.20.51.0.2-5.11.el6.x86_64

[root@bogon Desktop]# rpm -q compat-db

package compat-db is not installed

[root@bogon Desktop]# rpm -q control-center

control-center-2.28.1-25.el6.x86_64

[root@bogon Desktop]# rpm -q glibc-*

glibc-2.12-1.7.el6.x86_64

[root@bogon Desktop]# rpm -q gcc

gcc-4.4.4-13.el6.x86_64

[root@bogon Desktop]# rpm -q gcc-c++

package gcc-c++ is not installed

[root@bogon Desktop]# rpm -q glibc

glibc-2.12-1.7.el6.x86_64

[root@bogon Desktop]# rpm -q gnome-libs

package gnome-libs is not installed

[root@bogon Desktop]# rpm -q libstdc++-

libstdc++-4.4.4-13.el6.x86_64

[root@bogon Desktop]# rpm -q make

make-3.81-19.el6.x86_64

[root@bogon Desktop]# rpm -q sysstat

sysstat-9.0.4-11.el6.x86_64

[root@bogon Desktop]# rpm -q xscreensaver

package xscreensaver is not installed

安裝缺少的包,首先配置yum,如果缺少文件 rhel-debuginfo.repo ,新建文件 rhel-debuginfo.repo,其中Relhat6目錄是Red Hat Enterprise Linux 6.0的安裝介質(zhì)目錄,下面紅色部分是需要根據(jù)你系統(tǒng)具體配置的部分

[root@bogon yum.repos.d]# vi rhel-debuginfo.repo

[rhel-debuginfo]

name=Red Hat Enterprise Linux LOCAL SOURCE

baseurl=file:///mnt/hgfs/DataBase/Relhat6/Server

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

接下來就是安裝缺少的一些包的過程,甚是枯燥和無聊。

[root@bogon yum.repos.d]# yum list compat-db Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. Available Packages
compat-db.i686 4.6.21-15.el6                rhel-debuginfo
compat-db.x86_64 4.6.21-15.el6                rhel-debuginfo
[root@bogon yum.repos.d]#  [root@bogon yum.repos.d]# yum install compat-db.x86_64  Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Setting up Install Process
Resolving Dependencies --> Running transaction check ---> Package compat-db.x86_64 0:4.6.21-15.el6 set to be updated --> Processing Dependency: compat-db43(x86-64) = 4.3.29-15.el6 for package: compat-db-4.6.21-15.el6.x86_64 --> Processing Dependency: compat-db42(x86-64) = 4.2.52-15.el6 for package: compat-db-4.6.21-15.el6.x86_64 --> Running transaction check ---> Package compat-db42.x86_64 0:4.2.52-15.el6 set to be updated ---> Package compat-db43.x86_64 0:4.3.29-15.el6 set to be updated --> Finished Dependency Resolution

Dependencies Resolved ============================================================================================================================================================= Package Arch                            Version                                  Repository                               Size ============================================================================================================================================================= Installing: compat-db                            x86_64 4.6.21-15.el6                            rhel-debuginfo 12 k
Installing for dependencies: compat-db42                          x86_64 4.2.52-15.el6                            rhel-debuginfo 805 k
 compat-db43                          x86_64 4.3.29-15.el6                            rhel-debuginfo 874 k

Transaction Summary ============================================================================================================================================================= Install 3 Package(s)
Upgrade 0 Package(s)

Total download size: 1.7 M
Installed size: 4.6 M
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 5.8 MB/s | 1.7 MB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
rhel-debuginfo/gpgkey                                                                                                                 | 6.3 kB 00:00 ... Importing GPG key 0xFD431D51 "Red Hat, Inc. (release key 2) <security@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Importing GPG key 0x2FA658E0 "Red Hat, Inc. (auxiliary key) <security@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum. Installing : compat-db43-4.3.29-15.el6.x86_64 1/3 Installing : compat-db42-4.2.52-15.el6.x86_64 2/3 Installing : compat-db-4.6.21-15.el6.x86_64 3/3 Installed: compat-db.x86_64 0:4.6.21-15.el6                                                                                                                          

Dependency Installed: compat-db42.x86_64 0:4.2.52-15.el6                                            compat-db43.x86_64 0:4.3.29-15.el6                                          

Complete! [root@bogon yum.repos.d]#  [root@bogon Packages]# rpm -ivh glibc-2.12-1.7.el6.i686.rpm  error: Failed dependencies: libfreebl3.so is needed by glibc-2.12-1.7.el6.i686
    libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.12-1.7.el6.i686
[root@bogon Packages]# yum install glibc-2.12-1.7.el6.i686.rpm  Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Setting up Install Process
Examining glibc-2.12-1.7.el6.i686.rpm: glibc-2.12-1.7.el6.i686
Marking glibc-2.12-1.7.el6.i686.rpm to be installed
Resolving Dependencies --> Running transaction check ---> Package glibc.i686 0:2.12-1.7.el6 set to be updated --> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.7.el6.i686 --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.7.el6.i686 --> Running transaction check ---> Package nss-softokn-freebl.i686 0:3.12.7-1.1.el6 set to be updated --> Finished Dependency Resolution

Dependencies Resolved ================================================================================ Package Arch   Version           Repository                  Size ================================================================================ Installing: glibc                i686 2.12-1.7.el6      /glibc-2.12-1.7.el6.i686 13 M
Installing for dependencies: nss-softokn-freebl   i686 3.12.7-1.1.el6    rhel-debuginfo 109 k

Transaction Summary ================================================================================ Install 2 Package(s)
Upgrade 0 Package(s)

Total size: 13 M
Total download size: 109 k
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages: Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : glibc-2.12-1.7.el6.i686 1/2 Installing : nss-softokn-freebl-3.12.7-1.1.el6.i686 2/2 Installed: glibc.i686 0:2.12-1.7.el6                                                     

Dependency Installed: nss-softokn-freebl.i686 0:3.12.7-1.1.el6                                      

Complete! [root@bogon Packages]#  [root@bogon yum.repos.d]# yum list gcc-c++ Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Available Packages
gcc-c++.x86_64 



[root@bogon yum.repos.d]# yum install gcc-c++.x86_64 Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Setting up Install Process
Resolving Dependencies --> Running transaction check ---> Package gcc-c++.x86_64 0:4.4.4-13.el6 set to be updated --> Processing Dependency: libstdc++-devel = 4.4.4-13.el6 for package: gcc-c++-4.4.4-13.el6.x86_64 --> Running transaction check ---> Package libstdc++-devel.x86_64 0:4.4.4-13.el6 set to be updated --> Finished Dependency Resolution

Dependencies Resolved ============================================================================================================================================================= Package Arch                           Version                                 Repository                              Size ============================================================================================================================================================= Installing: gcc-c++                                 x86_64 4.4.4-13.el6                            rhel-debuginfo 4.7 M
Installing for dependencies: libstdc++-devel                         x86_64 4.4.4-13.el6                            rhel-debuginfo 1.5 M

Transaction Summary ============================================================================================================================================================= Install 2 Package(s)
Upgrade 0 Package(s)

Total download size: 6.3 M
Installed size: 20 M
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 8.9 MB/s | 6.3 MB 00:00 Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libstdc++-devel-4.4.4-13.el6.x86_64 1/2 Installing : gcc-c++-4.4.4-13.el6.x86_64 2/2 Installed: gcc-c++.x86_64 0:4.4.4-13.el6                                                                                                                              

Dependency Installed: libstdc++-devel.x86_64 0:4.4.4-13.el6                                                                                                                      

Complete! [root@bogon yum.repos.d]# yum list glibc-common Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Installed Packages
glibc-common.x86_64 2.12-1.7.el6 @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0 [root@bogon yum.repos.d]# yum install glibc-common.x86_64 Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Setting up Install Process Package glibc-common-2.12-1.7.el6.x86_64 already installed and latest version
Nothing to do [root@bogon yum.repos.d]# yum list libstdc++-devel Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Installed Packages
libstdc++-devel.x86_64 4.4.4-13.el6 @rhel-debuginfo
Available Packages
libstdc++-devel.i686 4.4.4-13.el6                                                      rhel-debuginfo 
[root@bogon yum.repos.d]# yum install libstdc++-devel.x86_64 Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN. RHN support will be disabled. file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml
Trying other mirror. Setting up Install Process Package libstdc++-devel-4.4.4-13.el6.x86_64 already installed and latest version
Nothing to do

有三個包沒有,也找不到對應(yīng)的安裝文件,如下所示:

[root@bogon yum.repos.d]# rpm -q xscreensaver

package xscreensaver is not installed

[root@bogon yum.repos.d]# yum list xscreensaver

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Error: No matching Packages to list

[oracle@bogon database]$ yum list gnome-libs

Loaded plugins: refresh-packagekit, rhnplugin

*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Error: No matching Packages to list

[root@bogon Packages]# yum list gnome-libs

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Error: No matching Packages to list

[root@bogon Packages]# rpm -q gnome-libs-

package gnome-libs- is not installed

步驟5: 創(chuàng)建需要的系統(tǒng)用戶和用戶組(Creating Required Operating System Groups and User)

   5.1 首先檢查是否存在用戶組dba、oinstall

     [root@bogon ~]# grep dba /etc/group

     [root@bogon ~]# grep dba /etc/oinstall

   5.2 創(chuàng)建用戶組dba、oinstall

     [root@bogon ~]# /usr/sbin/groupadd oinstall

     [root@bogon ~]# /usr/sbin/groupadd dba

   5.3 檢查是否存在oracle用戶

     [root@bogon ~]# id oracle

     id: oracle: No such user

   5.4 創(chuàng)建oracle用戶

     [root@bogon ~]#  /usr/sbin/useradd -g oinstall -G dba oracle

     [root@bogon ~]# id oracle

      uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)

   5.5 設(shè)置oracle用戶的密碼

     [root@bogon ~]# password oracle

       bash: password: command not found

     [root@bogon ~]# passwd oracle

     Changing password for user oracle.

     New password:

     Retype new password:

     passwd: all authentication tokens updated successfully.

    [root@bogon ~]#

步驟6: 配置Linux系統(tǒng)內(nèi)核參數(shù) Configuring Kernel Parameters

在 /etc/sysctl.conf文件中添加內(nèi)核參數(shù)信息

[root@bogon ~]# vi /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

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 = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

[root@bogon ~]# vi /etc/security/limits.conf

添加

oracle           soft    nproc   2047

oracle           hard    nproc   16384

oracle           soft    nofile  1024

oracle           hard    nofile  65536

[root@bogon ~]# vi /etc/pam.d/login

[root@bogon ~]#

if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

              ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

步驟7:創(chuàng)建安裝路徑 Creating Required Directories

[root@bogon ~]# mkdir -p /u01/app/oracle

[root@bogon ~]# chown -R oracle:oinstall /u01/app/oracle

[root@bogon ~]# chmod -R 775 /u01/app/oracle

步驟8:配置oracle用戶的環(huán)境變量 Configuring the oracle User's Environment

[oracle@bogon ~]$ vi .bash_profile

[oracle@bogon ~]$ tail -20 .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_SID=gsp

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/dbhome_1

export ORACLE_OWNER=oracle

export PATH=$ORACLE_HOME/bin:$PATH

umask 022

[oracle@bogon ~]$

[oracle@bogon ~]$ source .bash_profile

[oracle@bogon ~]$

[oracle@bogon ~]$ DISPLAY=local_host:0.0 ; export DISPLAY

步驟9: 檢查是否安裝了JDK,沒有的話需要安裝JDK,配置環(huán)境變量。

步驟10: 開始安裝

錯誤現(xiàn)象1:

[oracle@bogon database]$ ./runInstaller

./runInstaller: /mnt/hgfs/DataBase/database/install/.oui: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

出錯原因:如果出現(xiàn)這個錯誤是因為缺少包 glibc.i686

[root@bogon database]$yum install glibc.i686

錯誤現(xiàn)象2:

[oracle@bogon database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Failed <<<<

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2013-08-05_07-24-40AM/installActions2013-08-05_07-24-40AM.log

[oracle@bogon database]$

錯誤原因:這個是因為上面所說的支持到Red Hat Enterprise Linux Server release 4.0,所以你修改一下配置文件 /etc/redhat-release ,將原來的配置注釋掉,添加一行Red Hat Enterprise Linux Server release 4.0 (Santiago),待安裝完成后再修改過來。

[root@bogon Packages]# more /etc/redhat-release

Red Hat Enterprise Linux Server release 4.0 (Santiago)

#Red Hat Enterprise Linux Server release 6.0 (Santiago)

錯誤現(xiàn)象3:

[oracle@bogon database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-08-05_07-34-52AM. Please wait ...[oracle@bogon database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-08-05_07-34-52AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at sun.security.action.LoadLibraryAction.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)

at sun.awt.DebugHelper.(Unknown Source)

at java.awt.Component.(Unknown Source)

錯誤原因:如果出現(xiàn)上面錯誤,一般是缺少系統(tǒng)安裝包libXp

[root@bogon Packages]# ls libXp*

libXp-1.0.0-15.1.el6.i686.rpm          libXpm-3.5.8-2.el6.i686.rpm

libXp-1.0.0-15.1.el6.x86_64.rpm        libXpm-3.5.8-2.el6.x86_64.rpm

libXp-devel-1.0.0-15.1.el6.i686.rpm    libXpm-devel-3.5.8-2.el6.i686.rpm

libXp-devel-1.0.0-15.1.el6.x86_64.rpm  libXpm-devel-3.5.8-2.el6.x86_64.rpm

[root@bogon Packages]# yum list libXp

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Available Packages

libXp.i686                      1.0.0-15.1.el6                    rhel-debuginfo

libXp.x86_64                    1.0.0-15.1.el6                    rhel-debuginfo

[root@bogon Packages]# rpm -ivh libXp-1.0.0-15.1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

   1:libXp                  ########################################### [100%]

[root@bogon Packages]#

[root@bogon Packages]# rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm

error: Failed dependencies:

libX11.so.6 is needed by libXp-1.0.0-15.1.el6.i686

libXau.so.6 is needed by libXp-1.0.0-15.1.el6.i686

libXext.so.6 is needed by libXp-1.0.0-15.1.el6.i686

[root@bogon Packages]# yum install libXp-1.0.0-15.1.el6.i686.rpm

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Examining libXp-1.0.0-15.1.el6.i686.rpm: libXp-1.0.0-15.1.el6.i686

Marking libXp-1.0.0-15.1.el6.i686.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package libXp.i686 0:1.0.0-15.1.el6 set to be updated

--> Processing Dependency: libX11.so.6 for package: libXp-1.0.0-15.1.el6.i686

--> Processing Dependency: libXau.so.6 for package: libXp-1.0.0-15.1.el6.i686

--> Processing Dependency: libXext.so.6 for package: libXp-1.0.0-15.1.el6.i686

--> Running transaction check

---> Package libX11.i686 0:1.3-2.el6 set to be updated

--> Processing Dependency: libxcb.so.1 for package: libX11-1.3-2.el6.i686

---> Package libXau.i686 0:1.0.5-1.el6 set to be updated

---> Package libXext.i686 0:1.1-3.el6 set to be updated

--> Running transaction check

---> Package libxcb.i686 0:1.5-1.el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package     Arch     Version              Repository                      Size

================================================================================

Installing:

libXp       i686     1.0.0-15.1.el6       /libXp-1.0.0-15.1.el6.i686      33 k

Installing for dependencies:

libX11      i686     1.3-2.el6            rhel-debuginfo                 585 k

libXau      i686     1.0.5-1.el6          rhel-debuginfo                  22 k

libXext     i686     1.1-3.el6            rhel-debuginfo                  33 k

libxcb      i686     1.5-1.el6            rhel-debuginfo                 103 k

Transaction Summary

================================================================================

Install       5 Package(s)

Upgrade       0 Package(s)

Total size: 777 k

Total download size: 743 k

Installed size: 1.8 M

Is this ok [y/N]: y

Downloading Packages:

--------------------------------------------------------------------------------

Total                                           3.5 MB/s | 743 kB     00:00    

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

  Installing     : libXau-1.0.5-1.el6.i686                                  1/5

  Installing     : libxcb-1.5-1.el6.i686                                    2/5

  Installing     : libX11-1.3-2.el6.i686                                    3/5

  Installing     : libXext-1.1-3.el6.i686                                   4/5

  Installing     : libXp-1.0.0-15.1.el6.i686                                5/5

Installed:

  libXp.i686 0:1.0.0-15.1.el6                                                  

Dependency Installed:

  libX11.i686 0:1.3-2.el6  libXau.i686 0:1.0.5-1.el6  libXext.i686 0:1.1-3.el6

  libxcb.i686 0:1.5-1.el6

Complete!

[root@bogon Packages]#

錯誤現(xiàn)象4:

[oracle@bogon database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-08-05_08-30-45AM. Please wait ...[oracle@bogon database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-08-05_08-30-45AM/jre/1.4.2/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at sun.security.action.LoadLibraryAction.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)

at sun.awt.DebugHelper.(Unknown Source)

at java.awt.Component.(Unknown Source)

錯誤原因:導(dǎo)致出現(xiàn)上面錯誤有幾個,你可能是其中的一個

1:缺少了一些包libXp-devel.i686

[root@bogon Packages]# yum install libXp-devel.i686

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXp-devel-1.0.0-15.1.el6.i686 already installed and latest version

Nothing to do

[root@bogon Packages]# yum install libXp-devel.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXp-devel-1.0.0-15.1.el6.x86_64 already installed and latest version

Nothing to do

[root@bogon Packages]# yum install libXau.i686

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXau-1.0.5-1.el6.i686 already installed and latest version

Nothing to do

[root@bogon Packages]# yum install libXau.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXau-1.0.5-1.el6.x86_64 already installed and latest version

Nothing to do

2:缺少 libXp-1.0.0-15.1.el6.i686.rpm,你查看的時候呢,提示已經(jīng)安裝了,但是一直報上面錯誤,這時候,你需要強制安裝一次,即可解決上面問題。這個問題我折騰了好久。

[root@bogon Packages]# rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm

Preparing...                ########################################### [100%]

package libXp-1.0.0-15.1.el6.i686 is already installed

[root@bogon Packages]# rpm -ivh --force libXp-1.0.0-15.1.el6.i686.rpm

Preparing...                ########################################### [100%]

   1:libXp                  ########################################### [100%]

[root@bogon Packages]#

3:缺少包libXt

[root@bogon Packages]# yum install libXt.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXt-1.0.7-1.el6.x86_64 already installed and latest version

Nothing to do

[root@bogon Packages]# yum install libXt.i686

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package libXt.i686 0:1.0.7-1.el6 set to be updated

--> Processing Dependency: libICE.so.6 for package: libXt-1.0.7-1.el6.i686

--> Processing Dependency: libSM.so.6 for package: libXt-1.0.7-1.el6.i686

--> Running transaction check

---> Package libICE.i686 0:1.0.6-1.el6 set to be updated

---> Package libSM.i686 0:1.1.0-7.1.el6 set to be updated

--> Processing Dependency: libuuid.so.1 for package: libSM-1.1.0-7.1.el6.i686

--> Processing Dependency: libuuid.so.1(UUID_1.0) for package: libSM-1.1.0-7.1.el6.i686

--> Running transaction check

---> Package libuuid.i686 0:2.17.2-6.el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================

Package               Arch               Version                        Repository                    Size

============================================================================================================

Installing:

libXt                 i686               1.0.7-1.el6                    rhel-debuginfo               168 k

Installing for dependencies:

libICE                i686               1.0.6-1.el6                    rhel-debuginfo                52 k

libSM                 i686               1.1.0-7.1.el6                  rhel-debuginfo                26 k

libuuid               i686               2.17.2-6.el6                   rhel-debuginfo                62 k

Transaction Summary

============================================================================================================

Install       4 Package(s)

Upgrade       0 Package(s)

Total download size: 309 k

Installed size: 560 k

Is this ok [y/N]: y

Downloading Packages:

------------------------------------------------------------------------------------------------------------

Total                                                                       985 kB/s | 309 kB     00:00    

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libICE-1.0.6-1.el6.i686                                                              1/4

  Installing     : libuuid-2.17.2-6.el6.i686                                                            2/4

  Installing     : libSM-1.1.0-7.1.el6.i686                                                             3/4

  Installing     : libXt-1.0.7-1.el6.i686                                                               4/4

Installed:

  libXt.i686 0:1.0.7-1.el6                                                                                 

Dependency Installed:

  libICE.i686 0:1.0.6-1.el6         libSM.i686 0:1.1.0-7.1.el6         libuuid.i686 0:2.17.2-6.el6       

Complete!

[root@bogon Packages]#

錯誤現(xiàn)象5:

[oracle@bogon database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-08-08_08-15-30AM. Please wait ...[oracle@bogon database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2013-08-08_08-15-30AM/jre/1.4.2/lib/i386/libawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at sun.security.action.LoadLibraryAction.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)

at sun.awt.DebugHelper.(Unknown Source)

at java.awt.Component.(Unknown Source)

錯誤原因:這個一般是沒有安裝包libXtst

[root@bogon Packages]# yum list libXtst

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Installed Packages

libXtst.x86_64            1.0.99.2-3.el6             @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0

Available Packages

libXtst.i686              1.0.99.2-3.el6             rhel-debuginfo                                        

[root@bogon Packages]#

[root@bogon Packages]# yum install libXtst.x86_64

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Package libXtst-1.0.99.2-3.el6.x86_64 already installed and latest version

Nothing to do

[root@bogon Packages]# yum install libXtst.i686

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package libXtst.i686 0:1.0.99.2-3.el6 set to be updated

--> Processing Dependency: libXi.so.6 for package: libXtst-1.0.99.2-3.el6.i686

--> Running transaction check

---> Package libXi.i686 0:1.3-3.el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================

Package               Arch               Version                        Repository                    Size

============================================================================================================

Installing:

libXtst               i686               1.0.99.2-3.el6                 rhel-debuginfo                22 k

Installing for dependencies:

libXi                 i686               1.3-3.el6                      rhel-debuginfo                32 k

Transaction Summary

============================================================================================================

Install       2 Package(s)

Upgrade       0 Package(s)

Total download size: 54 k

Installed size: 92 k

Is this ok [y/N]: y

Downloading Packages:

------------------------------------------------------------------------------------------------------------

Total                                                                       519 kB/s |  54 kB     00:00    

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libXi-1.3-3.el6.i686                                                                 1/2

  Installing     : libXtst-1.0.99.2-3.el6.i686                                                          2/2

Installed:

  libXtst.i686 0:1.0.99.2-3.el6                                                                            

Dependency Installed:

  libXi.i686 0:1.3-3.el6                                                                                   

Complete!

[root@bogon Packages]#

錯誤現(xiàn)象6:

[oracle@bogon database]$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-08-08_08-18-00AM. Please wait ...[oracle@bogon database]$ No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)

at java.awt.Window.init(Unknown Source)

at java.awt.Window.(Unknown Source)

at java.awt.Frame.(Unknown Source)

at oracle.ewt.popup.PopupFrame.(Unknown Source)

at oracle.ewt.lwAWT.BufferedFrame.(Unknown Source)

at oracle.sysman.oio.oioc.OiocOneClickInstaller.(OiocOneClickInstaller.java:378)

at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)

出現(xiàn)這個錯誤可以參考一下http://blog.sina.com.cn/s/blog_73582d750100ppto.html,我剛開始用方法1,折騰來折騰去始終不行,用方法2立馬OK

下面進入圖形化安置界面

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

在安裝到65%的時候報如下錯誤

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

在安裝到65%的時候,報如上錯誤,查看日志信息

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫 View Code

這個錯誤時因為缺少包glibc-devel-2.12-1.7.el6.i686.rpm

[root@bogon Packages]# yum install glibc-devel-2.12-1.7.el6.i686.rpm

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Examining glibc-devel-2.12-1.7.el6.i686.rpm: glibc-devel-2.12-1.7.el6.i686

Marking glibc-devel-2.12-1.7.el6.i686.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package glibc-devel.i686 0:2.12-1.7.el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package        Arch    Version         Repository                         Size

================================================================================

Installing:

glibc-devel    i686    2.12-1.7.el6    /glibc-devel-2.12-1.7.el6.i686    953 k

Transaction Summary

================================================================================

Install       1 Package(s)

Upgrade       0 Package(s)

Total size: 953 k

Installed size: 953 k

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : glibc-devel-2.12-1.7.el6.i686                            1/1

Installed:

  glibc-devel.i686 0:2.12-1.7.el6                                              

Complete!

[root@bogon Packages]# yum install glibc-devel-2.12-1.7.el6.x86_64.rpm

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

Existing lock /var/run/yum.pid: another copy is running as pid 4411.

Another app is currently holding the yum lock; waiting for it to exit...

  The other application is: PackageKit

    Memory :  34 M RSS (349 MB VSZ)

    Started: Thu Aug  8 09:10:43 2013 - 00:05 ago

    State  : Sleeping, pid: 4411

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Examining glibc-devel-2.12-1.7.el6.x86_64.rpm: glibc-devel-2.12-1.7.el6.x86_64

Marking glibc-devel-2.12-1.7.el6.x86_64.rpm to be installed

Package glibc-devel-2.12-1.7.el6.x86_64 already installed and latest version

glibc-devel-2.12-1.7.el6.x86_64.rpm: does not update installed package.

Error: Nothing to do

[root@bogon Packages]#

[root@bogon Packages]# yum install -y compat-gcc* compat-glibc* compat-libstd*

Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/hgfs/DataBase/Relhat6/repodata/repomd.xml

Trying other mirror.

Setting up Install Process

Examining compat-gcc-34-3.4.6-19.el6.x86_64.rpm: compat-gcc-34-3.4.6-19.el6.x86_64

Marking compat-gcc-34-3.4.6-19.el6.x86_64.rpm to be installed

Examining compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm: compat-gcc-34-c++-3.4.6-19.el6.x86_64

Marking compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm to be installed

Examining compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm: compat-gcc-34-g77-3.4.6-19.el6.x86_64

Marking compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpm to be installed

Examining compat-glibc-2.5-46.2.x86_64.rpm: 1:compat-glibc-2.5-46.2.x86_64

Marking compat-glibc-2.5-46.2.x86_64.rpm to be installed

Examining compat-glibc-headers-2.5-46.2.x86_64.rpm: 1:compat-glibc-headers-2.5-46.2.x86_64

Marking compat-glibc-headers-2.5-46.2.x86_64.rpm to be installed

Examining compat-libstdc++-296-2.96-144.el6.i686.rpm: compat-libstdc++-296-2.96-144.el6.i686

Marking compat-libstdc++-296-2.96-144.el6.i686.rpm to be installed

Examining compat-libstdc++-33-3.2.3-69.el6.i686.rpm: compat-libstdc++-33-3.2.3-69.el6.i686

Marking compat-libstdc++-33-3.2.3-69.el6.i686.rpm to be installed

Examining compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm: compat-libstdc++-33-3.2.3-69.el6.x86_64

Marking compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package compat-gcc-34.x86_64 0:3.4.6-19.el6 set to be updated

---> Package compat-gcc-34-c++.x86_64 0:3.4.6-19.el6 set to be updated

---> Package compat-gcc-34-g77.x86_64 0:3.4.6-19.el6 set to be updated

--> Processing Dependency: compat-libf2c-34 = 3.4.6-19.el6 for package: compat-gcc-34-g77-3.4.6-19.el6.x86_64

--> Processing Dependency: libg2c.so.0()(64bit) for package: compat-gcc-34-g77-3.4.6-19.el6.x86_64

---> Package compat-glibc.x86_64 1:2.5-46.2 set to be updated

---> Package compat-glibc-headers.x86_64 1:2.5-46.2 set to be updated

---> Package compat-libstdc++-296.i686 0:2.96-144.el6 set to be updated

--> Processing Dependency: libgcc_s.so.1 for package: compat-libstdc++-296-2.96-144.el6.i686

--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: compat-libstdc++-296-2.96-144.el6.i686

---> Package compat-libstdc++-33.i686 0:3.2.3-69.el6 set to be updated

---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 set to be updated

--> Running transaction check

---> Package compat-libf2c-34.x86_64 0:3.4.6-19.el6 set to be updated

---> Package libgcc.i686 0:4.4.4-13.el6 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================

Package                 Arch      Version          Repository                                   Size

======================================================================================================

Installing:

compat-gcc-34           x86_64    3.4.6-19.el6     /compat-gcc-34-3.4.6-19.el6.x86_64           13 M

compat-gcc-34-c++       x86_64    3.4.6-19.el6     /compat-gcc-34-c++-3.4.6-19.el6.x86_64       84 M

compat-gcc-34-g77       x86_64    3.4.6-19.el6     /compat-gcc-34-g77-3.4.6-19.el6.x86_64      5.9 M

compat-glibc            x86_64    1:2.5-46.2       /compat-glibc-2.5-46.2.x86_64               6.4 M

compat-glibc-headers    x86_64    1:2.5-46.2       /compat-glibc-headers-2.5-46.2.x86_64       1.9 M

compat-libstdc++-296    i686      2.96-144.el6     /compat-libstdc++-296-2.96-144.el6.i686     256 k

compat-libstdc++-33     i686      3.2.3-69.el6     /compat-libstdc++-33-3.2.3-69.el6.i686      716 k

compat-libstdc++-33     x86_64    3.2.3-69.el6     /compat-libstdc++-33-3.2.3-69.el6.x86_64    806 k

Installing for dependencies:

compat-libf2c-34        x86_64    3.4.6-19.el6     rhel-debuginfo                               51 k

libgcc                  i686      4.4.4-13.el6     rhel-debuginfo                              104 k

Transaction Summary

======================================================================================================

Install      10 Package(s)

Upgrade       0 Package(s)

Total size: 112 M

Total download size: 156 k

Installed size: 112 M

Downloading Packages:

------------------------------------------------------------------------------------------------------

Total                                                                 2.1 MB/s | 156 kB     00:00    

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libgcc-4.4.4-13.el6.i686                                                      1/10

  Installing     : compat-gcc-34-3.4.6-19.el6.x86_64                                             2/10

  Installing     : compat-libf2c-34-3.4.6-19.el6.x86_64                                          3/10

  Installing     : 1:compat-glibc-headers-2.5-46.2.x86_64                                        4/10

  Installing     : 1:compat-glibc-2.5-46.2.x86_64                                                5/10

  Installing     : compat-gcc-34-g77-3.4.6-19.el6.x86_64                                         6/10

  Installing     : compat-libstdc++-33-3.2.3-69.el6.x86_64                                       7/10

  Installing     : compat-libstdc++-33-3.2.3-69.el6.i686                                         8/10

  Installing     : compat-libstdc++-296-2.96-144.el6.i686                                        9/10

  Installing     : compat-gcc-34-c++-3.4.6-19.el6.x86_64                                        10/10

Installed:

  compat-gcc-34.x86_64 0:3.4.6-19.el6              compat-gcc-34-c++.x86_64 0:3.4.6-19.el6          

  compat-gcc-34-g77.x86_64 0:3.4.6-19.el6          compat-glibc.x86_64 1:2.5-46.2                   

  compat-glibc-headers.x86_64 1:2.5-46.2           compat-libstdc++-296.i686 0:2.96-144.el6         

  compat-libstdc++-33.i686 0:3.2.3-69.el6          compat-libstdc++-33.x86_64 0:3.2.3-69.el6        

Dependency Installed:

  compat-libf2c-34.x86_64 0:3.4.6-19.el6                  libgcc.i686 0:4.4.4-13.el6                

Complete!

重新安裝還是報如下錯誤,但是這個錯誤從另外一個人的帖子說是可以忽略的。點擊繼續(xù)安裝按鈕

[root@bogon logs]# tail -20 installActions2013-08-09_08-14-21AM.log

INFO: product/dbhome_1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incompatible with i386:x86-64 output

/usr/bin/ld: i386 architecture of input file `/u01/app/oracle/product/dbhome_1/sysman/lib/libnmcbuf.a(nmcbufu.o)' is incompatible with i386:x86-64 output

/usr/bin/ld: i386 architecture of input file `/u01/app/oracle/product/dbhome_1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is incompatible with i386:x86-64 output

/usr/bin/ld: i386 architecture of input file `/u01/app/oracle/product/dbhome_1/sysman/lib/libnmcbuf.a(nmcbuff.o

INFO: )' is incompatible with i386:x86-64 output

/usr/bin/ld: i386 architecture of input file `/u01/app/oracle/product/dbhome_1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86-64 output

/usr/bin/ld: i386 architecture of input file `/u01/app/oracle/product/dbhome_1/sysman/lib//libnmadbg.a(snmadbg.o)' is incompatible with i386:x86-64 output

collect2: ld returned 1 exit status

INFO: make[1]: Leaving directory `/u01/app/oracle/product/dbhome_1/sysman/lib'

INFO: make[1]: *** [/u01/app/oracle/product/dbhome_1/sysman/lib/nmccollector] Error 1

make: *** [nmccollector] Error 2

INFO: End output from spawned process.

INFO: ----------------------------------

INFO: Exception thrown from action: make

Exception Name: MakefileException

Exception String: Error in invoking target 'collector' of makefile '/u01/app/oracle/product/dbhome_1/sysman/lib/ins_emdb.mk'. See '/u01/app/oracle/oraInventory/logs/installActions2013-08-09_08-14-21AM.log' for details.

Exception Severity: 1

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

安裝過程中如果報“ORA-27125:unable to create shared memory segment”這個錯誤,一般原因是操作系統(tǒng)用戶權(quán)限不足的問題,可以通過下面的方式來解決:

將oracle的dba組的gid寫入/proc/sys/vm/hugetld_shm_group文件中

解決方法

[root@bogon logs]# id oracle

uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)

[root@bogon logs]# more /proc/sys/vm/hugetlb_shm_group

0

[root@bogon logs]# echo vm.hugetlb_shm_group=502 > /etc/sysctl.conf

[root@bogon logs]#  sysctl -p

vm.hugetlb_shm_group = 502

[root@bogon logs]#

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫

感謝你能夠認真閱讀完這篇文章,希望小編分享的“RHEL6 64位系統(tǒng)如何安裝ORACLE 10g 64bit 數(shù)據(jù)庫”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI