Oracle 控制文件(CONTROL FILE)(三)

2014-11-24 17:58:23 · 作者: · 浏览: 3
-- re-create incarnation records.


-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/flash_recovery_area


-- /ORCL/archivelog/2010_05_20/o1_mf_1_1_%u_.arc';


-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/flash_recovery_area


-- /ORCL/archivelog/2010_05_20/o1_mf_1_1_%u_.arc';


-- Recovery is required if any of the datafiles are restored backups,


-- or if the last shutdown was not normal or immediate.


RECOVER DATABASE USING BACKUP CONTROLFILE


-- Database can now be opened zeroing the online logs.


ALTER DATABASE OPEN RESETLOGS;


-- Commands to add tempfiles to temporary tablespaces.


-- Online tempfiles have complete space information.


-- Other tempfiles may require adjustment.


ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/orcl/temp01.dbf'


SIZE 26214400 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;


-- End of tempfile additions.