Although I can open my connection using SQL Plus, I am unable to open that connection using Oracle SQL Developer.
Earlier there was no problem. But, a friend of mine wanted to reach my database through another computer. So, he maybe edited some configuration files like:
listener.ora, sqlnet.ora or tnsnames.ora.
But I'm really not sure if this caused the problem.
If the problem is from the previous configuration files then please provide me a link to the files in the default state.
Related
I have recently downloaded toad for oracle and i want to connect it to my databases but all I have is a cloud wallet for the database.
I have tried to unzip the cloud wallet and point the toad to that location so it can read the tnsnames.ora file but it did not work. I tried editing the current TOAD tns file and adding the host, port, service name and the credentials but it still did not connect. I kept getting a lot of different errors for example connection failed. file could not open
I do not know how to configure TOAD for it to connect.
Can anyone guide me in the process, I researched it a lot but nobody seem to do it often.
Thanks
This is entirely an Oracle Client configuration issue; there is nothing to do in TOAD itself. You need to either unzip the cloud wallet into your ORACLE_HOME/network/admin directory, or unzip it to a custom directory and set the TNS_ADMIN environment variable to point that directory. Note that TNS_ADMIN must be set before you start TOAD.
Here's one reference I found:
https://forums.toadworld.com/t/toad-connection-to-oracle-cloud-autonomous-database-using-wallet/48202
Is there a way to configure Oracle SQL Developer to respect the TNS look up order in sqlnet.ora ?
We have all information correctly configured in TNS_ADMIN folder:
ldap.ora
sqlnet.ora
tnsnames.ora
Our sqlnet.ora config TNS Look up order as:
...
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES)
...
We want the client to check LDAP first , then local tnsnames.ora as a backup in case lost LDAP connection.
But looks like Oracle SQL Developer can not use sqlnet.ora.
You either have to select TNS or LDAP explicitly.
I google around , but no one seems bother with this.
Please let me know if it is even possible with Oracle SQL Developer, if so , how ?
For SQLNet.ORA to come into play, setup a THICK connection.
Once you have your HOME established, check 'Use OCI/Thick Driver' below that.
You'll be prompted to restart sqldev.
Then make your connection.
To confirm your connection is 'thick', run this in SQL worksheet with F5:
show connection
What comes back should show :OCI in the connection URL. If you see 'thin', you haven't successfully setup the THICK driver.
Otherwise by default SQL Developer uses JDBC to connect, and SQLNet.ora never comes into play. It can still look for and find a TNSNames.ora file though.
Run this in a worksheet to see what's what with TNS
For people who also have trouble with this.
Someone told me a simple solution.
I have a database Connection established in odbcad and Microsoft Access (aswell as working in Excel) via ODBC and want to also get it working in Oracle SQL developer.
It is a Windows SQL Server as far as i know and I have tried several Settings, of which None works. I have also installed Driver for ODBC. I would like to Import Settings into SQL developer as applied in MS Access, is there any possibility?
No, SQL Developer is a Java application and uses a JDBC driver.
But if you look at the odbc properties for your connection, those should largely translate to what you need to define a basic connection.
Oracle:
Server name or IP address of the DB, port # for the listener, and the name of the SID or Service, plus a valid username and password is all you need to connect to Oracle.
What error do you get when you try to connect?
Show us what you're trying.
Update:
You're trying to connect to SQL Server but you're getting"
Native SSPI library not loaded
You're trying to use OS Authentication for your connection. For this to work with the jTDS driver, you need to copy a DLL file named ntlmauth.dll (which is for NT authentication) under the jtds-x.x.x-dist\x86\SSO\ or jtds-x.x.x-dist\x64\SSO\, to any directories in the PATH environment.
Please update your question such that's it's clear you're connecting to SQL Server and share the error message so others can find it.
I imagine this question is a duplicate of many previous iterations of the same challenge.
I am new to Programming. I am learning JAVA and for DB i wanted to learn Oracle so I downloaded sqldeveloper from Oracle website. It was a zip file so I didnot have to install anything, simply extracted it. When I open the sqldeveloper and try to make a new connection, it shows error.
Test failed: IO Error: The network adapter could not establish the connection.
I am not sure what to put in username and pwd. and i am also not sure if i have to connect this to jdk or jre or set classpath for database.
Can anyone help me?? I have uploaded the snapshot of the error too.
You downloaded a client.
You did NOT download the server component though - the actual database.
SQL Developer just allows you to work with an existing database.
No worries, you're not that far away. You have several options.
Oracle Database Express Edition (XE) - it's completely free.
We also have a VirtualBox appliance you can use for personal learning purposes, also completely free.
I talk about this and give step by step instructions here.
Check if oracle service, TNSListener service is up and running before trying to make any new connection from sql developer.
Even if TNS Service is down , connection can not be established with oracle instance.
I am a new user in Oracle. In Oracle SQL Developer, whenever I want to create a new connection and fill the "New Database Connection" form, it gives me this error: -
ORA-12560: TNS:protocol adapter error
Please Help.
To add more to my comment on the question...
Ensure your database is open (has been started up).
Start all oracle services for your database
Start the databases listener (lsnrctl start)
Startup your database instance (startup open <database_name>)
Also, ensure the database you are trying to connect to has an entry in the tnsnames.ora file your SQL Developer is using (depending upon your setup you may have a tnsnames.ora for both your oracle client and database software if they are on the same physical hardware like your PC or laptop).
I've faced that kinda problem also and I've tried stop all of oracle services and start it again. But unsuccessful. Eventually, I've needed to install Oracle again which can solve this problem.