Oracle10g安装中遇到的错误及解决办法

Linux环境:

LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
Release: 4
Codename: NahantUpdate7

Oracle安装版本:
10201_database_linux32.zip

出现的错误及解决办法:

[[email protected] database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-01_11-31-38AM. Please wait ...[[email protected] database]$ Xlib: connection to ":0.0" refused by server
Xlib: 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.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at java.awt.windows.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        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:378)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)
 

出错信息变了,是没有图形显示的权限.

解决办法:
用root 用户执行xhost

[[email protected] ~]# xhost +

再用oracle用户执行$./runInstaller
http://blog.sina.com.cn/s/blog_7643a1bf0100uaoy.html

安装界面不显示汉字   
可能要改字符集或者安装字体,很麻烦,所以用
export LANG=en_US.UTF-8
英文界面安装

Checking operating system requirements ...
Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2
Actual Result: redhat-4
Check complete. The overall result of this check is: Passed
=======================================================================

Checking operating system package requirements ...
Checking for make-3.79; found make-1:3.80-7.EL4.    Passed
Checking for binutils-2.14; found binutils-2.15.92.0.2-25.    Passed
Checking for gcc-3.2; found gcc-3.4.6-10.    Passed
Checking for libaio-0.3.96; found libaio-0.3.105-2.    Passed
Check complete. The overall result of this check is: Passed
=======================================================================

Checking kernel parameters
Checking for semmsl=250; found semmsl=250.    Passed
Checking for semmns=32000; found semmns=32000.    Passed
Checking for semopm=100; found semopm=32.    Failed <<<<
Checking for semmni=128; found semmni=128.    Passed
Checking for shmmax=536870912; found shmmax=33554432.    Failed <<<<
Checking for shmmni=4096; found shmmni=4096.    Passed
Checking for shmall=2097152; found shmall=2097152.    Passed
Checking for file-max=65536; found file-max=180095.    Passed
Checking for VERSION=2.6.9; found VERSION=2.6.9-78.ELsmp.    Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=32768 - 61000.    Failed <<<<
Checking for rmem_default=262144; found rmem_default=110592.    Failed <<<<
Checking for rmem_max=262144; found rmem_max=131071.    Failed <<<<
Checking for wmem_default=262144; found wmem_default=110592.    Failed <<<<
Checking for wmem_max=262144; found wmem_max=131071.    Failed <<<<
Check complete. The overall result of this check is: Failed <<<<
Problem: The kernel parameters do not meet the minimum requirements (see above).
Recommendation: Perform operating system specific instructions to update the kernel parameters.
=======================================================================

解决办法:

root,在/etc/sysctl.conf中,更改内核参数。

让更改生效,重启或执行命令sysctl –p

更改后相关参数:

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range =1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
=======================================================================

Checking available swap space requirements ...
Expected result: 2652MB
Actual Result: 1983MB
Check complete. The overall result of this check is: Failed <<<<
Problem: The system does not have the required swap space.
Recommendation: Make more swap space available to perform the install.
=======================================================================

解决办法:

增大swap大小。
Expected result:2652MB
Actual Result:1983MB

增大1024M即可满足要求

具体操作:

#此时需要改变交换区的大小

#注:交换区大小建议调整为实际内存大小的2倍

(第一步:使用free -m查看目前swap的交换空间情况,1019M,也可以使用grep SwapTotal /proc/meminfo查看)

[[email protected] swapimage]# free -m

total used free shared buffers cached

Mem: 1010 995 15 0 1 847

-/+ buffers/cache: 145 865

Swap: 1019 0 1019

(用df –h查看磁盘空间的使用情况)

[[email protected] ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 3.8G 3.1G 572M 85% /

/dev/sda3 15G 1.7G 13G 13% /home

/dev/sda1 46M 11M 33M 25% /boot

tmpfs 506M 0 506M 0% /dev/shm

(第二步:确保系统中有足够的空间用来做swap交换空间,经过df –h查看,只有/home下面还有13G的空间是比较大的,所以我这边准备在/home/swapimage开辟swap交换区)

[[email protected] home]# mkdir swapimage(在/home目录下创建swapimage文件夹)

[[email protected] home]# cd swapimage/ (进入swapimage文件夹)

[[email protected] swapimage]# dd if=/dev/zero f=/home/swapimage/swap bs=1024count=1024000(添加交换文件并设置大小为1G)

1024000+0 records in

1024000+0 records out

1048576000 bytes (1.0 GB) copied, 16.2007 seconds, 64.7 MB/s

(再次用df –h查看磁盘空间的使用情况,/home的可以大小已经由13G变成12G了,也就是说通过上面的dd操作,我们已经成功的分配了1G的swap交换空间)

[[email protected] swapimage]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 3.8G 3.1G 572M 85% /

/dev/sda3 15G 2.7G 12G 20% /home

/dev/sda1 46M 11M 33M 25% /boot

tmpfs 506M 0 506M 0% /dev/shm

(第三步:使用mkswap命令,创建(或设置)交换空间)

[[email protected] swapimage]# mkswap /home/swapimage/swap

Setting up swapspace version 1, size = 1048571 kB

(第四步:使用swapon命令,启用新增的1G交换空间)

[[email protected] swapimage]# swapon /home/swapimage/swap

(使用free –m确认新增的swap交换空间已生效,2019)

[[email protected] swapimage]# free -m

total used free shared buffers cached

Mem: 1010 997 13 0 2 848

-/+ buffers/cache: 146 864

Swap: 2019 0 2019

(第五步:修改/etc/fstab文件,使新增的1G交换空间在系统重启后自动生效)

[[email protected] swapimage]# vi /etc/fstab

/home/swapimage/swap swap swap defaults 0 0

========================================================

http://blog.sina.com.cn/s/blog_770799310101ecbd.html

Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.
=======================================================================

(解决方案:切换到root用户,进行静态IP地址的配置

[[email protected] database]$ vi /etc/sysconfig/network-scripts/ifcfg-eth0

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE=eth0

#BOOTPROTO=dhcp

BOOTPROTO=static

IPADDR=192.168.1.289

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

#HWADDR=00:0c:29:c9:31:a9

ONBOOT=yes

TYPE=Ethernet

(重启使IP地址生效)

方法1:

/sbin/ifdown eth0

/sbin/ifup eth0

方法2:

service network restart

(设置好静态IP地址后retry,还是Not executed,搜索到资料讲需要修改/etc/hosts文件,将127.0.0.1修改为192.168.1.289(也就是设置的静态IP地址))

[[email protected] database]$ su root

Password:

[[email protected] database]# vi /etc/hosts

(修改后retry检查,通过passed)

http://blog.sina.com.cn/s/blog_770799310101ecbd.html

如果 固定IP是已经配置好的,仍然提示DHCP的问题,可能是/etc/hosts文件配置错误。

需要检查/etc/hosts文件,确认hosts文件中的本地地址配置与实际是否符合。
http://www.bitscn.com/pdb/oracle/200904/160403.html

时间: 2024-10-25 21:46:44

Oracle10g安装中遇到的错误及解决办法的相关文章

GDI+中发生一般性错误的解决办法(转载)

今天在开发.net引用程序中,需要System.Drawing.Image.Save 创建图片,debug的时候程序一切正常,可是发布到IIS后缺提示出现"GDI+中发生一般性错误"的异常.于是开始"摆渡",并寻找到了解决办法:赋予 NETWORK SERVICE 帐户以写权限. 以下为晚上寻找到的资料: 在开发.NET应用中,使用 System.Drawing.Image.Save 方法而导致"GDI+ 中发生一般性错误"的发生,通常有以下三种

使用vMware workstation 10安装操作系统显示内部错误的解决办法

在打开vMware workstation 10以后,准备安装Solaris 10操作系统,但是当点击"创建新的虚拟机"的时候,弹出一个对话框,显示"内部错误". 百度了一下,说去程序和功能里面找到vMware workstation 10的安装程序,里面有个修复,修复它既可.可是我试了几遍,都未能成功. 后来才发现,服务项里的vMware有启动状态,有停止状态,把停止状态启动它就OK了. 重新启动vMware workstation 10,正常运行. 使用vMwa

关于Excel文件导入到Sqlserver2008中出现截断错误的解决办法

出现错误的可能原因: 1.数据库字段Varchar长度不够: 2.不能用Text类型: 3.数据中可能存在换行符: 4.数据项文本过长,超过4000: 5.前8行的最大长度不够大,后面有超过的. 解决办法: 1.修改Varchar长度为足够长: 2.替换掉换行符(可手工输入一个换行符,复制到替换文本框中,Office中可按住Alt键,从小键盘输入10,再松开Alt键): 3.第一行中记录设足够长,导入后再替换: 4.把Excel文件存为2007格式,可解决导入后很多数据项为NULL的问题: 5.

Android studio 安装中遇到一些问题的解决办法,分享一下

从eclipse转到android studio也是很无耐,刚开始总是会遇到很多难题,但是都不要轻言放弃. 以下是我遇到的问题,并通过搜索引擎找到的解决办法,善用工具,善用头脑,勿为伸手之人. Android Studio需要JDK 1.7+才可以安装,不过这个时候也要升级到1.7了. 安装完成之后第一次启动的时候会首先显示Fetching Android SDK component information,等一会儿在Setup Wizard - Downloading Components界面

使用python中出现的错误及解决办法

[问题1]在编译安装完Python后,不能正常使用yum,使用yum出现以下错误 [[email protected] bin]# yum  File "/usr/bin/yum", line 30    except KeyboardInterrupt, e:                            ^SyntaxError: invalid syntax [解决办法] 将/usr/bin/yum文件的第一行中的解释器转换回python-2.7 [[email prot

mysql中遇到1366错误的解决办法

最近给学校做一个项目,数据库要用到oracle,如果在windows下面的,安装oracle是比较简单的,但是很不巧,在我接项目前,刚刚换了台Mac,所以这回问题大了,oracle现在最新的版本还不支持Mac os系统,目前10g是支持Mac os的,但是10g官网的资源已经撤掉了,但是你可以通过其他渠道拿到Mac版的10g的oracle安装包.说的有些远了,还是回到我们的话题.由于还没有在我的Mac系统上安装好oracle,所以为了不拖慢项目的进度,所以我就先用mysql来应急下.但是当我把m

JSONKit中关于‘isa’错误的解决办法

一.通过Pods添加的jsonKit,编译后会出现20个关于'isa'指针的错误,原因是这种isa的方法已经被废弃了. 解决的方法有两种: (1)定位到出错的jsonKit代码中,根据系统提示fix修复,或者是手动修改成object_setClass的形式,这种比较麻烦,需要一个个的修改. (2)点击项目中的Pods工程,在左边的TARGETS中选择JSONKit,在Build Settings中搜索 Direct usage of 'isa'  ,将默认的YES改为NO,重新编译即可. 二.手

Visual Studio中error 2857错误的解决办法

使用CMake生成VS工程文件时,通过VS添加预处理文件后,编译工程报error 2857的错误,如下: Z:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector(214): error C2857: 在源文件中没有找到用 /YcE:/X/Y/abc.h命令行选项指定的"#include"语句 从错误中看出,命令行使用了绝对路径来指定预处理头文件的位置,VS也傻乎乎的只认#include "E:

系统从很老的V12.4.X升级到V15.0.4中个别报表构建中出现的错误及解决办法

今天在一个二次开发用户中发现,系统是从比较老的版本升级上来的.用户想修改一个报表的时候,提示有字段已经在datatable中存在. 经过排查:该报表所用到的业务表,在内容构建和预览的时候都正常.考虑到新版本增加了业务表的字段设置,所以专门点开这个业务表的"字段设置"查看,发现有个别字段中的字段名是空值. 把空值加上,保存后.再到报表设计中去查看,即可正常设计和使用该报表.目前版本可以按照这个进行调整.后续我们也将检查和测试. 原文地址:http://bbs.delit.cn/threa