Oracle中查找默认表空间以及表、LOB字段、索引的表空间

查找SCHEMA的默认表空间:

select default_tablespace from dba_users where username='SCHEMA_NAME';

查找某个表的表空间:

select tablespace_name from user_tables where table_name='TABLE_NAME';

查找某个LOB字段的表空间:

select tablespace_name from user_lobs where table_name='TABLE_NAME' and column_name='LOB_NAME';

查找某个索引的表空间:

select tablespace_name from user_indexes where index_name='INDEX_NAME';

 

posted @ 2020-09-01 10:04  闻歌感旧  阅读(775)  评论(0编辑  收藏  举报