Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / June 2006

Tip: Looking for answers? Try searching our database.

modifed timestamp of a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sumanth - 06 Jun 2006 21:06 GMT
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
Sumanth - 06 Jun 2006 21:19 GMT
By modified time stamp I mean "time when the content of the table changes"

Thanks,
Sumanth

> Hi,
>
[quoted text clipped - 4 lines]
> Thanks,
> Sumanth
Shashi Mannepalli - 07 Jun 2006 03:20 GMT
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
> Hi,
>
[quoted text clipped - 4 lines]
> Thanks,
> Sumanth
Knut Stolze - 07 Jun 2006 11:37 GMT
> 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.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

aj - 07 Jun 2006 15:15 GMT
...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
Gregor Kovač - 07 Jun 2006 15:47 GMT
> ...snip...
>>
[quoted text clipped - 7 lines]
>
> aj
And I'd only need the time of last ALTER TABLE :))
Signature

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

| Gregor Kovac | Gregor.Kovac@mikropis.si    |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
|            Experience Linux.               |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Knut Stolze - 09 Jun 2006 19:06 GMT
>> ...snip...
>>>
[quoted text clipped - 5 lines]
>> 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.  :-(

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.