Knowledge Base Restore From Ddboost Finprd
Knowledge Base Restore From Ddboost Finprd
8 password is New@2016
Jagan >
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(free.p / 1024 / 1024 / 1024) || ' GB' "Used space"
, round(free.p / 1024 / 1024 / 1024) || ' GB' "Free space"
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p
/
>>
NAME
---------
FINPRD--- 1711Gb 1.6T
Reserved_Space(MB) Used_Space(MB) Free_Space(MB)
------------------ -------------- --------------
1752229.65 1592007.59 160222.063
1 - The size of the Oracle database files can be computed several ways:
select
segment_name table_name,
sum(bytes)/(1024*1024) table_size_meg
from
user_extents
where
segment_type='TABLE'
and
segment_name = 'MYTAB'
group
See code depot for full scripts.
You can also compute the size of an Oracle database over time. In Oracle 10g and
beyond we have the dba_hist_seg_stat table with a wealth of information about all
active segments within the database, including the space usage in the
space_allocated_total and space_used_total columns.
This script will show "spaced used total" (total size) for a specific Oracle table,
essentially computing the Oracle table size over time:
col c1 format a15 heading 'snapshot|date'
col c2 format a25 heading 'table|name'
col c3 format 999,999,999 heading 'space|used|total'
select
to_char(begin_interval_time,'yy/mm/dd hh24:mm') c1,
object_name c2,
space_used_total c3
from
dba_hist_seg_stat s,
dba_hist_seg_stat_obj o,
dba_hist_snapshot sn
where
o.owner = 'SCHEMA_07'
and
s.obj# = o.obj#
and
sn.snap_id = s.snap_id
and
object_name like 'XIF2%'
order by
begin_interval_time;
select
OWNER,INDEX_NAME,INDEX_TYPE,UNIQUENESS,COMPRESSION,TABLESPACE_NAME,STATUS,DEGREE,PA
RTITIONED from dba_indexes
where table_name='CRM_INDIVIDUAL';
select
OWNER,INDEX_NAME,INDEX_TYPE,UNIQUENESS,COMPRESSION,TABLESPACE_NAME,STATUS,DEGREE,PA
RTITIONED from dba_indexes
where table_name='CRM_INDV_EMP_INTER';
select
OWNER,INDEX_NAME,INDEX_TYPE,UNIQUENESS,COMPRESSION,TABLESPACE_NAME,STATUS,DEGREE,PA
RTITIONED from dba_indexes
where table_name='CRM_ADDRESS';