改名:
alter tablespace fin rename to yanwei;
添加数据文件:
alter tablespace yanwei add datafile '***'
size 10g
转移表空间中的数据文件步骤
1,把表空间offline
alter tablespace receivales offline;
2,利用系统命令重新copy
3,tell 数据库新位置
ALTER TABLESPACE receivables RENAME DATAFILE
'H:\ORACLE\ORADATA\ORA10\RECEIVABLES02.DBF'
TO 'G:\ORACLE\ORADATA\ORA10\RECEIVABLES02.DBF' ;
4,online tablespace
alter tablespace * online

当一个表空间设置为read only时候,做数据库备份的时候不备份。
命令
alter tablespace ** read only;
alter tablespace ** read write;


表空间备份
Putting a Tablespace in Backup Mode

ALTER TABLESPACE system BEGIN BACKUP;
ALTER TABLESPACE system end BACKUP;


当表空间在backup mode时候。数据文件还是可以读写的,但是一些checkpoint的发生不会记录在数据文件的表头。

获取表空间的信息
dba_tablespaces
dba_data_files
dba_temp_files
v$tablespace

 

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2021-05-20
  • 2021-12-20
  • 2021-06-03
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2021-06-01
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案