Recreate control file

Hi gurus! Need help
I've lost all my control files + i want to rename my database from testrman to ntstrman. But I am getting an error
ORA 01503 create control file failed
ORA 01160 file is not a daatafile
dataf file is '/oradata/ntstrman/temp01.dbf'
Can't you please look throw and tell me what am i doing wrong? Thanks.
create_control.sql:
create controlfile set database ntstrman
resetlogs
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
archivelog
logfile
group 1 ('/oradata/ntstrman/redo01.log'),
group 2 ('/oradata/ntstrman/redo02.log'),
group 3 ('/oradata/ntstrman/redo03.log')
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/temp01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
initntstrman.ora:
testrman.__db_cache_size=92274688
ntstrman.__db_cache_size=100663296
testrman.__java_pool_size=4194304
testrman.__large_pool_size=4194304
ntstrman.__large_pool_size=4194304
testrman.__shared_pool_size=62914560
ntstrman.__shared_pool_size=54525952
testrman.__streams_pool_size=0
*.audit_file_dest='/oradata/admin/ntstrman/adump'
*.background_dump_dest='/oradata/admin/ntstrman/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/oradata/ntstrman/control01.ctl','/oradata/ntstrman/control02.ctl','/oradata/ntstrman/control03.ctl'
*.core_dump_dest='/oradata/admin/ntstrman/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ntstrman'
*.db_recovery_file_dest='/oradata/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ntstramnXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/oradata/admin/ntstrman/udump'
Edited by: Junior Oracle DBA on Oct 20, 2008 3:37 PM

Hi...
Please mention the size of the redolog files..which you haven't and secondly, tempfile is not be added in the control file script, create the temporary tablespace later after opening the database
1. Change the control_files parameter in the pfile, which you have done.
2. startup nomount pfile='pfile/location/name/';
3.
create controlfile set database ntstrman resetlogs archivelog
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
logfile
group 1 '/oradata/ntstrman/redo01.log' SIZE xxxM,
group 2 '/oradata/ntstrman/redo02.log' SIZE xxxM,
group 3 '/oradata/ntstrman/redo03.log' SIZE xxxM
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
;4. alter database open resetlogs
5. create temporary tablespace tempfile 'temp/file/location/name' size xxxM ;
Link: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5003.htm#SQLRF01203]
HTH
Anand

Similar Messages

  • Problem in recreating control file

    Hi,
    When i recreate controlfile ... It creates a set of datafile...
    FILE# NAME STATUS
    84 /u01/app/oracle/product/10.2.0/dbs/MISSING00084 RECOVER
    85 /u01/app/oracle/product/10.2.0/dbs/MISSING00085 RECOVER
    86 /u01/app/oracle/product/10.2.0/dbs/MISSING00086 RECOVER
    Only these datafiles give problem... but these or no way related to my db. And i dint create.

    Hi,
    I have took the trace of the control file , from that i recreated the control file.
    after creating the control file when i query,
    select name from v$datafile;
    i dint find the files.. but when i gave
    alter database open resetlogs;
    alter this only the file appears...
    oracle version is 10.2.0

  • Recreating control file in RAC with noresetlogs

    Hi all,
    I need to recreate the controlfile in a 2-node RAC environment (9i)
    for altering the MAXLOGHISTORY value. I will be using noresetlogs as I
    have all the online logs available with me.
    I referred to metalink note (Note:118931.1) for the same, and to
    clarify the same, it refers to set cluster_database to false and then
    to true after creating the new controlfile.
    Here I have Log Groups 1,2,5,6,7 belongs to instance1 and the rest belongs to
    instance2
    Below is the trace of controlfile...
    create controlfile reuse database "prod" noresetlogs force logging
    archivelog
    maxlogfiles 64
    maxlogmembers 3
    maxdatafiles 800
    maxinstances 32
    maxloghistory 15000
    logfile
    group 1 '/dev/rprod_redo11' size 100m,
    group 2 '/dev/rprod_redo12' size 100m,
    group 3 '/dev/rprod_redo21' size 100m,
    group 4 '/dev/rprod_redo22' size 100m,
    group 5 '/dev/rprod_redo13' size 100m,
    group 6 '/dev/rprod_redo14' size 100m,
    group 7 '/dev/rprod_redo15' size 100m,
    group 8 '/dev/rprod_redo23' size 100m,
    group 9 '/dev/rprod_redo24' size 100m,
    group 10 '/dev/rprod_redo25' size 100m
    -- standby logfile
    datafile
    Please clarify on the same, do the traced controlfile need to have some thread info for redo logs & do I need to make the cluster_database parameter to fale/true.
    Thanks!
    Prat

    1. Create the trace file (with Create control file statements..)
    2. Edit the trace file, to remove the log groups which doesn't belong to Instance 1 (in you case you would be removing groups 3,4,8,9,10).
    3. Shutdown all the instances.
    4. edit the init.ora file to make CLUSTER_DATABASE=FALSE:
    5. startup nomount instance 1.
    6. Run the edited trace file to create the control file.
    7. shutdown instance 1.
    8. edit the init.ora file to make CLUSTER_DATABASE=TRUE;
    9. Startup instance 1;
    10. Add the log groups for the instance 2 (groups 3,4,8,9,10)
    11. Add tempfiles as indicated in the trace file.
    12. Enable thread 2;
    13. Startup instance 2.
    As always, take backups.
    HTH
    Thanks
    Chandra

  • Best script for recreating control file

    Hi
    Yesterday I had a lot of fun trying to refresh a Dev db with an inconsistent backup (just learned that the offline backup from that night finished late and not before the db was started up again, thus making datafile inconsistent).
    Today I will try again. I am waiting for the tape backup to finish restoring to the Dev datafile directory.
    I would love to know if there is a template out there, or if we can agree here, for the best standard for recreating a control file through a @script.
    I will include the one I intend to use here, minus the datafiles.
    I am using the RESETLOGS, since we are using :"SET" database.
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "DEV" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 500
    MAXINSTANCES 1
    MAXLOGHISTORY 19285
    LOGFILE
    GROUP 1 (
    '/oradbi1/oracle/proddata/log01a.dbf',
    '/oradbi1/oracle/proddata/log01b.dbf'
    ) SIZE 10M,
    GROUP 2 (
    '/oradbi1/oracle/proddata/log02a.dbf',
    '/oradbi1/oracle/proddata/log02b.dbf'
    ) SIZE 10M,
    GROUP 3 (
    '/oradbi1/oracle/proddata/log03a.dbf',
    '/oradbi1/oracle/proddata/log03b.dbf'
    ) SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
    '/oradbi1/oracle/proddata/system01.dbf',
    '/oradbi1/oracle/proddata/applsysd09.dbf',
    '/oradbi1/oracle/proddata/bend06.dbf'
    CHARACTER SET US7ASCII
    RECOVER DATABASE USING BACKUP CONTROLFILE
    ALTER DATABASE OPEN RESETLOGS;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp04.dbf'
    SIZE 2040M REUSE AUTOEXTEND OFF;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp03.dbf'
    SIZE 2040M REUSE AUTOEXTEND OFF;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp02.dbf'
    SIZE 2040M REUSE AUTOEXTEND ON NEXT 10485760 MAXSIZE 32767M;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp01.dbf'
    SIZE 2000M REUSE AUTOEXTEND OFF;
    If anyone can see room for improvement on this, please let us know.
    Thanks.
    AIX 5.2
    Oracle 9.2

    I normally break it up into seperate scripts (even though the "trace" file generates a single script file).
    1. The first is the CREATE CONTROLFILE itself. If successful , it also mounts the database.
    The most important portion is to validate that we do have ALL the datafiles included.
    (eg if you are generating from an old controlfile backup and some new datafile(s) have been added since that backup you had better ensure that you add them to the script , else the RECOVER DATABASE will ignore them and they will be unrecoverable after the OPEN RESETLOGS !)
    2. The next portion is the RECOVER DATABASE USING BACKUP CONTROLFILE which I never run non-interactively.
    Always ensure that it is NOT an interactive run. If you really have more than a dozen archivelogs to apply, then you could just enter AUTO after supplying the first 3 or 4 archivelogs and wait for the RECOVER DATABASE to "error" out after it applies the last archivelog.
    3. The next portion is a manual RECOVER to apply any Archivelogs that couldn't be applied by the AUTO -- eg Archives that weren't on disk but which I've restored OR the actual last Active/Current Online Redo Logs that hadn't been applied.
    between step 3 and step 4,
    to be safe : I could SHUTDOWN (it is MOUNTED but not OPEN) and take a Cold Backup of the database files and controlfiles. -- This can help me retry a RESETLOGS or restore a datafile that I might have mistakenly excluded from the CREATE CCF script
    and re-"recover" database -- meaning that Oracle will recover that datafile alone.
    4. Finally I review the alert.log, satisfy myself that I have applied all archivelogs and then manually issue the ALTER DATABASE OPEN RESETLOGS.
    5. Now I add TEMPFILEs (if 10g hasn't done it "automagically")
    6. If I have time, take a Cold Backup OR initiate a Hot Backup asap.
    I know that 10g now provides supported methods of recovering through a RESETLOGS, based on Incarnation ID, ... but still , old habits and old commands die hard.
    Have I answered your question about how to format the CREATE CCF ? No. But I've just added some inputs on how I prefer the next few steps be done.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Oct 22, 2008 10:05 PM
    Added the addition of TEMPFILEs
    Edited by: Hemant K Chitale on Oct 22, 2008 10:20 PM
    Corrected step 2 to be "Always ensure that it is NOT an interactive run"

  • Unable to recreate control file.

    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;

    Hi
    Just remove below lines from scripts and run again and please use set instead of reuse in the create control file staetment .
    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;
    Regards
    Shivendra Narain Nirala

  • ERROR IN RECREATING CONTROL FILES

    hello,
    I am trying to learn the concepts of database administration.
    I am facing a problem while creating a new control file:
    O.S=Windows 7 ORacle 10g
    What i want to do:
    1. The database has been created, now i have deleted the control file of my database to learn creating a new one.
    2. I have issued the command :
    create controlfile reuse database ipl noresetlogs;
    3. I am getting an error
    Error at line 1:
    ora-01503: create control file failed
    ora-01565: error in identifying file
    '%oracle_home%\database\dbs1%oracle_sid%.ora'
    ora-27041:unable to open file
    osd-04002: unable to open file
    o/s-error: (os2) The system cannot find specified file
    Please help me to solve the issue.
    Also studying from oracle administartion guide ebook:
    I came across
    CREATE CONTROLFILE
    SET DATABASE prod
    LOGFILE GROUP 1 ('/u01/oracle/prod/redo01_01.log',
    '/u01/oracle/prod/redo01_02.log'),
    GROUP 2 ('/u01/oracle/prod/redo02_01.log',
    '/u01/oracle/prod/redo02_02.log'),
    GROUP 3 ('/u01/oracle/prod/redo03_01.log',
    '/u01/oracle/prod/redo03_02.log')
    RESETLOGS
    DATAFILE '/u01/oracle/prod/system01.dbf' SIZE 3M,
    '/u01/oracle/prod/rbs01.dbs' SIZE 5M,
    '/u01/oracle/prod/users01.dbs' SIZE 5M,
    '/u01/oracle/prod/temp01.dbs' SIZE 5M
    MAXLOGFILES 50
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 400
    MAXDATAFILES 200
    MAXINSTANCES 6
    ARCHIVELOG;
    I would like to know the following:
    1.If only the control file is deleted, should we include the datafile clause as well as the log file clause or only create controlfile reuse database ipl noresetlogs command is enough.
    _______________________________________________________________________________________________________________________________________________

    Read the full doc: It will help. Yes You must list datafiles and log files etc. To know the reason, you will have to read the doc. If you are new and trying to learn new concepts, oracle documentation is your best buddy.
    http://docs.oracle.com/cd/B12037_01/server.101/b10759/statements_5003.htm
    Example
    Creating a Controlfile: Example
    This statement re-creates a control file. In this statement, database demo was created with the WE8DEC character set. The example uses the word path where you would normally insert the path on your system to the appropriate Oracle Database directories.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "demo" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 32
    MAXINSTANCES 1
    MAXLOGHISTORY 449
    LOGFILE
    GROUP 1 '/path/oracle/dbs/t_log1.f' SIZE 500K,
    GROUP 2 '/path/oracle/dbs/t_log2.f' SIZE 500K
    # STANDBY LOGFILE
    DATAFILE
    '/path/oracle/dbs/t_db1.f',
    '/path/oracle/dbs/dbu19i.dbf',
    '/path/oracle/dbs/tbs_11.f',
    '/path/oracle/dbs/smundo.dbf',
    '/path/oracle/dbs/demo.dbf'
    CHARACTER SET WE8DEC
    ;

  • Recreating Control File

    Hi
    Can anybody explain when to use "RESETLOGS" and "NORESETLOGS" option while making backup of Control File to TRACE and whats the purpose of using it?
    ALTER DATABASE BACKUP CONTROL FILE TO TRACE RESETLOGS/NORESETLOGS;
    TIA
    Aqueel.

    read the following discussion from asktom site. Very informative and helpful.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:2270402190261165858::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:311016722068
    Jaffar

  • Problem while recreating control file : Oracle 10g

    Hi,
    I am using oracle 10g version of database. i have multiple databases. I was not able to start one database which led to control file error. Then I found that the file got corrupted. I used the following syntax to restore my control file.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "mydb" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 8
    MAXLOGHISTORY 800
    LOGFILE
    GROUP 1 'redolog location' SIZE 500K
    DATAFILE
    'datafilelocation.dbf'
    but it failed with the following error.
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01115: IO error reading block from file (block # 1)
    ORA-01110: data file : 'datafilelocation.dbf'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Does this mean the datafiles are also corrupted? if yes, please do let me know how i can restore my datafiles. my system is of windows XP 2002.
    thanks,
    Haripriya

    Hi,
    thanks for all your replies. But I am using the full path for the log and for the datafiles. Just didnt want to reveal that before. Anyway below is the complete path that i was using.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "ACMDB" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 8
    MAXLOGHISTORY 800
    LOGFILE
    GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO01.LOG' SIZE 500K,
    GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO02.LOG' SIZE 500K,
    GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO03.LOG' SIZE 500K
    DATAFILE
    'D:/oracle/product/10.1.0/oradata/acmdb/SYSAUX01.dbf',
    'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf',
    'D:/oracle/product/10.1.0/oradata/acmdb/TEMP01.dbf',
    'D:/oracle/product/10.1.0/oradata/acmdb/UNDOTBS01.dbf',
    'D:/oracle/product/10.1.0/oradata/acmdb/USERS01.dbf'
    It is stull failing. I was not able to open the datafiles also. Looks like those are also very much corrupted. Does this mean my DB is crashed? Is there any way that I can correct the below error or only reinstallation would solve the issue. I do have all the database dump though. Please suggest me with the solution. I would like to make the reinstall as the last option.
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01115: IO error reading block from file (block # 1)
    ORA-01110: data file : 'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf'
    ORA-27091: unable to queue I/O
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Thanks,
    Haripriya

  • RECREATE DATABASE Using CONTROL File After SUSPEND Database

    Hello All,
    Does someone can tell me if he does achieve recreating a database using "Backup Control File" after putting database in "suspend" mode?
    The procedure looks like this :
    1 - Alter DATABASE Suspend
    2 - A Snapshot of the filesystem where the oracle datafile are located
    3 - Copy of those files to another file systeme
    4 - Startup setting a new database name
    Does someone as do it successfully ?
    Thanks for your answer

    Carlos,
    I tried to do it without putting the tablespaces in backup mode and it didn't work for me. At that time adding the backup mode wasn't a big deal for me, so I didn't investigate the problem thoroughly.
    Logically thinking you sould be able to do:
    1. suspend database
    the SCNs recored in datafiles headers could be incosistent at this point
    2. make a snapshot
    3. mount the backup database
    4. run recover until cancel using backup controlfile - I don't think you can avoid this step in case if you have inconsistent SCNs in the datafiles headers - you'll need to synchronize them
    5. open resetlogs.
    the suspend database should eliminate the possibility of inconsistent data within a block during the backup.
    Just out of curiosity - why don't you want to put the tablespace in the backup mode?
    Mike

  • How to recreate the control files

    Can someone tell me how to recreate the control file?
    Thanks in advance
    Himanshu

    Hi, You can use the following statement.
    CREATE CONTROLFILE
    SET DATABASE prod
    LOGFILE GROUP 1 ('/u01/oracle/prod/redo01_01.log',
    '/u01/oracle/prod/redo01_02.log'),
    GROUP 2 ('/u01/oracle/prod/redo02_01.log',
    '/u01/oracle/prod/redo02_02.log'),
    GROUP 3 ('/u01/oracle/prod/redo03_01.log',
    '/u01/oracle/prod/redo03_02.log')
    NORESETLOGS
    DATAFILE '/u01/oracle/prod/system01.dbf' SIZE 3M,
    '/u01/oracle/prod/rbs01.dbs' SIZE 5M,
    '/u01/oracle/prod/users01.dbs' SIZE 5M,
    '/u01/oracle/prod/temp01.dbs' SIZE 5M
    MAXLOGFILES 50
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 400
    MAXDATAFILES 200
    MAXINSTANCES 6
    ARCHIVELOG;
    Thanks

  • In case of Control File Failure, Create Control File cmd how get scn?

    The following lines i picked from the
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5033895918209
    ======================================================
    1. We can use the 'alter database rename ' at mount stage to rename any datafile. Or is it not possible to rename the system datafile like this? Why?
    2. What happens to the SCN information in the controlfile when a controlfile is recreated? How will the database sync the SCN with that of the datafiles?
    If I issue a 'backup controlfile to <file>' at 8 am and then restore that controlfile binary backup at 10 am and try to open the database, it will give me a control file old error. I understand that it is because the SCN is not in sync. But if I issue a 'backup controlfile to trace' at 8 am and use that script to recreate a new controlfile at 10 am, why doesn't I get the error? Where does it get the SCN information then?
    So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?
    Followup August 16, 2002 - 2pm US/Eastern:
    1) you could but I just always did it with the create controlfile statement.
    When moving system -- I do it that way
    When moving ANY OTHER tablespace -- i just offline it, move the files, rename the files online it.
    2) it just happens.
    The control file you create will read the files to figure out what is up.
    I agree, I've never used a binary controlfile backup myself.
    =========================================================
    My Question- In the Point2 above "Where does it get the SCN information and how control file do SCN Sync with data files?
    "

    1. The CREATE CONTROLFILE reads SCNs from the DataFiles. If the
    database was last shutdown, all the datafiles are "non-fuzzy" and have the same
    SCN (as of the shutdown checkpoint), If the database or some of the files are from
    are hot backup, you cannot open the database because the SCN of some files is
    older (lower) than others -- that is why a RECOVER (DATABASE or DATAFILE) is
    required.
    See http://web.singnet.com.sg/~hkchital/Incomplete_Recovery_with_BackupControlfile.doc
    2. I'm not sure I agree with Tom Kyte's response
    "I agree, I've never used a binary controlfile backup myself. "
    to the question
    "So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?"
    If you have lost your database (storage/filesystem failure) and all your datafiles are lost,
    you cannot simply do a CREATE CONTROLFILE from a Trace -- because the
    CREATE CONTROLFILE has to read and verify all the datafiles specified in the
    CREATE statement. If you have an RMAN Repository, you can use that to restore
    your database files but otherwise, the RMAN information about backups and backupsets
    are in the binary controlfile.
    That is why it is important to take binary controlfile backups either manually or
    using RMAN or using CONFIGURE CONTROLFILE AUTOBACKUP ON.

  • Creation of control file

    Hi friends,
    I want to do homogeneous system copy.
    I want to know the steps in homogeneous copy, and how to create control file from source system for target system.
    And after that what activity is required .
    thanks
    Regards
    Manoj

    hi
    while doing homogeneous copy sap will do some functinalaties through one sql file I think it will take control file backup and recreate it.
    if u want to do manually
    issue command
    sql>alter database backup controlfile to trace;
    look for trace file in udump dir from that file u can recreate controlfile or rename database.
    before doing take complete cold backup of source.
    start process with sap inst
    it will do certain tasks ref in manual
    let me know if u knoe some more inputs
    vinod

  • Creation of control file in Oracle 10g

    Hi,
    I had taken the backup of control file(backup control file to trace) and edited it to change the new location of the datafile.But when i try to create the Control file(Startup nomount,@cntrl.sql) it fails with the following error
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01276: Cannot add file
    /oracle/DBS/redolog/DBS/controlfile/o1_mf_2s4ho2n8_.ctl. File has an Oracle
    Managed Files file name.
    how can i recreate it?
    Regards,
    Cherry

    HI,
    what are you actually trying to do...
    relocation of datafile or control file.
    if you want to relocation of data file then go through below link
    http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/dfiles.htm#i1006457
    ORA-01276
    http://www.idevelopment.info/data/Oracle/DBA_tips/Tablespaces/TBS_8.shtml
    hope this helps
    Taj

  • Drop a datafile from physical standby's control file

    Hi,
    I am trying to create a physical standby database for my production...
    1) I have taken cold backup of my primary database on 18-Nov-2013...
    2) I added a datafile on 19-nov-2013 ( 'O:\ORADATA\SFMS\SFMS_DATA4.DBF' )
    3) Standby control file was generated on 20-ov-2013 (today) after shutting down and then mounting the primary database...
    When i try to recover the newly setup standby using archive files, i am getting the following error (datafile added on 19th Nov is missing)
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ORA-01157: cannot identify/lock data file 39 - see DBWR trace file
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    How to overcome this situation...
    Can i delete the entry for the newly added datafile from the backup control file ?
    When i tried to delete datafile using "alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF';", it is showing that database should be  open..
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      AUTO
    SQL> alter system set STANDBY_FILE_MANAGEMENT=manual;
    System altered.
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      MANUAL
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    Regards,
    Jibu

    Jibu wrote:
    Hi,
    I am trying to create a physical standby database for my production...
    1) I have taken cold backup of my primary database on 18-Nov-2013...
    2) I added a datafile on 19-nov-2013 ( 'O:\ORADATA\SFMS\SFMS_DATA4.DBF' )
    3) Standby control file was generated on 20-ov-2013 (today) after shutting down and then mounting the primary database..
    Hi,
    What is your version?
    If you added new datafile or created new tablespace, take backup again for restore new created standby database.
    If your standby  database running well, DG configuration success, then this datafile will create on standby side, too.
    Set STANDBY_FILE_MANAGEMENT=AUTO best practice.
    When i try to recover the newly setup standby using archive files, i am getting the following error (datafile added on 19th Nov is missing)
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ORA-01157: cannot identify/lock data file 39 - see DBWR trace file
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    How to overcome this situation...
    Can i delete the entry for the newly added datafile from the backup control file ?
    Not need any delete datafile from standby side, you must recreate standby database, or you can  take RMAN backup and restore to standby  side again.
    When i tried to delete datafile using "alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF';", it is showing that database should be  open..
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      AUTO
    SQL> alter system set STANDBY_FILE_MANAGEMENT=manual;
    System altered.
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      MANUAL
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    It is not logical, Physical  standby must be bit-for-bit same with Primary  database.
    Regards
    Mahir M. Quluzade

  • My experience of location of the control file

    Just learn bad experience by putting control file on a remote server.
    My original idea with the remote drive was to spread out th risk of losing all control files on the same location. But with one on remote drive it means
    1. That remote server has to be always on. I can not shut it down for other purpose especially when the remote server is my test server.
    2. My current oracle home was setup with a link directory from one drive to another local drive (by a previous Contractor). BAD for the startup if using the pfile. I have to include the total path of the pfile, even the init. ora file is in the $ORACLE_HOME/dbs, when I use modified pfile to startup.
    ex startup pfile='/total_path/init.ora'
    however I can use below to create a new init.ora file that saves into the $ORACLE_HOME/dbs
    create pfile='init.ora' from spfile;
    So I am going to change the location of my control file to one of the local drives, just different to that of other control files.
    This is my 2 cents opinion. Welcome any comments. Thanks.

    I think I can move second copy of redo log back to the server but at different hd when the Oracle is running. right?
    by dropping the inactive one group and recreate the group while other current group is on. But very becareful
    ( I have practiced on my test machine to drop one member, but 10g does not allow)
    I configured the flash_recovery to the drive where also store one copy of the archivelog. Since there is not much space left one other two drives, so I put other copy of the archivelog on a remote server.

Maybe you are looking for

  • Infinite reboot: Windows Server 2008 R2 Standard SP1

    Windows server has been running without issues up until this weekend: Two updates were installed; KB3020370 April 25 & KB3048761 April 26 From looking at the logs, it seems that the server started its infinite reboot loop April 25th.  I want to be ab

  • OL7 Virt-manager console problem

    Hi, Here's the problem: Im using virt-manager on a OL7 server. I use Xming on a client pc to connect to the server and launch virt-manager. I can press "run" and the virtual-machine will start in background, but when I try to open the console, both t

  • If my computer runs slow, should I wipe it? Other ideas?

    So I bought a computer quite a while ago, exactly 5 years ago to be exact. I am a gamer but I also use this for school work. It takes forever to turn on and load any application. I have tried cleaning the hard drive and so many other things! I'm desp

  • HT4623 How to turn-off tap display during passcode entry

    I recently bought Iphone 4s. I like the phone as such but one thing that I want to change is tap display while entering the passcode on lock screen. I don't want to see which keys I am entering as this can put my phone on risk as anyone close to me c

  • Any body can recommend a free JDBC driver for sql server 7.0

    The microsoft jdbc driver only use on sql server 2000, but my database system is sql server 7.0 Is there anybody can help me? Thanks a lot!