oracle安装过程中出现乱码等一系列相关问题,本文将介绍如何解决,需要了解的朋友可以参考下
安装oracle时候遇到错误Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-11-03_12-53-01PM. Please wait ...[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-11-03_12-53-01PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
MT-bvp&R0 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
*Q GqX5g9X/r0 at java.lang.ClassLoader.loadLibrary0(Unknown Source)
#fY|DZ5OjEC0 at java.lang.ClassLoader.loadLibrary(Unknown Source)ITPUB个人空间G.|QBK
at java.lang.Runtime.loadLibrary0(Unknown Source)ITPUB个人空间V g JYz%vX
at java.lang.System.loadLibrary(Unknown Source)ITPUB个人空间 iD;N[w'\
at sun.security.action.LoadLibraryAction.run(Unknown Source)
u+W'Vd'Ef0 at java.security.AccessController.doPrivileged(Native Method)ITPUB个人空间Ie4h o m&y3E
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)ITPUB个人空间,Yp\,i"zcb
at sun.awt.DebugHelper.
at java.awt.Component.
L]5QF'L8oIU0
找了网上的资料,说是缺少安装包
#./runInstaller之后出现如下的错误信息:
RedHat AS5 x86上安装Oracle1020
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/OraInstall2007-12-03_09-02-02AM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file:
No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.(Unknown Source)
at java.awt.Component.(Unknown Source)
解决方法参见错误二
oo?g D0错误一:
/tmp/OraInstall2007-12-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
原因是:缺少支持打印的图形化动态链接库libXp.so.6
这个错误是由于缺少系统安装包,在RHEL5以前的版本,安装xorg-x11-deprecated-libs包即可,这个安装包可以在系统光盘第三张盘中找到(对于RedHat as4.2以前,redhat as4.4是在第四张安装光盘)
xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
错误二:
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory
K5H5YN?A1CW$F0这个错误也是由于缺少系统安装包造成的,只需安装XFree86-libs包即可,这个安装包可以在系统光盘中找到。
在上面两个错误如果出现在RedHat as5版本中,解决如下:
在RHEL5中上面的包被libXp所取代了,因此rpm -ivh libXp-1.0.0-8.i386.rpm将包打上后问题即可解决。
错误三:
error while loading shared libraries: libstdc++-libc6.1-1.so.2
只用执行如下操作
#cd /usr/lib
#ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
参考案例
案例一:
在RHEL5上测试安装oracle10g,首先,在执行runInstaller时,系统报错:
You do not have sufficient permissions to access the inventory '/oracle11g/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied
这里采用的是新建一个10g用户的方法让10g,11g并存,实际上在启动安装程序的时候,oracle会去找/etc/oraInst.loc和oratab这两个文件(hp是/var/opt/oracle)
而在oraInst.loc里面定义了inventory_loc的位置和inst_group,由于之前装过了一个11g,里面的定义都是针对11g用户设置的,所以才会报错。解决办法是执行runInstaller -invPtrLoc /oracle10g/oraInst.loc 命令就可以绕过去了,oracle会创建一个新的loc文件。
上一步成功通过之后,紧接着报了下面的错:
Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
#y7c,Oy.v [)Nv&r#^0java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-08-30_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
在RHEL5以前这个错误是因为缺少XFree86-libs或xorg-x11-deprecated-libs这两个包其中一个(版本不同包不同),而在RHEL5中前面的包被libXp所取代了,因此rpm -ivh libXp-1.0.0-8.i386.rpm将包打上后问题解决。
案例二:
在开始安装时出现以下错误:
error while loading shared libraries: libstdc++-libc6.1-1.so.2ITPUB个人空间D$j1?7`"jG*j
解决办法是
#cd /usr/libITPUB个人空间.k6O];Q"A;[f
#ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
-B[-q8o"o?U0ITPUB个人空间C%W5Pne#y,O
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
i2B zZ3ZO'o0解决办法是ITPUB个人空间a"h H0U9t%i?
apt-get install libXp.so.6ITPUB个人空间z1|D`(C~H
apt-get install libXt.so.6
|V-s$dz3O4Zw1x$MX0apt-get install libxtst6
案例三:
在RH Linux7.3上使用JasperReport作为报表引擎时,碰到了一样的问题:ITPUB个人空间)t J PDU
Exception :java.lang.UnsatisfiedLinkError:/usr/java/j2sdk1.4.2_06/jre/lib/i386/libawt.so: libXt.so.6: cannot open shared object file: No such file or directory
原因是:缺少支持打印的图形化动态链接库libXp.so.6(也许还有相关的其他库)
k^.dU,DF0V0解决办法:
下载并安装XFree86-libs-4.2.0-8.i386.rpm,/usr/X11R6/lib下就会出现需要的libXp.so.6.2
附XFree86-libs-4.2.0-8.i386.rpm的一个下载地址:
f%k_C of0ftp://ftp.nluug.nl/vol/1/schoollan/os/linux/RPMS/XFree86-libs-4.2.0-8.i386.rpm

php导入csv乱码问题的解决办法:1、构造一个解析函数“function tb_str_getcsv($string, $delimiter=',', $enclosure='"') {...}”;2、读取文件到变量;3、通过“substr($s,2)”去掉BOM头即可。

cmd php乱码的解决办法:1、在windows平台的cmd或shellpower中,执行php脚本并检查是否乱码;2、通过在php脚本里执行“exec("CHCP 65001");”命令去修改当前页码字符集即可。

php+fread()乱码是因为输出页面的编码和被读文件的编码不一致,其解决办法:1、打开相应的PHP文件;2、通过fread函数读取文件;3、通过“iconv('gbk', 'utf-8', $data)”方法将读取的内容转码即可。

linux命令行显示乱码的解决办法:1、通过“echo $LANG”命令查看当前支持的语言;2、使用“LANG=en_US”命令修改语言为英语语系即可解决乱码问题。

php写入数据库中文乱码的解决办法:1、创建数据库并设置“utf8_general_ci”编码;2、用PHP读写数据库,然后设置“mysql_query("set names 'utf8'");”即可。

wordpress后台乱码的解决办法:1、在wordpress的“wp-admin”文件夹下找到“admin.header.php”文件;2、将“charset”属性值设置为“UTF-8”格式即可恢复正常。

mysql注释乱码问题的解决办法:1、通过“show variables like '%colla%';show variables like '%char%';”命令查看数据库与服务端的字符集设置;2、通过“set character_set_client=utf8;”设置结果集为utf8即可。

php dompdf中文乱码的解决办法:1、打开前端文件;2、通过设置“@font-face {font-family:ttt;src: url(/static/font/simkai.ttf)}”引用中文字体;3、删除“dompdf_font_family_cache.php”即可。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
