oracle sqldeveloper 错误:Windows 7 上的 java.library.path 中没有 ocijdbc11

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21507803/
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-10 05:29:12  来源:igfitidea点击:

sqldeveloper error : no ocijdbc11 in java.library.path on windows 7

oracledatabase-connectionoracle-sqldevelopertnsnamesojdbc

提问by user2180794

no ocijdbc11 in java.library.path sql developer windows 7

java.library.path sql developer windows 7 中没有 ocijdbc11

this is my tnsnames.ora

这是我的 tnsnames.ora

89# tnsnames.ora Network Configuration File: M:\app\oracleuser\product.1.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

DOCASSIST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = DOCASSIST)
    )
  )

this is the listener.ora

这是听众.ora

# listener.ora Network Configuration File: M:\app\oracleuser\product.1.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = M:\app\oracleuser\product.1.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:M:\app\oracleuser\product.1.0\dbhome_1\bin\oraclr12.dll")
    )
  )


DOCASSISTLISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

this is the sqlnet.ora

这是 sqlnet.ora

# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES = (NTS)

the tns ping gives me this

tns ping 给了我这个

C:\Users\Manish>tnsping docassist

TNS Ping Utility for 64-bit Windows: Version 12.1.0.1.0 - Production on 01-FEB-2
014 22:09:31

Copyright (c) 1997, 2013, Oracle.  All rights reserved.

Used parameter files:
M:\app\oracleuser\product.1.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = DOCASSIST)))
OK (0 msec)

I also created environment variable ORACLE_HOME pointing to the tnsnames folder /NETWORK/ADMIN

我还创建了指向 tnsnames 文件夹 /NETWORK/ADMIN 的环境变量 ORACLE_HOME

Appreciate your help.

感谢你的帮助。

回答by Angel Ricardo Vega Hernandez

Your path of directory Tnsnames is incorrect, check it in Tools\Preferences\Data Base\Avanced:

您的 Tnsnames 目录路径不正确,请在 Tools\Preferences\Data Base\Avanced 中检查:

screenshot

截屏