27th October 2009
in
Status
col owner format a15
col segment_name format a30
col segment_type format a15
col mb format 999,999,999
select owner
, segment_name
, segment_type
, mb
from (
select owner
, segment_name
, segment_type
, bytes / 1024[...]
Tags: largest objects in the database
No Comments
27th October 2009
in
Status
col "Database Size" format a20
col "Free space" format a20
col "Used space" format a20
select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ' GB' "Database Size"
, round(sum(used.bytes) / 1024 / 1024 / 1024 ) -
round([...]
No Comments
27th October 2009
in
Status
select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
from v$instance
/
[...]
Tags: database startup time
No Comments
26th October 2009
in
Status
This will return 9000′ish if it is…
select count(*)
from all_objects
where object_type like '%JAVA%'
and owner = 'SYS'
/
[...]
Tags: java installed in the database
No Comments