我有从损坏的分区中恢复的数据文件。请帮我将它们恢复到新的Oracle数据库中。我是Oracle的新手,所以这个任务对我来说太难了。我真的需要你的帮助!
答案 0 :(得分:1)
假设您复制这些文件时数据库已关闭。
将所有原始数据文件备份到其他位置并将所有* .dbf文件复制到datafile文件夹中
尝试使用以下命令
SQL> conn / as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup nomount;
SQL> alter system set control_files = '/oracle/data/control.dbf';
SQL> shutdown immediate
SQL> startup mount
ORACLE instance started.
Total System Global Area 264241152 bytes
Fixed Size 1286916 bytes
Variable Size 205524220 bytes
Database Buffers 54525952 bytes
Redo Buffers 2904064 bytes
Database mounted.
SQL> recover database until cancel;
Media recovery complete.
SQL> alter database open resetlogs;
Database altered.
SQL>