1、无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色
在linux as5下安装oracle11g,环境都配置好了!等运行./runInstaller的时候无法弹出安装的图形界面我几乎用了网站提到所有的方法!1.xhost +ip2.su - oracle3.export DISPLAY=ip:0.0可还是出现下面错误检查临时空间: 必须大于 80 MB。 实际为 1223 MB 通过检查交换空间: 必须大于 150 MB。 实际为 3098 MB 通过检查监视器: 监视器配置至少必须显示 256 种颜色 >>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。 未通过 <<<< 未通过某些要求检查。必须先满足这些要求, 然后才能继续安装,那时将重新检查这些要求。 是否继续? (y/n) [n] y 正在重新检查安装程序要求....准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2008-02-25_06-12-03PM. 请稍候...[[email protected] oracle11g]$ Exception in thread "main" java.lang.InternalError: Can‘t connect to X11 window server using ‘192.168.1.125:0.0‘ as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at java.awt.Window.init(Window.java:270) at java.awt.Window.<init>(Window.java:318) at java.awt.Frame.<init>(Frame.java:419) at oracle.ewt.popup.PopupFrame.<init>(Unknown Source) at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source) at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:328) at oracle.sysman.oio.oioc.OiocOneClickInstaller.<clinit>(OiocOneClickInstaller.java:168)解决办法:在root下,执行“xhost +” 即可
2、ORACLE安装先决条件检查失败:
1.内核参数设置未达标
2.所需包安装不全
3.交换空间SWAP不够
4.maximum open file descriptors
下面一一解决
1. 内核参数问题
此为ORACLE安装程序所提供的参数名.#后为ORACLE期望值
OS Kernel parameter:sem opm #100
OS Kernel parameter:file-max #6815744
OS Kernel parameter:ip_local_port_range #between 9000 & 65500
OS Kernel parameter:rmem_default #262144
OS Kernel parameter:rmem_max #4194304
OS Kernel parameter:wmem_default #262144
OS Kernel parameter:wmem_max #10488576
OS Kernel parameter:aio-max-nr #1048576
修改/etc/sysctl.conf文件.添加如下语句:
kernel.sem= 250 32000 100 128
fs.file-max=6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 10488576
fs.aio-max-nr = 10488576
完成后保存退出.
sysctl – p 使修改立即生效
PS:如果ORACLE对你的内核需求和我不一样.操作如下
1.sysctl –a | grep 参数关键字 查找出系统当前设置.
2.把他复制到sysctl.conf 中去.
3.值修改为ORACLE所期望的.
4.保存退出.并使修改立即生效.
2. 所需包安装不全的问题.
缺少哪个从光盘中安装哪个.没有光盘就上网下载
我的建议是最好通过光盘安装.网上找的不一定好用.
有些包关联包很多.一一查找消耗大量时间
rpm -ivh rpm_name.rpm
对照安装完毕后所需要的包就全了
以下为我的.仅供参考.(我的是64bit)
rpm -ivh compat-libstdc -33-3.2.3-61.x86_64.rpm
rpm -ivh compat-libstdc -33-3.2.3-61.i386.rpm
rpm -ivh elfutils-libelf-devel-0.137-3.el5.x86_64.rpm
rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm
rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm elfutils-libelf-devel-0.137-3.el5.x86_64.rpm
rpm -ivh glibc-devel-2.5-42.x86_64.rpm
rpm -ivh libaio-devel-0.3.106-3.2.x86_64.rpm
rpm -ivh libaio-devel-0.3.106-3.2.i386.rpm
rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm
rpm -ivh unixODBC-2.2.11-7.1.x86_64.rpm
rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
rpm -ivh unixODBC-devel-2.2.11-7.1.x86_64.rpm
rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
rpm -ivh glibc-devel-2.5-42.x86_64.rpm
rpm -ivh glibc-devel-2.5-42.i386.rpm
3、Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
问题:oracle10g安装在windowsXP下,被建立了两个数据库实例,newjw、orcl,实例newjw现在基本不用了,一直在用orcl;
因为是多个实例,所以每次在连接数据库时都要执行:
set ORACLE_HOME=orcl
sqlplus /nolog
conn /as sysdba
shutdown immediate
startup
等这一连串的命令;(主要是set命令比一个实例时输入的多)
昨天,在set之后,进行sqlplus /nolog工作,报错:
C:\Documents and Settings\zhaohuan>sqlplus /[[email protected]]nolog[/email]
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
换个方法:
C:\Documents and Settings\zhaohuan>sqlplus [[email protected]][email protected][/email]
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
还是报错,邪了门了!网上差了一堆资料,没有人回答这个问题的。
都说是环境变量设置出问题了,我在dos下path了一下,查看环境变量,显示:
PATH=D:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Common Files\NetSarang;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
去看看oracle的安装路径,没错啊!郁闷之余我去bin目录下去找sqlplus.exe文件,执行,发现竟能连接上orcl,于是乎,我把bin的绝对路径贴到了path里,注意,这里有一点点小的区别,oracle下的bin目录是大写的BIN,环境变量里面的是小写的bin,
差别啊!换成大写,好了!
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\zhaohuan>sqlplus [[email protected]][email protected][/email]
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 4月 1 10:03:36 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
输入口令:
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn /as sysdba
已连接。
SQL>
问题解决。
解决办法:重新设置环境变量。
4、Linux 开机启动[[email protected]]变成bash-3.2#解决方法
这个是启动模式的问题,具体怎么搞 我也不知道。
我只是记录一下命令,我输入这个就可以搞定。
source .bashrc
login as: root
[email protected]*****218’s password:
Last login: Thu Jul 1 22:06:47 2010 from 110.203.60.70
-bash-3.2# copy /etc/skel/.bashrc ~
-bash: copy: command not found
-bash-3.2# cp /etc/skel/.bashrc ~
-bash-3.2# source ~/.bashrc
[[email protected]**** ~]#
export PS1=[\\[email protected]\\h\ \\W]#
5、一个共享库的问题导致sqlplus用不了了的解决办法!
[[email protected] ~]# su - oracle
[[email protected] ~]$ sqlplus / as sysdba
sqlplus: error while loading shared libraries: /oracle/ora11gR2/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
编辑/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=enforcing
如果SELINUX已经是 SELINUX=disabled,那么就不用改了,否则就把SELINUX=enforcing 注释掉,新加一行:
SELINUX=disabled
保存,退出。
如果你碰到其他类似提示:
cannot restore segment prot after reloc: Permission denied
哪应该是SELinux的问题,可以考虑把它关闭。
接下来:
[[email protected] ~]# vi /etc/selinux/config
[[email protected] ~]# su - oracle
[[email protected] ~]$ sqlplus / nolog
sqlplus: error while loading shared libraries: /oracle/ora11gR2/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
[[email protected] ~]$ chcon -t texrel_shlib_t /oracle/ora11gR2/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
[[email protected] ~]$ sqlplus / nolog
SQL*Plus: Release 11.2.0.1.0 Production on Sat Dec 12 16:43:38 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>