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

modifed timestamp of a table

Hi,

Information with regard to creation of a table is stored in SYSTABLES.
Is modified time stamp of a table stored in
DB2, if so where.

Thanks,
Sumanth
Jun 6 '06 #1
5 1268
No this information is not stored in any of the CATALOG tables.
But all the changes will be LOGGED. You can use db2urlog or something
like that
to read those LOGS and check for a particular table....

This entire process is complex...

cheers...
Shashi Mannepalli
Sumanth wrote:
Hi,

Information with regard to creation of a table is stored in SYSTABLES.
Is modified time stamp of a table stored in
DB2, if so where.

Thanks,
Sumanth


Jun 7 '06 #2
Sumanth wrote:
Hi,

Information with regard to creation of a table is stored in SYSTABLES.
Is modified time stamp of a table stored in
You should use only the views in the SYSCAT schema, i.e. SYSCAT.TABLES. All
tables in the SYSIBM schema are not documented and they may change at any
time, breaking your application if you rely on them.
DB2, if so where.


The actual timestamp of the last data modification is not automatically
tracked. This would be a huge bottle-neck performance-wise if it were
done.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jun 7 '06 #3
aj
Knut Stolze wrote:
....snip...

The actual timestamp of the last data modification is not automatically
tracked. This would be a huge bottle-neck performance-wise if it were
done.


But its been requested over and over and over again. Seems like those
smart IBM engineers could figure out some way to do it w/o screwing up
performance.

aj
Jun 7 '06 #4
aj wrote:
Knut Stolze wrote:
...snip...

The actual timestamp of the last data modification is not automatically
tracked. This would be a huge bottle-neck performance-wise if it were
done.


But its been requested over and over and over again. Seems like those
smart IBM engineers could figure out some way to do it w/o screwing up
performance.

aj

And I'd only need the time of last ALTER TABLE :))
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac | Gr**********@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Jun 7 '06 #5
Gregor KovaÄŤ wrote:
aj wrote:
Knut Stolze wrote:
...snip...

The actual timestamp of the last data modification is not automatically
tracked. This would be a huge bottle-neck performance-wise if it were
done.
But its been requested over and over and over again. Seems like those
smart IBM engineers could figure out some way to do it w/o screwing up
performance.


As soon as someone implements a general purpose sorting mechanism that runs
faster than O(n log n), we can probably discuss the tuple counter
again. ;-)
And I'd only need the time of last ALTER TABLE :))


Indeed, I've been wondering why this information isn't available. :-(

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jun 9 '06 #6

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

Similar topics

2
by: rong.guo | last post by:
Hello Group, I am having a really weird problem... Can anyone tell the difference between Query 1 and Query 2 below? Why Query 2 excludes '2/28/2005'? Many thanks! create table a...
7
by: laurenq uantrell | last post by:
Is there any reason to have a row that is the PK/Identity and a row that is datatype Timestamp in the same table? Does this in any way help speeding up row updates? Thanks, lq
3
by: Andreas | last post by:
Hello list, I suspect, this is a common issue for newbies. Is there a simple way to have an auto-updating timestamp like mysql has ? create table something ( id int4, sometext...
2
by: jay | last post by:
hi, Question on Load/import command. consider a sample table create table table_name ( col1 timestamp not null default current timestamp, col2 int, col3 int, col4 int, primary key(col1) );...
2
by: Zygo Blaxell | last post by:
I have a table with a few million rows of temperature data keyed by timestamp. I want to group these rows by timestamp intervals (e.g. every 32 seconds), compute aggregate functions on the...
0
by: presley2 | last post by:
Hi, I want to create an auto creation date and update date in my mysql table. I am using the "MySQL Cookbook" approach, using the TIMESTAMP field which basically is: - create 2 new fields in the...
22
by: Mal Ball | last post by:
I hope I have the right forum for this question. I have an existing Windows application which uses a SQL Server database and stored procedures. I am now developing a web application to use the same...
7
by: JJ | last post by:
How do I set one field to have the updated timestamp, and another to have the created timestamp? I want to do this directly from code generated from DB Designer if possible?! JJ
1
by: Frank Swarbrick | last post by:
We're trying to take advantage of the new ROW CHANGE TIMESTAMP option. Here is a simple table: CREATE TABLE "ACCTASGN"."NUMBER_STATUS" ( "STATUS_CODE" CHAR(1) NOT NULL , "STATUS_DESCRIPTION"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.