How do I resolve the error ORA-06413: Connection not open?(如何解决错误 ORA-06413:连接未打开?)
问题描述
我的本地环境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:连接未打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何解决错误 ORA-06413:连接未打开?
基础教程推荐
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 无法解决整理冲突 2021-01-01
