在Windows上安装oracle12c使用dbca进行配置或使用Net Configuration Assistance配置监听时,出现报错:errors with oranjni12.dll: Can't find dependent libraries
通过参考官方文档
1599940.1,可以寻求可行的解决方法
现象:
While installing database 12c release 1 , Installation fails when launching the Net Configuration Assistance.
With the following error :INFO: Read: UnsatisfiedLinkError exception loading native library: oranjni12
ADVERTENCIA: Skipping line: UnsatisfiedLinkError exception loading native library: oranjni12
INFO: Read: java.lang.UnsatisfiedLinkError: C:\app\oracle\product\12.1.0\dbhome_1\BIN\oranjni12.dll: Can't find dependent libraries
ADVERTENCIA: Skipping line: java.lang.UnsatisfiedLinkError: C:\app\oracle\product\12.1.0\dbhome_1\BIN\oranjni12.dll: Can't find dependent libraries
INFO: Stderr Read: java.lang.UnsatisfiedLinkError: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
INFO: Stderr Read: at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
INFO: Stderr Read: at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.getOracleHome(NetCALogger.java:230)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.initOracleParameters(NetCALogger.java:215)
INFO: Stderr Read: at oracle.net.ca.NetCALogger.initLogger(NetCALogger.java:130)
INFO: Stderr Read: at oracle.net.ca.NetCA.main(NetCA.java:433)
可能的原因:
1.A Newer Version than Microsoft Visual C++ 2010 stops the installer
2.oraparam.ini in staging directory has following wrong entry MSVCREDIST_LOC=vcredist_x64.exe An unpublished bug 19150620 is logged .
解决方法: 1.若是1原因引起的,安装较低版本的Microsoft Visual C++ Install the Microsoft Visual C++ 2010 Redistributable Package (x64) or Microsoft Visual C++ 2010 SP1 Redistributable Package For Oracle Database 32-bit Client installation on 64-bit windows server, Retry the Installation.
2.若是2原因引起的,需要修改文件里的参数 edit and modify <stage dir path>/client/install/oraparam.ini file under staging directory MSVCREDIST_LOC=vcredist_x64.exe to
MSVCREDIST_LOC=vcredist_x86.exe restart the installation
|