一,服务器系统<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
RedHat Enterprise Linux 5.0
 
二,数据库软件
Oracle10g (10.2.0)
 
三,硬件基本需求(命令查看需求如图)
内存/512M
交换分区/1G
tmp目录大小/400M
安装空间/2G
检查内存和交换分区的大小:·
[root@test /]# grep MemTotal /proc/meminfo     
MemTotal:       515296 kB
[root@test /]# grep SwapTotal /proc/meminfo 
SwapTotal:     1052248 kB
四、软件基本要求:要装一下rpm包。
make-3.79.1
gcc-3.2.3-34
glibc-2.3.2-95.20
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
libXp
openmotif21-2.1.30-8
setarch-1.3-1
然后检查是不是装了:
[root@test Server]# rpm -q binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel libXp
binutils-2.17.50.0.6-12.el5
package compat-libstdc++ is not installed
elfutils-libelf-0.137-3.el5
package elfutils-libelf-devel is not installed
gcc-4.1.2-46.el5
gcc-c++-4.1.2-46.el5
glibc-2.5-42
glibc-common-2.5-42
glibc-devel-2.5-42
glibc-headers-2.5-42
libaio-0.3.106-3.2
libaio-devel-0.3.106-3.2
libgcc-4.1.2-46.el5
libstdc++-4.1.2-46.el5
libstdc++-devel-4.1.2-46.el5
make-3.81-3.el5
sysstat-7.0.2-3.el5
unixODBC-2.2.11-7.1
unixODBC-devel-2.2.11-7.1
libXp-1.0.0-8.1.el5
显示package compat-libstdc++ is not installed  说明没有安装,接下来,我们安装。
首先找出compat-libstdc++这个的rpm包,如下
[root@test /]# cd /mnt/Server/
[root@test Server]# ls -l compat-libstdc*
-r--r--r-- 341 yangleitse root  92078 2007-01-19 compat-libstdc++-296-2.96-138.i386.rpm
-r--r--r-- 341 yangleitse root 237109 2007-01-19 compat-libstdc++-33-3.2.3-61.i386.rpm
[root@test Server]# rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
warning: compat-libstdc++-296-2.96-138.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
        package compat-libstdc++-296-2.96-138.i386 is already installed
说明安装成功,照这个步骤把其他类似的也安装完。
接下来,修改系统的版本
oracle10  Incompatible linux5  so Modify 
[root@ test ~]#vi /etc/redhat-release
将Red Hat Enterprise Linux Server release 5.2 (Tikanga)替换为redhat-4
五、设置内核参数
[root@test ~]# vi /etc/sysctl.conf
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@test ~]# sysctl -p  
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
七、添加oracle组和用户
 [root@test ~]# groupadd oinstall
[root@test ~]# groupadd dba
[root@test ~]# useradd -g oinstall -G dba oracle
[root@test ~]# mkdir /home/db
[root@test ~]# chown -R oracle:oinstall /home/oracle
八、编辑Oracle用户下的环境变量:
[root@test ~]# vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
#oracle add
export  ORACLE_SID=orcl
export  ORACLE_BASE=/db/oracle
export  ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export  PATH=$PATH:/ORACLE_HOME/bin:$HOME/bin
export  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export  LC_CTYPE=en_US.UTF-8
设置oracle内核:
[root@test oracle]# vi /etc/security/limits.conf
在源文件最后加上:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@test oracle]# cat /dev/null>/etc/pam.d/login
[root@test oracle]# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
[root@test oracle]# vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
九、修改/etc/hosts:
127.0.0.1    RHEL5  localhost.localdomain    localhost
modify
127.0.0.1     localhost.localdomain    localhost
192.168.100.4    RHEL5
配置完后,在root用户在执行:xhost +
上传oracle10g包,解压
执行这个:./ runInstaller  成功的话会弹出以下安装窗口
配置数据库实力和密码:

配置Inventory目录

系统安装前的环境检查:

检查后的安装环境和安装组件

 

开始复制正式安装文件:

 

执行完有错误,

出现这个的原因是因为要到root用户找到/db/app/oracle/oraInventory
[root@yanglei oraInventory]# ./orainstRoot.sh
Changing permissions of /db/app/oracle/oraInventory to 770.
Changing groupname of /db/app/oracle/oraInventory to oinstall.
The execution of the script is complete
然后就OK了
安装完成!

转载于:https://blog.51cto.com/yangleitse/413461

linux redhat5下安装oracle10g相关推荐

  1. CentOS5.6下安装Oracle10G软件 【保留报错经验】

    CentOS5.6下安装Oracle10G ****************************************************************************** ...

  2. Linux环境下安装nginx

    大家好,本篇文章主要讲的是Linux环境下安装nginx教程,感兴趣的同学赶快来看一看吧,对你有帮助的话记得收藏一下,方便下次浏览 1.安装所需环境 //安装gcc yum install gcc-c ...

  3. 查看磁盤使用情况linux,在Linux系统下安装Filelight来查看磁盘使用情况

    在 Linux 系统下要查看硬盘的使用情况有非常多的命令可以实现,但是本文给你介绍一款软件:Filelight,开源并免费使用,我们在 Linux 下安装上它用图形化界面来显示磁盘的使用情况,它以彩色 ...

  4. linux系统下的oracle数据库,在Linux系统下安装Oracle数据库

    在Linux系统下安装Oracle数据库:1.约定:linux系统为Linux.5.4-server-x86_64,数据库为linux.x64_11gR1_database_1013 linux 在L ...

  5. Arduino可穿戴教程Linux平台下安装Arduino IDE

    Arduino可穿戴教程Linux平台下安装Arduino IDE Linux平台下安装Arduino IDE Linux平台下的安装方式和Windows下的zip形式安装是类似的,只是Linux下的 ...

  6. linux下安装两个nginx教程,在linux系统下安装两个nginx的简单方法

    在linux系统下安装两个nginx的简单方法 发布时间:2017-03-09 12:08 来源:互联网 当前栏目:web技术类 在linux下安装nginx的时候,一般在./configure的阶段 ...

  7. linux Centos7下安装python3及pip3

    linux Centos7下安装python3及pip3 先去python官网下载python3安装包 执行命令: wget https://www.python.org/ftp/python/3.6 ...

  8. Linux(CentOs)下安装Phantomjs + Casperjs

    Linux(CentOs)下安装Phantomjs + Casperjs 是参照cnMiss's Blog http://ju.outofmemory.cn/entry/70691的博客进行安装的 1 ...

  9. Linux服务器下安装配置Nginx的教程

    这篇文章主要介绍了Linux服务器下安装配置Nginx服务器的教程,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下 Nginx("engine x")是一款 ...

最新文章

  1. 数据结构例程——线性表顺序存储的应用
  2. 人工神经网络理论、设计及应用_TensorFlow深度学习应用实践:教你如何掌握深度学习模型及应用...
  3. c# 基于layui的通用后台管理系统_【SpringBoot】三十三、SpringBoot+LayUI后台管理系统开发脚手架...
  4. 定个目标|建立自己的技术知识体系
  5. codeforces1554 E. You(思维+数学+转化)
  6. vc++中画线时xor_C ++'xor_eq'关键字和示例
  7. java 搜索引擎 关键词高亮_和我一起打造个简单搜索之SpringDataElasticSearch关键词高亮(示例代码)...
  8. 数据持久化mysql_Nacos数据持久化到MySQL
  9. Spark中DataFrame 基本操作函数
  10. iOS 浅谈:深.浅拷贝与copy.strong
  11. sqlserver 登录失败——孤立用户
  12. MSSQL数据库管理---索引
  13. KALI利用MS17-010漏洞入侵
  14. 2020年物联网平台调研报告
  15. 囧妈 一场不需要“电影院”的电影
  16. Linux、网络、计算机基础知识
  17. 【北邮国院大二下】产品开发与营销知识点整理 Topic4
  18. 183套免费简历模板,助大伙找个好工作
  19. 视频帧率对人眼主观感受的影响
  20. matlab之rectangle函数

热门文章

  1. 【每周CV论文推荐】 掌握残差网络必读的10多篇文章
  2. 全球与中国激光投影设备市场前景规划与发展战略建议报告2022-2028年版
  3. 全球及中国企业旅游保险行业发展价值评估及投资方向建议报告2021-2027年版
  4. 世界种业并购史 国际农民丰收节贸易会起底农化巨头构架
  5. Linux yum 报错:One of the configured repositories failed (Unknown), and yum doesn't have.
  6. Linux下安装JDK和验证
  7. !!导致大智慧公式总是死循环的编码风格
  8. python+selenium+Robot
  9. Class.isAssignableFrom(Class clz)与instanceof与Class.isInstance(Object obj) 的区别和联系
  10. Git学习笔记05--git stash