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

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.

Related

Oracle database throwing error - orapw[SID] is missing

I have downloaded and installed Oracle Database Express edition. In SQL Developer, I am trying to create a new database connection that connects to SYS, however I am being rejected with the error:
Status : Failure -Test failed: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
I found out that during installation I should have been prompted to create a password for sys, but no such thing happened.
I then tried to find the orapw[SID] file in /database. It was not there.
Any idea what I'm doing wrong?

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

I download oracle sql developer "Windows 64-bit with JDK 8 included" from oracle website /download section. I unzipped it and tried to make a connection. I tried couple of options but I am getting "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection" error.
Can any one help me with this. Thank you
Do you have a database?
I downloaded SQL Developer, now what?
SQL Developer is just a client, you need a database to connect to.

How to catch Sqlcmd errors without showing the error message

I am trying to find out with SQLEXPRESS is installed on a server by running the following
sqlcmd -S LT1183 -U uname -P pass123 -Q "SELECT ##servername"
If it is installed it gives out the server name but if its not, it throws the below error.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : TCP Provider: Error code 0x2AF9.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
I am looking for a way to suppress this error and instead show a custom error message. Is that possible?
Thanks in advance.
This may not be possible with sqlcmd, since the error stems from connecting the the server, which upon error immediately terminates the sqlcmd.
if you can use powershell, you may find some luck using invoke-sqlcmd.
Powershell Try Catch invoke-sqlcmd

Getting Error when connection scott schema from SQL Developer

I am getting below error when ever trying to connect DB from sql developer.
Status : Failure -Test failed: Listener refused the connection with
the following error: ORA-12514, TNS:listener does not currently know
of service requested in connect descriptor
But successfully connect from command prompt.
I have set the path in environment variable correctly.
Can you please help me with this issue.
Thanks

Security Update for Windows preventing Oracle Listener from running?

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.

Resources