TNS Protocol adapter error while starting SQL Developer? - oracle

I'm facing this problem while working with SQL Developer:
Status: Failure-Test failed refused the connection with the following error:ORA-12505:

Your database is not configured to listen on a given hostname/port or uses different sid. Use Oracle Net Configuration Assistant to verify that your db is configured correctly

Related

UDL connection with Oracle database using OLEDB Provider

I am trying to connect the oracle database using universal data link(UDL) with the provider as "Oracle provider for OLEDB"
The test connection fails with the below error
Test connection failed because of an error in initializing provider. ORA-12170: TNS:Connect timeout occurred
I am able to connect to the oracle database using SQLPLUS and Oracle SQL Developer from the same machine.
Please suggest the possible root cause of the issue.

Unable to connect to remote Oracle database using DBeaver

I am trying to connect to a remote Oracle db from my mac using DBeaver.
Dbeaver version I am using is: 5.1.3
I installed the ojdbc6.jar file from the below link:
http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
as instructed by the DBeaver tool. I added the above file in the driver manager window.
When I try to connect to the database I get the following error(dbeaver-debug.log):
Connection failed (oracle_thin-16161616-16161616)
2018-07-21 13:16:06.749 - org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:157)
at org.jkiss.dbeaver.ext.oracle.model.OracleDataSource.openConnection(OracleDataSource.java:133)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:86)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.initializeMainContext(JDBCRemoteInstance
If anyone has suggestions as to how I can debug this issue, would be highly appreciated.
Thank you.
Are you able to connect via other tools (like SQL Developer)? if no then please try that as well. There can be multiple reasons for connection timeout. It is also possible that port in remote system is not accessible.

Error while connecting to Oracle database from oracle SQL Developer though I've the oracle client installed

I've installed Oracle client in my machine, when I'm trying to connect to the oracle database server from Oracle SQL Developer am getting the following error:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
But am able to connect to the server using sql plus and TOAD as well from my machine. What is the issue if Toad connects to the server why cant my Oracle sql developer could not connect??
checked all the possible solutions like:
tns strings checking, telnet to the server and its port,
changing the oracle home in the sqldeveloper->tools->preferences->database->advanced tab.
None solved my issue. Is this the firewall issue?
If it is so how am able to connect using TOAD/sql plus ??
UPDATE: I'm connecting to the Oracle database server using the VPN.
Any help is much appreciated.
Thanks in advance.

IO Error: The Network Adapter could not establish the connection while trying to make JDBC connection to Oracle DB

Im trying to make a JDBC connection to my Oracle DB.
It works fine through TOAD but when im trying to establish the connection through JDBC it gives me the below error
"IO Error: The Network Adapter could not establish the connection"
The syntax of the url and details provided in the url is correctly picked up from TNS file.
when I ping the hostname it connects but with telnet it gives me error
"Could not open connection to the host,on port 1521:Connect failed"
Possible issues will be.
(a) Check if the database is up. Most of the times, database will not be up causing this issue.
(b) Check if you are able to connect using sqlplus

ora 12560 tns protocol adapter error- while connecting to oracle

I have oracle 9i already installed in my machine. I am trying to connect to the oracle but while connection i am getting "ora 12560 tns protocol adapter error" type of error. i have tried it with the default pass scott/tiger , system/manager..
When i tried to connect to the oracle using default credentials i am getting the above error.
is it the problem with the username and password ? if so how can i get the username and password which is already set ?
IME, ORA-12560 means the Oracle Universal Installer messed up your listener configuration.
Assuming you have an Oracle 9i Server installed on your computer, here's a list of things to check.
does "lsnrctl status" show your database instance?
does "tnsping my_service_name" work?
do tnsnames.ora and listener.ora contain entries for your database? Are the hostname / port etc. correct?
If the configuration is wrong, your best bet is to start netca, remove your existing listener configuration and re-configure it.
One question, though: Why do you want to run Oracle 9i? Do you have to support some kind of legacy application / database? (Oracle 11gR2 is so much nicer than 9i)
Start -> Run -> services.msc
Select the oracle service name and right click on it then select start.

Resources