本文介紹了如何解決錯誤 ORA-06413:連接未打開?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我的本??地環境VS2012
My local environment VS2012
使用 Oracle 10g XE
Using Oracle 10g XE
Dim dbConn As New OleDbConnection
Dim dbComm As OleDbCommand
dbConn.ConnectionString = "Provider=msdaora;Data Source=XE;User ID=scott;Password=tiger"
dbConn.Open()
提示錯誤:ORA-06413:連接未打開.
Tip error: ORA-06413: Connection not open.
已經檢查了 TNSNAMES.ora、SQLNET.ora、LISTENER.ora 并且沒有問題.
Already check the TNSNAMES.ora, SQLNET.ora, LISTENER.ora and its nothing wrong.
但是為什么會出現這個錯誤呢?:(
But why this error appear? :(
推薦答案
錯誤是由路徑名中的括號引起的.
The error is caused by the parenthesis in the pathname.
可能你從 C:\program file (x86) 執行 VS2012...
possibly you execute VS2012 from C:\program file (x86)...
解決方法:創建一個聯結鏈接
workaround: create a junction link
步驟:
來自:命令行執行
from: command line execute
C:>mkLink /j "Program Files x86" "Program Files (x86)"
然后
使用新路徑(C:\program filex86...)
fix the (or create a new) shortcut with new path (C:\program file x86...)
這篇關于如何解決錯誤 ORA-06413:連接未打開?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!