一、下载Oracle 标准版
此次使用的Linux仍然是红旗桌面6.0版本,下载oracle10g标准版,地址为:
http://download-llnw.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip
下载文件为“10201_database_linux32.zip”
?
二、检查系统要求
查看可用RAM和交换空间大小
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
所需最小 RAM 为 512MB,而所需最小交换空间为 1GB。对于 RAM 小于或等于 2GB 的系统,交换空间应为 RAM 数量的两倍;对于 RAM 大于 2GB 的系统,交换空间应为 RAM 数量的一到两倍。
?
要检查系统上的可用磁盘空间,运行以下命令:
df -h
?
三、检查下所需软件包
在shell下输入:
rpm -q? binutils gcc glibc glibc-headers glibc-kernheaders glibc-devel cpp compat-gcc-32 make compat-db compat-gcc-32-c++ compat-libstdc++-33 compat-libstdc++-devel setarch sysstat ksh libaio libaio-devel --qf '%{name}.%{arch}/n'|sort
会输出下面软件安装的信息:
binutils.i386
package compat-db is not installed
compat-gcc-32-c++.i386
compat-gcc-32.i386
compat-libstdc++-33.i386
cpp.i386
gcc.i386
glibc-devel.i386
glibc-headers.i386
glibc.i686
ksh.i386
package libaio-devel is not installed
package libaio is not installed
make.i386
package compat-libstdc++-devel is not installed
package glibc-kernheaders is not installed
package setarch is not installed
package sysstat is not installed
没装的软件包,去网上搜索,下载后放在/usr/share/目录下
执行shell安装,如下:
[root@localhost opt]# cd /usr/share
[root@localhost share]# ll *rpm
-rw-r--r-- 1 root root 1756069 06-13 11:53 compat-db-4.2.52-5.1.i386.rpm
-rw-r--r-- 1 root root?? 18526 06-13 16:51 libaio-0.3.103-3.i386.rpm
-rw-r--r-- 1 root root?? 10091 2005-03-09 libaio-devel-0.3.103-3.i386.rpm
-rw-r--r-- 1 root root??? 6021 06-13 10:55 setarch-1.3-1.i386.rpm
-rw-r--r-- 1 root root? 105549 06-14 19:21 sysstat-5.0.5-1.i386.rpm
?
[root@localhost share]# rpm -ivh libaio-0.3.103-3.i386.rpm?
warning: libaio-0.3.103-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID 73307de6
Preparing...??????????????? ########################################### [100%]
?? 1:libaio???????????????? ########################################### [100%]
[root@localhost share]# rpm -ivh libaio-devel-0.3.103-3.i386.rpm?
warning: libaio-devel-0.3.103-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing...??????????????? ########################################### [100%]
?? 1:libaio-devel?????????? ########################################### [100%]
[root@localhost share]# rpm -ivh setarch-1.3-1.i386.rpm?
warning: setarch-1.3-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 025e513b
Preparing...??????????????? ########################################### [100%]
?? 1:setarch??????????????? ########################################### [100%]
[root@localhost share]# rpm -ivh sysstat-5.0.5-1.i386.rpm?
warning: sysstat-5.0.5-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...??????????????? ########################################### [100%]
?? 1:sysstat??????????????? ########################################### [100%]
[root@localhost share]# rpm -ivh compat-db-4.2.52-5.1.i386.rpm?
warning: com