[英]vb6 can not connect oracle 11g r2 with ADO but can connect with SQL Developer
I can not connect Oracle 11g r2 with ADO in VB6. 我无法在VB6中将Oracle 11g r2与ADO连接。 But I can connect Oracle database with Oracle SQL Developer with same parameter.
但是我可以使用相同的参数将Oracle数据库与Oracle SQL Developer连接。 How do I check this problem?
如何检查此问题?
Here my connection string: (The password is hide) 这是我的连接字符串:(密码为hide)
connstr = "Provider=OraOLEDB.Oracle;dbq=[same name]:1521/[same name];Database=[same name];User Id=evo;Password=*****;"
and this parameter in SQL Developer (Sorry, I can't place my screen) 和SQL Developer中的此参数(对不起,我无法放置屏幕)
Connection Name: [same name]
User Name: evo
Password: ****** (hide)
Role : Default
Connection type : Basic
Host Name: [same name]
Port : 1521
SID :[same name]
What I do wrong?
Thank you.
You should install and configure Oracle Client. 您应该安装和配置Oracle Client。 SQL Developer uses JDBC and seems to have a native driver.
SQL Developer使用JDBC,并且似乎具有本机驱动程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.