If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > sybase uptime

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-08, 16:06
sriyaz sriyaz is offline
Registered User
 
Join Date: Mar 2008
Posts: 22
sybase uptime

Hi,

I am new to Sybase world.

Can any one tell me, when my sybase dataserver is up?



Regards
Riyaz
Reply With Quote
  #2 (permalink)  
Old 04-07-08, 22:42
sridhar.Y sridhar.Y is offline
Registered User
 
Join Date: Feb 2008
Posts: 27
Hi sri,

you can chech this from OS level useing ps -ef | grep dataserver or from install dir showsrever it will show u the time .
And if ur dataserver is not up ur not able to logon the serever.
Reply With Quote
  #3 (permalink)  
Old 04-08-08, 02:33
aziqmail aziqmail is offline
Registered User
 
Join Date: Apr 2008
Location: India
Posts: 3
You can find the up time of dataserver using select @@boottime

Last edited by aziqmail; 04-08-08 at 02:39.
Reply With Quote
  #4 (permalink)  
Old 04-08-08, 11:29
mpeppler mpeppler is offline
Registered User
 
Join Date: Jan 2003
Location: Geneva, Switzerland
Posts: 353
Or

select crdate from master..sysdatabases where name = 'tempdb'

which will return the boot time, as tempdb is recreated at boot.

Michael
Reply With Quote
  #5 (permalink)  
Old 04-09-08, 02:17
gaurav1980us gaurav1980us is offline
Registered User
 
Join Date: Nov 2007
Posts: 7
how t0 check whether sybase is running

hope you understood how to check on the UNIX/solaris amchines, now...If you are starting on windows then in the 'services.msc' you can see whether the server is UP or not.

another ways is to check the logfile ofcourse
Reply With Quote
  #6 (permalink)  
Old 04-21-08, 12:10
sriyaz sriyaz is offline
Registered User
 
Join Date: Mar 2008
Posts: 22
Thanks,

When I used showserver it shows following to me. It don't show me the dataserver name.How to correct it.

sybase 3674 3669 0 09:04:14 ? 0:30 /opt/sybase/ASE-12_5/bin/dataserver -ONLINE:1,0,0xffffffffe8841
sybase 3958 3957 0 09:18:18 ? 0:26 /sybase125/ASE-12_5/bin/dataserver -ONLINE:1,0,0xffffffffe88417

But when I login with isql with dataserver name it is working for me.

Thanks
RIYAZ
Reply With Quote
  #7 (permalink)  
Old 04-22-08, 03:03
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
ps -ef |grep "[R]UN"
Reply With Quote
  #8 (permalink)  
Old 05-02-08, 12:08
ishu.cs ishu.cs is offline
Registered User
 
Join Date: Mar 2008
Posts: 59
hi
u can find the server name by executing following commands
on OS prompt
echo $DSQUERY
on isql prompt
select @@servername
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On