最近在安装Oracle11.2.0.2.0 for RedHat5.4_32bit,出现了一些问题,总结如下。 一、数据库软件安装好后,用dbca命令建库。 1、报错如下: [oracle@mydb]$dbca Oracle Net Services Configuration: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xa78b13a8, pid=5118, tid=3086896789 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode) # Problematic frame: # C [libnnz11.so+0x3c3a8] # # An error report file with more information is saved as hs_err_pid5118.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp 2、解决方法: (1)下载p8670579_112010_LINUX.zip补丁包,上传到Liux服务器。 (2)确认是否配置了ORACLE_HOME [oracle@mydb]$ echo $ORACLE_HOME /u01/app/oracle/product/11.2.0/db_1 (3)检查perl的版本,需要5.00503以上的版本 [oracle@mydb]$perl -v This is perl, v5.8.8 built for i386-linux-thread-multi (4)Verify the OUI Inventory. $opatch lsinventory (5)解压并打补丁 [oracle@mydb]$unzip p8670579_112010_LINUX.zip [oracle@mydb]$cd 8670579 [oracle@mydb]$$ORACLE_HOME/OPatch/opatch apply -invPtrLoc $ORACLE_HOME/oraInst.loc 3、dbca正常建库 二、很多Oracle的命令不能执行。 1、如执行rman命令报错如下: [oracle@mydb]$ rman target / rman: error while loading shared libraries: /u01/app/oracle/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 2、如执行lsnrctl命令报错如下: [oracle@mydb]$ lsnrctl status lsnrctl: error while loading shared libraries: /u01/app/oracle/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 3、什么原因导致这些错误呢?原凶就是在安装LINUX时开启了SELinux,记得关闭SELinux,如下图。 4、解决方法: (1)查看selinux的状态为Enforcing模式(setenforce 1设置SELinux 成为Enforcing模式,即开启SElinux) [root@mydb]# getenforce Enforcing (2)setenforce 0 设置SELinux 成为permissive模式(即临时关闭SElinux) [root@mydb]# setenforce 0 (3)查看selinux的状态为Permissive模式(setenforce 0设置SELinux 成为Permissive模式) [root@mydb]# getenforce Permissive 5、关闭SElinux,修改Selinux的配置文件 [root@mydb bin]# vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted 三、oracle11Gr2在RHEL6 X64上执行gui安装报错 前些天某学生在安装oracle时碰到一个问题,报错信息如下 # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00007f5bb0bced70, pid=2732, tid=140031049791248 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode) # Problematic frame: # C [ld-linux-x86-64.so.2+0x14d70] # # An error report file with more information is saved as hs_err_pid2732.log # # If you would like to submit a bug report, please visit: 看报错信息 很古怪 检查报错的动态库文件ld-linux-x86-64.so.2 属于glibc 应该不会是这个动态库文件出问题。 答案是 export LD_BIND_NOW=1 这个环境变量的作用是什么的 于是乎又新一轮的百度 得到答案如下 设置环境变量LD_BIND_NOW=1让连接器在程序执行前把所有的函数地址都连接好 看起来笔者的思路没有偏离太多 最后的解决方案 在oracle用户的家目录下的.bash_profile 当中添加一个全局变量: export LD_BIND_NOW=1 即可解决在使用GUI安装oracle文件时候图形化无法出来的问题
最近在安装Oracle11.2.0.2.0 for RedHat5.4_32bit,出现了一些问题,总结如下。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Markdown学习之路
CFishHome
2019-02-22 22:19:08
Kafka学习之路 (五)Kafka在zookeeper中的存储
小左先森
2019-02-22 14:40:31
我的python学习之路
a13191426
2019-01-11 13:32:43
找图不求人!10个以图搜图的识图网站推荐
己立
2018-12-20 13:37:08
关闭 WordPress 自动更新及 WP 降级方法
己立
2018-12-16 13:40:25
【双12促销】搬瓦工 CN2 DC8 $39/年,1G内存/20G硬盘/1T流量
己立
2018-12-12 13:33:51
教你使用 Excel 快速更换照片背景底色
己立
2018-12-09 13:32:06
磁力播:又一款磁力链接/种子在线播放器
己立
2018-12-08 13:33:23
Kindle 如何更换自定义字体教程
己立
2018-12-01 13:32:36
简悦:一键开启沉浸式阅读体验
己立
2018-12-01 13:32:36
分享《机器学习之路》+PDF+阿布
TensorFlow_tf
2018-11-30 13:42:04
【搬瓦工网一促销】$29/年,1G内存/40G硬盘/1T流量
己立
2018-11-28 14:11:02
WordPress 搬家方法总结:迁移主机和更换域名
己立
2018-11-26 07:06:53
HFS - 超好用的本地文件分享利器,快速从电脑传文件到手机等设备
己立
2018-11-19 07:09:51
搬瓦工双十一促销套餐依然有货,CN2,2G内存,$31/年
己立
2018-11-15 07:06:24
24小時熱門文章