aix6.1安装oracle12.1.0.2,dbca时候报错UnsatisfiedLinkError exception loading native library: njni12
来源:互联网 发布:java package 编译 编辑:程序博客网 时间:2024/06/05 04:13
开发人员在aix6.1上安装oracle 12.1.0.2,在使用dbca建库的时候报出如下错误:
UnsatisfiedLinkError exception loading native library: njni12
java.lang.UnsatisfiedLinkError: /u01/app/oracle/product/12.1.0/db_1/lib/libnjni12.so: /u01/app/oracle/product/12.1.0/db_1/lib/libclntsh.so.12.1: file too short
Exception in thread "main" java.lang.UnsatisfiedLinkError: oracle.net.common.NetGetEnv.get(Ljava/lang/String;)Ljava/lang/String;
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:298)
at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:371)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:941)
at oracle.sysman.assistants.dbca.wizard.UIHost.<init>(UIHost.java:243)
at oracle.sysman.assistants.dbca.wizard.InteractiveHost.<init>(InteractiveHost.java:58)
at oracle.sysman.assistants.dbca.wizard.InteractiveHost.getInstance(InteractiveHost.java:71)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:168)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:113)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
乍看这些报错信息,还以为是缺少rpm包呢,但对于aix操作系统而言,很少有这种情况。在metalink上查找了一番,果然oracle 12.1.0.2库在aix上安装存在这种情况:
AIX 12.1.0.2 Installation Fails with "rtld: 0712-001 Symbol CreateIoCompletionPort was referenced " (Doc ID 1949184.1)
出现该问题的原因:
IOCP module not enabled on the server.
To check if the IOCP module is enabled, run the lsdev command:
The following sample output shows the IOCP status is set to Defined and hence not enabled:
$ lsdev | grep iocp
iocp0 Defined I/O Completion Ports
解决办法:
Enable the "iocp" option and relink the oracle binaries.
To enable IOCP, set IOCP to Available using the following procedure:
Log in as root and run the following command:
# smitty iocp
Select Change / Show Characteristics of I/O Completion Ports.
Change configured state at system restart from Defined to Available.
Run the lsdev command to confirm the IOCP status is set to Available:
iocp0 Available I/O Completion Ports
Perform a system restart to make the changes permanent.
Relink the binaries using " relink all " and then root.sh as root user.
To relink the binaries, refer the note:
Relinking Oracle Home FAQ ( Frequently Asked Questions) (Doc ID 1467060.1)
---------------------------------------------------------------------------------------------------------------------------------------------
按照文档操作,完成了解决了该问题,但我没有重新relink all,日后可能会有问题。
- aix6.1安装oracle12.1.0.2,dbca时候报错UnsatisfiedLinkError exception loading native library: njni12
- DBCA UnsatisfiedLinkError exception loading native library: njni11
- DBCA UnsatisfiedLinkError exception loading native library: njni11
- 执行netca或dbca时UnsatisfiedLinkError exception loading native library: njni10错误解决
- Failure in loading native library db2jcct2, UnsatisfiedLinkError: ERRORCODE=-4472
- DBCA报错:An unexpected exception has been detected in native code outside the VM.
- RenderScript 混淆报错Error loading RS jni library: java.lang.UnsatisfiedLinkError
- AIX6.1.0.7安装11.2.0.3报错的处理
- aix6.1安装oracle10.2.0.5 patch报错解决
- Centos 安装Eclipse报错java.lang.UnsatisfiedLinkError: Could not load SWT library
- eclipse jni报错:UnsatisfiedLinkError: no *** in java.library.path
- eclipse jni报错:UnsatisfiedLinkError: no *** in java.library.path
- aix6.1 安装python
- AIX6.1安装SSH
- aix6.1安装SSH
- AIX6.1安装 g++
- 运行 tomcat的时候报错:java.lang.UnsatisfiedLinkError
- tomcat报错Exception loading sessions from persistent storage解决方案
- POJ 3624 Charm Bracelet 0 1 背包
- super.getClass().getName()
- 5步安装vsftpd
- Android开发中Handler的经典总结
- 黑马程序员-java基础(五)-多线程
- aix6.1安装oracle12.1.0.2,dbca时候报错UnsatisfiedLinkError exception loading native library: njni12
- windows 环境下 ipython %edit 编辑器配置
- datagridview自动调整列宽
- async and await 操作实例
- 更改apatch端口为80, [warn] NameVirtualHost 10.254.1.65:80 has no VirtualHosts
- 邮件营销不成功?看看这几个文案问题中招了没
- 用两个栈实现一个队列的功能
- 使用ASI上传和下载数据的方法
- Servlet