Please help with this error on DBVisualizer. No oracle or Sql is installed i just simply use DBVisualizer.
I have read lot of answers here on stackoverflow but not able to find a suitable answer.
Note : I used Oracle Thin Driver for connection.I have used latest updated version and also tried old version too.
An error occurred while establishing the connection:
Long Message:
Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
Details:
Type: java.sql.SQLException
Error Code: 12514
SQL State: 66000
Sounds to me like the environment isn't set to the right path for oracle drivers to be found. Has this worked before? I ask because you say:
Which is a little odd, in my opinion. Typically your environment must state "where to look" for db drivers.
Shot in the dark, but setting something like:
TNS_ADMIN=/opt/oracle/instantclient_11_2
orTNS_ADMIN=C:\path\to\oracle\thin\drivers
might work.Next suggestion is to follow this and see if setting TNS_NAMES makes a difference:
ORA-12514 TNS:listener does not currently know of service requested in connect descriptor