I see scripts posted here before, which computes the actual blocks/bytes used per tablespace or table. I can not find it anymore because I forgot the key-word to search?
For example: I have USERS tablespace with size 2GB and it is already 100% used
but the tables inside it is not really filled-up. How to i get the actual used space and the unused one?
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
But I think it is not the one i wanted ..it is like this:
Say, i have USERS tablepace 2Gb size, then I create a table with pre-allocated space of 2Gb.
so the TS is 100% used, but the table has no data yet. It will report something like 0 blocks used and 100% blocks free?
or near to that....something like that
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Hi..thanks, that is clever of u im just testing you if u know
I think this is easier?
Say I have a 100Gb database and when i exported it, it is only 10Gb.
Can I approx. say only 10% space is actually used and 90% is free? ( less the indexes , temp, redo)
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
BLOCKS tells you how many blocks are allocated for the specific table.
EMPTY_BLOCKS tells you how many full-blocks you have empty.
Please note neither one of these columns is telling you how much free space you have on the used blocks.
NUM_ROWS * AVG_ROW_LEN tells you how much space your raw data is using but you may want to take into consideration PCT_USED/PCT_FREE values to get a more realistic figure.
Last but not least, for partitioned tables you may want to query DBA_TAB_PARTITIONS instead of DBA_TABLES.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks