一、硬件要求——内存 & swap & 硬盘
最小内存与swap: 1 GB of RAM & swap
建议内存与swap: 2 GB of RAM & swap
[root@toughhou tough]# grep MemTotal /proc/meminfo 
MemTotal:        2030952 kB

[root@toughhou tough]# grep SwapTotal /proc/meminfo 
SwapTotal:       4194300 kB

查看硬盘空间使用情况,为oracle准备5G左右的硬盘空间。
[root@toughhou tough]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           37G   16G   20G  45% /
devtmpfs        984M     0  984M   0% /dev
tmpfs           992M  264K  992M   1% /dev/shm
tmpfs           992M  1.7M  991M   1% /run

二、软件情况
操作系统版本:Fedora 17
Oracle版本:10201_database_linux32.zip

三、准备工作
1、关闭防火墙、禁用SELinux
[root@toughhou tough]# setup (选择“Firewall configuration” -> Firewall: [ ] Enabled)

修改SELINUX=disabled,然后重启。如果不想重启系统,使用命令setenforce 0
[root@toughhou tough]# vi /etc/selinux/config
SELINUX=disabled

[root@toughhou tough]# setenforce 0

2、安装依赖包
[root@toughhou tough]# yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat

最后还需要安装libXp这个Library,这个一定要安装,否则安装Oracle时会出现java Exception。
[root@toughhou tough]# yum install libXp

3、创建Oracle用户及组
(1)数据库系统管理理组
[root@toughhou tough]# groupadd dba

(2)Oracle文件所有者的组
[root@toughhou tough]# groupadd oinstall

(3)新增使用者oracle并将其加入oinstall和dba群组
[root@toughhou tough]# useradd -g oinstall -G dba -m -s /bin/bash oracle
[root@toughhou tough]# passwd oracle

4、创建oracle安装目录
[root@toughhou tough]# mkdir -p /opt/oracle/product/10.1.0/
[root@toughhou tough]# chown -R oracle.oinstall /opt/oracle

5、配置系统内核参数(修改或添加以下内容)
[root@toughhou tough]# vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144

编辑完后使用以下命令使更改生效:
[root@toughhou tough]# sysctl -p

6、修改Linux发行版本信息
修改/etc/redhat-release文件写入:Red Hat Enterprise Linux AS release 3(Taroon)
[root@toughhou tough]# vi /etc/redhat-release

7、配置Linux主机
这是很重要的一个步骤,如果设置不当,后面安装过程中会面临OUI-25031问题。toughhou是我的主机名,确保hostname,network,hosts中都一致。
[root@toughhou tough]# hostname
toughhou

[root@toughhou tough]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=toughhou

[root@toughhou tough]# cat /etc/hosts
127.0.0.1   toughhou toughhou.localdomain localhost4 localhost4.localdomain4
::1         toughhou toughhou.localdomain localhost6 localhost6.localdomain6

[root@toughhou tough]# ping toughhou
PING toughhou (127.0.0.1) 56(84) bytes of data.
64 bytes from toughhou (127.0.0.1): icmp_req=1 ttl=64 time=0.044 ms
64 bytes from toughhou (127.0.0.1): icmp_req=2 ttl=64 time=0.039 ms

8、注销root账号,并且以oracle账号再次登入桌面系统。
注意:此处的登陆不是以以下简单的su oracle方式登陆,而是以oracle账号登入桌面系统。否则后面可能出现“Can't connect to X11 window server using '127.0.0.1:0.0' as the value of the DISPLAY variable. ”的问题。

9、oracle用户环境变量设置
[oracle@toughhou tough]$ cd /home/oracle/
[oracle@toughhou ~]$ vi .bash_profile 
#Setup Oracle Env variables
export TMP=/tmp
export TMPDIR=$TMP

export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1
export ORACLE_SID=ORCL
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$PATH:/usr/sbin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$CLASSPATH;

[oracle@toughhou ~]$ source /home/oracle/.bash_profile

四、安装oracle及相关设置
1、解压缩安装文件
[oracle@toughhou ~]$ unzip /home/oracle/pkg/10201_database_linux32.zip

解压缩完成会在同一个文件夹中看到database的文件夹,请进入到database文件夹中:
[oracle@toughhou pkg]$ cd database/

2、设置语言为en_US.UTF-8,以避免安装界面乱码
[oracle@toughhou database]$ export LANG=en_US.UTF-8

3、安装
[oracle@toughhou database]$ ./runInstaller 
1)将Unix DBA Group设置为dba,设置SYS, SYSTEM等账号共享的database Password,按Next;

2)同样的,将群组选择为dba群组,按Next;
3)此步中,点选Checking Network Configuration requirements为User Verified,按Next;

4)出现Install Summary画面,此时按下Install按钮,系统即开始安装;
5)安装进度大约到65%时会有错误提示,这是一个bug,直接忽略,按Continue;
Error in invoking target 'agent nmo nmb' of makefile '/opt/oracle/product/10.1.0/db_1/sysman/lib/ins_emdb.mk'.

6)安装到数据库设置助理,可以在这边选取password management作密码的修改,如不需要修改,只需要按下ok按钮即可。

7)安装完成前,出现以下设置要求,此时登陆root用户执行。

[root@toughhou ~]# cd /opt/oracle/product/10.1.0/db_1/
[root@toughhou db_1]# ./root.sh
8)执行完上述脚本后,回到安装窗口按下OK完成所有的oracle安装。

4、测试安装成功与否
1)启动监听器
[oracle@toughhou ~]$ lsnrctl start
2)登陆数据库
[oracle@toughhou ~]$ sqlplus /nolog
SQL> conn / as sysdba
3)启动数据库
SQL> startup
ORACLE instance started.

Total System Global Area  536870912 bytes
Fixed Size            1220408 bytes
Variable Size          150995144 bytes
Database Buffers      377487360 bytes
Redo Buffers            7168000 bytes
Database mounted.
Database opened.
4)测试——如以下sql语句成功执行,说明安装成功了。
SQL> select sysdate from dual;

SYSDATE
---------
22-SEP-13

Fedora 17下安装Oracle 10g详细图文教程的更多相关文章

  1. CentOS 6.3(x86_64)下安装Oracle 10g R2

    目 录 一.硬件要求二.软件三.系统安装注意四.安装Oracle前的系统准备工作五.安装Oracle,并进行相关设置六.升级Oracle到patchset 10.2.0.4七.使用rlwrap调用sq ...

  2. 【转】CentOS 6.3(x86_64)下安装Oracle 10g R2

    目 录 一.硬件要求二.软件三.系统安装注意四.安装Oracle前的系统准备工作五.安装Oracle,并进行相关设置六.升级Oracle到patchset 10.2.0.4七.使用rlwrap调用sq ...

  3. 在RedHat 5下安装Oracle 10g详解(转)

    在RedHat 5下安装Oracle 10g详解(转) Posted on 2012-09-14 13:26 疯狂 阅读(5075) 评论(0)  编辑  收藏 所属分类: database .uni ...

  4. Fedora 17 下安装codeblocks

    Fedora 17 下安装codeblocks:        1.直接从yum源安装:        sudo yum install codeblocks        2.源码安装        ...

  5. 【转】CentOS 6.3(x86_32)下安装Oracle 10g R2

    一.硬件要求 1.内存 & swap Minimum: 1 GB of RAMRecommended: 2 GB of RAM or more 检查内存情况 # grep MemTotal / ...

  6. CentOS 6.3(x86_32)下安装Oracle 10g R2

    一.硬件要求 1.内存 & swap Minimum: 1 GB of RAMRecommended: 2 GB of RAM or more 检查内存情况 # grep MemTotal / ...

  7. 【Oracle学习笔记-1】Win7下安装Oracle 10g

    源程序获取 从Oracle的官网上下载Oracle 10g: 10203_vista_w2k8_x86_production_db.zip:==>服务器(必须) 10203_vista_w2k8 ...

  8. Win7下安装Oracle 10g

    首先下对版本,Oracle 10g支持Win7版(32位): 10203_vista_w2k8_x86_production_db.zip 10203_vista_w2k8_x86_productio ...

  9. win7 下安装oracle 10g

    oracle 10g 在win7下安装,提示程序异常终止,发生未知错误 在网上搜结果: 修改Oracle 10G\database\stage\prereq\db\refhost.xml 在 < ...

随机推荐

  1. 编写一个单独的Web Service for Delphi

    早段时间看了一篇好文章,对其整理成以下几步 1新建一个SOAP Server Application,在提示输入接口时输入MyHello,把所有文件保存在一个叫Ser的目录下,其中一个包含TWebMo ...

  2. LeetCode 260

    Single Number III Given an array of numbers nums, in which exactly two elements appear only once and ...

  3. 【Stirling Number I】

    hdu 4372 Count the Buildings 推荐这位小哥的,我觉得人家说的灰常的好. 注意数据范围,n,f,b均在(0,2000]范围内,而第一斯特林数的数组范围却是s[2000+5][ ...

  4. PE制作实录 —— 定义我的 PE 工具箱

    Step 1 想个好听的名字 我倒是没什么文化,洋气点又要方便记忆,最终锁定 Operit! ,源自英语 Operate .it ,合并一下再加上感叹号,洋气吧~ Step 2 利用百草霜制作 Mes ...

  5. 【原创】 windows下开发软件推荐

    1. 数据库查看器工具 navicat.exe

  6. Https要点

    http和https的区别 1.https协议需要到ca申请证书 2.http是超文本传输协议,信息是明文传输,https 则是具有安全性的ssl加密传输协议 3.http和https使用的是完全不同 ...

  7. 【转载】Apache kafka原理与特性(0.8V)

    http://blog.csdn.net/xiaolang85/article/details/37821209 前言: kafka是一个轻量级的/分布式的/具备replication能力的日志采集组 ...

  8. 自定义实现简单的Android颜色选择器(附带源码)

    在写Android App过程中需要一个简单的颜色选择器,Android自带的ColorPicker和网上的一些ColorPicker都太高端了,都实现了颜色渐变功能,我要的不需要那么复杂,只想提供几 ...

  9. dreamweaver中用正则表达式查找替换批量删除 tppabs标签的方法

    查找替换 正则表达式  \btppabs="h[^"]*" 后面不能有空格 你懂得的 选中右下角的 √[使用正则表达式] 替换全部

  10. Java之绘制二次曲线

    前面已经介绍过绘制方法.这里不再赘述. 画一下草图来看看:灰色表示X值,红色表示Y值. 在这里要值得注意的是:当我们把它们的坐标在纸上画出来时,就会觉得“有问题”了,你看A(60,20,120,100 ...