久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Visual Studio 2015 添加連接對話框未將 LDAP 作為連接

Visual Studio 2015 add connection dialog doesn#39;t give LDAP as connection type(Visual Studio 2015 添加連接對話框未將 LDAP 作為連接類型)
本文介紹了Visual Studio 2015 添加連接對話框未將 LDAP 作為連接類型的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

我正在嘗試在 Visual Studio 2015 中使用服務(wù)器資源管理器連接到 oracle 數(shù)據(jù)庫.每次我嘗試通過添加連接對話框創(chuàng)建新連接時,連接類型:"前面的下拉菜單(在對話框)只給我 TNS 和 EZConnect 選項.沒有列出通過 LDAP 連接到 Oracle 的選項.我被要求僅通過 LDAP 進行連接(沒有 TNS 或 EZCONnect).

I'm trying to connect to oracle database using server explorer in visual studio 2015. Every time I try to create a new connection through Add Connection dialog box, the drop down menu in front of "Connection Type:" (on the dialog box) only gives me TNS and EZConnect options. No option is listed for connecting to Oracle through LDAP. I have been asked to connect only through LDAP (no TNS or EZCOnnect).

我的sqlnet.ora文件有這些內(nèi)容

My sqlnet.ora file has these contents

SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME, LDAP)

在里面.

而ldap.ora有這些內(nèi)容

And ldap.ora has these contents

DEFAULT_ADMIN_CONTEXT = "dc=something1,dc=something2,dc=com" 
DIRECTORY_SERVERS= (x.y.net:somenumber:somenumber,a.b.c.net:somenumber:somenumber,p.q.r.net:somenumber:somenumber)
DIRECTORY_SERVER_TYPE = OID

哦,實際上我將這些文件復(fù)制到了 tns.ora 文件默認所在的位置(如果我在添加連接"對話框中選擇 tns 作為連接類型,那么我就會知道 tns 文件的默認位置).

Oh actually I copied these files over to where tns.ora file sits by default (if I select tns as connection type in Add Connection dialog box that's when I come to know about tns file's default location).

我不確定是否需要通過在 web.config 文件或其他內(nèi)容中添加某種配置來通過 LDAP 連接到 Oracle.如果是這樣,那么我如何連接到 oracle(使用服務(wù)器資源管理器,請記住不要使用 TNS 或 EZConnect)并使用 Visual Studio UI 在數(shù)據(jù)庫中創(chuàng)建表.除了 Visual Studio UI(UI 用于在我們使用服務(wù)器資源管理器與數(shù)據(jù)庫建立連接后創(chuàng)建所有數(shù)據(jù)庫對象)之外,我不應(yīng)該使用任何其他工具來創(chuàng)建表.

I'm not sure do I need to connect to Oracle through LDAP by adding some kind of configuration in web.config file or something. And if so then how can I connect to oracle (using server explorer, remember no TNS or EZConnect) and create tables in the database using Visual Studio UI. I'm not supposed to use any other tools for creating tables other than Visual Studio UI (UI which is meant for creating all database objects after we establish a connection to the database using server explorer).

我完全困惑的另一件事是在數(shù)據(jù)源"下的對話框頂部:我看到它寫著Oracle 數(shù)據(jù)庫(ODP.NET,托管驅(qū)動程序)"和右側(cè)的更改按鈕它的原因.Visual Studio 怎么知道 odp.net 驅(qū)動程序在機器上的位置(因此在單擊更改按鈕時在下拉菜單中顯示它).但是我安裝和未安裝 odp.net 無人管理和托管驅(qū)動程序(均為 32和 64 位版本)在我打開添加連接"對話框的項目中多次.即使我卸載了所有版本的非托管/托管驅(qū)動程序并單擊更改按鈕,我仍然可以看到 Oracle 數(shù)據(jù)庫(ODP.NET, 托管驅(qū)動程序)在下拉菜單中,這怎么可能,因為所有 odp.net 托管或非托管驅(qū)動程序都已卸載.

And the other thing which I'm totally confused about is that up top on the dialog box under "Data Source:" I see it's written "Oracle Database (ODP.NET, Managed Driver)" and a change button to right of it.How come Visual Studio knows where the odp.net driver is lying on the machine (hence shows it in a drop down menu when change button is clicked).However I installed and uninsatlled odp.net unamanged and managed drivers (both 32 and 64 bit versions) many a times in the project that I have opened the Add Connection dialog box in. Even when I uninstalled all the versions of unmanaged/managed drivers and clicked on the change button I could still see Oracle Database (ODP.NET, Managed Driver) in the drop down, how is that possible since all the odp.net managed or unmanaged drivers has been uninstalled.

讓我了解這一切變得很麻煩.任何幫助將不勝感激.

It's getting cumbersome to get my head around all this. Any help will be highly appreciated.

注意:我在 Visual Studio 中使用 nuget 包管理器控制臺安裝和卸載了 odp.net 驅(qū)動程序.

Note: I installed and uninstalled odp.net drivers using nuget package manager console in Visual Studio.

推薦答案

我假設(shè) TNSEZConnect 只是定義了類型連接字符串,但它沒有告訴你如何解析您的 TNS 名稱.它可以通過 tnsnames.ora 文件或 LDAP 服務(wù)器解析.如今,ONAMES 已不再使用.

I assume TNS and EZConnect just defines the type connection string but it does not tell you how to resolve the your TNS name. It can be resolved by tnsnames.ora file or by LDAP server. Nowadays, ONAMES is not used anymore.

您是否定義了環(huán)境變量 TNS_ADMIN?ODP.NET 托管驅(qū)動程序不讀取通常定義 TNS_ADMIN 的注冊表.

Do you have an environment variable TNS_ADMIN defined? ODP.NET Managed Driver does not read the registry where TNS_ADMIN is usually defined.

使用工具 gacutil.exe 檢查您的 GAC(全局程序集緩存)是否看到任何 Oracle.ManagedDataAccess.dll.也許卸載程序沒有從那里刪除它.

Check you GAC (Global Assembly Cache) with tool gacutil.exe is you see any Oracle.ManagedDataAccess.dll. Perhaps the Uninstaller did not remove it from there.

您是否嘗試通過代碼連接到數(shù)據(jù)庫,而不是單擊對話框?

Did you try to connect to the database by code, instead of clicking dialog boxes?

這篇關(guān)于Visual Studio 2015 添加連接對話框未將 LDAP 作為連接類型的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應(yīng)該使用什么 SQL Server 數(shù)據(jù)類型來存儲字節(jié) [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
How to convert #39;2016-07-01 01:12:22 PM#39; to #39;2016-07-01 13:12:22#39; hour format?(如何將“2016-07-01 01:12:22 PM轉(zhuǎn)換為“2016-07-01 13:12:22小時格式?)
Convert multiple sub-queries to on join(將多個子查詢轉(zhuǎn)換為 on join)
How do I get the minute difference between 2 times in T SQL?(如何獲得 T SQL 中 2 次之間的微小差異?)
主站蜘蛛池模板: 国产精品不卡一区 | 久久最新精品视频 | ririsao久久精品一区 | av男人的天堂在线 | 天堂一区在线 | 亚洲免费视频网站 | 中文字幕在线三区 | 中文字幕 欧美 日韩 | 成人av片在线观看 | 国产一区二区三区免费观看视频 | 欧美男人天堂 | 久久伊人精品 | 草草草影院 | 成人av电影天堂 | 久久极品 | 国产精品久久久久久一级毛片 | 天天天天操 | 日韩精品欧美精品 | 97久久精品午夜一区二区 | 九九色九九| 亚洲精选一区二区 | 成人1区 | 人人玩人人干 | 中文av在线播放 | 久久久亚洲一区 | 国产精品久久午夜夜伦鲁鲁 | 午夜精品久久久久久久久久久久久 | 久久久久久久久久久久91 | 精品不卡 | 国产精品色 | 国产精品看片 | 视频一二三区 | 日本在线观看网址 | 免费网站在线 | 欧美精品三区 | 农村黄性色生活片 | 久久黄网 | 老司机免费视频 | 日韩精品一区二区三区在线播放 | 国产精品99久久久久久久vr | 亚洲视频在线观看免费 |