Ошибка ora 06413 соединение не открыто

My local environment VS2012

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()

Tip error: ORA-06413: Connection not open.

Already check the TNSNAMES.ora, SQLNET.ora, LISTENER.ora and its nothing wrong.

But why this error appear?
:(

e_i_pi's user avatar

e_i_pi

4,5904 gold badges27 silver badges45 bronze badges

asked Apr 11, 2014 at 4:39

Mohd Syafiq Sulaiman's user avatar

2

The error is caused by the parenthesis in the pathname.

possibly you execute VS2012 from C:\program file (x86)…

workaround: create a junction link

steps:

  1. from: command line execute

    C:>mkLink /j "Program Files x86" "Program Files (x86)"
    

    and then

  2. fix the (or create a new) shortcut with new path (C:\program file
    x86…)

answered Jul 27, 2015 at 15:13

Pablo Fébolo's user avatar

1

I worked a lot on this problem, I lost a lot of time. Apparently IIS Express in Visual Studio uses the Oracle provider 64 bit.

To solve this problem:

  1. I installed IIS on my PC (Windows 10)
    with .NET 4.5 or higher

  2. I compiled the Web API application with 32-bit target.

  3. I publish the web application on my IIS.

  4. On IIS I set enable the apps 32 bit to true

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered May 15, 2020 at 21:18

Mostafa Ait Baallal's user avatar

I had the same problem and I resolved the problem installing Oracle 11g Express. Before, I removed all previous Oracle client installation. I use windows 7 64 bit.

answered Apr 13, 2016 at 19:43

Willian Rafacho's user avatar

Create Bat file to start excel
in bat put path you can adjust to match your folders

start c:\progra~2\micros~1\Office14\Excel.exe

When you start excel just open macro and try :)

answered Oct 18, 2016 at 9:35

Jacek's user avatar

2

I encountered the same problem when working on my Visual studio 2013 project. I was able to run the same project from SVN on a different machine, but it just WON’T work on mine. I checked the connection string and could successfully test the connection in Oracle, but it would throw a disgusting “ORA-06413: Connection not open” error from code.

I got it fixed this way — Install Oracle 11g client -> Select «Administrator» as Type of Installation. Re-open Visual Studio and it worked. Hope it helps!

answered May 2, 2019 at 10:46

kickAssDeveloper's user avatar

  1. uninstall your toad or oracle
  2. reinstall on on your window drive ex:(c/d/e) in new folder

don’t install in program files (x86)

because program files(x86) is for 32 bit applications

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered Nov 6, 2018 at 6:54

Waqar Hameed's user avatar

I have resolved the error after the days of searching.

Error Cause:

This error is due to Oracle reserved character «(«,»)» and in Windows 64 bit there is a folder «Program Files (x86)» which is a creation problem.

Solution:

Create a link folder for «Program Files (x86)» using below command on Window Drive path.

  1. Open cmd as Administrator.

    mklink /j "Program Files x86" "Program Files (x86)"
    

    or visit link
    download3k article

  2. Open Registry (as Administrator)->Export Registry

    Always backup a registry file before changing it. Make a copy of the registry file and work on the copy.

    Open Registry file(Copy) in text editor and replace «(x86)» with «x86»

    Save the file and import it to your Registry and restart your computer.

Now the «ORA-06413: Connection not open» error goes away.

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered Mar 28, 2016 at 7:52

Shahzaib Zaheer's user avatar

1

My local environment VS2012

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()

Tip error: ORA-06413: Connection not open.

Already check the TNSNAMES.ora, SQLNET.ora, LISTENER.ora and its nothing wrong.

But why this error appear?
:(

e_i_pi's user avatar

e_i_pi

4,5904 gold badges27 silver badges45 bronze badges

asked Apr 11, 2014 at 4:39

Mohd Syafiq Sulaiman's user avatar

2

The error is caused by the parenthesis in the pathname.

possibly you execute VS2012 from C:\program file (x86)…

workaround: create a junction link

steps:

  1. from: command line execute

    C:>mkLink /j "Program Files x86" "Program Files (x86)"
    

    and then

  2. fix the (or create a new) shortcut with new path (C:\program file
    x86…)

answered Jul 27, 2015 at 15:13

Pablo Fébolo's user avatar

1

I worked a lot on this problem, I lost a lot of time. Apparently IIS Express in Visual Studio uses the Oracle provider 64 bit.

To solve this problem:

  1. I installed IIS on my PC (Windows 10)
    with .NET 4.5 or higher

  2. I compiled the Web API application with 32-bit target.

  3. I publish the web application on my IIS.

  4. On IIS I set enable the apps 32 bit to true

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered May 15, 2020 at 21:18

Mostafa Ait Baallal's user avatar

I had the same problem and I resolved the problem installing Oracle 11g Express. Before, I removed all previous Oracle client installation. I use windows 7 64 bit.

answered Apr 13, 2016 at 19:43

Willian Rafacho's user avatar

Create Bat file to start excel
in bat put path you can adjust to match your folders

start c:\progra~2\micros~1\Office14\Excel.exe

When you start excel just open macro and try :)

answered Oct 18, 2016 at 9:35

Jacek's user avatar

2

I encountered the same problem when working on my Visual studio 2013 project. I was able to run the same project from SVN on a different machine, but it just WON’T work on mine. I checked the connection string and could successfully test the connection in Oracle, but it would throw a disgusting “ORA-06413: Connection not open” error from code.

I got it fixed this way — Install Oracle 11g client -> Select «Administrator» as Type of Installation. Re-open Visual Studio and it worked. Hope it helps!

answered May 2, 2019 at 10:46

kickAssDeveloper's user avatar

  1. uninstall your toad or oracle
  2. reinstall on on your window drive ex:(c/d/e) in new folder

don’t install in program files (x86)

because program files(x86) is for 32 bit applications

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered Nov 6, 2018 at 6:54

Waqar Hameed's user avatar

I have resolved the error after the days of searching.

Error Cause:

This error is due to Oracle reserved character «(«,»)» and in Windows 64 bit there is a folder «Program Files (x86)» which is a creation problem.

Solution:

Create a link folder for «Program Files (x86)» using below command on Window Drive path.

  1. Open cmd as Administrator.

    mklink /j "Program Files x86" "Program Files (x86)"
    

    or visit link
    download3k article

  2. Open Registry (as Administrator)->Export Registry

    Always backup a registry file before changing it. Make a copy of the registry file and work on the copy.

    Open Registry file(Copy) in text editor and replace «(x86)» with «x86»

    Save the file and import it to your Registry and restart your computer.

Now the «ORA-06413: Connection not open» error goes away.

tripleee's user avatar

tripleee

176k34 gold badges275 silver badges318 bronze badges

answered Mar 28, 2016 at 7:52

Shahzaib Zaheer's user avatar

1

Моя локальная среда VS2012

Использование 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: Соединение не открыто.

Уже проверьте TNSNAMES.ora, SQLNET.ora, LISTENER.ora и ничего плохого в этом нет.

Но почему эта ошибка появляется?:(

2014-04-11 04:39

5
ответов

Ошибка вызвана парантезом в имени пути.

возможно, вы выполняете VS2012 из файла программы C:\ (x86)…

Обходной путь: создайте ссылку соединения

шаги:

  1. from: командная строка execute

    C:>mkLink /j "Program Files x86" "Program Files (x86)"
    

    а потом

  2. исправить (или создать новый) ярлык с новым путем (C:\program file
    x86…)

2015-07-27 15:13

Я много работал над этой проблемой, много времени терял. по-видимому, IIS Express в Visual Studio использует 64-разрядный поставщик oracle.

Чтобы решить эту уловку:

1) Я установил IIS на свой компьютер (Windows 10) с.NET 4.5 или выше.

2) Я скомпилировал приложение веб-API с 32-битной целью.

3) Я публикую веб-приложение на своем IIS.

4) В IIS я установил для 32-битных приложений значение true

2020-05-16 00:18

1. просто удалите свою жабу или оракула 2. переустановите на вашем оконном диске, например:(c/d/e) в новую папку

не устанавливайте в программные файлы (x86) его работа для меня

потому что программные файлы (x86) предназначены для 32-разрядных приложений…

2018-11-06 06:54

У меня была такая же проблема, и я решил проблему с установкой Oracle 11g Express. Ранее я удалил все предыдущие установки клиента Oracle. Я использую Windows 7 64 бит.

2016-04-13 19:43

Создайте файл Bat, чтобы начать Excel в Bat Put путь, который вы можете настроить, чтобы соответствовать вашим папкам

запустите c:\progra~2\micros~1\Office14\Excel.exe

Когда вы начинаете Excel, просто откройте макрос и попробуйте:)

2016-10-18 09:35

Я столкнулся с той же проблемой при работе над проектом Visual Studio 2013. Я смог запустить тот же проект из SVN на другой машине, но он не работал на моей. Я проверил строку подключения и смог успешно протестировать соединение в Oracle, но это вызвало бы отвратительную ошибку «ORA-06413: Соединение не открыто» из кода.

Я получил это исправить таким образом — Установить клиент Oracle 11g -> Выберите «Администратор» в качестве типа установки. Повторно откройте Visual Studio и все заработало. Надеюсь, поможет!

2019-05-02 10:46

Я решил по ошибке после дней поиска:

Причина ошибки:

Эта ошибка вызвана зарезервированным символом оракула «(«,»)» и в 64-битной Windows 64 есть папка «Program Files (x86)», это проблема создания.

Решение:

Создайте папку ссылок для «Program Files (x86)», используя приведенную ниже команду в окне «Путь к диску».

1). Откройте cmd с администратором.

mklink / j «Program Files x86» «Program Files (x86)» ENTER

или перейдите по ссылке

статья download3k

2).open Registry(с администратором)->Export Registry всегда создает резервную копию файла реестра перед его изменением. Создайте копию файла реестра и работайте над ней. Откройте файл реестра (копия) в текстовом редакторе, замените «(x86)» на «x86». Сохраните файл, импортируйте его в реестр и перезагрузите компьютер.

Теперь ошибка «ORA-06413: Соединение не открыто» исчезла.

Пожалуйста, оцените это решение, если ваша проблема решена. Наслаждайтесь!

2016-03-28 07:52

Hi,

I have resolved by error after the days of searching:

Error Cause:
This error due to oracle reserved character «(«,»)» and in Windows 64 bit there is an folder «Program Files (x86)» is creation problem.

Solution:
Create a link folder for «Program Files (x86)» using below command on Window Drive path.

1).
Open cmd with administrator.
mklink /j «Program Files x86» «Program Files (x86)» ENTER
or visit link
http://www.download3k.com/articles/MKLink-Explained-Create-Symbolic-Links-that-Simplify-File-Management-in-Windows-Vista-7-and-8-00437

2).
open registry(with administrator)->Export Registry always backup a registry file before changing it.make a copy of registry file and work on copy.
Open Registry file(Copy) in text editor replace «(x86)» to «x86» Save file and import it in registry and restart you computer.

Now «ORA-06413: Connection not open» error go away.

Please rate this solution if your issue resolve.
Enjoy!

Shahzaib Zaheer
Software Engineer
shahzaibali88@hotmail.com

Problem

This technote identifies an error that can be encountered when opening IBM Rational RequisitePro projects that are configured to use an Oracle database on a Windows 64 bit machine.

Symptom

The full error message is:

Microsoft[SQL] ODBC Error : ORA-06413: Could not open connection.

Cause

This error is seen when RequisitePro does not have the proper Oracle Client installed.

Resolving The Problem

To resolve this error apply one of the following three solutions:

Solution 1

Ensure that you are using an Oracle 32-bit client and not an Oracle 64-bit client because RequisitePro is a 32 bit application and requires the 32-bit Oracle drivers to establish a connection to the database.

Solution 2

Install RequisitePro in a location where there are no spaces or parenthesis:

Example:

    Installation path for RequisitePro 7.0.x.x:

      C:\Rational\RequisitePro\

    Installation path for RequisitePro 7.1.x.x

      C:\IBM\RationalSDLC\RequisitePro\


Solution 3

If you are using a 32-bit Oracle client and still receive the error then please apply one of the following fixes. Use a version of the Oracle software that contains the fix for Bug 3807408.

NOTE: Currently the following patches have been released on Windows:

Windows 32-bit:

    9.2.0.7.0 Patch 6: Apply Patch 4928723 or later
    10.2.0.1.0 Patch 4: Apply Patch 4923768 or later
    10.2.0.2.0 Patch 5: Apply Patch 5383042 or later
    10.2.0.3.0 or later contains the fix

Windows 64-bit AMD64 and INTEL EM64T:

    10.2.0.1.0 Patch 4: Apply Patch 4923787 or later
    10.2.0.2.0 Patch 5: Apply Patch 5388871 or later
    10.2.0.3.0 or later contains the fix

[{«Product»:{«code»:»SSSHCT»,»label»:»Rational RequisitePro»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»Database: Oracle»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»7.0;7.0.1;7.1″,»Edition»:»»,»Line of Business»:{«code»:»LOB45″,»label»:»Automation»}}]

Понравилась статья? Поделить с друзьями:
  • Ошибка ora 01401
  • Ошибка launcher error left 4 dead 2
  • Ошибка ora 01950
  • Ошибка err 0 на весах cas
  • Ошибка ora 01400 cannot insert null into