In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the RHEL6 64-bit system how to install ORACLE 10g 64bit database, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
RHEL6 64-bit system installs ORACLE 10g 64bit database
Step 1: prepare the system and set up the shared directory DataBase on the virtual machine, and prepare the database installation media. There are some details I may pass through, if you don't know clearly, you can take a look at my article, Rhel-Server 5.5. install ORACLE10.
To install the media file 10201_database_linux_x86_64.cpio.gz, you must first extract it with gunzip, and then extract the file in cpio format with cpio.
Extract the installation file
[root@bogon DataBase] # cd / mnt/hgfs/DataBase/
[root@bogon DataBase] # ls
10201_database_linux_x86_64.cpio.gz
[root@bogon DataBase] # gunzip 10201_database_linux_x86_64.cpio.gz
[root@bogon DataBase] # ls
10201_database_linux_x86_64.cpio
[root@bogon DataBase] # cpio-idmv
< 10201_database_linux_x86_64.cpio [root@bogon DataBase]# cd database/ [root@bogon database]# ls doc install response runInstaller stagewelcome.html 步骤2:查看安装文档,在解压目录下打开welcome.html文件,点击"Installing Oracle Database"下的"Documentation"链接即可进入。安装前最好将安装文档初略看一遍,当然你也可以在安装过程中参考。 [root@bogon database]# firefox welcome.html 步骤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 [root@bogon Desktop]# grep MemTotal /proc/meminfo MemTotal:2051700 kB [root@bogon Desktop]# free -g total used free shared buffers cached Mem:1 0 1 0 0 0 -/+ buffers/cache:0 1 Swap:3 0 3 交换空间(Swap Space)检测: Code Snippet [root@bogon Desktop]# grepSwapTotal /proc/meminfo SwapTotal:4128760 kB 磁盘空间检测/tmp目录检测: Code Snippet [root@bogon Desktop]# df -m /tmp Filesystem 1M-blocksUsed Available Use% Mounted on /dev/sda213878 2186 10987 17% / [root@bogon Desktop]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 14G 2.2G 11G 17% / tmpfs 1002M 100K 1002M 1% /dev/shm /dev/sda1 291M 30M 246M 11% /boot .host:/ 30G 16G 15G 52% /mnt/hgfs [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.0The system must be running the following (or later) kernel version:Red Hat Enterprise Linux 3.02.4.21-27.ELRed Hat Enterprise Linux 4.02.6.9-11.ELSUSE Linux Enterprise Server 9.02.6.5-7.201The following packages (or later versions) must be installed:Red Hat Enterprise Linux 3.0:make-3.79.1-17compat-db 4.0.14-5.1control-center-2.2.0.1-13gcc-3.2.3-47gcc-c++-3.2.3-47gdb-6.1post-1.20040607.52glibc-2.3.2-95.30glibc-common-2.3.2-95.30glibc-devel-2.3.2-95.30glibc-devel-2.3.2-95.20 (32 bit)compat-db-4.0.14-5compat-gcc-7.3-2.96.128compat-gcc-c++-7.3-2.96.128compat-libstdc++-7.3-2.96.128compat-libstdc++-devel-7.3-2.96.128gnome-libs-1.4.1.2.90-34.2 (32 bit)libstdc++-3.2.3-47libstdc++-devel-3.2.3-47openmotif-2.2.3-3.RHEL3sysstat-5.0.5-5.rhel3setarch-1.3-1libaio-0.3.96-3libaio-devel-0.3.96-3Red Hat Enterprise Linux 4.0:binutils-2.15.92.0.2-10.EL4compat-db-4.1.25-9control-center-2.8.0-12gcc-3.4.3-9.EL4gcc-c++-3.4.3-9.EL4glibc-2.3.4-2glibc-common-2.3.4-2gnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-9.EL4libstdc++-devel-3.4.3-9.EL4make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2SUSE Linux Enterprise Server 9binutils-2.15.90.0.1.1-32.5gcc-3.3.3-43.24gcc-c++-3.3.3-43.24glibc-2.3.3-98.28gnome-libs-1.4.1.7-671.1libstdc++-3.3.3-43.24libstdc++-devel-3.3.3-43.24make-3.80-184.1pdksh-5.2.14-780.1sysstat-5.0.1-35.1xscreensaver-4.16-2.6 从文档中可以看出ORACLE 10g只支持到Red Hat Enterprise Linux 4.0,并没有明确表示支持Red Hat Enterprise Linux 6.0. 这是因为Oracle官方并没有在Rhel 4以后的版本测试过Oracle 10g,另外一方面应该是Oracle出于自己的商业利益战略考虑。安装过程中你必须修改配置文件 /etc/redhat-release 将"Red Hat Enterprise Linux Server release 6.0 (Santiago)" 改为"Red Hat Enterprise Linux Server release 4.0 (Santiago)",否则安装过程会报错,无法继续。 查看内核版本,比文档要求的版本要高。 [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下的包的版本可能比这个高,所以你最好忽略那些版本号,然后去检查。这部相当重要。安装过程很多报错信息就是因为这一步没有到位导致的。当然有些错误是因为缺少一些包,安装文档也没有提及(后面有讲解) 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的安装介质目录,下面红色部分是需要根据你系统具体配置的部分 [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, rhnpluginThis system is not registered with RHN. RHN support will be disabled. Available Packagescompat-db.i686 4.6.21-15.el6 rhel-debuginfocompat-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, rhnpluginThis 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.xmlTrying other mirror. Setting up Install ProcessResolving Dependencies -->The following error is reported when installing to 65%
When installing to 65%, report the error as above and check the log information.
View Code
This error occurs because the package glibc-devel-2.12-1.7.el6.i686.rpm is missing
[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 0RU 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 953k
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 Compact 1
Installed:
Glibc-devel.i686 0RO 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: 34m RSS (349MB 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 0RU 3.4.6-19.el6 set to be updated
-> Package compat-gcc-34-c++.x86_64 0RU 3.4.6-19.el6 set to be updated
-> Package compat-gcc-34-g77.x86_64 0RU 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 1Rank 2.5-46.2 set to be updated
-> Package compat-glibc-headers.x86_64 1Rank 2.5-46.2 set to be updated
-> Package compat-libstdc++-296.i686 0RU 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 0RU 3.2.3-69.el6 set to be updated
-> Package compat-libstdc++-33.x86_64 0RU 3.2.3-69.el6 set to be updated
-> Running transaction check
-> Package compat-libf2c-34.x86_64 0RU 3.4.6-19.el6 set to be updated
-> Package libgcc.i686 0RU 4.4.4-13.el6 set to be updated
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Compat-gcc-34 x86 million 64 3.4.6-19.el6 / compat-gcc-34-3.4.6-19.el6.x86_64 13 M
Compat-gcc-34-c++ x86 19.el6.x86_64 64 3.4.6-19.el6 / compat-gcc-34-c++-3.4.6-19.el6.x86_64 84m
Compat-gcc-34-g77 x86 million 64 3.4.6-19.el6 / compat-gcc-34-g77-3.4.6-19.el6.x86_64 5.9m
Compat-glibc x86x 64 1purl 2.5-46.2 / compat-glibc-2.5-46.2.x86_64 6.4m
Compat-glibc-headers x86 46.2.x86_64 64 1purl 2.5-46.2 / compat-glibc-headers-2.5-46.2.x86_64 1.9m
Compat-libstdc++-33 i686 3.2.3-69.el6 / compat-libstdc++-33-3.2.3-69.el6.i686 716k
Installing for dependencies:
Compat-libf2c-34 x8631 64 3.4.6-19.el6 rhel-debuginfo 51k
Libgcc i686 4.4.4-13.el6 rhel-debuginfo 104k
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 Compact 10
Installing: compat-gcc-34-3.4.6-19.el6.x86_64 2max 10
Installing: compat-libf2c-34-3.4.6-19.el6.x86_64 3max 10
Installing: 1:compat-glibc-headers-2.5-46.2.x86_64 4 Compact 10
Installing: 1:compat-glibc-2.5-46.2.x86_64 5 Compact 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 Compact 10
Installed:
Compat-gcc-34.x86_64 0VOR 3.4.6-19.el6 compat-gcc-34-c++.x86_64 0RU 3.4.6-19.el6
Compat-gcc-34-g77.x86_64 0vl 3.4.6-19.el6 compat-glibc.x86_64 1Rd 2.5-46.2
Compat-glibc-headers.x86_64 1RO 2.5-46.2 compat-libstdc++-296.i686 0RV 2.96-144.el6
Dependency Installed:
Complete!
The reinstallation still reports the following error, but this error can be ignored from another person's post. Click the continue installation button
[root@bogon logs] # tail-20 installActions2013-08-0911-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 `/ u01plash appplicable oracle.productanddbhomeand1Actionsysmanandlib'
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 * See'/ u01/app/oracle/oraInventory/logs/installActions2013-08-09. 08-14-21 AM.log' for details.
Exception Severity: 1
If the error of "ORA-27125:unable to create shared memory segment" is reported during installation, the general reason is the lack of user rights of the operating system, which can be solved in the following ways:
Write the gid of the dba group of oracle to the / proc/sys/vm/hugetld_shm_group file
Solution method
[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] #
Thank you for reading this article carefully. I hope the article "how to install ORACLE 10g 64bit database in RHEL6 64-bit system" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.