Security Update for Windows preventing Oracle Listener from running? - oracle

For the last month I have installed and used Oracle 11 XE, but this morning I restarted my computer and installed new updates from Windows. Now I cannot get the database to work. I know this caused it because I was using SQL Developer right up until I restarted. I get this error when attempting to run in SQL Developer
An error was encountered performing the requested operation:
IO Error: The Network Adapter could not establish the connection
Vendor code 17002
I went to Service and made sure my OracleServiceXE was running, which it was. I tried starting "OracleXETNSListener" and got this message:
The OracleXETNSListener service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services and programs.
I then went to CMD and typed "lsnrctl status" and got:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<host name>)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 61: Unknown error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 2: No such file or directory
Now at this point, almost everything I googled told me to start the listener and if that doesn't work run as admin. I did both of those things, but it didn't work.
running normally in cmd:
Starting tnslsnr: please wait...
Unable to OpenSCManager: err=5
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
running as admin:
Starting tnslsnr: please wait...
(note: it stalls for 2 minutes)
TNS-12560: TNS:protocol adapter error
To complicate matters, my computer told me "We couldn't finish installing updates" and that makes me hesitant to uninstall the updates.

Related

Why am I getting "cx_Oracle.DatabaseError: ORA-12541: TNS:no listener" error when I try to connect to oracle database from vscode?

I have a script I wrote to connect to my local oracle database. It worked perfectly before now. I was able to connect and populate the database with data from vscode. After I formatted my machine and reinstalled oracle database and instance client. I couldn't connect again, whenever I try, I get this error
Traceback (most recent call last):
File "c:\Users\ChiNedu\Documents\python\Oracle\oracle.py", line 10, in <module>
cnx = cx_Oracle.connect(conStr)
cx_Oracle.DatabaseError: ORA-12541: TNS:no listener
PS C:\Users\ChiNedu\Documents\python\Oracle>
when I type lsnrctl stat in command prompt, I get this
LSNRCTL for 64-bit Windows: Version 19.0.0.0.0 - Production on 09-FEB-2023 17:33:46
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DESKTOP-QPAJR53)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
64-bit Windows Error: 1001: Unknown error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
64-bit Windows Error: 2: No such file or directory
I tried to change the HOST NAME but can't find the %ORACLE_HOME%/network/admin directory from my machine services. Please help me get this fixed. Thanks.

Trouble with installation of Oracle 11g server version

This error with the words:
"[INS-20810] Target or command to 'Oracle Net Configuration Assistant' not valid" is shown at the end of installation when the net configuration has to be installed properly.
And then suddenly some error messages with the words "An error occurred during runtime", pop up.
Then if I ignore the error messages and click skip, the installation gets completed leaving the essential net configuration and other database set ups uninstalled. Then when I get into sqlplus and enter the correct username and password too, it shows me an error with the message "ORA-12560: TNS:protocol adapter error".

Network Adapter Error when connecting to Oracle with SQL Developer on MacOS High Sierra

Keep getting the following error:
"Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
when trying to connect to the Oracle database on my local machine. I've successfully logged on before, but when I try and rejoin a connection it presents this error.
I've tried re-installing, connecting as sys or other usernames, but the error keeps returning.

Oracle TNS: No Listener error while tnsping for my service

I just Installed Oracle 11g on windows 7 64bit, and when I tried to ping using tnsping I faced this error TNS-12541: TNS:no listener.
So, I tried to start the listener using LSNRCTL> start also I faced this error:
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
Set ORACLE_HOME and try starting the Listener again.

ORA-12514 after rebooting server

I am using Oracle 10g R2.
Recently, after rebooting the server, I started having a problem where I couldn't connect to the instance. I am only connecting locally on the server itself.
Oddly enough, the issue corrects itself if I start the Database Administration Assistant, and select my instance to supposedly change its settings.
Does anybody have a clue on the roots of this problem?
#akaDruid: I am testing my connection simply by trying to start SQLPlus on the server.
#Matthew: It's Windows
EDIT: I don't think I read your question properly: The listener should not affect connections on the local machine, so you can probably ignore the rest of the answer, unless it gives you a hint! How were you testing your connection? Was ORA-12514 the only error?
(I'm assuming you're on Windows here)
I guess the listener is not starting automatically when you reboot the server, and it's getting starting in oracle administration assistant - I don't use that tool unfortunately so couldn't say.
Next time you reboot, before starting oracle administration assistant, open a command prompt and type lsnrctl status. If the listener has not yet started you will get something like this:
C:\Documents and Settings\user>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 27-OCT-2008 14:00:21
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC01)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=server.domain.co.uk)
(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
C:\Documents and Settings\user>lsnrctl status
if it is running, you will get something like this:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 27-OCT-2008 14:03
:33
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC01)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 27-OCT-2008 14:03:27
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC01ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server.domain.co.uk)(PORT=1521))
)
Services Summary...
Service "ORCL" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Service "ORCL1" has 1 instance(s).
Instance "ORCL1", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Documents and Settings\user>
If the listener is not starting, check that service is set to automatic. If it is, check the listener.ora makes sense, see what output you get from lsnrctl start, etc.
Hope that helps, or at least sends you down the right path
You haven't specified if this is windows or unix?
I've seen similar issues on unix when ORACLE_HOME was defined slightly differently on the account which starts up oracle, and on connecting accounts, one account had ORACLE_HOME=/usr/oracle , the other had ORACLE_HOME=/usr/oracle/ , the trailing slash messed things up.
How exactly are you staring up the server, do you have a script to do it, or are you connecting internally and issuing "startup"
again, if this is windows, I have no idea :)
I had the same error. Going to http://localhost:1158/em showed the listener was up, but the database instance was down.
Click the "Startup" button next to the instance to bring it back online (I think)
Another possible explanation:
http://www.orafaq.com/forum/t/66224/2/

Resources