在64位的操作系统安装oracle10g 软件安装完成后,使用dbca建库的时候报下面的错:
$ dbca
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
        at oracle.net.common.NetGetEnv.get(Native Method)
        at oracle.net.config.Config.getNetDir(Unknown Source)
        at oracle.net.config.Config.initConfig(Unknown Source)
        at oracle.net.config.Config.<init>(Unknown Source)
        at oracle.sysman.assistants.util.NetworkUtils.<init>(NetworkUtils.java:222)
        at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:255)
        at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
        at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
        at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
        at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)
        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)
启动不了dbca进行建库,
网上找了整整一晚上,总结起来有三种方法:
第一种方法就是少包,装完包后就行relink(注意64位的系统需要安装32位对应的包)
glibc-32bit-8.1-9
glibc-devel-32bit-8.1-9
用rpm或者yum装上,然后重新连一下,
$ORACLE_HOME/bin/relink all
 
第二种方法就是:(MOS上的)
Are you one of those that has been suffering from this error: UnsatisfiedLinkError exception loading native library: njni10 , while installing oracle 10G client or oracle server on macosx ? , well , you wont beleive how simple the solution is ...

The complete error while loading the ./netca after making the installation is the following:

UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: jniGetOracleHome
at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
at oracle.net.common.NetProperties.(Unknown Source)
at oracle.net.common.NetProperties.getInstance(Unknown Source)
at oracle.net.ca.CmdlineArgs.(Unknown Source)
at oracle.net.ca.InitialSetup.(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)

Ok , just follow the simple two steps ,

cd into $ORACLE_HOME/bin

then type: ln -s $ORACLE_HOME/lib/libnjni10.dylib $ORACLE_HOME/lib/libnjni10 , then ENTER

then type: ln -s $ORACLE_HOME/lib/libclntsh.dylib $ORACLE_HOME/lib/libclntsh.dylib.10.1

After that go into $ORACLE_HOME/bin and start ./netca

Problem solved, this simple solution came to me literally after hours of dealing with the situacion and very little help from ORACLE documentation on the issue.

 
但是上面的所有方法试过了都不能解决我的问题,
最后的解决办法也就是第三种方式:
删除软件重新安装一遍,
[root@oracle10 oracle]# ll
total 8
drwxrwx--- 6 oracle oinstall 4096 Mar 10 19:57 oraInventory
drwxrwx--- 3 oracle oinstall 4096 Mar 10 19:48 product
[root@oracle10 oracle]# rm -rf *
然后重新执行./runinstaller在安装的过程中果然很顺利~~~最后DBCA成功启动~~~~
启动后遇到了另外一个问题:
 
总结:浪费了一个晚上的时间解决这个问题,得出一个结论,在unix上安装oracle(不论哪个版本),一定要按照官方文档把前期准备做好~~~这样在后期软件安装的过程中会非常顺利~~~单实例安装oracle大部分的问题来自于 包的缺失~~
 
 
我遇到的两个问题由下面的这篇文章解答::

 环境:CentOS6.2 64 位  ORACLE10G   
     这2天,我配合外地同事安装ORACLE10G,本来是一件很简单的事情,但是这个过程实在痛苦啊。我发个公司内部的安装文档了,但是这个兄弟没有仔细看。在安装过程中,出现了很多问题,现在在这些问题和大家分享一下吧。
      [oracle@db202 database]$ sh /home/oracle/oracle/product/10.2.0/db_1/bin/dbca
                          UnsatisfiedLinkError exception loading native library: njni10
                          Exception in thread "main" java.lang.UnsatisfiedLinkError: get
                                             at oracle.net.common.NetGetEnv.get(Native Method)
                                             at oracle.net.config.Config.getNetDir(Unknown Source)
                                             at oracle.net.config.Config.initConfig(Unknown Source)
                                             at oracle.net.config.Config.<init>(Unknown Source)
       关于这个问题,其实网上有很多的朋友介绍了,是少32bit的glibc和glibc-devel,但是也有人反应有这个2个包了,在这里刚开始的时候,我是没有安装这个2个32位的包,后来我在网上找了一些说法,是删除数据库软件,然后重新安装,我也这么做了,真的有效,所以我的结论是如果出现上面的问题,就直接删了数据库软件,重新安装吧。
       接着软件是安装完毕了,dbca也能运行出现界面了,在安装数据库的时候出现ORA-27125这个错误,因为我们是liunx6安装,所以在安装软件的时候,是执行“./runInstaller -ignoreSysPreReqs ”,忽略了版本的。继续解决问题吧,网上说“hugetlb_shm_group”的问题,关于"hugetlb_shm_group"的说明。
     When a process uses some memory, the CPU is marking the RAM as used by that process. For efficiency, the CPU allocate RAM by chunks of 4K bytes (it's the default value on many platforms). Those chunks are named pages. Those pages can be swapped to disk, etc. Since the process address space are virtual, the CPU and the operating system have to remember which page belong to which process, and where it is stored. Obviously, the more pages you have, the more time it takes to find where the memory is mapped. When a process uses 1GB of memory, that's 262144 entries to look up (1GB / 4K). If one Page Table Entry consume 8bytes, that's 2MB (262144 * 8) to look-up. Most current CPU architectures support bigger pages (so the CPU/OS have less entries to look-up), those are named Huge pages (on Linux), Super Pages (on BSD) or Large Pages (on Windows), but it all the same thing.
     往文件添加的命令如下”# echo 501 > /proc/sys/vm/hugetlb_shm_group“ ,其中501是oracle用户对于dba组的id,可以用
id oracle 命令观看,现在安装的同事说 501要加冒号才能安装完毕。这个大家具体看自己的情况吧。
     就这样ORA-27125的问题过去了。我本以为应该就安装完毕了吧,接着又出问题,ORA-00600: [keltnfy-ldmInit][46], [1], []
、、、哎 继续找问题,我看了“secooler”的一篇文章,地址是“http://space.itpub.net/519536/viewspace-614893”,发现是由于但是安装的时候,现在的兄弟没有改hosts文件。。。不说了,,,改吧。
      就这样折腾了一个下午吧,数据库是安装完毕了。我在这里劝大家安装之前一定要去看看官方帮助文档。对每个步骤要做到明白,要不然,去现场给客户弄得时候,丢大人了。

dbca:Exception in thread "main" java.lang.UnsatisfiedLinkError: get的更多相关文章

  1. wordcount在本地运行报错解决:Exception in thread "main" java.lang.UnsatisfiedLinkError:org.apache.hadoop.io.native.NativeID$Windows.access

    在windows中的intellij中运行wordcount程序,控制台输出以下报错 在Intellij编辑器中解决办法:本地重新创建NativeIO类,修改一个方法返回值,然后用新建的NativeI ...

  2. Java中调用c/c++语言出现Exception in thread "main" java.lang.UnsatisfiedLinkError: Test.testPrint(Ljava/lang/String;)V...错误

    错误: Exception in thread "main" java.lang.UnsatisfiedLinkError: Test.testPrint(Ljava/lang/S ...

  3. MyEclipse8.5集成Tomcat7时的启动错误:Exception in thread “main” java.lang.NoClassDefFoundError org/apache/commons/logging/LogFactory

    今天,安装Tomcat7.0.21后,单独用D:\apache-tomcat-7.0.21\bin\startup.bat启动web服务正常.但在MyEclipse8.5中集成配置Tomcat7后,在 ...

  4. MyEclipse8.5集成Tomcat7时的启动错误:Exception in thread “main” java.lang.NoClassDefFoundError org/apache/commons/logging/LogFactory

    今天,安装Tomcat7.0.21后,单独用D:\apache-tomcat-7.0.21\bin\startup.bat启动web服务正常.但 在MyEclipse8.5中集成配置Tomcat7后, ...

  5. 【转】MyEclipse8.5集成Tomcat7时的启动错误:Exception in thread “main” java.lang.NoClassDefFoundError org/apache/commons/logging/LogFactory

    http://www.cnblogs.com/newsouls/p/4021198.html 今天,安装Tomcat7.0.21后,单独用D:\apache-tomcat-7.0.21\bin\sta ...

  6. spark-shell报错:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream

    环境: openSUSE42.2 hadoop2.6.0-cdh5.10.0 spark1.6.0-cdh5.10.0 按照网上的spark安装教程安装完之后,启动spark-shell,出现如下报错 ...

  7. 报错:Exception in thread "main" java.lang.NoClassDefFoundError: Lorg/apache/hadoop/fs/FileSystem

    报错现象: Exception in thread "main" java.lang.NoClassDefFoundError: Lorg/apache/hadoop/fs/Fil ...

  8. JFinal启动报错:Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    - 错误: Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/ ...

  9. MyBatis3错误:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Priority的问题解决

    在使用Maven新建QuitStart类型项目时,引入了MyBatis3.2.0版本的JAR包之后,出现如下错误: Exception in thread "main" java. ...

随机推荐

  1. 简单的哈希表实现 C语言

    简单的哈希表实现 简单的哈希表实现 原理 哈希表和节点数据结构的定义 初始化和释放哈希表 哈希散列算法 辅助函数strDup 哈希表的插入和修改 哈希表中查找 哈希表元素的移除 哈希表打印 测试一下 ...

  2. 10 DelayQueue 延时队列类——Live555源码阅读(一)基本组件类

    这是Live555源码阅读的第一部分,包括了时间类,延时队列类,处理程序描述类,哈希表类这四个大类. 本文由乌合之众 lym瞎编,欢迎转载 www.cnblogs.com/oloroso/ 本文由乌合 ...

  3. 2-python学习——hello world

    "hello world"是编程界一个经久不衰的例子,几乎所有语言的学习教程都把它当做第一个程序的范例.学习的过程就是再造轮子的过程,千万不要以为有人做过的,就不去学习了. hel ...

  4. Python 类变量和成员变量

    Python 类变量和成员变量 类与对象的方法 我们已经讨论了类与对象的功能部分,现在我们来看一下它的数据部分.事实上,它们只是与类和对象的名称空间 绑定 的普通变量,即这些名称只在这些类与对象的前提 ...

  5. Git打包文件

    原文: http://gitbook.liuhui998.com/7_5.html 一.打包文件索引 首先, 我们来看一下打包文件索引, 基本上它只是一系列指向打包文件内位置的书签. 打包文件索引有两 ...

  6. spinlock原理

    [参考] http://www.searchtb.com/2011/06/spinlock%E5%89%96%E6%9E%90%E4%B8%8E%E6%94%B9%E8%BF%9B.html

  7. locustio压力测试

    2015年7月17日 22:19:17 星期五 这里记录下学习道路, 防止忘了 操作系统是centos: 首先是linux系统, 装有Python 和 Python-devel (否则安装软件会提示p ...

  8. ACM/ICPC 之 优先级队列+设置IO缓存区(TSH OJ-Schedule(任务调度))

    一个裸的优先级队列(最大堆)题,但也有其他普通队列的做法.这道题我做了两天,结果发现是输入输出太过频繁,一直只能A掉55%的数据,其他都是TLE,如果将输入输出的数据放入缓存区,然后满区输出,可以将I ...

  9. 14. javacript高级程序设计-表单

    1. 表单脚本 1.1 基础知识 <from>元素表示表单: l acceptCharset:服务器能处理的字符集 l action:接受请求的URL l elements:表单中所有控件 ...

  10. 初识 MySQL 5.6 新特性、功能

    背景: 之前介绍过 MySQL 5.5 新功能.参数,现在要用MySQL5.6,所以就学习和了解下MySQL5.6新的特性和功能,尽量避免踩坑.在后续的学习过程中文章也会不定时更新. 一:参数默认值的 ...