目录
1)AIX 建库ORA-27123: unable to attach to shared memory segment    1
2)AIX Maxuproc参数设置过小导致数据库无法升级到11.1.0.7.0    2
3)AIX 6.1没有打9216848补丁导致安装数据库失败    3
4)Linux添加RAC节点时报错OutOfMemoryError    4
5)Linux下kernel.shmmax超过3G创建数据库失败    4
1)AIX 建库ORA-27123: unable to attach to shared memory segment
 现象描述:
   OS平台:AIX
数据库版本:ORACLE 11G
  启动数据库报错
 告警信息:
startup nomount pfile='/opt/oracle/admin/med/a'
oracle11g 创建数据库
ORA-27123: unable to attach to shared memory segment
IBM AIX RISC System/6000 Error: 22: Invalid argument
Additional information: 7
Additional information: 60817416
 原因分析:
BUG:7337477 - ORA-27123 DURING STARTUP NOMOUNT IN 11G. FAILURE AT SHMAT().
 处理过程:
1.数据库启动报错
startup nomount pfile='/opt/oracle/admin/med/a'
ORA-27123: unable to attach to shared memory segment
IBM AIX RISC System/6000 Error: 22: Invalid argument
Additional information: 7
Additional information: 60817416
2.检查操作系统配置没有问题
3.truss结果显示在shmat系统调用时发生了EINVAL错误
struss -o /tmp struss.log sqlplus / as sysdba
startup nomount pfile='/opt/oracle/admin/med/a'
exit
struss log:
180506: shmget(184********640269152, 4764737536, 9648) = 1048582
180506: vmgetinfo(0x0FFFFFFFFFFF5F90, 102, 512) = 2
180506: shmget(18446744073640269153, 0, 0) Err#2 ENOENT
180506: shmget(18446744073640269154, 0, 0) Err#2 ENOENT
180506: shmget(18446744073640269155, 0, 0) Err#2 ENOENT
180506: shmat(1048582, 0x0700000000000000, 0) Err#22 EINVAL
180506: shmctl(1048582, 0, 0x0000000000000000) = 0
180506: shmget(0, 4764729344, 9648) = 2097158
180506: vmgetinfo(0x0FFFFFFFFFFF6240, 102, 512) = 2
3.查看metalink发现AIX在oracle 11g有一个BUG
BUG:7337477 - ORA-27123 DURING STARTUP NOMOUNT IN 11G. FAILURE AT SHMAT().
触发条件是TZ环境变量设置格式不正确,现场设置为
echo $TZ
Asia/Dhaka
改为
TZ=GMT+6后问题解决
 建议与总结:
对于AIX上安装oracle 11g时,时区设置用标准GMT格式。
 附件:
 
2)AIX Maxuproc参数设置过小导致数据库无法升级到11.1.0.7.0
 现象描述:
   OS平台:AIX 5.3
数据库版本:ORACLE 11.1G HA
升级11.1.0.7.0 runInstaller时异常
 告警信息:
lsnls11 -lnls11 -lcore11 -lnls11 -lld -lm `cat /home/oracle/db/lib32/sysliblist` -lm -lpls11 -lrt -lsql11 `if [ "\`/usr/bin/uname -v\`" = "4" ]; \
then echo "-bI:/home/oracle/db/p"; fi;`
ld: 0711-715 ERROR: File /home/oracle/db/lib32/stubs//librt.so cannot be processed.
The file must be an object file, an import file, or an archive.
make: The error code from the last command is 8.
 原因分析:
Maxuproc参数设置太小,导致安装11.1.0.6.0时就有问题
 处理过程:
1.多次尝试runInstaller均不成功,报错
lsnls11 -lnls11 -lcore11 -lnls11 -lld -lm `cat /home/oracle/db/lib32/sysliblist` -lm -lpls11 -lrt -lsql11 `if [ "\`/usr/bin/uname -v\`" = "4" ]; \
then echo "-bI:/home/oracle/db/p"; fi;`
ld: 0711-715 ERROR: File /home/oracle/db/lib32/stubs//librt.so cannot be processed.
The file must be an object file, an import file, or an archive.
make: The error code from the last command is 8.
2.更换oracle安装介质以后,仍然不成功
3.在备机上卸载oracle,重新安装oracle 11.1.0.6.0也报同样错误
4.检查参数设置后发现maxuproc=2048,这个参数是允许用户处理的最大进程数,查看安装指南发现这个参数应该设置为16384
查看
/etc/lsattr -E -l sys0 -a maxuproc
5.修改为16384以后重新安装11.1.0.6.0,并成功升级到11.1.0.7.0
 建议与总结:
1)安装前一定要检查参数是否配置正确
2)安装完一定要检查安装日志是否有错误,不要给后续的升级埋下隐患
 附件:
 
3)AIX 6.1没有打9216848补丁导致安装数据库失败
 现象描述:
   OS平台:AIX 6.1
数据库版本:ORACLE 11G RAC
安装数据库时报错javacore: Processed Dump Event "gpf"
  
 告警信息:
Java Dump written to /tmp/javacore.20111015.
JVMDUMP013I Processed Dump Event "gpf", detail ""
 原因分析:
没有安装9216848补丁
 处理过程:
1.安装数据库时报错
javacore: Processed Dump Event "gpf"
Java Dump written to /tmp/javacore.20111015.
JVMDUMP013I Processed Dump Event "gpf", detail ""
2.检查后发现AIX 6.1没有先打9216848,打9216848补丁后安装成功
 建议与总结:
AIX 6.1安装oracle 11g时一定要先安装9216848
 附件:
 
4)Linux添加RAC节点时报错OutOfMemoryError
 现象描述:
   OS平台:Linux 2.6.16.46
数据库版本:ORACLE 11.2
添加RAC节点报错
 告警信息:
Exception java.lang.OutOfMemoryError: Java heap space occurred..
java.lang.OutOfMemoryError: Java heap space
 原因分析:
Java heap太小
 处理过程:
1.查看安装出错日志
Exception java.lang.OutOfMemoryError: Java heap space occurred..
java.lang.OutOfMemoryError: Java heap space
2.查看metalink,到解决方案
increase JRE_MEMORY_OPTIONS=" -mx1024m" or greater value in the oraparam.ini located in:  $GRID_HOME/oui/
3.修改oraparam.ini文件以后添加节点成功
 建议与总结:
报java heap out of memory 错误时修改JRE_MEMORY_OPTIONS
 附件:
 
5)Linux下kernel.shmmax超过3G创建数据库失败
 现象描述:
   OS平台:Suse 10
数据库版本:ORACLE 11G
启动数据库时报错
ORA-27103: internal error
Linux-x86_64 Error: 11: Resource temporarily unavailable
 告警信息:
ORA-27103: internal error
Linux-x86_64 Error: 11: Resource temporarily unavailable
Additional information: -1
Additional information: 1
 原因分析:
Bug 7272646 - Linux-x86_64: ORA-27103 on startup when MEMORY_TARGET > 3g [ID 7272646.8]
 处理过程:
1.启动数据库报错
[bmp_db1]#su - oracle
ORA-27103: internal error
Linux-x86_64 Error: 11: Resource temporarily unavailable
Additional information: -1
Additional information: 1
2.检查kernel.shmmax参数发现大于3G,命中了BUG
Bug 7272646 - Linux-x86_64: ORA-27103 on startup when MEMORY_TARGET > 3g
3.打补丁解决问题
 建议与总结:
对于linux平台安装oracle 11g,建议打上7272646补丁。
 附件:
 

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。