Create controlfile

Hi,
on 10gR2, I recreate a new database (in noarchivlog mode)with the hot backed up data and redolog files of another database (in noarchivlog mode) with following script :
STARTUP NOMOUNT PFILE="c:\oracle\product\10.2.0\admin\TEST\pfile\initTEST.ORA"
CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS  NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 200
    MAXINSTANCES 8
    MAXLOGHISTORY 292
LOGFILE
  GROUP 1 'D:\BASE\TEST\UNDO\REDO01.LOG'  SIZE 50M,
  GROUP 2 'D:\BASE\TEST\UNDO\REDO02.LOG'  SIZE 50M,
  GROUP 3 'D:\BASE\TEST\UNDO\REDO03.LOG'  SIZE 50M
DATAFILE
  'D:\BASE\TEST\DATA\SYSTEM01.DBF',
  'D:\BASE\TEST\DATA\UNDOTBS01.DBF',
  'D:\BASE\TEST\DATA\SYSAUX01.DBF',
  'D:\BASE\TEST\DATA\USERS01.DBF',
  'D:\BASE\TEST\DATA\TSDATA01.DBF',
  'D:\BASE\TEST\DATA\TST1.DBF',
  'D:\BASE\TEST\DATA\TS_T1.DBF',
  'D:\BASE\TEST\DATA\TS_PO.DBF',
  'D:\BASE\TEST\DATA\TS_N1.DBF',
  'D:\BASE\TEST\DATA\TS_DATA1.DBF',
  'D:\BASE\TEST\DATA\TS_T2.DBF'
CHARACTER SET WE8MSWIN1252
RECOVER DATABASE using backup controlfile until cancel;
AUTO
ALTER DATABASE OPEN RESETLOGS;
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\BASE\TEST\DATA\TEMP01.DBF'
     SIZE 20971520  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;But it can not continue until end. It stops at "ALTER DATABASE OPEN RESETLOGS;"
Then I retry "RECOVER DATABASE using backup controlfile until cancel;" and when prompted I give :
'D:\BASE\TEST\UNDO\REDO01.LOG'
'D:\BASE\TEST\UNDO\REDO02.LOG'
These log files would be applied. I issue :
ALTER DATABASE OPEN RESETLOGS;
and then every thing is OK. I have my new database.
My question is :
Why my script can not go to end ? How can I have it automaticaly until end ? How can I make it to apply redologs automaticaly ?
Thank you very much.

thank you Erka, but :
SQL> alter database recover automatic database using backup controlfile;
alter database recover automatic database using backup controlfile
ERROR at line 1:
ORA-00279: change 12090228 generated at 02/13/2009 21:12:07 needed for thread 1
ORA-00289: suggestion : D:\BASE\TEST\ARCH\ARC00425_0665589163.001
ORA-00280: change 12090228 for thread 1 is in sequence #425
ORA-00278: log file 'D:\BASE\TEST\ARCH\ARC00425_0665589163.001' no longer
needed for this recovery
ORA-00308: cannot open archived log 'D:\BASE\TEST\ARCH\ARC00425_0665589163.001'
ORA-27041: unable to open fileOf cours as I said in the begining the databases are not in archivelog mode.

Similar Messages

  • ORA-01503: CREATE CONTROLFILE failed

    Hello.
    I'm trying to install an ORACLE EBS 11i on an Oracle Linux Release 5 Update 5 Media Pack v1 for x86 (32 bit) from stage.
    The process is going great until the "Creating the database controlfile..." step. It crashes there.
    I've looked in the log file and this is what I can find:
    ORACLE_HOME : /u01/oracle/visdb/9.2.0
    ORACLE_SID : VIS
    TWO_TASK :
    PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/u01/Stage11i/startCD/Disk1
    /rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
    Executable : /u01/oracle/visdb/9.2.0/bin/sqlplus
    The log information will be written to
    /u01/oracle/visdb/9.2.0/appsutil/log/VIS_ebs/adcrdb_VIS.txt
    Creating the control file for VIS_ebs database ...
    SQL*Plus: Release 9.2.0.5.0 - Production on Wed Feb 23 17:28:54 2011
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "VIS.gdmelectronics.com"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-00210: cannot open the specified controlfile
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 3284
    ORA-06512: at line 1
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 581506616 bytes
    Fixed Size 452152 bytes
    Variable Size 402653184 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 10629120 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "VIS"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
    ORA-27046: file size is not a multiple of logical block size
    Additional information: 1
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    Is there something I'm doing wrong ?
    How do I create a new control file and use it ?
    I don't know if I gave needed information. If you need more details, please ask and I will try to provide them.
    Thank you and regards,
    Sorin Miroiu

    Hi schavali.
    Thanks for the quick reply.
    I've checked and that file doesn't exists.
    [root@ebs ~]# ls /u01/oracle/visdata/
    apps_ts_tx_interface.dbf media1.dbf owa1.dbf summary2.dbf sys4.dbf tx_data1.dbf tx_data8.dbf tx_idx4.dbf undo02.dbf
    archive1.dbf media2.dbf portal.dbf summary3.dbf sys5.dbf tx_data2.dbf tx_data9.dbf tx_idx5.dbf undo03.dbf
    archive2.dbf media3.dbf queues1.dbf summary4.dbf sys6.dbf tx_data3.dbf tx_idx10.dbf tx_idx6.dbf undo04.dbf
    ctx1.dbf mobile01.dbf queues2.dbf summary5.dbf sys7.dbf tx_data4.dbf tx_idx11.dbf tx_idx7.dbf
    log1.dbf nologging1.dbf reference1.dbf sys1.dbf tmp1.dbf tx_data5.dbf tx_idx1.dbf tx_idx8.dbf
    log2.dbf odm.dbf reference2.dbf sys2.dbf tx_data10.dbf tx_data6.dbf tx_idx2.dbf tx_idx9.dbf
    log3.dbf olap.dbf summary1.dbf sys3.dbf tx_data11.dbf tx_data7.dbf tx_idx3.dbf undo01.dbf
    For some reason it stops at tx_data9.dbf.
    I will try to start the install all over again and comeback with feedback.
    I think I will redo the DB stage as well.
    Regards,
    Sorin Miroiu

  • When to use REUSE/SET, NO-ARCHIVELOGS in create controlfile in HOT BACKUP?

    I am a trainee Oracle DBA and have the following queries. Kindly reply with detailed explanation as I want to get my concepts cleared!
    Q1>> While doing a user managed hot backup, when we are creating a control file(CREATE CONTROLFILE) from trace for recovery when do we use the create control file with the following options:
    *1. REUSE / SET*
    *2. ARCHIVELOGS / NOARCHIVELOGS*
    Q2>> In what scenarios do we re-create the control file while recovering datafiles from a hot backup??
    Thanks a tonne!
    Regards,
    Bhavi

    Hemant K Chitale wrote:
    1.1 It is not "REUSE/SET". These are two very different clauses.
    REUSE is when you want the CREATE to overwrite the existing controlfile(s). If the controlfile(s) {as named in the instance parameter file, initSID.ora or spfileSID.ora} is/are already present, the CREATE fails unless REUSE is specified.
    SET is when you want to change the database name. Oracle then creates the controlfile(s) with the specified database name and updates the headers of all the datafiles. If you run a CREATE with a database name that is different from that in the datafile headers, the CREATE fails unless you include a SET to specify that the name must be changed. Note that this also means that the name in the instance parameter file must already have been updated.
    1.2 ARCHIVELOG/NOARCHIVELOG is to set the database state. The same is achieved by issuing an "ALTER DATABASE ARCHIVELOG/NOARCHIVELOG" when the database is MOUNTed but not OPEN.
    2. You'd run the CREATE CONTROLFILE if you do not have a binary backup of the controlfile.
    Optionally, you can also use CREATE CONTROLFILE to rename all the datafiles by specifying the new locations of the datafiles -- the datafiles must already be present in the new locations, else the CREATE fails if it doesn't find a datafile that is included in the list of datafiles included in the CREATE statement.
    RMAN is the correct way to run Backups. User Managed Backup scripts are used in cases like Storage-based Snapshots / SnapClones / BCV.
    Hemant K ChitaleThanks that was really helpful..One last question when to use the resetlogs/noresetlogs clause in the create controlfile statement. I have noticed that at times it accepts resetlog while at times it accepts noresetlogs

  • Problem in Creating controlfile

    Hi All,
    am planning to system copy, databse restored succesfuly on target system, created control file on source system.
    copied the control file on target system in  /oracle/MDQ/saptrace/usertrace and renamed it as control.sql.
    when am trying to generate conrol file on target system as : @/oracle/MDQ/saptrace/usertrace/control.sql
    getting error  as :
    ORACLE instance started.
    Total System Global Area 2365587456 bytes
    Fixed Size                  2144144 bytes
    Variable Size            1203685488 bytes
    Database Buffers         1157627904 bytes
    Redo Buffers                2129920 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "MDQ" RESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01200: actual file size of 27520 is smaller than correct size of 110080
    blocks
    ORA-01110: data file 1: '/oracle/MDQ/sapdata1/system_1/system.data1'
    ORA-01507: database not mounted
    ALTER SYSTEM ARCHIVE LOG ALL
    ERROR at line 1:
    ORA-01507: database not mounted
    ALTER DATABASE OPEN
    ERROR at line 1:
    ORA-01507: database not mounted
    ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/MDQ/sapdata2/temp_1/temp.data1'
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01081: cannot start already-running ORACLE - shut it down first
    CREATE CONTROLFILE REUSE SET DATABASE "MDQ" RESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01200: actual file size of 27520 is smaller than correct size of 110080
    blocks
    ORA-01110: data file 1: '/oracle/MDQ/sapdata1/system_1/system.data1'
    Kindly suggest.

    Hi,
    i have chaecked the size of file system on source and target system, there is a huge differnce.
    Please refer this useful document to perform complete [Oracle DB Restore using Offline/Online Backup|http://www.basisconsultant.com/component/remository/Sytem-Copy-Guides/Homogeneous-System-Copy-using-OnlineandOffline-Backup/] in systematic way .
    BRARCHIVE - Return code: 0001 Success with warnings ( some offline redolog files not found).
    Perform manual Log switching and ensure the availability of Offline Redo log files at Log Archive location (log_archive_dest). Then run Archive Log Backup Job.
    Also please refer this useful SAP Note 490976 - BR013W No offline redo log files found for processing, to get info about the other possible causes.
    Regards
    Bhavik G. Shroff

  • RMAN-06067: RECOVER DATABASE required with a backup or created controlfile

    Hi,
    DB:9.2.0.8
    OS: AIX 5.3
    I am restoring DB with until time(12/06/2012) for needed tablespaces.
    I restored the 12th date controlfile ,which is backed up with archivedlogs. I also have one more controlfile which backed up with full DB..
    Restore of tablespaces are completed..
    When recovery is going , failed with following error..
    allocated channel: c7
    channel c7: sid=22 devtype=SBT_TAPE
    channel c7: VERITAS NetBackup for Oracle - Release 5.1 (2006040520)
    allocated channel: c8
    channel c8: sid=21 devtype=SBT_TAPE
    channel c8: VERITAS NetBackup for Oracle - Release 5.1 (2006040520)
    executing command: SET until clause
    Starting recover at 23-06-2012 02:00:15
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    released channel: c5
    released channel: c6
    released channel: c7
    released channel: c8
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 06/23/2012 03:36:57
    RMAN-06067: RECOVER DATABASE required with a backup or created controlfile
    RMAN>
    Restore Script:
    connect target /
    connect catalog rmanc/recom@lgn_rmanc
    run {
    allocate channel c1 type 'SBT_TAPE';
    allocate channel c2 type 'SBT_TAPE';
    allocate channel c3 type 'SBT_TAPE';
    allocate channel c4 type 'SBT_TAPE';
    allocate channel c5 type 'SBT_TAPE';
    allocate channel c6 type 'SBT_TAPE';
    allocate channel c7 type 'SBT_TAPE';
    allocate channel c8 type 'SBT_TAPE';
    allocate channel c9 type 'SBT_TAPE';
    allocate channel c10 type 'SBT_TAPE';
    allocate channel c11 type 'SBT_TAPE';
    allocate channel c12 type 'SBT_TAPE';
    set until time '12-06-2012 00:01:26';
    restore tablespace SYSTEM,UNDO_GEN01,UNDO_GEN02,TAB_80K_GENCON,TAB_25M_GENCON;
    release channel c1;
    release channel c2;
    release channel c3;
    release channel c4;
    release channel c5;
    release channel c6;
    release channel c7;
    release channel c8;
    release channel c9;
    release channel c10;
    release channel c11;
    release channel c12;
    Recover Script:
    connect catalog rmanc/recom@lgn_rmanc
    connect target /
    run {
    allocate channel c1 type 'SBT_TAPE';
    allocate channel c2 type 'SBT_TAPE';
    allocate channel c3 type 'SBT_TAPE';
    allocate channel c4 type 'SBT_TAPE';
    allocate channel c5 type 'SBT_TAPE';
    allocate channel c6 type 'SBT_TAPE';
    allocate channel c7 type 'SBT_TAPE';
    allocate channel c8 type 'SBT_TAPE';
    set until time '12-06-2012 00:01:26';
    recover tablespace SYSTEM,UNDO_GEN01,UNDO_GEN02,TAB_80K_GENCON,TAB_25M_GENCON;
    release channel c1;
    release channel c2;
    release channel c3;
    release channel c4;
    release channel c5;
    release channel c6;
    release channel c7;
    release channel c8;
    Any suggestion in this is helpful to me..
    Thanks in advance,

    Hello;
    I read your post and here's the thoughts that came to mind : ( my largest concern is you might restore something that damages your current system )
    1. So you want to restore the whole DB back to 12/06/2012 to get some tablespaces from then right?
    2. Are you restoring to a different system?
    3. How did you start the database ( NOMOUNT, MOUNT )
    4. If you are restoring the whole DB back to 12/06/2012 how did you restore the control file?
    5. Your command shows :
    restore tablespace SYSTEM,UNDO_GEN01,UNDO_GEN02,TAB_80K_GENCON,TAB_25M_GENCON;
    COMMENT : Generally I use recover tablespace for point in time recovery and use an auxilary destination.
    Meaning I don't use restore at all, in fact using restore may cause an issue.
    SUMMARY : I don't see how this will work as is.
    It seems you want data from five tablespaces from about six months ago including the SYSTEM tablespace.
    This is an Incomplete Recovery. I believe I would rethink this completely.
    Give the time that has past I would consider restoring the whole database to a different server where cannot damage anything.
    Once this is done I would decide how to get the data I need.
    Or I would check for a daily export file and recover the tablespace data that way.
    So you have some good details on your question but it seems the plan is either missing something or you need to add a few more details.
    Example
    I'm recovering old tablespaces into a test system.
    Here's how I'm not damaging my current production system.
    I don't have an export from that date.
    So take a step back and either rethink or give a few more details on how this is safe.
    Best Regards
    mseberg

  • Error in creating controlfile

    Hi all,
    I am getting this error from adclone.pl when trying to clone a database.
    Total System Global Area  444149652 bytes
    Fixed Size                    73620 bytes
    Variable Size             361099264 bytes
    Database Buffers           81920000 bytes
    Redo Buffers                1056768 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "NAME"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/path/name.DBF'
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directoryit is true the actual file does not exist and is not essential for the running of the database.
    Is the information to create the controlfile held in a context file and if so is it possible to edit the file and remove the offending line?
    regards
    Alan
    Edited by: alanm on Sep 14, 2011 3:56 PM

    it is true the actual file does not exist and is not essential for the running of the database.
    Is the information to create the controlfile held in a context file and if so is it possible to edit the file and remove the offending line?It is possible (as mentioned above) but this may not guarantee that the script would work for the other database files which may not exist.
    Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]
    Troubleshooting RapidClone issues with Oracle Applications 11i [ID 364565.1]
    The best approach to fix this issue is by running preclone again on the source nodes, copy the files and run postclone then.
    Thanks,
    Hussein

  • Cannot create controlfile

    When I try create controlfile reuse resetlogs database 'cms';
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    '%ORACLE_HOME%\DATABASE\DBS1%ORACLE_SID%.ORA'
    ORA-27048: skgfifi: file header information is invalid
    OSD-04001: invalid logical block size (OS 1919900730)
    What could be the problem? And why is it looking for DBS1%ORACLE_SID%.ORA' should there be such file?
    ora11, Win2003 server

    anilreddy wrote:
    Go to the Trace file location and edit the trace file, recreate the control file at nomount stateI don't get this advice... why should you go to the tracefile location.
    In this stadium there might not even be a tracefile.
    Have a look at the statement you use. Usually it looks something like this:
    CREATE CONTROLFILE REUSE DATABASE "REPT01" NORESETLOGS FORCE LOGGING NOARCHIVELOG
    MAXLOGFILES 29
    MAXLOGMEMBERS 4
    MAXDATAFILES 254
    MAXINSTANCES 2
    MAXLOGHISTORY 11685
    LOGFILE
    GROUP 1 '/opt/rept01/re01/repprd_redo1.log' SIZE 50M,
    GROUP 2 '/opt/rept01/re01/repprd_redo2.log' SIZE 50M,
    GROUP 3 '/opt/rept01/re01/repprd_redo3.log' SIZE 50M,
    DATAFILE
    '/opt/rept01/db01/repprd_system01.dbf',
    '/opt/rept01/db01/undotbs1.dbf',
    '/opt/rept01/db01/repprd_sysaux.dbf',
    '/opt/rept01/db01/data01.dbf',
    '/opt/rept01/db01/data06.dbf'
    CHARACTER SET UTF8
    ;In your case you should check the files mentioned in the DATAFILE section
    Maybe post the complete command you're using.
    Thanks
    FJFranken

  • EBS 11.5.10.2 installation Fails - create controlfile

    Hello All
    I am trying to install EBS 11.5.10.2 (test system) on Oracle Linux 5.8 (Apps tier 32-bit, database tier 64-bit). During the database creation phase I am getting this error: RW-50004 (Creating controlfile), so I checked log files and its says
    ORA-01031: insufficient privileges
    I tried to login to instance on database tier after sourcing env file but I got the same error. But if I create password file and then login sys/password as sysdba, it logs me in to an idle instance.
    But I need rapidwiz to pass this step. So please suggest what should I do?.
    Regards
    Amit

    Hi Amit,
    Hello All
    I am trying to install EBS 11.5.10.2 (test system) on Oracle Linux 5.8 (Apps tier 32-bit, database tier 64-bit). During the database creation phase I am getting this error: RW-50004 (Creating controlfile), so I checked log files and its says
    ORA-01031: insufficient privileges
    I tried to login to instance on database tier after sourcing env file but I got the same error. But if I create password file and then login sys/password as sysdba, it logs me in to an idle instance.
    But I need rapidwiz to pass this step. So please suggest what should I do?.
    Regards
    AmitFirst of all, please note that Oracle 9i (which comes with 11.5.10.2) is not certified on OEL 5
    Have you added the OS user who owns the database tier files to the dba group?
    OERR: ORA 1031 "insufficient privileges" [ID 18622.1]
    Troubleshooting ORA-1031: Insufficient Privileges While Connecting As SYSDBA [ID 730067.1]
    At what stage/step you get this error?
    Please upload all the installation log files to any free hosting website and post the link here (in one zip file).
    You do not need to create a password file at this level, and connecting as sysdba through oracle user and after sourcing the database env file does not need a password file.
    Also, please confirm that md5sum was run successfully -- MD5 Checksums for 11i10 Rapid Install Media [ID 289821.1]
    Thanks,
    Hussein

  • CREATE CONTROLFILE REUSE DATABASE ....(what's the meaning of the 'REUSE')?

    I know the Oracle documents about 'CREATE CONTROLFILE':
    [http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm]
    but i don't understand the following statements:
    REUSE
    Specify REUSE to indicate that existing control files identified by the initialization parameter CONTROL_FILES can be reused, overwriting any information they may currently contain. If you omit this clause and any of these control files already exists, then Oracle Database returns an error.
    Please Note the last statements:If you omit this clause and any of these control files already exists, then Oracle Database returns an error.
    i try a test ,nomatter the control files exists or not , it can re-create the new control files . it doesn't occur an error.
    i'm confusing,what's this statements meaning ?
    If you omit this clause and any of these control files already exists, then Oracle Database returns an error

    Hi,
    You use "reuse" to indicate that the control files identified in the initialization parameter can be reuse and can be overwritten, and the database name will be the same.
    CREATE CONTROLFILE REUSE DATABASE "TEST" RESETLOGS NOARCHIVELOG
    If you want to change the database name you move the actual control files to a different location and change the "Reuse" for "Set"
    CREATE CONTROLFILE SET DATABASE "NEW_NAME" RESETLOGS NOARCHIVELOG
    I think we can get an error using the
    CREATE CONTROLFILE SET DATABASE "NEW_NAME" RESETLOGS NOARCHIVELOG
    without moving the controlfiles if I add the REUSE before the SET it overwrite the Controlfile
    CREATE CONTROLFILE REUSE SET DATABASE "NEW_NAME" RESETLOGS NOARCHIVELOG
    Edited by: user9132844 on Apr 10, 2012 8:55 AM

  • Creating Controlfile Consfusion

    According to Oracle Documents [http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm|http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm]
    When you issue a CREATE CONTROLFILE statement, Oracle Database creates a new control file based on the information you specify in the statement. The control file resides in the location specified in the CONTROL_FILES initialization parameter. If that parameter does not have a value, then the database creates an Oracle-managed control file in the default control file destination, which is one of the following (in order of precedence):
    •One or more control files as specified in the DB_CREATE_ONLINE_LOG_DEST_n initialization parameter. The file in the first directory is the primary control file. When DB_CREATE_ONLINE_LOG_DEST_n is specified, the database does not create a control file in DB_CREATE_FILE_DEST or in DB_RECOVERY_FILE_DEST (the flash recovery area).
    •If no value is specified for DB_CREATE_ONLINE_LOG_DEST_n, but values are set for both the DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST, then the database creates one control file in each location. The location specified in DB_CREATE_FILE_DEST is the primary control file.
    •If a value is specified only for DB_CREATE_FILE_DEST, then the database creates one control file in that location.
    •If a value is specified only for DB_RECOVERY_FILE_DEST, then the database creates one control file in that location.
    If no values are set for any of these parameters, then the database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
      2  /
    Database altered.
    SQL> show parameter control_files
    NAME                                 TYPE        VALUE
    control_files                        string      D:\ORACLE\PRODUCT\10.2.0\ORADA
                                                     TA\ORCL\CONTROL01.CTL, D:\ORAC
                                                     LE\PRODUCT\10.2.0\ORADATA\ORCL
                                                     \CONTROL02.CTL, D:\ORACLE\PROD
                                                     UCT\10.2.0\ORADATA\ORCL\CONTRO
                                                     L03.CTL
    SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
      2  /
    File created.take out control_files parameter from pfile.txt and define the parameter only
    db_recovery_file_dest='D:\oracle\product\10.2.0\db_1
    db_recovery_file_dest_size=2147483648
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  /
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    But why its failing when i try to assert the Oracle doc statment
    If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  ;
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>

    Oh really , here you go , i hope you can help me to sort the issue.
    SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
      2  /
    Database altered.
    SQL> show parameter control_files
    NAME                                 TYPE        VALUE
    control_files                        string      D:\ORACLE\PRODUCT\10.2.0\ORADA
                                                     TA\ORCL\CONTROL01.CTL, D:\ORAC
                                                     LE\PRODUCT\10.2.0\ORADATA\ORCL
                                                     \CONTROL02.CTL, D:\ORACLE\PROD
                                                     UCT\10.2.0\ORADATA\ORCL\CONTRO
                                                     L03.CTL
    SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
      2  /
    File created.take out control_files parameter from pfile.txt
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    #*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  /
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    But why its failing when i try to assert the Oracle doc statment
    If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    *.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11    GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12  DATAFILE
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18  CHARACTER SET WE8MSWIN1252
    19  ;
    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
    [], [], []when i do not define the contro_files parameter within pfile , it works a trait. It creates the control file using OS default location in the absence of control_files, whats the point?
    Pfile Parameters
    orcl.__db_cache_size=71303168
    orcl.__java_pool_size=8388608
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=201326592
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
    *.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    #*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
    *.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=96468992
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=290455552
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
    SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  1290208 bytes
    Variable Size             218103840 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                7098368 bytes
    SQL>  CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS  ARCHIVELOG
      2       MAXLOGFILES 16
      3       MAXLOGMEMBERS 3
      4       MAXDATAFILES 100
      5       MAXINSTANCES 8
      6       MAXLOGHISTORY 292
      7   LOGFILE
      8     GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'  SIZE 50M,
      9     GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'  SIZE 50M,
    10     GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG'  SIZE 50M,
    11     GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG'  SIZE 100M
    12   DATAFILE
    13     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
    17     'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
    18   CHARACTER SET WE8MSWIN1252
    19   ;
    Control file created.
    SQL> select name from v$controlfile
      2  /
    NAME
    D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1ORCL.ORA

  • Create controlfile statement

    I created a copy of my database
    by physically copying datafiles and
    tempfiles it consist of,
    then I called create control file statement,
    but there can't be tempfiles specified there.
    I thought that I have to create temp tablespace
    after opening database, but it existed so I just
    called alter tablespace temp add tempfile
    'tempxx.dbf' reuse;
    for all tempfiles copied.
    I don't know how it is possible temp tablespace
    existed in created database when no tempfiles
    were specified in create controlfile statement.

    I created a copy of my database
    by physically copying datafiles and
    tempfiles it consist of,
    then I called create control file statement,
    but there can't be tempfiles specified there.r.- From where you took the script to create the temp datafiles ?
    I thought that I have to create temp tablespace
    after opening database, but it existed so I just
    called alter tablespace temp add tempfile
    'tempxx.dbf' reuse;r.- In effect they are created after opening the database
    for all tempfiles copied.
    I don't know how it is possible temp tablespace
    existed in created database when no tempfiles
    were specified in create controlfile statement.That task must be done so:
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "COPY1" NORESETLOGS  NOARCHIVELOG
    --  SET STANDBY TO MAXIMIZE PERFORMANCE
        MAXLOGFILES 50
        MAXLOGMEMBERS 5
        MAXDATAFILES 100
        MAXINSTANCES 1
        MAXLOGHISTORY 226
    LOGFILE
      GROUP 1 'C:\COPY1\COPY1\REDO01.LOG'  SIZE 10M,
      GROUP 2 'C:\COPY1\COPY1\REDO02.LOG'  SIZE 10M,
      GROUP 3 'C:\COPY1\COPY1\REDO03.LOG'  SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
      'C:\COPY1\COPY1\SYSTEM01.DBF',
      'C:\COPY1\COPY1\UNDOTBS01.DBF',
      'C:\COPY1\COPY1\CWMLITE01.DBF',
      'C:\COPY1\COPY1\DRSYS01.DBF',
      'C:\COPY1\COPY1\EXAMPLE01.DBF',
      'C:\COPY1\COPY1\INDX01.DBF',
      'C:\COPY1\COPY1\ODM01.DBF',
      'C:\COPY1\COPY1\TOOLS01.DBF',
      'C:\COPY1\COPY1\USERS01.DBF',
      'C:\COPY1\COPY1\XDB01.DBF'
    CHARACTER SET WE8ISO8859P1
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    RECOVER DATABASE
    # Database can now be opened normally.
    ALTER DATABASE OPEN;
    # Commands to add tempfiles to temporary tablespaces.
    # Online tempfiles have complete space information.
    # Other tempfiles may require adjustment.
    ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\COPY1\COPY1\TEMP01.DBF'
         SIZE 41943040  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
    # End of tempfile additions.Why you want to create or recreate the controlfiles ?
    Joel Pérez
    http://www.oracle.com/technology/experts

  • CREATE CONTROLFILE REUSE DATABASE OR SET DATABASE

    Hi Guys,
    I'm doing a db migration from one mount point to another mount point in the same server.
    The location of controlfile, log files and datafiles will be change.
    I have updated the new controfile location in my pfile and startup nomount.
    When creating the controfile to reflect the new location of redo logs / datafiles, should i use "reuse" or "set" syntax? Can explain what's the diff between the 2? Have read up the document but not able to understand.
    thanks

    Here not only controlfile but also data & redo log files That's irrelevant. The REUSE in the CREATE CONTROLFILE statement applies only to the controlfile.
    (REUSE for Datafiles is in ALTER ... CREATE ... DATAFILE .... etc).
    REUSE in CREATE CONTROLFILE is to specify that existing controlfiles are to be overwritten.
    SET in CREATE CONTROLFILE is to specify that the DB_NAME is being changed from whatever is the existing name in datafile headers.
    They are two different clauses for two different purposes. It is not an "either/or" decision.
    I can REUSE with SET.
    I can REUSE without SET.
    I can exclude REUSE but use SET.
    I can exclue REUSE and exclude SET.
    Hemant K Chitale

  • OCS V2 on linux "CREATE CONTROLFILE failed"

    Hello,
    i'd like some help regarding OCS instalation on linux.
    at first i tried to install OCS V2 on redhat 9.
    added redhat-9 to "certified OSes", installer started, fixed issue with "-z defs", then hung on relinkink webcache ins_calypso.mk. (ignored) later running DBCA get message "ORA-01503: CREATE CONTROLFILE failed" (abort) "ORA-01990: error opening password file ..." (abort) "ORA-27037: unable to obtain file status" (abort) same error (ok) other tasks continues...
    even tried OCS V1 singlebox version. the same problem.
    later downloaded and instaled UnitedLinux 1.0.
    some more issues about fully qualified hostname.
    needed to set /proc/sys/kernel/hostname not only to hostname, but to hostname.domainname.
    and the get the same error.
    i cant find answers to my problems in OTN and Metalink.
    please help.
    Thanks.
    Saulius Speicys

    also followed suse recomendations for Oracle 9i R2 install on SLES8 (920_sles8_install.pdf).
    updated kernel, downgraded gcc .
    and got the same troubles.
    at first with hostname, later with ins_sqlplus.mk, and then at dbca "CREATE CONTROLFILE failed".
    can it be because of fqhostname "ocs.as.local" ?
    or any naming of oracle home "/opt/oracle/product/iasdb" , instance name, or instance name "infra" / "ocs_infra" ?
    i think i'm lost %(
    thanks for any help.
    Saulius

  • Error re-creating controlfile

    I am trying to recreate the control file from the text trace file I created.
    When I run the script in the trace file I get errors, so I'm breaking it down into little steps.
    After running this:
    STARTUP NOMOUNT;
    CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG;
    I get this error:
    SQL> CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG;
    CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '?/dbs/[email protected]'
    ORA-27037: unable to obtain file status
    HP-UX Error: 2: No such file or directory
    Additional information: 3
    I have no ideas where this file is coming from:
    ?/dbs/[email protected]'
    Any advice?

    I am using Oracle 9.2.0.6
    Here are the home & sid:
    ORACLE_SID=D3P
    ORACLE_HOME=/oracle/D3P/920_64
    Here is the complete statement:
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE SET DATABASE "D3P" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 255
    MAXLOGMEMBERS 3
    MAXDATAFILES 254
    MAXINSTANCES 50
    MAXLOGHISTORY 2949
    LOGFILE
    GROUP 1 (
    '/oracle/D3P/origlogA/log_g11m1.dbf',
    '/oracle/D3P/mirrlogA/log_g11m2.dbf'
    ) SIZE 50M,
    GROUP 2 (
    '/oracle/D3P/origlogB/log_g12m1.dbf',
    '/oracle/D3P/mirrlogB/log_g12m2.dbf'
    ) SIZE 50M,
    GROUP 3 (
    '/oracle/D3P/origlogA/log_g13m1.dbf',
    '/oracle/D3P/mirrlogA/log_g13m2.dbf'
    ) SIZE 50M,
    GROUP 4 (
    '/oracle/D3P/origlogB/log_g14m1.dbf',
    '/oracle/D3P/mirrlogB/log_g14m2.dbf'
    ) SIZE 50M
    -- STANDBY LOGFILE
    DATAFILE
    '/oracle/D3P/sapdata3/system_1/system.data1',
    '/oracle/D3P/sapdata1/r3_1/r3.data1',
    '/oracle/D3P/sapdata2/r3_2/r3.data2',
    '/oracle/D3P/sapdata1/r3_3/r3.data3',
    '/oracle/D3P/sapdata2/r3_4/r3.data4',
    '/oracle/D3P/sapdata1/r3_5/r3.data5',
    '/oracle/D3P/sapdata2/r3_6/r3.data6',
    '/oracle/D3P/sapdata1/r3_7/r3.data7',
    '/oracle/D3P/sapdata2/r3_8/r3.data8',
    '/oracle/D3P/sapdata1/r3_9/r3.data9',
    '/oracle/D3P/sapdata2/r3620_1/r3620.data1',
    '/oracle/D3P/sapdata3/r3usr_1/r3usr.data1',
    '/oracle/D3P/sapdata3/r3_13/r3.data13',
    '/oracle/D3P/sapdata3/r3_10/r3.data10',
    '/oracle/D3P/sapdata2/r3620_2/r3620.data2',
    '/oracle/D3P/sapdata3/r3620_3/r3620.data3',
    '/oracle/D3P/sapdata3/r3_11/r3.data11',
    '/oracle/D3P/sapdata3/r3_12/r3.data12',
    '/oracle/D3P/sapdata4/undo_1/undo.data1',
    '/oracle/D3P/sapdata3/r3620_4/r3620.data4',
    '/oracle/D3P/sapdata4/r3_14/r3.data14',
    '/oracle/D3P/sapdata4/r3_15/r3.data15',
    '/oracle/D3P/sapdata4/r3_16/r3.data16',
    '/oracle/D3P/sapdata4/r3_17/r3.data17',
    '/oracle/D3P/sapdata2/r3_18/r3.data18',
    '/oracle/D3P/sapdata2/r3_19/r3.data19',
    '/oracle/D3P/sapdata2/r3_20/r3.data20'
    CHARACTER SET UTF8
    Here is the results
    SQL> CREATE CONTROLFILE REUSE SET DATABASE "D3P" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 255
    MAXLOGMEMBERS 3
    MAXDATAFILES 254
    MAXINSTANCES 50
    MAXLOGHISTORY 2949
    LOGFILE
    GROUP 1 (
    '/oracle/D3P/origlogA/log_g11m1.dbf',
    '/oracle/D3P/mirrlogA/log_g11m2.dbf'
    ) SIZE 50M,
    GROUP 2 (
    '/oracle/D3P/origlogB/log_g12m1.dbf',
    '/oracle/D3P/mirrlogB/log_g12m2.dbf'
    ) SIZE 50M,
    GROUP 3 (
    '/oracle/D3P/origlogA/ 2 3 4 5 6 7 8 '/oracle/D3P/sapd
    ata4/r3_16/r3.data16',
    ERROR at line 2:
    ORA-01967: invalid option for CREATE CONTROLFILE

  • Create controlfile fails

    Dear Hussein,
    I refereshed my production database with UAT database and when I am executing create contirolfile command I am getting the below erros:
    SQL> @ctrl01.sql
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    ======
    vi ctrl01.sql
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 512
    MAXINSTANCES 8
    MAXLOGHISTORY 20157
    LOGFILE
    GROUP 1 (
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
    ) SIZE 1024M,
    GROUP 2 (
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
    ) SIZE 1024M
    DATAFILE
    '/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
    CHARACTER SET AR8ISO8859P6;
    can u plz suggest

    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELPIt seems to be there is space (one line space is there, as per your script) before DATAFILE clause, remove that space and re run the script, it should be fixed
    try with the below script
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 512
    MAXINSTANCES 8
    MAXLOGHISTORY 20157
    LOGFILE
    GROUP 1 (
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
    ) SIZE 1024M,
    GROUP 2 (
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
    ) SIZE 1024M
    DATAFILE
    '/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
    '/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
    CHARACTER SET AR8ISO8859P6;Edited by: oraDBA2 on Aug 3, 2009 2:15 PM

Maybe you are looking for