From sqlplus
alter database backup controlfile to trace;
From trace (trace location you can find in alert_log)
#change reuse to set and remove controlfile
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "DM02DEV" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/data/s_ora01dmdev/oradata/dm02dev/redo01.log' SIZE 50M BLOCKSIZE 512,
GROUP 2 '/data/s_ora01dmdev/oradata/dm02dev/redo02.log' SIZE 50M BLOCKSIZE 512,
GROUP 3 '/data/s_ora01dmdev/oradata/dm02dev/redo03.log' SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'/data/s_ora01dmdev/oradata/dm02dev/system01.dbf',
'/data/s_ora01dmdev/oradata/dm02dev/sysaux01.dbf',
'/data/s_ora01dmdev/oradata/dm02dev/undotbs01.dbf',
'/data/s_ora01dmdev/oradata/dm02dev/users01.dbf'
CHARACTER SET AL32UTF8
;
ALTER DATABASE OPEN RESETLOGS;
ALTER TABLESPACE TEMP ADD TEMPFILE '/data/s_ora01dmdev/oradata/dm02dev/temp01.dbf'
SIZE 39845888 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
No comments:
Post a Comment