Oracle 重建控制文件ControlFile

重建控制文件
要求:库未mount或open

创建控制文件备份:
alter database backup controlfile to trace;

查看trace位置:
oradebug setmypid;
Statement processed.
oradebug tracefile_name;
或:
show parameter user_dump_dest 




Trace内容如下:




CREATE CONTROLFILE REUSE DATABASE "V11" NORESETLOGS ARCHIVELOG  
MAXLOGFILES 16  
MAXLOGMEMBERS 3  
MAXDATAFILES 100  
MAXINSTANCES 8  
MAXLOGHISTORY 292  
LOGFILE  
GROUP 1 '/oradata/V11/redo01.log' SIZE 50M,  
GROUP 2 '/oradata/V11/redo02.log' SIZE 50M,  
GROUP 3 '/oradata/V11/redo03.log' SIZE 50M  
DATAFILE  
'/oradata/V11/system01.dbf',  
'/oradata/V11/sysaux01.dbf',  
'/oradata/V11/undotbs01.dbf', 
'/oradata/V11/user01.dbf'  
CHARACTER SET WE8MSWIN1252  
;
ALTER TABLESPACE TEMP_TEST ADD TEMPFILE '/oradata/V11/temp01.dbf' reuse;


nomount模式下执行sql即可。



 

你可能感兴趣的:(ORACLE,ORACLE,备份恢复)