Oracle 修改数据文件路径的方法

 

1. 关闭数据库,然后启动至mount状态

sqlplus / as sysdba

shutdown immediate

startup mount

 

 

2. 修改物理文件:

我这边将:
c:\cwdata\cwbaseora.dbf
迁移到
c:\cwbaseora.dbf

3. 执行 mount状态下的迁移命令.

 

alter database rename file 'c:\cwdata\cwbaseora.dbf' to 'c:\cwbaseora.dbf';

然后 
alter database open;

 

 

4. 使用补丁工具进行验证 能否打开环境等.

 

posted @ 2019-05-09 16:37  济南小老虎  阅读(3012)  评论(0编辑  收藏  举报