PB6.5連接ORACLE8I出現問題!提示:cannot connet to database ORA-06413:連接未打開!
請給予解答!這個問題困擾我很久了!請一定幫忙徹底解決,高分請教!
uj5u.com熱心網友回復:
建議升級PB版本試試uj5u.com熱心網友回復:
今天遇到了ORA-06413錯誤!收藏1.一個同事有一個cs的程式,采用oracle資料庫,連接字串如下:
Provider=MSDAORA.1;Password=mypassword;User ID=myuser;Data Source=myds
2.應用程式保存在如下目錄:
E:\當前作業(備份)\參考程式
3.該程式是用c#寫的一個winform應用,主程式是一個exe檔案
4.當同事雙擊exe然后在顯示的登錄視窗輸入用戶名和密碼,點擊確定,出現ORA-06413錯誤:連接未打開,但sqlplus可以正常連接
5.考慮是Provider的問題(Provider=MSDAORA.1),所以重新安裝了MDAC組件,安裝完成后測驗,問題依舊
6.考慮可能是oracle客戶端的問題,重新安裝了oracle客戶端,問題還是沒有解決
7.google一下,找到如下描述:(http://blog.itpub.net/post/952/24354)
Error: ORA 6413
Text: Connection not open.
------------------------------------------------------------
Cause: Unable to establish connection.
Action: Use diagnostic procedures to ascertain exact problem.
Solution Description
--------------------
You are starting the application from a directory with a special
character in the name.
A simple testcase:
create a directory c:test(4)
copy odbctst.exe to this directory and start it from this directory
you will get the ora-6413 when trying to connect to an oracle database
The error is caused by the paranthesis in the directory name.
Remove the special characters from the directory name and everything
will work as designed.
8.在用戶的e盤跟目錄下新建目錄wz(e:\wz),拷貝程式檔案到該目錄下,運行exe檔案,問題得以解決!
uj5u.com熱心網友回復:
http://blog.csdn.net/zhpsam109/archive/2006/03/08/618860.aspxuj5u.com熱心網友回復:
不知道你的鏈接陳述句怎么寫的,問題肯定與你的鏈接陳述句有關系。系統提供一個默認的事務物件sqlca,你是不是用了自己的鏈接物件?下面提供一個正確的寫法:
sqlca.dbms="o73 oracle 7.3"
sqlca.logpass="****"
sqlca.servername="@dbserver"
sqlca.logid="****"
sqlca.autocommit=dasle
sqlca.dbparm=""
connect using sqlca;
uj5u.com熱心網友回復:
客戶端裝個ORA客戶端看看uj5u.com熱心網友回復:
你是在開發中遇到錯誤還是在部署中遇到?uj5u.com熱心網友回復:
資料庫注冊了嗎?uj5u.com熱心網友回復:
sqlplus可以正常連接嗎?uj5u.com熱心網友回復:
我用的是SQLCA,自己沒有新建.
uj5u.com熱心網友回復:
是正常的
uj5u.com熱心網友回復:
暫時只能用這個版本的.
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/97906.html
標籤:數據庫相關
上一篇:初學有一段代碼請大家指點
