Home » Infrastructure » Unix » Getting Server Info Through Proc
Getting Server Info Through Proc [message #270542] Thu, 27 September 2007 07:51 Go to next message
Messages: 17
Registered: March 2005
Location: USA
Junior Member

HI, I wanted to know if one can find out the server hostname,
port & the service id through Pro C/C++ code .
I dont want to use tnsping
but want to write a client which would retieve me these details

even a java code will do

any help is appreciated
Re: Getting Server Info Through Proc [message #270547 is a reply to message #270542] Thu, 27 September 2007 08:22 Go to previous message
Michel Cadot
Messages: 63937
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
You can do the same thing that tnsping: find tnsnames.ora and sqlnet.ora files and scan them till you find the service you are asking.
Is there a reason you don't want to use tnsping?

Previous Topic: Logic Validation
Next Topic: Compressing a File with Time stamp in Unis Shell Script
Goto Forum:

Current Time: Thu Oct 27 14:22:08 CDT 2016

Total time taken to generate the page: 0.05792 seconds