Get Database Service Names


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Get Database Service Names
# 1  
Old 04-29-2009
Question Get Database Service Names

Hi Everyone,

I want to know which database (Oracle,SQL,Informix...) are installed on Unix Machine.
I have very limited experience on Unix Environment, Smilie So I have no idea of getting this information. But in windows we can get Service names using WMI. Is there any similar way of Doing so?

I would like to know the command which can list the running processes from which i can recognize the processes belonging to database.

Thank You in AdvanceSmilie

Roshan
# 2  
Old 04-29-2009
there can be more than one database installed on the machine.

generally, you are able to see the environment variable exported in your env.

e.g for oracle
Quote:
echo $ORACLE_HOME
for sybase
Quote:
echo $SYBASE
etc etc..

you can also use find utility to search for any database utility
like.. sqlplus, isql, mysql, tsql, bcp .....
# 3  
Old 04-29-2009
Thank You for your help ...
Also, Is it good way to list running processes and Filter processes related to Db(s) (Provided we have list of predefined process names for Diff. Database like oracle,SQL..) ?
# 4  
Old 04-30-2009
use ps command for that
Quote:
ps -ef | grep <process name>
# 5  
Old 04-30-2009
Quote:
Originally Posted by Roshan1286
Thank You for your help ...
Also, Is it good way to list running processes and Filter processes related to Db(s) (Provided we have list of predefined process names for Diff. Database like oracle,SQL..) ?
Depending on your Unix flavour, you might want to check commands like
top, prstat etc and then grep for "oracle|sybase|informix"


cheers,
Devaraj Takhellambam
# 6  
Old 05-12-2009
Thank You guys...!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Run one service after another service has finished - systemd

Hi all I would like to know how to run task2.service after task1.service has finished. task1.service has a timer (task1.timer), that makes it run every 5 minutes OnCalendar=*:0/5task2.service is basically a script, that has to work on the files created after task1 has finished. This is what I... (2 Replies)
Discussion started by: guilliber
2 Replies

2. AIX

0514-516 Device Configuration Database Lock Service

Hello guys, on one of our AIX VIO LPARs I can not remove hdiskpower devices, which seemed to presented to the VIO in an incorrect way and behaviour (not all paths can be seen, pseudo device name is unknown etc.) Therefor I decided to deattach the hdiskpower device from PowerPath controll by: ... (5 Replies)
Discussion started by: tomek79
5 Replies

3. Solaris

Oracle Database and HTTPD Web Service

Hi, I have a Solaris 5.6 having an Oracle database.Now this server is being accessed by a web service interface.I cannot see anything other than httpd daemons running on my server. There is a frequent problem of the stopping of these httpd daemons . Now i am asked to find the root case.I talked... (1 Reply)
Discussion started by: asalman.qazi
1 Replies
Login or Register to Ask a Question