查看表空间;
select * from dba_tablespaces where tablespace_name='TBS_ETL6_DATA'
查询表空间的数据文件:
select * from dba_data_files t where t.tablespace_name = 'TBS_ETL6_DATA'
更改数据文件的状态为脱机:
alter database datafile '/opt/oracle/db/oradata/LBIDBS/TBS_ETL6_DATA.dbf' offline drop;操作
查看表空间和数据文件:
select t1.name,t2.name from v$tablespace t1, v$datafile t2 where t1.ts#=t2.ts#