473,508 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database Status Script

Hi All

Thanks in advance

Can you guys please help me in providing an SQL script that display the
database names and its status in a db2 instance..

I need to write a java program that displays this details

Pl help me

Regards
Santhosh

May 16 '06 #1
3 1628

"Santhosh" <ko******@yahoo.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
Hi All

Thanks in advance

Can you guys please help me in providing an SQL script that display the
database names and its status in a db2 instance..

I need to write a java program that displays this details

Pl help me

Why write a script when the Control Center displays all of this for you
nicely in an attracive and highly functional GUI?? The GUI lets you see the
status and also do umpteen others things with your databases, tables,
procedures, etc.

--
Rhino
May 16 '06 #2
aj
You didn't mention OS or DB2 version (these always help). Are you sure
you're not more interested in instance status than database status?
You just want to know if DB2 is up and working, yes?

This kind of stuff is much easier in a scripting language rather than java.

In *nix, this (check_db2sysc.sh) will tell you if the instance is up:

if [ `ps aux | grep db2sysc | grep <INSTANCE> | grep -v grep | grep -v
check_db2sysc | wc -l` -eq 0 ]
then
echo "DB2:<INSTANCE> instance down" | /bin/mail page_whoever
fi

Stick 'er in a cron and away you go.

HTH

aj

Santhosh wrote:
Hi All

Thanks in advance

Can you guys please help me in providing an SQL script that display the
database names and its status in a db2 instance..

I need to write a java program that displays this details

Pl help me

Regards
Santhosh

May 16 '06 #3
Santhosh wrote:
Hi All

Thanks in advance

Can you guys please help me in providing an SQL script that display
the database names and its status in a db2 instance..

I need to write a java program that displays this details

Pl help me

Regards
Santhosh


Take a look at this earlier thread <http://tinyurl.com/zre56> in
particular the two articles Kums' post (the first reply) links to.
Might provide some useful commands and procedures that you could make
use of.
HTH,

Dave.

--

May 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
34035
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
12
9341
by: Steve | last post by:
hey guys, i have been searching around... and it seems that the below code is good for a SINGLE PAGE. <BODY BGCOLOR=white onMouseOver="window.status=' something ';return true"> but... i...
2
4720
by: Charles Mendell | last post by:
1. When I go to http://www.w3schools.com/js/default.asp and choose: 2. JS HTML DOM and then choose: 3. the Window object and then choose: 4. Write some text in the windows status bar ( a link)...
11
2629
by: The Numerator | last post by:
How do you modify the status bar? (The status bar is the bar on the bottom in IE. It should read "Done" now.) I'm pretty sure, this requires JavaScript. Thanks.
3
4185
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
0
1705
by: TheFlash | last post by:
hi all , I have a situation where my code would read data from Sybase tables and display it via HTML using SYBPerl ... now the data is moving to DB2 so i want to do the same thing with DBI DB2 ...
0
1057
by: Israel Carr | last post by:
Thanks for anyone who takes the time to read this. If I posted to the wrong list, I apologize and you can disregard. I need help with a script to pull data from a postgres database. I'm ok...
0
7114
by: studentofknowledge | last post by:
hi my knowledgeable comrads I have created a web form using html, css with the addition of some basic javascript validation. Although now im having trouble to insert this information to my local...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.