Let's see it in action with some real life examples :[code][oracle@higgins ~]$. oraenv ORACLE_SID = [+ASM] ? +ASM The Oracle base remains unchanged with value /oracle [oracle@higgins ~]$./asmdu.sh DATA DATA subdirectories size Subdir Used MB Mirror MB ------ ------- -------- DB01/ 2423 2423 DB02/ 2642 2642 DB03/ 321201 321201 DB04/ 39491 39491 DB05/ 180753 180753 DB06/ 4672 4672 DB07/ 1431 1431 DB08/ 2653 2653 DB09/ 70942 70942 DB10/ 96001 96001 DB11/ 57322 57322 DB12/ 70989 70989 DB13/ 4639 4639 DB14/ 40800 40800 DB15/ 13397 13397 DB16/ 15279 15279 DB17/ 19020 19020 DB18/ 8886 8886 DB19/ 4671 4671 DB20/ 14994 14994 DB21/ 502245 502245 DB22/ 4839 4839 DB23/ 10169 10169 DB24/ 7772 7772 DB25/ 7828 7828 DB26/ 112109 112109 DB27/ 5564 5564 DB28/ 16895 16895 ------ ------- --------- Total 1639627 1639627 [oracle@higgins ~]$ [/code]
Another one with many archivelogs directories :
[code][oracle@higgins ~]$./asmdu.sh FRA/THE_DB/ARCHIVELOG/ FRA/THE_DB/ARCHIVELOG/ subdirectories size Subdir Used MB Mirror MB ------ ------ --------- 2015_02_19/ 114 114 2015_02_20/ 147 147 2015_02_21/ 112 112 2015_02_22/ 137 137 2015_02_23/ 150 150 2015_02_24/ 126 126 2015_02_25/ 135 135 2015_02_26/ 130 130 2015_02_27/ 129 129 2015_02_28/ 119 119 2015_03_01/ 146 146 2015_03_02/ 150 150 2015_03_03/ 128 128 2015_03_04/ 134 134 2015_03_05/ 44 44 2015_05_27/ 28 28 2015_05_28/ 95 95 2015_05_29/ 76 76 2015_05_30/ 187 187 2015_05_31/ 78 78 2015_06_01/ 111 111 2015_06_02/ 105 105 2015_06_03/ 43 43 2015_06_04/ 142 142 2015_06_05/ 42 42 2015_06_06/ 84 84 2015_06_07/ 70 70 2015_06_08/ 134 134 2015_06_09/ 77 77 2015_06_10/ 143 143 2015_06_11/ 2 2 2015_06_21/ 14 14 2015_06_22/ 14918 14918 ------ ------- --------- Total 18250 18250 [oracle@higgins ~]$ [/code] This example is a very nice one as it shows us that 2015 is not a leap year and that some archivelogs are still on disk even if they probably shouldn't and that's a good information as v$log_history do not contain these information anymore : [code] SQL> select trunc(FIRST_TIME), count(*) from v$log_history group by trunc(FIRST_TIME) order by 1 ; TRUNC(FIR COUNT(*) --------- ---------- 22-JUN-15 402 SQL> [/code] Hope it will also makes your life easier, Have a good day :)
Oracle Database Consulting Services
Ready to optimize your Oracle Database for the future?
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
ASMCMD> a better DU, version 2
Oracle RMAN Restore to the Same Machine as the Original Database
How to become an Oracle Certified Master (OCM)
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.