cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

New Contributor

How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

There is a requirement for me to connect to an Oracle thin DB which is identified by 'Service Name' instead of SID.

Our DBA advised that SID is a thing of the past and they’re using Service Name now as best practice and for operational reasons.

But from SOAP UI Pro i dont see an option to enter Service Name in DB configurations, whereas SID is shown instead.

 

Please advice the steps to achieve this.

7 REPLIES 7
Highlighted
New Contributor

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

Hi,

 

I am using the same setup. I simply put the service name into the SID field - workes fine for me.

 

With that I am using java class "ojdbc6.jar" in c:\<yourInstallationFolder>\ReadyAPI-2.7.0\bin\ext

Attached you'll find my settings. The "1" in the service name is for the cluster node I want to connect to. In a cluster environmend that is necessary to give.

 

Hope this helps

Terkon

 

Community Manager

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

Thanks for your suggestion, @Terkon!

 

@gmathai, were you able to resolve the issue?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Contributor

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

@TanyaGorbunova / @Terkon 

After placing the ojdbc6.jar in the specified location, i am getting the attached error.New Error.jpg

Community Hero

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

Try checking with sqlplus or other client software to connect to the db and see if that is working.


Regards,
Rao.
New Contributor

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

@nmrao We are able to connect to this DB using Oracle SQL developer. Issue faced from SOAPUI though.

New Contributor

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

Ok, I think that was a step in the right direction. Unfortunately this Error (Ora-12505) can have quite a lot of reasons.

Isn't there a DB admin you can turn to?

 

Check out this:

https://chartio.com/resources/tutorials/how-to-fix-ora-12505-tns-listener-does-not-currently-know-of...

 

Or maybe google some other sites with hints on that problem.

 

What does the TNS look like, which you use for the DB developer? And how the connection string in that tool?

Are you working on a cluster environment or is it a single instance DB?

Maybe you have to adjust your connection string in SOAPui or adjust the TNS so they fit to each other

 

Community Manager

Re: How to connect to an Oracle Thin DB which is identified by 'Service Name' instead of SID

Thanks for your help, Community!

@gmathai, have you managed to find a solution. Please share it with us - it may help someone else.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors