标签:
Oracle表空间文件迁移
set ORACLE_SID = ORCL; sqlplus /nolog connect sys/1234 as sysdba; alter tablespace tablespace_name offline; alter database rename file ‘......\tablespace_name.dbf‘ to ‘......\tablespace_name.dbf‘; alter tablespace tablespace_name online; recover datafile ‘tablespace_name.DBF‘; alter tablespace tablespace_name online; commit; exit;
Oracle表空间文件位置查询
SELECT tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space FROM dba_data_files
标签:
原文地址:http://www.cnblogs.com/XueRong-7/p/4500274.html