当前位置: 首页 > 编程日记 > 正文

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

linux解决xhost: unable to open display
实用技巧:在Linux下设置xhost方法步骤

第一步:用root登陆linux,启动vnc服务;
第二步:根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;
第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确。

linux下的操作日志如下:
[root@localhost ~]# vncserver
New 'localhost:1 (root)' desktop is localhost:1
Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost:1.log
[root@localhost ~]# export DISPLAY=localhost:1
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host
在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。

http://blog.csdn.net/kai27ks/article/details/5876316

遇到类似问题,常用的解决方法是在root用户下:
  [root] export DISPLAY=:0 或export DISPLAY=192.168.1.1:0.0或export DISPLAY=localhost:10.0
然后:
   [root] xhost +
通常这样做就可以了,但有时候还是不行,那就要检查X11所需的依赖包是否安装完整,以下3个包必须有。
   [root] rpm -qa |grep X11
     libX11-common-1.5.0-4.el6.noarch
     libX11-1.5.0-4.el6.x86_64
     libX11-devel-1.5.0-4.el6.x86_64

http://blog.chinaunix.net/uid-20305622-id-4073633.html

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

出现的错误及解决办法:

[oracle@swt 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-2PassedAll installer requirements met.Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-01_11-31-38AM. Please wait ...[oracle@swt database]$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specifiedException 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

[root@swt ~]# 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 = 1kernel.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查看)

[root@localhost 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查看磁盘空间的使用情况)

[root@localhost ~]# 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交换区)

[root@localhost home]# mkdir swapimage(在/home目录下创建swapimage文件夹)

[root@localhost home]# cd swapimage/ (进入swapimage文件夹)

[root@localhost 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交换空间)

[root@localhost 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命令,创建(或设置)交换空间)

[root@localhost swapimage]# mkswap /home/swapimage/swap

Setting up swapspace version 1, size = 1048571 kB

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

[root@localhost swapimage]# swapon /home/swapimage/swap

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

[root@localhost 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交换空间在系统重启后自动生效)

[root@localhost 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地址的配置

[oracle@localhost 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地址))

[oracle@localhost database]$ su root

Password:

[root@localhost 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



转载于:https://www.cnblogs.com/softidea/p/4036692.html

相关文章:

Result Maps collection already contains value for

启动的时候报错&#xff0c;junit报错一样的 Result Maps collection already contains value for mybatis 查了一下应该是 ***mapper.java和 ***mapper.xml解析有问题了&#xff0c; 不能注入了。 按照***mapper.java 里的方法一个一个到***mapper.xml去查 id 结果发现有一个…

创建三维建筑可视化和虚拟现实的最快和最简单的方法

创建三维建筑可视化和虚拟现实的最快和最简单的方法 时长3小时12分 1280X720 Mkv 语言&#xff1a;英语中文字幕&#xff08;根据原英文字幕机译更准确&#xff09;原英文字幕 大小解压后&#xff1a;2.86G 共28小节课程 标题&#xff1a;Skillshare–TWINMOTION实时3d架构可…

刚过国家线计算机考研报哪个好,考研估分刚过了去年国家线,今年上岸还有希望吗?有!...

随着2020年考研成绩的陆续发布&#xff0c;考生们的神经也愈发紧张起来。有很多的同学其实在成绩发布之前&#xff0c;就已经通过网上的答案对自己整体的考试分数有了个大概的估计&#xff0c;于是很多同学乃至是学生家长就想问了&#xff0c;如果估分刚刚过了去年的国家线&…

2022-2028年中国数码摄像机市场投资分析及前景预测报告

【报告类型】产业研究 【报告价格】4500起 【出版时间】即时更新&#xff08;交付时间约3个工作日&#xff09; 【发布机构】智研瞻产业研究院 【报告格式】PDF版 本报告介绍了中国数码摄像机行业市场行业相关概述、中国数码摄像机行业市场行业运行环境、分析了中国数码摄…

Android中怎么使图片显示

android中经常到利用图片&#xff0c;利用图片时我们都是把图片放在drawable-xxx目录下&#xff0c;因为这里就是存储图片的地方&#xff0c;xxx不用理他&#xff0c;就是关于分辨率而已。 楼主在学习android的时候一直尝试把图片在程序中显示&#xff0c;但是一直不成功&#…

webElement.text()获取到内容为空

使用webElement.text()方法获取字符串时&#xff0c;有时候会获取失败--获取到的内容为空 使用 webElement.getAttribute("attributeName")&#xff0c;通过textContent, innerText, innerHTML等属性获取 public String getText(String string){WebDriverWait wait …

【blender教程】从头到尾全流程创建一辆吉普车

【blender教程】从头到尾全流程创建一辆吉普车 持续时间41小时 30分 包括项目文件 1280X720 MP4 语言&#xff1a;英语中文字幕&#xff08;根据原英文字幕机译更准确&#xff09;原英文字幕 大小解压后&#xff1a;34.7G 云桥网络 平台huo取 教程 blender:从头到尾打造吉普…

Hat’s Words(字典树)

Hat’s Words Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11314 Accepted Submission(s): 4041 Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two…

遥感计算机分类的基本原理,遥感数字图像的计算机分类

《遥感数字图像的计算机分类》由会员分享&#xff0c;可在线阅读&#xff0c;更多相关《遥感数字图像的计算机分类(3页珍藏版)》请在人人文库网上搜索。1、遥感数字图像的计算机分类一、实验类型综合型二、实验目的与要求1、实验目的掌握非监督分类的过程和方法。2、实验要求(1…

Java垃圾回收之新生代垃圾收集器

分代收集算法 Stop-the-World&#xff08;停止一切&#xff09; JVM由于要执行GC而停止了应用程序的执行任何一种GC算法中都会发生多数GC优化通过减少Stop-the-world发生时间来提高程序性能 Safepoint &#xff08;安全点&#xff09; 分析过程中对象引用关系不会发生变化的…

用x86的模拟器内核记得安装intel的haxm

Android 模拟器一直以运行速度慢著称&#xff0c; 本文介绍使用 Intel HAXM 技术为 Android 模拟器加速&#xff0c; 使模拟器运行度媲美真机&#xff0c; 彻底解决模拟器运行慢的问题。 Intel HAXM (Hardware Accelerated Execution Manager) 使用基于 Intel(R) Virtualizatio…

我焦躁,并不只是心里承受,还是因为我上面担着。

由于工作任务紧、重&#xff0c;最近很焦躁&#xff0c;终于在今天爆发了。在这次爆发中&#xff0c;隐约的感到并不只是自己的“心理承压”能力的问题。 我爆发后&#xff0c;发现虽然任务如此紧张&#xff0c;但是组长只是“紧张”&#xff0c;工作还是“有条有序”的进行着。…

ue4商城资源 Car Configurator Template 汽车配置器模板

ue4商城资源 Car Configurator Template 汽车配置器模板 ue4商城资源 Car Configurator Template 汽车配置器模板 Unreal Engine虚幻游戏引擎素材资源 Unreal Engine Marketplace –Car Configurator Template 4.25 汽车配置器模板 素材大小解压后&#xff1a;0.99G 云桥网络…

Sublime Text 3 常用插件以及安装方法(转)

http://www.cnsecer.com/460.html 安装Sublime Text 3插件的方法&#xff1a; 朋友们&#xff0c;小站活着不容易&#xff0c;全靠广告费养着了&#xff0c;如果本文对你有帮助。麻烦动下手点下页面的广告吧&#xff0c;谢谢&#xff01; 直接安装 安装Sublime text 2插件很方便…

现代计算机基本工作原理,现代计算机的基本工作原理是

现代计算机的基本工作原理是存储程序控制。“计算机”一般是指“电子计算机”&#xff0c;电子计算机(electronic computer)通称电脑&#xff0c;是现代一种用于高速计算的电子计算机器。可以进行数值计算、逻辑计算&#xff0c;具有存储记忆功能&#xff0c;能够按照程序运行&…

Java垃圾回收之老年代垃圾收集器

1、Serial Old 收集器&#xff08;-XX: UseSerialOldGC, 标记-整理算法&#xff09; 单线程收集&#xff0c;进行垃圾收集时&#xff0c;必须暂停所有工作线程简单高效&#xff0c;Client模式下默认的老年代收集器2、Parallel Od收集器(-XX: UseParallelOldGC &#xff0c;标…

linux中awk下 gsub函数用法

gsub函数则使得在所有正则表达式被匹配的时候都发生替换gsub(regular expression, subsitution string, target string);简称 gsub&#xff08;r,s,t)一、遇到的问题&#xff1a;问题&#xff1a;echo "a b c 2011-11-22 a:d" | awk $4gsub(/-/,"",$4)为啥…

Maya2022基础入门学习教程

Maya2022基础入门学习教程 Maya 2022 Essential Training Maya2022基础入门学习教程 Maya 2022 Essential Training MP4 |视频:h264&#xff0c;1280x720 |音频:AAC&#xff0c;44.1 KHz&#xff0c;2 Ch 技能水平:初级|流派:电子学习|语言:英语中文字幕&#xff08;机译&…

简单几何(线段覆盖) POJ 3347 Kadj Squares

题目传送门 题意&#xff1a;告诉每个矩形的边长&#xff0c;它们是紧贴着的&#xff0c;问从上往下看&#xff0c;有几个还能看到。 分析&#xff1a;用网上猥琐的方法&#xff0c;将边长看成左端点到中心的距离&#xff0c;这样可以避免精度问题。然后先求出每个矩形的左右端…

服务器自动post,jquery ajax $.post自动变GET的解决方式(for CI)

环境&#xff1a;CI 3.x windows 2008 phpstudy jquery 1.7.2 apache以往一直用lnmp&#xff0c;这次用windowsapache&#xff0c;遇到了一些问题&#xff0c;记录下来。将本地的文件上传到服务器上以后&#xff0c;有一个将大段html提交到服务器处理的代码&#xff0c;是用…

2022-2028年中国数据中台行业深度调研及投资前景预测报告(全卷)

【报告类型】产业研究 【报告价格】4500起 【出版时间】即时更新&#xff08;交付时间约3个工作日&#xff09; 【发布机构】智研瞻产业研究院 【报告格式】PDF版 本报告介绍了中国数据中台行业市场行业相关概述、中国数据中台行业市场行业运行环境、分析了中国数据中台行…

为什么一定要杀掉病毒?---帮一位老师解决MyDocument.exe优盘文件夹图标病毒问题...

最近一位大学老师给我抱怨了一个她遇到的烦恼&#xff0c;一直在纠结&#xff0c;生活都被打乱了&#xff0c;事情大概是这样的&#xff1a; 她的优盘里辛辛苦苦弄好备课文件&#xff0c;放在了优盘里&#xff0c;可是每次上课时&#xff0c;就是找不到文件。有时好多文件都被修…

微信小程序开发初探

一、关于微信小程序 1.1 小程序诞生的背景 张小龙说道&#xff1a; &#xff08;1&#xff09;一切以用户价值为依归→用户是微信的核心&#xff0c;所以微信中没有很多与客户无关的功能&#xff0c;比如QQ中的乱七八糟一系列东西。 &#xff08;2&#xff09;让创造发挥价值→…

ue4商城资源 The Forest v1.5 森林景观场景

ue4商城资源 The Forest v1.5 森林景观场景 ue4商城资源 The Forest v1.5 森林景观场景 ue4商城资源 The Forest v1.5 森林景观场景 Unreal Engine虚幻游戏引擎素材资源 Unreal Engine Marketplace –The Forest v1.5 森林景观场景 大小解压后&#xff1a;2.62G 云桥网络 平台…

服务器硬盘如何增加分区,服务器硬盘分区方法是什么?

服务器硬盘&#xff0c;顾名思义&#xff0c;就是服务器上使用的硬盘。如果说服务器是网络数据的核心&#xff0c;那么服务器硬盘就是这个核心的数据仓库&#xff0c;所有的软件和用户数据都存储在这里。用户用久了服务器硬盘就可能会出现空间不足的情况&#xff0c;那么应该如…

在批处理中调用JS操作MongoDB

在MongoDB中&#xff0c;我们可以通过JS脚本去操作数据。 一、编写数据操作JS脚本 新建JS文件writeData.js&#xff0c;编写数据操作内容如下&#xff1a; var curTime new Date(); db.user.insert({name:张三,password:123456, UpdateTime:curTime}); 另存文件&#xff0c;将…

Object的finalize()方法的作用是否与C++的析构函数作用相同

Object的finalize()方法的作用是否与C的析构函数作用相同 public class Finalization {private static Finalization finalization;/**finalize在gc回收中有不确定性&#xff0c;所以不推荐用finalize进行回收*/Overrideprotected void finalize(){System.out.println("fi…

leetcode Edit Distance

作者&#xff1a;jostree 转载请注明出处 http://www.cnblogs.com/jostree/p/4051082.html 题目链接&#xff1a;leetcode Edit Distance 最短编辑距离&#xff0c;简单dp&#xff0c;dp[i,j]表示到str1的第i个字符和str2的第j个字符止的最短编辑距离。 dp[i,j] min(dp[i-1,j-…

设计模式的征途—10.装饰(Decorator)模式

虽然目前房价依旧很高&#xff0c;就连我所在的成都郊区&#xff08;非中心城区&#xff09;的房价均价都早已破万&#xff0c;但却还是阻挡不了大家对新房的渴望和买房的热情。如果大家买的是清水房&#xff0c;那么无疑还有一项艰巨的任务在等着大家&#xff0c;那就是装修。…

ue4商城资源 Nature Cave Cliff 自然洞崖景观场景

ue4商城资源 Nature Cave Cliff 自然洞崖景观场景 ue4商城资源 Nature Cave Cliff 自然洞崖景观场景 ue4商城资源 Nature Cave Cliff 自然洞崖景观场景 Unreal Engine虚幻游戏引擎素材资源 Unreal Engine Marketplace –Nature Cave Cliff 自然洞崖景观场景 大小解压后&#x…