Reputation: 53
Below are my connection settings for Oracle SQL Developer with tnsnames.ora
The pattern of jdbc string required is as below :
jdbc:oracle:thin@:1521:<DATABASE_NAME>
I have tried the following :
jdbc:oracle:thin:@ServerIP:1521:test2 , jdbc:oracle:thin:@ServerIP:1521:orcl.5bfzmyo25mfutjqfmvvj0cmrya.rx.internal.cloudapp.net:test2
But it is not connecting.
Upvotes: 0
Views: 3512
Reputation: 231661
Assuming that
ServerIP
orcl.5bfzmyo25mfutjqfmvvj0cmrya.rx.internal.cloudapp.net
your connection string should be (see the linked question for additional syntax options)
jdbc:oracle:thin:@//ServerIP:1521/orcl.5bfzmyo25mfutjqfmvvj0cmrya.rx.internal.cloudapp.net
Your app server has no idea about how you've configured your local tnsnames.ora file or your local SQL Developer connection strings. So you can't reference test2
(the name of a SQL Developer connection) or any of the tnsnames.ora entries you've created on the client machine.
Upvotes: 0