忘れかけのIT備忘録

今まで学んできた知識や小技、なるほど!と思ったことをメモするブログです。

2021-01-25から1日間の記事一覧

SYSTEM表領域の使用率(表領域)を確認する

set lines 120set pages 100set term offcol tablespace_name format a15col "SIZE(KB)" format a20col "USED(KB)" format a20col "FREE(KB)" format a20col "USED(%)" format 990.99select tablespace_name ,to_char(nvl(ddf.total_bytes / 1024, 0),'999,9…

SYSTEM表領域の使用状況(表領域およびデータファイル)を確認する

col tablespace_name format a30col file_name format a30break on tablespace_nameselect tablespace_name ,' (表領域)' file_name ,sum(bytes) / 1024 / 1024 bytes_mb ,sum(bytes - nvl(c3,0)) / 1024 used_kb ,sum(nvl(c3,0)) / 1024 free_kb ,round*1 /…

SYSユーザのデフォルト表領域を確認する

col OWNER format a30col TABLE_NAME format a30col TABLESPACE_NAME format a30 select owner, table_name, tablespace_name, num_rows, avg_row_len, blocks, empty_blocks from dba_tables where owner = 'SYS';