Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to recreate control file.

Mahfuzur RahmanDec 25 2013 — edited Dec 26 2013

Hello experts.

I'm trying to recreate controlfile in oracle database 10.2 using trace file. by during running script it shows   ERROR at line 8: ORA-01967: invalid option for CREATE CONTROLFILE

my script create control file script below. please help

============================================================

CREATE CONTROLFILE REUSE DATABASE "TSH1" NORESETLOGS  ARCHIVELOG

    MAXLOGFILES 16

    MAXLOGMEMBERS 3

    MAXDATAFILES 100

    MAXINSTANCES 8

    MAXLOGHISTORY 292

LOGFILE

  GROUP 1 '/u01/app/oracle/oradata/TSH1/redo01.log'  SIZE 50M BLOCKSIZE 512,

  GROUP 2 '/u01/app/oracle/oradata/TSH1/redo02.log'  SIZE 50M BLOCKSIZE 512,

  GROUP 3 '/u01/app/oracle/oradata/TSH1/redo03.log'  SIZE 50M BLOCKSIZE 512

DATAFILE

  '/u01/app/oracle/oradata/TSH1/system01.dbf',

  '/u01/app/oracle/oradata/TSH1/undotbs01.dbf',

  '/u01/app/oracle/oradata/TSH1/sysaux01.dbf',

  '/u01/app/oracle/oradata/TSH1/users01.dbf',

  '/u01/app/oracle/oradata/TSH1/oradaxmldb_ts.dbf'

CHARACTER SET WE8ISO8859P1

;

VARIABLE RECNO NUMBER;

EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','DEVICE TYPE DISK FORMAT   ''/backup/%U''');

RECOVER DATABASE

ALTER SYSTEM ARCHIVE LOG ALL;

ALTER DATABASE OPEN;

ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/TSH1/temp01.dbf' REUSE;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 23 2014
Added on Dec 25 2013
7 comments
1,216 views