473,386 Members | 1,733 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,386 software developers and data experts.

how to check for when a db2stop command is last issued

Hi All,

How can I check for when a db2stop command is last issued?

Or when a db2 force applications all command is last issued?

Thanks in advance

R
Apr 25 '08 #1
4 3674
docdiesel
297 Expert 100+
Hi,

check the db2diag.log (on *nix systems in ~/sqllib/db2dump/ ). DB2 logs starts and stops there. If you find some information about "force application" I can't say at the moment.

Regards,

Bernd
Apr 28 '08 #2
Hi,

check the db2diag.log (on *nix systems in ~/sqllib/db2dump/ ). DB2 logs starts and stops there. If you find some information about "force application" I can't say at the moment.

Regards,

Bernd
Sorry it was my bad.
I tried using the db2diag.
I am checking whether there is any other option.

Thanks,
R
Apr 30 '08 #3
If you are on V9, you can check this from within DB2 using:

Expand|Select|Wrap|Line Numbers
  1. select timestamp from SYSIBMADM.pdlogmsgs_last24hours where function = 'DB2StopMain'
Alternatively, if you want to look for stops over, say the last week:

Expand|Select|Wrap|Line Numbers
  1. select timestamp from table(pd_get_log_msgs(current timestamp - 7 days)) as x where function = 'DB2StopMain'
May 15 '08 #4
If you are on V9, you can check this from within DB2 using:

Expand|Select|Wrap|Line Numbers
  1. select timestamp from SYSIBMADM.pdlogmsgs_last24hours where function = 'DB2StopMain'
Alternatively, if you want to look for stops over, say the last week:

Expand|Select|Wrap|Line Numbers
  1. select timestamp from table(pd_get_log_msgs(current timestamp - 7 days)) as x where function = 'DB2StopMain'

Thanks so much for your help.
Unfortunately My bad luck. I am still in V8.2


R
May 21 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ezelasky | last post by:
We are using the bcp utility (via APIs) to export data from a SQL table in a fixed format text file. BCP is inserting spaces for a field if the field contains a NULL. This is fine with us except...
0
by: Leo | last post by:
Does someone know if there is a setting in the python Unix world to make the command history behave as it does in the Windows intepreter? Specifically, I like the fact that the command history...
11
by: zhong | last post by:
Error Message: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention...
3
by: Anony Mous | last post by:
Hi, I've run into a problem. I've had postgres V8 beta on my WinXP Pro machine for some time now, and it's been running great. Now, for some reason, I cannot issue any queries to the database...
2
by: V_S_H_Satish | last post by:
Dear Friends I am working as oracle and ms sql dba from last 4 years. My company recently migrated to DB2 databases. So i am very much new to db2 database Can any one pls provide script to...
16
by: RichardP | last post by:
Hi there everyone - I'm new to this forum. I am having an issue when running an application from an instance of Access which has been started through automation (early or late bound, makes no...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
1
by: Laurence | last post by:
Hi folks, The sentence "If you are an HACMPâ„¢ user, you must use the ha_db2stop command to stop DB2 instead of the db2stop command. If you use the db2stop command instead of the ha_db2stop...
11
by: zgh1970 | last post by:
Hi, Friends, I need to know how to stop all database process even after db2stop. How can I stop all database processes? I have finished upgraded our system test and UAT region from 32-bit to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.