If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > database creation time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-11, 01:46
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
database creation time

How do we get the time when the database has been created ?
Reply With Quote
  #2 (permalink)  
Old 02-23-11, 01:53
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I usually go by the time the system catalog tables got created (db2 list tables for schema SYSIBM).
Reply With Quote
  #3 (permalink)  
Old 02-23-11, 05:35
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
Well, if a fixpack upgrade or a version migration is done, I believe these tables create_time will be changed to the upgraded/migrated time. And so, that wouldn't be the exact time when database was created

Correct me if I am wrong.
Reply With Quote
  #4 (permalink)  
Old 02-23-11, 06:22
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I think sysibm.sysversions gets updated during upgrade / migration. Take a look at this table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On