Update maxshrink.sql

This commit is contained in:
Yacine31
2023-12-21 11:52:01 +01:00
parent 03dcb9e0b8
commit 884d88ac56

View File

@@ -28,7 +28,7 @@ where a.file_id = b.file_id(+)
column cmd format a75 word_wrapped
select 'alter database datafile '''||file_name||''' resize ' ||
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) || 'm;' cmd
ceil( (nvl(hwm,1)*&&blksize)/1024/1024 + 1) || 'm;' cmd
from dba_data_files a,
( select file_id, max(block_id+blocks-1) hwm
from dba_extents