- 论坛徽章:
- 0
|
ORA-00376是表空间满后造成的错误吗
REM free_ext.sql
set feedback off term off echo off pagesize 60
set linesize 80 newpage 0
spool free_space.log
ttitle center 'DATABASE REMAINING SPACE BY TABLESPACE'
col Tablespace_Name heading 'TABLESPACE|NAME' format a15
col File_Name heading 'FILE' format a30
col Remaining heading 'BLOCKS|REMAINING' format 9,999,999
col Total_Space heading 'TOTAL|SPACE' format 9,999,999
break on report on Tablespace_Name skip 1 on File_Name on Total_Space
compute sum of Remaining on Tablespace_Name
compute sum of Remaining on report
compute sum of Total_Space on Tablespace_Name
compute sum of Total_Space on report
select FS.Tablespace_Name,
DF.File_Name,
SUM(FS.BLOCKS) Remaining,
DF.Blocks Total_Space
from DBA_FREE_SPACE FS, DBA_DATA_FILES DF
where FS.File_Id=DF.File_Id
group by FS.Tablespace_Name,
DF.File_Name,DF.Blocks
"free_ext.sql" 31L, 989C |
|