ORA-01536: space quota exceeded for tablespace 'SCRATCHPAD' が出たのでゴミ掃除

oracleで自分が作った中間テーブルの調査 user_tables を行い、不必要なものをdrop tableすることで対応しました。
行数が多い方が影響ある、ということで、行数も出すようにしました。

select
to_char(num_rows * avg_row_len, '9,999,999,999,999')
, table_name
, last_analyzed
from user_tables
where tablespace_name = 'SCRATCHPAD';
order by num_rows desc


SCRATCHPADが足りないエラーが出たときに、
これでゴミ整理をするとちょっと楽かもしれません。