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';

原文地址:https://www.cnblogs.com/wggj/p/13594531.html