command - How can I obtain the creation date of a DB2 database without connecting to it? -
how can obtain creation date or time of ibm's db2 database without connecting specified database first? solutions like:
select min(create_time) syscat.tables and:
db2 list tables schema sysibm require me connect database first, like:
db2 connect dbname user username using password is there way of doing through db2 command instead, wouldn't need connect database?
can db2look command used that?
edit 01: background story
since more 1 person asked why need , reasons, here background story.
i have server db2 dbms many people , automated scripts using create databases temporary tasks , tests. it's never meant keep data long time. 1 reason or (ex: developer not cleaning after himself or tests stopping forcefully before can clean up) databases never dropped , start accumulated till hard disk filled out eventually. idea of app age of database , drop it, if it's older 6 months (for example).
Comments
Post a Comment