1.先登录sqlplus: 
C:\Documents and Settings\jbdu>sqlplus “/as sysdba”
2.修改表空间为Offline: 
SQL> alter tablespace users offline; 
3.拷贝表空间文件 
拷贝 
C:\oracle\product\10.2.0\oradata\orcl\USERS01.DBF 
到 
D:\oracledata 
4.修改oracle表空间指向地址 
SQL> alter database rename file ‘原路径\USERS01.DBF' to '文件新路径\USERS01.DBF'; 
5.修改表空间为Online 
SQL> alter tablespace users online; 
OK; 
至此,你可以放心的删除c:下的USERS01.DBF文件了,并且以后数据全部会放在D:\oracledata,就不用再担心c盘空间不够用了。

删除时,提示文件还是占用。于是关闭orcl服务再开启一次就可以删除了。

相关文章:

  • 2021-12-05
  • 2022-03-09
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-19
  • 2021-07-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-07-23
  • 2021-11-02
  • 2021-05-20
相关资源
相似解决方案