Status failure test failed ошибка ввода вывода

Всем Доброго времени суток! Взялся за изучение сервлетов, там нужна бд oracle(это принципиально) и вот уже несколько дней пытаюсь перейти от борьбы с ней к самому sql. Итак нужно подключить бд к sql developer получаю вот

это

1c222c1f244a441b9c05b54bf6649967.png

.

Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

.
При чем вчера я это сделал, бд подключалось, а сегодня споткнулся о другие грабли, решил проверить работает ли то что вчера делал, а оно не работает.

Подскажите в чем ошибка или в какую сторону копать?
Заранее Спасибо!

p.s. ОС Fedora 21.

На чтение 4 мин. Просмотров 30 Опубликовано 15.12.2019

When i run the sql developer and set the all data,click the connect but i get this error:

I’m beginner in Oracle ,how can i solve that error?
my windows:7 64bit and oracle 12c

10 Answers 10

You need set «tcp.val >

I got the same issue but following steps worked for me, it seems Gaurav also has shared it already:

From your inputs in the dialog, you are using port 5500. That port is what is used for EM Express. It answers to HTTPs traffic only. So in this case the -1 error message means the protocol negotiation failed. SQLDEV is trying to talk SQL*NET to something listening for HTTPs.

The port you are looking for is 1521 if it wasn’t altered. If it was check the $ORACLE_HOME/network/admin/listener.ora for the proper port number.

Try Connection name: HR_ORCL Username: HR , Password: hr , Connection type : local, Role: SYSDBA Click on connect. It will work.

Seems you have enabled ACL on the listener.

You can follow these steps to avoid the error:

Hope that helps

Actually, It is not database specific issue. it is related to port value generated by database during your installation. To overcome on this issue, please follow below.

  1. Go to the folder where you have installed the database (Like: F:app)
  2. Here you will be able to see many folders, go to product11.2.0(«your databse version»)dbhome_1NETWORKADMIN
  3. find listener.ora file and open as text file
  4. Check for the port number in that file
  5. Now provide that port number while doing connection in sql developer.

Hope it will resolve your issue.

Ensure the DB is up and running and you can connect locally AS SYSDBA to the database using Oracle binaries owner (usually oracle:oinstall Unix / Linux user). If it does not work, probably you encounter a different problem. Check privileges of an Oracle file on Unix / Linux host where database is running:

Change permissions as below:

Most of the answers out there for this problem point to using the wrong PORT number in your connection options, or similar. In my case, after a couple hours of searching, the reason showed to be something else.

Mind which user you are using when starting Oracle listener. You should do it with the oracle user, not as root. Otherwise you end up with listener files being created as e.g. user deamon group root instead of user oracle group dba. This in turn leads to:

To check whether this is the case, go to

and list all files (ls -la). If you find out some of the s#* files being created by a root-group user, stop the listener (lsnrctl stop), delete the above files as root and restart the listener as oracle user.

Unfortunately sqldeveloper doesn’t show the full stack-trace when reading «Got minus one from a read call». I could find the problem thanks to switching to SQL-Squirrel.

The IO Error: Got minus one from a read call error is caused by the SQLNET.ora file on the database server being configured to only allow connections from certain computers on the network (as >

Attempting to connect to a database via SQL Developer throws the error when testing or attempting to use the connection:

If the TCP.VALIDNODE_CHECKING parameter is enabled In the SQNET.ora file then the IP address of each computer allowed to connect to databases via the listener configured using that SQLNET.ora file will need to be added to the TCP.INVITED_NODES list.

Here is an example SQLNET.ora file with VALIDNODE_CHECKING enabled and one computer (with the IP address 192.168.1.101) granted access:

There is an opposite parameter to TCP.INVITED_NODES; TCP.EXCLUDED_NODES will forbid access to those IP addresses configured in its list.

With the appropriate settings in place, SQL Developer should be able to connect as planned:

I setup a DB cloud instance but now I can’t connect to it using SQL Developer.

I setup the SSH connection in SQL Developer + port forwarding and I test that connection successfully.

But when I try to create a connection, I always get this error:

«STATUS: Failure — Test Failed: I/O error: Got minus one from read call, connect lapse XX ms, Authentication lapse 0 ms.»

3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

1

16.03.2021, 05:23. Показов 13729. Ответов 5


Студворк — интернет-сервис помощи студентам

Всем привет!
Все было нормально) Все работало)
Но решил через некоторое время запустить базы на Oracle
В итоге базы не запускаются

Я пробовал оживить командами
lsnrctl status
lsnrctl start
Они оказались актуальны и сработали
Но ошибка осталась…
Подскажите, пожалуйста, что с этим можно дальше сделать?
Может, просто переустановить и все…



0



3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

16.03.2021, 07:13

 [ТС]

2

Попробовал еще раз

https://www.youtube.com/watch?… ningCenter

Тоже самое, ошибка.
Но уже другая ошибка. Прежняя осталась.
Не успеваю додуматься, хелп.

Миниатюры

Ошибка ввода - вывода network adapter could not be established
 



0



Модератор

4204 / 3044 / 581

Регистрация: 21.01.2011

Сообщений: 13,184

16.03.2021, 10:44

3

Цитата
Сообщение от antoniogrid
Посмотреть сообщение

Но уже другая ошибка

Попробуй в listener.ora прописать статически данные о твоей БД. Кстати 12560 — это ошибка, возникающая во многих случаях, например, если БД «лежит». Ну и поищи по коду ошибки 12505 темы на форуме — подобные вопросы уже обсуждались



0



3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

16.03.2021, 18:32

 [ТС]

4

Мда… причина была на моей стороне… чуть не помер…

Пришел с работы, запустил докер…
запустил докер….
запустил…
докер

с..

Просто иконка в трее горела, что проблем нет и я открыл — а там сессия не запущена. Конечно, интуитивно предполагал, что проблема где-то могла быть в «цепочке» влияющей на запуск самого скл девелопера.
Думал, и как правило это было так, все работало (запускался докер и сессия в нем автоматически), что он и сейчас запущен.
Но почему — то что-то пошло не так. И «само» работать работать не захотело.
Случайно аспект данный нашел.

Всем спасибо!
Проблема решена!



0



0 / 0 / 0

Регистрация: 27.02.2020

Сообщений: 8

12.10.2021, 16:32

5

У меня такая же проблема. Скажите, пожалуйста, где найти докер и что такое трей



0



Модератор

8499 / 5658 / 2291

Регистрация: 21.01.2014

Сообщений: 24,250

Записей в блоге: 3

12.10.2021, 16:42

6

Цитата
Сообщение от POMOGITE_please
Посмотреть сообщение

и что такое трей


но это же азы работы в операционной системе!!!
Вот он:

Миниатюры

Ошибка ввода - вывода network adapter could not be established
 



0



I have recently downloaded the oracle database 12c enterprise edition. So I got Oracle SQL developer installed with the package. I started to create new database connection as given in the documentation.

My problem is….

enter image description here
When I try to test or connect with the following field values:
Hostname: localhost
Port: 1521
SID: orcl (I have tried ‘xe’ as well but the error persists.)

I get the following error:

Status: Failure -Test failed: IO Error: An existing connection was forcibly closed by the remote host, connect lapse 15080 ms., Authentication lapse 0 ms.

I have also tried to use different port numbers but the issue remains the same. Don’t know what went wrong.

На чтение 4 мин. Просмотров 30 Опубликовано 15.12.2019

When i run the sql developer and set the all data,click the connect but i get this error:

I’m beginner in Oracle ,how can i solve that error?
my windows:7 64bit and oracle 12c

10 Answers 10

You need set «tcp.val >

I got the same issue but following steps worked for me, it seems Gaurav also has shared it already:

From your inputs in the dialog, you are using port 5500. That port is what is used for EM Express. It answers to HTTPs traffic only. So in this case the -1 error message means the protocol negotiation failed. SQLDEV is trying to talk SQL*NET to something listening for HTTPs.

The port you are looking for is 1521 if it wasn’t altered. If it was check the $ORACLE_HOME/network/admin/listener.ora for the proper port number.

Try Connection name: HR_ORCL Username: HR , Password: hr , Connection type : local, Role: SYSDBA Click on connect. It will work.

Seems you have enabled ACL on the listener.

You can follow these steps to avoid the error:

Hope that helps

Actually, It is not database specific issue. it is related to port value generated by database during your installation. To overcome on this issue, please follow below.

  1. Go to the folder where you have installed the database (Like: F:app)
  2. Here you will be able to see many folders, go to product11.2.0(«your databse version»)dbhome_1NETWORKADMIN
  3. find listener.ora file and open as text file
  4. Check for the port number in that file
  5. Now provide that port number while doing connection in sql developer.

Hope it will resolve your issue.

Ensure the DB is up and running and you can connect locally AS SYSDBA to the database using Oracle binaries owner (usually oracle:oinstall Unix / Linux user). If it does not work, probably you encounter a different problem. Check privileges of an Oracle file on Unix / Linux host where database is running:

Change permissions as below:

Most of the answers out there for this problem point to using the wrong PORT number in your connection options, or similar. In my case, after a couple hours of searching, the reason showed to be something else.

Mind which user you are using when starting Oracle listener. You should do it with the oracle user, not as root. Otherwise you end up with listener files being created as e.g. user deamon group root instead of user oracle group dba. This in turn leads to:

To check whether this is the case, go to

and list all files (ls -la). If you find out some of the s#* files being created by a root-group user, stop the listener (lsnrctl stop), delete the above files as root and restart the listener as oracle user.

Unfortunately sqldeveloper doesn’t show the full stack-trace when reading «Got minus one from a read call». I could find the problem thanks to switching to SQL-Squirrel.

The IO Error: Got minus one from a read call error is caused by the SQLNET.ora file on the database server being configured to only allow connections from certain computers on the network (as >

Attempting to connect to a database via SQL Developer throws the error when testing or attempting to use the connection:

If the TCP.VALIDNODE_CHECKING parameter is enabled In the SQNET.ora file then the IP address of each computer allowed to connect to databases via the listener configured using that SQLNET.ora file will need to be added to the TCP.INVITED_NODES list.

Here is an example SQLNET.ora file with VALIDNODE_CHECKING enabled and one computer (with the IP address 192.168.1.101) granted access:

There is an opposite parameter to TCP.INVITED_NODES; TCP.EXCLUDED_NODES will forbid access to those IP addresses configured in its list.

With the appropriate settings in place, SQL Developer should be able to connect as planned:

I setup a DB cloud instance but now I can’t connect to it using SQL Developer.

I setup the SSH connection in SQL Developer + port forwarding and I test that connection successfully.

But when I try to create a connection, I always get this error:

«STATUS: Failure — Test Failed: I/O error: Got minus one from read call, connect lapse XX ms, Authentication lapse 0 ms.»

3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

1

16.03.2021, 05:23. Показов 13642. Ответов 5


Студворк — интернет-сервис помощи студентам

Всем привет!
Все было нормально) Все работало)
Но решил через некоторое время запустить базы на Oracle
В итоге базы не запускаются

Я пробовал оживить командами
lsnrctl status
lsnrctl start
Они оказались актуальны и сработали
Но ошибка осталась…
Подскажите, пожалуйста, что с этим можно дальше сделать?
Может, просто переустановить и все…

0

3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

16.03.2021, 07:13

 [ТС]

2

Попробовал еще раз

https://www.youtube.com/watch?… ningCenter

Тоже самое, ошибка.
Но уже другая ошибка. Прежняя осталась.
Не успеваю додуматься, хелп.

Миниатюры

Ошибка ввода - вывода network adapter could not be established
 

0

Модератор

4204 / 3044 / 581

Регистрация: 21.01.2011

Сообщений: 13,177

16.03.2021, 10:44

3

Цитата
Сообщение от antoniogrid
Посмотреть сообщение

Но уже другая ошибка

Попробуй в listener.ora прописать статически данные о твоей БД. Кстати 12560 — это ошибка, возникающая во многих случаях, например, если БД «лежит». Ну и поищи по коду ошибки 12505 темы на форуме — подобные вопросы уже обсуждались

0

3 / 3 / 2

Регистрация: 20.07.2014

Сообщений: 654

16.03.2021, 18:32

 [ТС]

4

Мда… причина была на моей стороне… чуть не помер…

Пришел с работы, запустил докер…
запустил докер….
запустил…
докер

с..

Просто иконка в трее горела, что проблем нет и я открыл — а там сессия не запущена. Конечно, интуитивно предполагал, что проблема где-то могла быть в «цепочке» влияющей на запуск самого скл девелопера.
Думал, и как правило это было так, все работало (запускался докер и сессия в нем автоматически), что он и сейчас запущен.
Но почему — то что-то пошло не так. И «само» работать работать не захотело.
Случайно аспект данный нашел.

Всем спасибо!
Проблема решена!

0

0 / 0 / 0

Регистрация: 27.02.2020

Сообщений: 8

12.10.2021, 16:32

5

У меня такая же проблема. Скажите, пожалуйста, где найти докер и что такое трей

0

Модератор

8487 / 5647 / 2290

Регистрация: 21.01.2014

Сообщений: 24,229

Записей в блоге: 3

12.10.2021, 16:42

6

Цитата
Сообщение от POMOGITE_please
Посмотреть сообщение

и что такое трей


но это же азы работы в операционной системе!!!
Вот он:

Миниатюры

Ошибка ввода - вывода network adapter could not be established
 

0

So you installed Oracle SQL Developer, and you don’t know what to do next?

Here’s the answer in long-form, with lots of pictures and links.

The short answer: SQL Developer is JUST a client. You need a server to connect to, and that server IS the Oracle Database.

You can get your own running on the same machine as SQL Developer. Oracle XE is free and lightweight.

Or you can get our VirtualBox appliance that has everything already going — a database with test data, hands-on-learning labs, and much more — also FREE.

enter image description here

Of the two, I recommend VirtualBox, because it’s more up to date, and it’s juts an image — it won’t ‘pollute’ your machine in case you decide to stop using the DB. You can just nuke the image.


Обновлено май 2023: перестаньте получать сообщения об ошибках и замедлите работу вашей системы с помощью нашего инструмента оптимизации. Получить сейчас в эту ссылку

  1. Скачайте и установите инструмент для ремонта здесь.
  2. Пусть он просканирует ваш компьютер.
  3. Затем инструмент почини свой компьютер.

Oracle SQL — это интегрированная среда разработки, предназначенная для работы с базами данных Oracle с использованием SQL. Этот продукт разработан и бесплатно предоставляется корпорацией Oracle и основан на Java Development Kit. В последнее время появилось много сообщений об «ошибке ввода-вывода: сетевой адаптер может подключиться» при тестировании соединения с базой данных.

В чем причина этой ошибки?

Всякий раз, когда вы видите, что сетевой адаптер не может подключиться, у вас либо неправильный URL-адрес разработчика SQL, либо у вас есть базовая проблема с подключением к SQL * Net! Эта ошибка, скорее всего, вызвана одним из следующих факторов:

  • Вы используете неправильный URL
  • Использован неправильный номер порта или IP-адрес (или имя хоста DNS).
  • Динамик не настроен правильно.
  • Процесс прослушивания (сервис) не выполняется. Вы можете запустить его с помощью команды «lsnrctl start» или перезапустить в Windows, запустив службу Listener.

Обновление за май 2023 года:

Теперь вы можете предотвратить проблемы с ПК с помощью этого инструмента, например, защитить вас от потери файлов и вредоносных программ. Кроме того, это отличный способ оптимизировать ваш компьютер для достижения максимальной производительности. Программа с легкостью исправляет типичные ошибки, которые могут возникнуть в системах Windows — нет необходимости часами искать и устранять неполадки, если у вас под рукой есть идеальное решение:

  • Шаг 1: Скачать PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista — Microsoft Gold Certified).
  • Шаг 2: Нажмите «Начать сканирование”, Чтобы найти проблемы реестра Windows, которые могут вызывать проблемы с ПК.
  • Шаг 3: Нажмите «Починить все», Чтобы исправить все проблемы.

скачать

Убедитесь, что ваши записи верны.

Чтобы исправить «Сетевой адаптер не может установить соединение”, Сначала убедитесь, что вы ввели правильное имя пользователя и пароль, а также правильное имя хоста и номер порта. Хотя это мелочи, мы не можем их избежать. «Больше всего важны мелочи в отношениях».

Для правильного имени хоста и номера порта вы можете проверить файл Listener.ora, если у вас есть доступ к вашему серверу, потому что Listener — это процесс сервера. Если у вас нет доступа к файлу listener.ora, вы можете проверить файл tnsnames.ora.

В случае файла Listener.ora проверьте запись хоста и порта в метке Listener, чтобы убедиться, что имена хостов и номера портов являются действительными.

И если вы используете файл TNSnames.ora для проверки имени хоста и номера порта, найдите запись с тем же именем, что и ваш SID, а затем найдите запись хоста и номера порта в этом конкретном теге.

Теперь попробуйте подключиться. Если это решит вашу проблему, вы можете избежать следующего шага. Но если ошибка «Сетевому адаптеру не удалось подключиться» все еще присутствует, не беспокойтесь, просто выполните следующий шаг.

Запуск службы прослушивателя

Возможно, что услуга для аудитора не была запущена. Эта услуга требуется приложением для установления соединения. Поэтому на этом этапе мы запустим службу, введя команду в командной строке. Для этого:

  • Нажмите «Windows» + «R», чтобы открыть командную строку «Выполнить».
  • Введите «Cmd» и нажмите «Shift» + «Ctrl» + «Enter», чтобы назначить права администратора.
  • Введите следующую команду, чтобы убедиться, что служба запущена.

lsnrctl Status

  • Если результат похож на изображение ниже, это означает, что служба не была запущена.
  • Введите следующую команду, чтобы запустить службу вручную.

lsnrctl start

  • После запуска службы прослушивания откройте приложение и проверьте, можно ли установить новое соединение.

https://community.oracle.com/thread/2547624


Совет экспертов: Этот инструмент восстановления сканирует репозитории и заменяет поврежденные или отсутствующие файлы, если ни один из этих методов не сработал. Это хорошо работает в большинстве случаев, когда проблема связана с повреждением системы. Этот инструмент также оптимизирует вашу систему, чтобы максимизировать производительность. Его можно скачать по Щелчок Здесь

ed_moyes

CCNA, веб-разработчик, ПК для устранения неполадок

Я компьютерный энтузиаст и практикующий ИТ-специалист. У меня за плечами многолетний опыт работы в области компьютерного программирования, устранения неисправностей и ремонта оборудования. Я специализируюсь на веб-разработке и дизайне баз данных. У меня также есть сертификат CCNA для проектирования сетей и устранения неполадок.

Сообщение Просмотров: 795

Problem

Please note that I changed details for security purposes. However, the problem remains intact.

I installed an Oracle 11g database on a server at location, say, herp-devDV.derp.edu.
Now I have another Oracle 11g database on a server at location, say, derp-db.derp.edu.

I entered the connection name, username, password, hostname, and service name in Oracle SQL developer for both herp-devDV.derp.edu and derp-db.derp.edu. I can connect to schema in derp-db.derp.edu, but not herp-devDV.derp.edu. It gives me this message:

Failure - Test failed: The Network Adapter could not establish the connection

Details

I have the following information:

  • Port 1521 is not open for either server when I telnet
  • My listener is up and running for both.
  • I can access derp-db.derp.edu on Oracle SQL Developer.
  • Oracle client is on my local machine + Oracle SQL Developer
  • I can remote desktop to both servers

What I have done

  • Googled
  • Stackoverflow
  • Ran stop and start lnrctl commands
  • On herp-devDB.derp.edu I ran lsnrctl status

I received the following output

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date                03-JUN-2014 13:37:22
Uptime                    6 days 0 hr. 53 min. 4 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   D:oracleproduct11.2.0dbhome_1networkadminlistener.ora
Listener Log File         d:oraclediagtnslsnrHERP-DEVDBlisteneralertlog.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=.pipeEXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HERP-DEVDB.derp.edu)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "HERPDEVDBXDB" has 1 instance(s).
  Instance "herpdevdb", status READY, has 1 handler(s) for this service...
Service "herpdevdb" has 1 instance(s).
  Instance "herpdevdb", status READY, has 1 handler(s) for this service...
The command completed successfully

I then check out my listener.ora and find

  SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:oracleproduct11.2.0dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:oracleproduct11.2.0dbhome_1binoraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = HERP-DEVDB.derp.edu)(PORT = 1521))
    )
  )

At this point, I confess I am scratching my head as I don’t see anything sticking out and telling me why this should not be working.

The only clue is when I check derp-db.derp.edu and run the command lsnrctl status. Please
see excerpt below:

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DERP-DB.edu)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Production
Start Date                18-MAY-2014 02:19:01
Uptime                    22 days 12 hr. 23 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
---etc----

So I am still scratching my head. Why would derp-db be connecting to the DERP-DB.edu but herp-devDB is connecting to EXTPROC1521? How do I fix this? The listener.ora and other files between these two servers are almost identical except for the name of the instances.
Hmmm.

  • EDIT1: I changed the listener.ora in herp. This didn’t fix it.

  • EDIT2: I cannot telnet into derp-db.derp.edu on port 1521. But I can still connect to it with SQL Developer? Wth?

  • EDIT3 I cannot telnet into herp-devdb.derp.edu on port 1521 either.
  • EDIT4 I cannot ping IP addresses of either server.

Anyway assistance would be greatly appreciated. Thanks

Regards,
Geeky

Понравилась статья? Поделить с друзьями:
  • Status da selection error 0xc0030003 flashtool ошибка
  • Status brom cmd fail 0xc0060005 ошибка flashtool
  • Status brom cmd fail 0xc0060003 ошибка flashtool
  • Status brom cmd fail 0xc0060001 ошибка flashtool
  • Status application hang ошибка в dayz как исправить