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
wojtyla
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: 68722
Registered: March 2007
Location: Saint-Maur, France, https...
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?

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


Current Time: Thu Dec 12 05:01:18 CST 2024