473,395 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to find the db2 udb instance has stopped/started

Hi,

Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.

Thanks in advance.

Jan 1 '07 #1
8 4962

pr********@gmail.com wrote:
Hi,

Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.

Thanks in advance.

Hai Prince ...
As this is relating to the instance i guess there wont be any table
from where we can get the timestamp.B'cos to access a table we need a
database connection and the table will be specific to that database. As
Table is an object which is specific to a database i guess we cannot
get the information for the instance as a whole....
So the only option left is the db2diag.log.

But ..
If there is any error when starting or stopping the instance a log is
created in the following locations with the timestamp.

Windows : C:\Program Files\IBM\SQLLIB\DB2\log
Linux or UNIX : <instance home dir >/sqllib/log

Format of the file is : db2start.<timestamp when it happened>.errlog
db2stop.<timestamp when it
happened>.errlog

This is my view please let me know if we have any other way to find
.....

Thanks

Kamal.....

Jan 2 '07 #2

pr********@gmail.com wrote:
Hi,

Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.

Thanks in advance.

Hai Prince ...

As this is relating to the instance i guess there wont be any table
from where we can get the timestamp.B'cos to access a table we need a
database connection and the table will be specific to that database. As

Table is an object which is specific to a database i guess we cannot
get the information for the instance as a whole....

I guess this is the same with Stored procedures also...

So there are two options we have now

1. Command to find the timestamp when an instance is started/stopped
..---- not sure about this ---according to my knowledge we dont have any
such command

2. As u said db2diag.log.....
But ..
If there is any error when starting or stopping the instance a log is
created in the following locations with the timestamp.
Windows : C:\Program Files\IBM\SQLLIB\DB2\log
Linux or UNIX : <instance home dir >/sqllib/log
Format of the file is : db2start.<timestamp when it happened>.errlog
db2stop.<timestamp when it
happened>.errlog
This is my view please let me know if we have any other way to find
.....
Thanks
Kamal.....

Jan 2 '07 #3
Udo
>
Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.

"db2 get snapshot for dbm"

will show you the "Start Database Manager timestamp". There's also an
equivalent udf available.
Regards,
Udo

--
Speedgain for DB2 - The DB2 Monitor
http://www.itgain.de/en/index.html

Jan 2 '07 #4

Udo wrote:

Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.


"db2 get snapshot for dbm"

will show you the "Start Database Manager timestamp". There's also an
equivalent udf available.
Regards,
Udo

--
Speedgain for DB2 - The DB2 Monitor
http://www.itgain.de/en/index.html
Yes this is giving the timestamp.. Thanks Udo for the information....

db2 get snapshot for dbm

Database Manager Snapshot

Node type = Enterprise Server
Edition with local and remote clients
Instance name = db2inst1
Number of database partitions in DB2 instance = 1
Database manager status = Active

Product name = DB2 v8.1.0.64
Service level = s040812 (MI00086)

Private Sort heap allocated = 0
Private Sort heap high water mark = 0
Post threshold sorts = Not Collected
Piped sorts requested = 0
Piped sorts accepted = 0

Start Database Manager timestamp = 01/02/2007
11:59:00.453926
----------------------------------------------------------------------------------------------------------------
Last reset timestamp =
Snapshot timestamp = 01/02/2007
11:59:06.548066

Jan 2 '07 #5

Udo wrote:

Whether is there any way to find stopped/started timestamp of a db2 udb
instance other than the db2diag.log files.Is there any catalog table
available to get the timestamp informations or by using stored
procedures we can get the information's.


"db2 get snapshot for dbm"

will show you the "Start Database Manager timestamp". There's also an
equivalent udf available.
Regards,
Udo

--
Speedgain for DB2 - The DB2 Monitor
http://www.itgain.de/en/index.html
Yes this is Giving the timestamp.. Thanks for the info Udo.... Could u
please let us know about the UDF also...

db2 get snapshot for dbm

Database Manager Snapshot

Node type = Enterprise Server
Edition with local and remote clients
Instance name = db2inst1
Number of database partitions in DB2 instance = 1
Database manager status = Active

Product name = DB2 v8.1.0.64
Service level = s040812 (MI00086)

Private Sort heap allocated = 0
Private Sort heap high water mark = 0
Post threshold sorts = Not Collected
Piped sorts requested = 0
Piped sorts accepted = 0

Start Database Manager timestamp = 01/02/2007
11:59:00.453926
Last reset timestamp =
Snapshot timestamp = 01/02/2007
11:59:06.548066
Thanks
Kamal.....

Jan 2 '07 #6
Udo
Yes this is Giving the timestamp.. Thanks for the info Udo.... Could u
please let us know about the UDF also...
db2 "select DB2START_TIME from table(snapshot_dbm(0)) as dbm"

Regards,
Udo

--
Speedgain for DB2 - The DB2 Monitor
http://www.itgain.de/en/index.html

Jan 2 '07 #7

Udo wrote:
Yes this is Giving the timestamp.. Thanks for the info Udo.... Could u
please let us know about the UDF also...

db2 "select DB2START_TIME from table(snapshot_dbm(0)) as dbm"

Regards,
Udo

--
Speedgain for DB2 - The DB2 Monitor
http://www.itgain.de/en/index.html\


Thanks Udo......

Can u explain the statement " table(snapshot_dbm(0)) as dbm " . This
is a select statement on which table ? .....
Is there any catalog table from which it is getting the information ?
if so the assumptions i gave in the first mail is wrong..
Thanks in advance ....
Kamal....

can u pls clear me on this......

Jan 2 '07 #8
Gladiator wrote:
Can u explain the statement " table(snapshot_dbm(0)) as dbm " . This
is a select statement on which table ? .....
From a table function.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Jan 2 '07 #9

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

Similar topics

8
by: Horhayson | last post by:
Running W2k Server SP4, my application event viewer says that the Active Server Pages service is stopped. How and what do I need to do to start the service, and why does it stop? *** Sent...
12
by: Beer | last post by:
Hello Everyone, We have been getting the EventID 7031 errors ever since we installed SP 3. We have been searching for any possible solution, but not much luck. We are running Windows 2000...
16
by: Alvin Bruney | last post by:
I'm observing that a sleeping thread changes to stopped after a while. Is that accepted framework behavior for web applications? My thread basically does some work, and sleeps for 60 minutes...
6
by: Naldo Alcalde | last post by:
Hi friends, that's my question. I need use the instance's fields in my last process before they are destroyed. Similar to a C++ destructor, because C# destructor is called after of destroy the...
8
by: Beve Lyni | last post by:
I am running an asp.net project on my localhost and using state server as state management, it has the following code in web.config <sessionState mode="StateServer"...
7
by: Ford Prefect alias Armin | last post by:
I want to start a Thread and wait till the Thread has been stopped (via Suspend) How to do this. Sub Test Start Thread Wait Till Stopped Go on with this code as sone as the Thread has...
3
by: Ramesh Dodamani | last post by:
Environment: XP Pro, VS.Net 2003, .Net 1.1.4322 with SP1 & KB Hotfix 886903 P4 2.2GHz, 1 GB RAM My system was working fine till a few weeks back when I started seeing the following errors. ...
1
by: Racerx | last post by:
Hi All: I use db2 8.1 fixpack 3 on AIX platform. I am recieving the following messages every time I restart the instance for a full offline backup....
2
by: gray d newbie | last post by:
Greetings All, This is my first time creating a Window Service and I am having this error message when I try to start my window service (currently known as Service1). Below is my code for Window...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.