Home >Database >Mysql Tutorial >Oracle移动数据文件到新分区步骤分析

Oracle移动数据文件到新分区步骤分析

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:51:12952browse

把Oracle的数据文件诺地方相信很多人都遇到过,新手可以看看这里。此过程用sqlplus以sys登录后进行如下步骤:1、将数据文件offline:alter

把Oracle的数据文件诺地方相信很多人都遇到过,,新手可以看看这里。

此过程用sqlplus以sys登录后进行如下步骤:

1、将数据文件offline:
alter database datafile 'D:\Oracle\PRODUCT\10.2.0\DBFILES\DSBI\DS.ORA' offline
注:如提示正在使用,重启数据库再进行此操作。

2、copy数据文件(DS.ORA)到新的目录文件

3、alter database datafile 'D:\Oracle\PRODUCT\10.2.0\DBFILES\DSBI\DS.ORA' online
此时可能提示错误:
ORA-01113: 文件 5 需要介质恢复
ORA-01110: 数据文件 5: 'D:\Oracle\PRODUCT\10.2.0\DBFILES\DSBI\DS.ORA'

--4、set autorecovery on

5、recover datafile 5;这个5就是3中提到的数据文件 5

提示:完成介质恢复

6、alter database datafile 'D:\Oracle\PRODUCT\10.2.0\DBFILES\DSBI\DS.ORA' online

7、the end。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn