软件安装完接着开始建库,不幸的是开始报错,内容如下:
ORA-27102: out of memory  ORA-01034: ORACLE not available<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
一.查下系统版本
oracle@linux:/u01/app/oracle/admin/orcl/bdump> uname -a
Linux linux 2.6.5-7.308-bigsmp #1 SMP Mon Dec 10 11:36:40 UTC 2007 i686 i686 i386 GNU/Linux
本系统为32位
二.查看内存信息
oracle@linux:/u01/app/oracle/admin/orcl/bdump> cat /proc/meminfo
MemTotal:      8302360 kB
MemFree:       3788908 kB
Buffers:        138968 kB
Cached:        4003872 kB
SwapCached:          0 kB
oracle@linux:/u01/app/oracle/admin/orcl/bdump> free -m
             total       used       free     shared    buffers     cached
Mem:          8107       4407       3700          0        135       3910
-/+ buffers/cache:        361       7745
Swap:         4102          0       4102
本系统物理内存为8G ,swap为4G。这里说明一下,一般oracle对于硬件的要求为:
1.       至少有1024MB的物理内存
2.       Swap的大小设置1024 MB 到 2048 MB 1.5 倍 RAM,2049 MB 到 8192 MB 等于 RAM大于 8192 MB 0.75 倍 RAM ,oracle10g以后oracle也是安装这个公式来chenck.
3.       在 /tmp 目录中至少有400 MB空闲磁盘空间
4.1.5 GB 到 3.5 GB 的磁盘空间用于安装 Oracle 数据库软件
因此我的系统系统工程师swap设置少,因此在我安装oracle10G check的时候提示swap空间不够。
 三.查metalink:
Cause
There  is not enough SHM (max-shm-memory) for the SES install. SES will try to allocate 40% of the installed RAM for SGA.  For example, if the installed RAM is 60GB.  SES will attempt to allocated approximately 24GB for SGA.  If it is not available, you will receive the out of memory error.
Solution

The following runInstaller syntax can be used to cap the SGA during installation to avoid this error.
./runInstaller n_maxMemoryInMB=4000

This will cap the SGA at 4GB.  The out of memory error should not be encountered again.  The above syntax can be run with a smaller value as well depending on your environment.  However, the recommendation would be to not specify anything less than 2GB as this could lead to memory errors post-install.
查看/shm大小:
linux:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              99G  2.8G   91G   3% /
tmpfs                 4.0G  8.0K  4.0G   1% /dev/shm
/dev/sda1            1012M   39M  922M   5% /boot
/dev/sda5             299G  3.6G  280G   2% /u01
建库时我的sga选为typcial模式自动分配oracle内存区大小,oracle会默认将sga大小设为物理内存的40%8G*40%=2048M ,sga+pga=28480M ,而我的shm=4G,所以不存在SHM is not enough 的情况。
又查另一篇article,如下:
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.1.0.7 - Release: 9.2 to 11.1
Linux x86
***Checked for relevance on 16-Nov-2010***
Symptoms
While creating a database using the Database Configuration Assistant (DBCA) or manually, the following error can occur:
    ORA-27102: out of memory
Cause
For 32 bit systems running the smp kernel, we cannot have an SGA > 1.7 GB directly.
This is because of limitation of 32 bit systems of not being able to address memory > 4GB directly by a user process.
If SGA is kept higher than 1.7 GB, it will results in ORA-27102 errors.
While invoking DBCA to create a starter database, by default it takes 40% of memory for SGA.
Hence the size can accidentally exceed 1.7 GB
Solution
The workaround is to create a new database and specify the size of SGA approximate to be 1.5 to 1.7 GB.
由此可见,32位系统最大支持4G内存,所以32位的系统不可以直接将sga设为大于1.7G,将sga调小即可。

 

四.名词解释:
SHM,/dev/shm is nothing but implementation of traditional shared memory concept. It is an efficient means of passing data between programs. One program will create a memory portion, which other processes (if permitted) can access. This will result into speeding up things on Linux.
shm / shmfs is also known as tmpfs, which is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but one which uses virtual memory instead of a persistent storage device.
If you type mount command you will see /dev/shm as a tempfs file system. Therefore, it is a file system, which keeps all files in virtual memory. Everything in tmpfs is temporary in the sense that no files will be created on your hard drive. If you unmount a tmpfs instance, everything stored therein is lost. By default almost all Linux distros configured to use /dev/shm.
即shm是一块高速缓存区,通常挂在目录tmpfs,即将内存映射在此目录下。Shm默认为物理内存的一半,可以将此看做为进入系统内存的入口设备,通过这个设备往内存中读写数据,加快频繁读写文件的I/O。Oracle的内存分配都是在shm中进行,所以如果shm大小小于sga的大小那么就有问题。
Swap:这是系统的交换内存,当系统物理内存不够时将会充当内存使用, 因此可以理解为当/dev/shm空间不够时可以占用swap的空间,如果用到Swap时,系统的性能就有可能很低了。
DBA不懂系统是不行滴~~~~~~~

转载于:https://blog.51cto.com/kankanhoney/600126

【遇到问题】ORA-27102 ORA-01034相关推荐

  1. oracle 安装ora 27102,ORA-27102 解决办法

    因为在32位操作系统上执行了如下的操作 alter system set sga_max_size=2G scope=spfile; 之后再重启数据库就会失败 报出错误: ORA-27102 Out ...

  2. oracle 安装ora 27102,Oracle ora-27102 错误

    从Oracle的关于Oracle数据库错误代码说明中看到的一个关于内存分配的说明,如下: 是不是很无语?? 前天将测试库的内存参数 sga_max_size 设置到了10个G 启动的时候报告错误:or ...

  3. ora 27102 linux,ORA-27102: out of memory Linux-x86_64 Error: 12: Cannot allocate memory

    本帖最后由 cyndi5566 于 2016-3-10 11:04 编辑 今天凌晨2点执行rman报错了,而且开发部的同事告诉我网站也打不开了,请大家帮忙看看..谢谢.. (补充:现在网站可以正常打开 ...

  4. oracle 安装ora 27102,Oracle数据库之ORA-27102: out of memory Linux-X86_64

    本文主要向大家介绍了Oracle数据库之ORA-27102: out of memory Linux-X86_64,通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助. 一.描述目前生 ...

  5. Oracle配置文件详解listener.ora,sqlnet.ora,tnames.ora

    三个配置文件 listener.ora.sqlnet.ora.tnsnames.ora,都是放在$Oracle_home\network\admin目录下. 重点:三个文件的作用和使用 sqlnet. ...

  6. oracle ora 16179,ora 06026 06023

    如果备份文件没有问题,那么问题出在 If we start a RESTORE database with a BACKUP controlfile and FlashRecovery Area is ...

  7. ORA -01034解决

    ORA - 01034 转:ORA-01034和ORA-27101的解决方法 个人小结: 输入sqlplus /nolog,回车 输入 conn / as sysdba;回车 输入 startup p ...

  8. tnsnames.ora和listener.ora文件中的几个概念

    http://www.cnblogs.com/NickyYe/archive/2011/06/21/2086135.html 其实,在我们传统的概念里,数据库是一个统称的名字,在Oracle中,你可以 ...

  9. SuSE 10 Enterprise 下 Oracle 10g 关于找不到initorcl.ora文件和控制文件问题

    Oracle无法正常启动,经过一番学习,总算解决问题,在这里做个笔记,备用! 问题如下: 使用Oracle用户登录: >sqlplus /nolog 然后, >connect /as sy ...

  10. 关于10g RAC监听设置,tnsnames.ora设置,VIP及客户端配置问题

    按照文档安装完成,但是lsnrctl status 没有发现节点2 gnd-rac01</etc>$lsnrctl status LSNRCTL for Linux: Version 10 ...

最新文章

  1. java监听组合按键_js监听组合按键
  2. 坚持c++,真正掌握c++(4)
  3. 360剑灵洪门崛起服务器维护,剑灵洪门崛起————【维护】8月1日更新维护公告...
  4. 随机样本一致性:一种用于图像分析和自动制图的模型拟合模型(3)--(P3P的迭代解)
  5. Class类和Object类及用法(二)
  6. IO流-ReadLine方法的原理 自定义BufferedReader
  7. CentOS 8源码安装Zabbix5.0
  8. java 元数据 注解_Java元数据总结:Java注释的使用和定义
  9. AC自动机-算法详解
  10. 松下弧焊机器人 调电压_松下焊接机器人-基本操作篇.pdf
  11. [OpenHarmony] [RK2206] 构建OpenHarmony编译器 (二)
  12. 网页的短信与邮箱注册
  13. 维多利亚计算机研究生,2020年惠灵顿维多利亚大学计算机信息硕士申请条件
  14. Ubuntu 开机自动开启数字键小键盘
  15. 如何使用正则表达式?
  16. android安全风险分析,Android安全检测报告,等保测评过不了,提示风险
  17. 后端优化 | VINS-Mono 论文公式推导与代码解析分讲
  18. Python 用 OpenCV 画椭圆 (5)
  19. 【MySQL】使用存储过程计算1到100的累计和
  20. DAVINCI DM3730开发攻略——开发环境篇

热门文章

  1. java创建对象 的初始化顺序
  2. Unity3D学习笔记(七):叉乘和四元素
  3. Winform Datagridview 单元格html格式化支持富文本
  4. 设计模式(2)--Singleton(单例模式)--创建型
  5. redis 事务,持久化,日志,主从,VM
  6. FactoryMethodPattern(工厂方法)
  7. WCF中安全的那些事!!!
  8. TQ2440+RealViewMDK调试LED跑马灯(成功!)
  9. 简单的 php 防注入、防跨站 函数
  10. Android APK反编译 apktool使用教程