aspose file tools
The moose likes Java in General and the fly likes DataBase Server ping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "DataBase Server ping " Watch "DataBase Server ping " New topic
Author

DataBase Server ping

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Hi Ranchers,

If i have database on a Remote Machine , How to check Or ping if the server is running or not ?
What i mean to ask is how can i check the IP and Port of it ??

Are there any commands to do this ?


If you want something you never had do something which you had never done
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Read up on the ping command
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
I know that , atleast do you have idea on what should be the port to be pinged ?

As we need to give the Host (i know its IP of that Machine)

Can You please tell me about the port?? Is this the same port which would be given at the time of DataSource creation ??

Hope you know the answer
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

RaviNada Kiran wrote:I know that , atleast do you have idea on what should be the port to be pinged ?


No, of course we don't. Just ask the database administrator what port it is listening at. That is a choice they made when they set up the server.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

There are default ports for most database systems, but that doesn't mean those ports are actually used. Especially Microsoft SQL Server, which defaults to a non-default port if you use a named instance; the default port is only default for the default instance.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Paul Clapham wrote:
RaviNada Kiran wrote:I know that , atleast do you have idea on what should be the port to be pinged ?


No, of course we don't. Just ask the database administrator what port it is listening at. That is a choice they made when they set up the server.



Good one Paul Nice humour
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataBase Server ping
 
Similar Threads
Checking if a server is activated
Error deserializing Object
Pinging a Remote DataBase
status of internet connection
Access DataSource from stand alone Client