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.
Hi all,
After the creation of blank database in db2, how we come to know the actual space used by that database?
as i din't had any idea, i just took the backup of that blank database n checked the size in the properties of the backup file, which says its 20 MB...is this the right way to know?
after executing the command:
'db2 call get_dbsize_info(?,?,?,0)'
it is throwing this error:
SQL04404 no authorized routine named "GET_DBSIZE_INFO" of type "procedure" having compatible arguments was found.
n after runnig this command:
'select * from systools.stmg_dbsize_info'
it is throwing this error:
SQL0204N "systools.stmg_dbsize_info " is an undefined name.
I can also not find any schema in my database with name systools.
That SP was introduced in approximately FP 9 of 8.1 (which is the same as 8.2.2). Fixpacks are free to download from the IBM site and the latest for vesion 8 is FP 16.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
This will help U....check this
db2 "select TABLESPACE_ID,CONTAINER_TYPE,TABLESPACE_NAME,TOTAL _PAGES,USABLE_PAGES,(TOTAL_PAGES-USABLE_PAGES) as FREEPAGES from table(SNAPSHOT_CONTAINER('SIDRKMG',-1)) as sample"