Oracle 12c 客户端安装程序错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30350213/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 02:52:23  来源:igfitidea点击:

Oracle 12c client installer error

oracleoracle12c

提问by user1578653

I'm trying to install Oracle client 12.1.0.2.0 (32-bit) on a completely clean copy of windows Server 2012, and I'm hitting a problem.

我正在尝试在完全干净的 Windows Server 2012 副本上安装 Oracle 客户端 12.1.0.2.0(32 位),但遇到了问题。

The installer runs fine until it gets to the final part - the net configuration assistant. An error message appears and says "[INS-20802] Oracle Net Configuration Assistant failed.". Here's the relevant part of the log file that is generated (I can post the entire thing if requested, but here's the bit with the actual error occurs):

安装程序运行良好,直到到达最后一部分 - 网络配置助手。将出现一条错误消息并显示“[INS-20802] Oracle Net Configuration Assistant 失败。”。这是生成的日志文件的相关部分(如果需要,我可以发布整个内容,但这是发生实际错误的部分):

INFO: Read: UnsatisfiedLinkError exception loading native library: oranjni12
INFO: Stderr Read: java.lang.UnsatisfiedLinkError: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
WARNING: Skipping line: UnsatisfiedLinkError exception loading native library: oranjni12
INFO: Read: java.lang.UnsatisfiedLinkError: C:\app\ORACLE_USER\product.1.0\client_1\BIN\oranjni12.dll: Can't find dependent libraries
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)
WARNING: Skipping line: java.lang.UnsatisfiedLinkError: C:\app\ORACLE_USER\product.1.0\client_1\BIN\oranjni12.dll: Can't find dependent libraries
INFO: Read: 
WARNING: Skipping line: 
INFO: Read: Error: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
WARNING: Skipping line: Error: oracle.net.common.NetGetEnv.jniGetOracleHome()Ljava/lang/String;
INFO: Read: Oracle Net Services configuration failed.  The exit code is 1
WARNING: Skipping line: Oracle Net Services configuration failed.  The exit code is 1
INFO: Completed Plugin named: Oracle Net Configuration Assistant

Here are a few things I have tried:

以下是我尝试过的几件事:

  • turning the firewall off
  • disconnecting from network (clutching at straws!)
  • running the installer as administrator
  • re-downloading the client installer from Oracle, in case it had somehow been corrupted
  • 关闭防火墙
  • 与网络断开连接(紧抓稻草!)
  • 以管理员身份运行安装程序
  • 从 Oracle 重新下载客户端安装程序,以防它以某种方式损坏

None of these things made any difference. I have successfully installed this exact version of the client on a Windows Server 2012 PC in the past and it worked fine...

这些事情都没有任何区别。过去,我已经在 Windows Server 2012 PC 上成功安装了这个确切版本的客户端,并且运行良好......

Has anyone else encountered this issue?

有没有其他人遇到过这个问题?

回答by user1578653

It turns out that the Oracle 12.1.0.2.0 client needs the MSVC 2010 redistributable to be installed first.

事实证明,Oracle 12.1.0.2.0 客户端需要先安装 MSVC 2010 可再发行组件。

I got it from here: https://www.microsoft.com/en-gb/download/details.aspx?id=5555

我从这里得到它:https: //www.microsoft.com/en-gb/download/details.aspx?id=5555

Once installed the Oracle client installer runs fine! Couldn't find this anywhere in the Oracle documentation, and the error message is not helpful at all...

安装后,Oracle 客户端安装程序运行良好!在 Oracle 文档中的任何地方都找不到它,并且错误消息根本没有帮助...

回答by user2574678

Quick, clean easy fix:-

快速,干净,易于修复:-

There is a bug in the 32-bit Oracle Installer file ./install/oraparam.ini, it's trying to install the 64-bit version of MSVCinstead of the 32-bit version.

32 位 Oracle 安装程序文件中存在一个错误./install/oraparam.ini,它试图安装 64 位版本的MSVC而不是 32 位版本。

  1. Open install/oraparam.ini
  2. Replace MSVCREDIST_LOC=vcredist_x64.exewith MSVCREDIST_LOC=vcredist_x86.exe
  3. Save
  4. Run installer
  1. 打开 install/oraparam.ini
  2. 替换 MSVCREDIST_LOC=vcredist_x64.exeMSVCREDIST_LOC=vcredist_x86.exe
  3. 节省
  4. 运行安装程序

回答by Ivan Pagel Leitzke

Having the same problem "[INS-20802] Oracle Net Configuration Assistant failed" and trying to install many times Oracle12cR2 on Windows1O. I installed Oracle12cR1 without problems, so I realized that "vcredist_x64.exe" file is even latest than the file I downloaded before from Microsoft webpage.

遇到同样的问题“[INS-20802] Oracle Net Configuration Assistant failed”并尝试在 Windows1O 上多次安装 Oracle12cR2。我安装 Oracle12cR1 没有问题,所以我意识到“vcredist_x64.exe”文件甚至比我之前从 Microsoft 网页下载的文件最新。

In this case, I uninstalled Oracle12cR1 and Installed again the Oracle12cR2 version, but using the vcredist_x64.exe that came together in the installation of Oracle12cR1.

在这种情况下,我卸载了 Oracle12cR1 并再次安装了 Oracle12cR2 版本,但使用了安装 Oracle12cR1 时附带的 vcredist_x64.exe。

Doing this, I was able to install the Oracle12cR2 without problems on Windows10.

这样做,我能够在 Windows10 上毫无问题地安装 Oracle12cR2。

回答by Oracle Starter

I just got the same problem that oracle client did not install successful. It stops with error [INS-20802] Oracle Net-Konfigurationsassistent nicht erfolgreich.

我刚遇到同样的问题,oracle 客户端没有安装成功。它因错误而停止[INS-20802] Oracle Net-Konfigurationsassistent nicht erfolgreich

Just press button überspringen/Skipa few times - it installs the needed dlls anyway. Then close/finish the installation. Now you can start oracle/SQL Developer.

只需按überspringen/Skip几次按钮- 无论如何它都会安装所需的 dll。然后关闭/完成安装。现在您可以启动 oracle/SQL Developer。