Script to find free space in tablesapces
select
a.tablespace_name,
round(sum(a.bytes/1024/1024),2) TOTAL_MB,
round(sum
(
( case
when autoextensible = 'YES' then
(a.maxbytes - a.user_bytes) + nvl(b.bytes,0)
when autoextensible = 'NO' then
nvl(b.bytes,0)
end
)/1024/1024
),2) FREE_MB
from
dba_data_files a,
(
select file_id,
sum(bytes) bytes
from dba_free_space
group by file_id
) b
where
a.file_id = b.file_id(+)
group by a.tablespace_name;
Wednesday, November 3, 2010
Subscribe to:
Posts (Atom)
Oracle E-business suite logs clean up
Oracle E-business suite logs clean up #!/bin/bash cd $EBS_DOMAIN_HOME find $EBS_DOMAIN_HOME -type f -path "*/logs/*.log?*" -mtime...
-
FIND LOW LEVEL DEBUG ON E-BUSINESSS SUITE PRODUCTION DATABASES SHOULD NOT HAVE DEBUG ENABLED 1. Query to find if debug is enabled in EBS ...
-
All About Latches 1. What are Oracle latches? Latches are Oracle-internal low-level locks that protect the memory structures of the sy...