Create a new control file [message #560324] |
Thu, 12 July 2012 02:49 |
|
bg1984
Messages: 21 Registered: July 2012
|
Junior Member |
|
|
Hi All,
I am trying to create a new controlfile. I used "alter database backup controlfile to trace;" and then I copied and pasted the contents of the trace file into the .sql file. My sql script is
CREATE CONTROLFILE SET DATABASE "FIVESTAR" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\REDO01.LOG' SIZE 50M,
GROUP 2 'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\REDO02.LOG' SIZE 50M,
GROUP 3 'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\REDO03.LOG' SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\SYSTEM01.DBF',
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\UNDOTBS01.DBF',
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\SYSAUX01.DBF',
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\USERS01.DBF',
'F:\ORACLE\PRODUCT\10.2.0\ORADATA\STAR\EXAMPLE01.DBF'
CHARACTER SET AL32UTF8
;
Actually, the name of my database was 'STAR' and I changed it to "FIVESTAR" int this .sql script.
Now when I run this script with SQL> @ <path of my sql script>, it gives me the following errors:
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01504: database name 'FIVESTAR' does not match parameter db_name 'STAR'
Please help me.
|
|
|
|
|