您的位置:首页 > 其它

表空间,数据文件操作

2011-07-20 09:08 267 查看
查看表空间;
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#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: