Hi all,
In DB2 9.0 version, I executed the below query and found some junk values returned,
Code:
SELECT TEXT FROM SYSCAT.VIEWS WHERE VIEWNAME LIKE 'MYVIEW';
The value returned is : 4352454154452056494557205650524F4A2020202041532053 454C45435420414C4C2050524F4A4E4F2C2050524F4A4E414D 452C20444550544E4F2C2052455350454D502C205052535441 46462C2050525354444154452C205052454E444154452C204D 414A50524F4A2046524F4D2050524F4A
But the view 'MYVIEW' , exists in the database.
Similarly the names, and the constraints of the defined table constraints is also not returned properly with the below queries,
Code:
SELECT CONSTNAME, TEXT FROM SYSCAT.CHECKS WHERE TABNAME= 'SAMPLE_TABLE'
SELECT A.CONSTNAME, A.REFTABNAME, B.COLNAME FROM SYSCAT.TABCONST A, SYSCAT.KEYCOLUSE B WHERE A.TABNAME = 'SAMPLE_TABLE'
Does the system tables to fetch the above metadata changed in DB2 9.0 ?
thanks,
Sn