日期:2014-05-16  浏览次数:20674 次

linux 安装oracle10g

一.基本配置??

(1)硬盘剩余空间:10G以上
??? 虽然Oracle 10g的安装文件只有800多MB,但安装后的oracle+oraInventory目录会用差不多4G空间,再加上安装时Oracle生成的临时文件(/tmp目录需要至少400MB)。
(2)内存1.5G以上
??? 官方文档说512M内存也可以安装。为了避免不必要的麻烦,请把内存加多一些。
(3)Swap交换区2G


二.CenOS6 上安装Oracle 10g

1.安装Oracle 10g

【1】准备安装
在安装Oracle之前执行以下命令:
yum install yum-fastestmirror -y
yum install compat-db*
yum install compat-libc*
yum install compat-gcc*
yum install libXp.so.6
yum install libc-*
yum install libaio*
yum install openmotif
yum install glibc-devel*
yum install libgcc*
yum install gnome-lib*

【2】安装包解压

[root@localhost ~]# cpio -idmv 10201_database_linux_x86_64.cpio


【3】创建 Oracle 组和用户帐户
创建用于安装和维护Oracle 10g 软件的账户。用户帐户将称为oracle,而组将称为oracleinstall和oracle。以root用户身份执行以下命令:

[root@localhost ~]# groupadd oracleinstall

[root@localhost ~]# groupadd oracle

[root@localhost ~]# useradd -m -g oracleinstall-G oracle oracle

[root@localhost ~]# id oracle

uid=501(oracle) gid=501(oracleinstall) groups=501(oracleinstall),502(oracle)

设置oracle帐户的口令

[root@localhost ~]# passwd oracle

Changing password for user oracle.
New password:
Retype new password:passwd:all authentication tokens updated successfully.


【4】创建目录
创建Oracle 10g及其数据库文件的目录,以root用户身份执行以下命令:

[root@localhost ~]# mkdir -p /oracledata/oracle