论坛风格切换
您好,欢迎光临本站!   登录 注册新用户
  • 4232阅读
  • 2回复

[oracle]史上最全的安装Oracle时遇到的错误解决方法汇总----第一季 [复制链接]

上一主题 下一主题
 
发帖
6
黑豆
26
威望
26
贡献值
0
交易币
0
红豆
0
只看楼主 倒序阅读 0 发表于: 2016-06-20

在安装Oracle的时候,由于安装Oracle需要做一系列的前期准备,以及Oracle安装过程需要做很多操作,初学者第一次安装Oracle,尤其是在Linux系统下安装,经常会遇到一些错误,下面是我总结的一些经常会遇到的错误,希望对你有所帮助。


1、安装Oracle时,在运行runInstaller进行图形安装报如下错误:
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<


解决方法:这个是因为Oracle 10g及以上版本只能安装在redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2这些版本上,你如果是在RedHat 5、6、7及对应版本上,runInstaller在检查操作系统的时候会报错,这个我可以通过修改/etc/redhat-release文件,把里面的版本信息修改了已达到“骗过”runInstaller检查的目的

把里面的6.4改成4.4


2、运行runInstaller进行图形安装报如下错误:
No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.


解决方法:此错误是因为安装Oracle的用户(一般是oracle用户),没有权限调用图形界面,只需退出oracle用户,在root下执行xhost +命令,然后再进入oracle用户重新运行./runInstaller即可
[[email=root@wyzc]root@wyzc[/email] ~]# xhost +
[[email=root@wyzc]root@wyzc[/email] ~]# su - oracle

3、在使用图形安装Oracle的时候出现乱码:


解决方法:只需使用安装Oracle的用户运行以下命令即可:
export LANG=C






4、安装Oracle的过程中,检查发现缺少pdksh包,如下:


解决方法:这是因为你用的是RedHat,在RedHat中是ksh包,不是pdksh包,只要你确定你安装了ksh包,这个错误就可以忽略


附赠几个安装Grid过程中遇到的错误:

1、检查安装环境是否支持安装Grid
[[email=grid@gusha]grid@gusha[/email] grid]$ ./runcluvfy.sh stage -pre crsinst -n `hostname` -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "gusha"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  gusha                                 yes                    
Result: Node reachability check passed from node "gusha"

Checking user equivalence...

Check: User equivalence for user "grid"
  Node Name                             Status                  
  ------------------------------------  ------------------------
  gusha                                 failed                  
Result: PRVF-4007 : User equivalence check failed for user "grid"

ERROR:
User equivalence unavailable on all the specified nodes
Verification cannot proceed


Pre-check for cluster services setup was unsuccessful on all the nodes.
grid用户没有做等效性
[[email=grid@gusha]grid@gusha[/email] grid]$ ssh-keygen
[[email=grid@gusha]grid@gusha[/email] grid]$ cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
[[email=grid@gusha]grid@gusha[/email] grid]$ ssh gusha date
[[email=grid@gusha]grid@gusha[/email] grid]$ ssh gusha.wyzc.com date
[[email=grid@gusha]grid@gusha[/email] grid]$ ./runcluvfy.sh stage -pre crsinst -n `hostname` -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "gusha"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  gusha                                 yes                    
Result: Node reachability check passed from node "gusha"


Checking user equivalence...
单机版的DNS可以不通过
如果配置了DNS可以在[[email=root@gusha]root@gusha[/email] ~]# vi /etc/resolv.conf里把
search项去掉不让其寻找DNS,这样再检查就通过了

在prerequisite Check的时候出错
[[email=root@gusha]root@gusha[/email] ~]# vi /etc/ntp.conf
[[email=root@gusha]root@gusha[/email] ~]# /etc/init.d/ntpd
ntpd     ntpdate  
[[email=root@gusha]root@gusha[/email] ~]# /etc/init.d/ntpd restart

[[email=root@gusha]root@gusha[/email] ~]# service ntpd status
ntpd (pid  38498) is running...
[[email=root@gusha]root@gusha[/email] ~]# ntpq -pn
No association ID's returned



2、装好GI然后重启电脑,在grid用户中输入以下命令查看CRS是否启动:
[[email=grid@localhost]grid@localhost[/email] ~]$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon

报上名的错误只需在root下运行以下命令,大概5分钟后CTRL+C取消即可
[[email=root@localhost]root@localhost[/email] Desktop]# /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null

如果不想每次开机都报上面的错误,只需把/etc/rc.local里加上这样一行,/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &
发帖
6
黑豆
26
威望
26
贡献值
0
交易币
0
红豆
0
只看该作者 2 发表于: 2016-07-01
不用谢,有说的不对的地方,请多多包含
快速回复
限100 字节
 
上一个 下一个