Whwn to create a standby control file?

Hi All ,
I want to setup a standby database for my Production DB.
I have a doubt, can we create a Standby by control file when the Primary database is up and running(read-write) mode. or else it is must to be in mount state only ?
Please advise.
Thanks.

Hello;
I do it like this: (And then copy the STANDBY.ctl to the Standby system and rename)
SQL>startup mount;
SQL>alter database create standby controlfile as 'STANDBY.ctl';
This command will fail is STANDBY.ctl exists.
See step 8 of my cliff notes here:
http://www.visi.com/~mseberg/data_guard_on_oracle_10_step_by_step.html
Or Step 7 if Oracle 11 here:
http://www.visi.com/~mseberg/data_guard_on_oracle_11_step_by_step.html
Best Regards
mseberg

Similar Messages

  • Creating a standby control file for cloning a standby database

    Hi
    I am in the process of trying to document the cloning of a standby database. I am trying to amalgamate three different documents - one for a normal clone, one for the creation of a SB database, and the other a formal Oracle document - the Business Continuity doc.
    Among the several things that confuse me, is the issue of creating (or not) a standby control file.
    I am not doing any kind of data file deletion / copying from source to target, as the SB database is updated all day with data file changes. I am doing a complete copying over of the APPL_TOP and techstacks.
    My question then, is this: should I be worried about creating a standby control file? I am told by our Senior here that "you can get away with not doing it", which sounds like too much of a risk to me.
    I am under a bit of pressure for this and I am not 100% sure about certain issues (see my other post for knowing how many DATA_TOPS we have on the SB, for instance).
    Thanks for listening.
    AIX 5.2.
    Oracle 10g.
    DA

    Do you already have a Standby running ? (then it may be using a standby controlfile).
    Yes. And there is already a standby control file there. It seems to me, that if the data (logs) transfers are done each minute or whatever between source and SB, and the SB is a copy of the db, then we dont need to worry about any kind of data files, since they should be identical. The only things I will need to change are the configuration files like the ifile in both dbs and tns_names, listener, tnsnames.ora, and the init.ora.
    b. Are you creating a document about the process of creating standby from production ? If you plan to use DataGuard, you will need a standby controlfile. Otherwise , it depends on how you configure the standby.
    No. I am creating a doc for how to clone from Production to a SB environment. A reason behind this is that the Apps side of the SB is about 9 patches behind the Production box, and we need to update it. I believe this is the main reason for doing this.
    c. Just to check : You are NOT using Storage Mirroring -- ie D.R. ?
    No, no DR on this environment.
    Thanks.
    DA

  • Reg Creating Physical Standby Control File

    Hi,
    I am trying to create a physical standby in the same server in a different partition.
    I have copied the home and changed the init.ora file.
    I have created listeners.
    I did creating standby Control file Using
    alter database create standby controlfile as '/some/path/to/a/file'
    Then i copied the datafiles from primary to standby and when i tried to mount the database it gives error
    RACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1267044 bytes
    Variable Size 88083100 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7118848 bytes
    ORA-01103: database name 'WMSTDBY' in control file is not 'WMTEST'
    My Primary Sid is WMSTDBY
    My Standby SId is WMTEST.
    Please help in this regard.
    Krishna.V.V

    You cannot change the DB_NAME of the standby. It has to be the same as the Primary. You can change (and should) the INSTANCE_NAME (SID) and the DB_UNIQUE_NAME parameters to WMTEST.
    Larry

  • ORA-01665 : control file is not a standby control file

    I've already tested Dataguard configuration on Oracle 10g Enterprise edition for Windows.
    While configuring the same in Sun Solaris, I'm receiving this error:
    ORA-01665: control file is not a standby control file
    Steps I follow are as below:
    1) Creating a password file on both databases (primary and standby)
    2) Force logging primary db and shut it down. Take a cold backup of redo log files and datafiles.
    3) Transferring them to Standby db.
    4) Starting primary db in mount mode and creating a standby controlfile. Transferring standby controlfile to proper location defined in standby init file.
    5) Start primary db in read-write mode and secondary db in mount mode using:
    alter database mount standby database;
    I receive this error while firing this SQL.
    Can anyone please help me out solving the same.

    I'm already done with the same. Find log below:
    bash-3.00$ sqlplus sys/sys123@orcl as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 19 11:54:29 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    SQL>
    SQL> alter database create standby controlfile as '/export/home/oracle/abc/control4.ctl';
    Database altered.
    SQL> alter database create standby controlfile as '/export/home/oracle/abc/control5.ctl';
    Database altered.
    SQL>

  • How to create parameter and control file like filename + date

    Hello there
    I am trying to create parameter and control file with following command
    in SQLPLUS
    create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
    In RMAN
    copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
    how can I put date at the end of filename like
    initWEBDB8jan06.ora and cf_longterm8jan06.cpy
    Thanks in advance
    Lionel

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

  • How to create redlog and control file at ASM in linux RAC

    Hi Experts,
    I will to maintance a oracle 10g database at ASM as RAC iin linux red hat.
    i am a new person with some question.
    nornally speaking, oracle recommadition for oracle 10g database as
    create 3 copy fills for control file
    create at least 2 redo log with mirror files in system.
    However, I checked find
    redlog file is at FRA place +FLSdisk1 and no mirror
    control file is at FRA place--+FLSDISK1/
    datebase file at ‘+DATA1/
    There are no mirror for relog.
    Go to EM, I also could not find place to enter file name.
    We use ASM to hold database to support RAC.
    Do i need to create redlog file as
    ALTER DATABASE ADD LOGFILE GROUP 1 ('+FLSdisk1/sale/onlinelog/REDO01.LOG','+FLSdisk1/sale/onlinelog/REDO01_mirror.LOG') SIZE 1000M reuse;
    my boss told me that ASM is reliable.
    Do you need to creat more directory to arrange redlog and control files in ASM for RAC system?
    FRA is a good place to store control file and redlog file ?
    Thanks
    JIM
    Edited by: user589812 on Jul 3, 2009 3:03 PM

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

  • Help in creating sql loader control file

    I am having a csv file representing in this format. I have several lines like this
    "XXX", "YYY","ZZZ","01/01/2005", "AAA"
    So when I created the control file having, I am having problem with inserting the date.
    I tried to you use the date column name
    load data
    infile x.cvt
    into table table name
    fields terminated by ","
    colA
    colB
    colC
    colD "TO_DATE(colD 'dd/mm/yyy')
    does not seem to work. Please let me know what I am missing.
    thanks

    If you don't want to load the 5th field, you need to specify it as filler field in the control file
    Load Data
    Infile x.cvt
    Into Table table name
    Fields Terminated by ","
    Optionally enclosed by '"'
    (colA,
      colB,
      colC,
      colD DATE "dd/mm/yyyy",
      colE FILLER
    )http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1006670
    If you want to use the function to_date, don't forget the colon before the column name
    Load Data
    Infile x.cvt
    Into Table table name
    Fields Terminated by ","
    Optionally enclosed by '"'
    (colA,
      colB,
      colC,
      colD char "TO_DATE(:colD 'dd/mm/yyyy')",
      colE FILLER
    )http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1008153
    Message was edited by:
    Jens Petersen

  • Help needed for creating a SQLLoad control file

    I have 2 fields in my flat file
    If field1 = field2 load only field1 into tn and aux = NULL
    else if field1 != field2 load field1 into tn and field2 = aux
    Here is what I have so far - I need help with the "Where"
    -- ActiveNumbers.dat
    -- Steve J
    load data
    INFILE 'active.date'
    INTO TABLE tmp_ac_active
    APPEND
    FIELDS TERMINATED BY '|'
    (tn CHAR(10), aux CHAR(10))
    Thanks in advance
    Steve

    Thanks Joel
    Using the document you provided here is what I came up with. I notice this is 9i documents - I'm on 8. Does the SQLLoader work the same in both versions?
    This is the first time I've used this tool - No one here has even heard of it. (Well except for the DBA)
    load data
    INFILE 'active.date'
    -- Loads tn and aux if they do not match
    INTO TABLE tmp_ac_active
    WHEN tn != aux
    (tn CHARTERMINATED BY WHITESPACE,
    aux CHAR TERMINATED BY WHITESPACE)
    -- Loads only TN if both are the same
    INTO TABLE tmp_ac_active
    WHEN tn = aux
    (tn POSITION (1:10) CHAR)

  • Getting errors while creating a Standby database

    Hi,
    I have Oracle 9.0.2 installed on windows xp machine , the sid of the database is oradata. Now i am trying to create a standby database on same machine and the sid of the database is oratest. i have followed the required steps.
    a. Firstly i have configured the required parameters in the init.ora parameters of standby database
    b. Secondly , i created the standby control file on primary database.
    c. while mounting the standby database i am getting the following error.
    Database name "ORADATA" its should be "ORATEST"
    Could you please help me in resolving this issue? and also if possible. please jot down the procedure for creating the standby database.
    Thanks
    Vj0011590

    Hi,
    I have Oracle 9.0.2 installed on windows xp machine ,
    the sid of the database is oradata. Now i am trying
    to create a standby database on same machine and the
    sid of the database is oratest. i have followed the
    required steps.
    a. Firstly i have configured the required parameters
    in the init.ora parameters of standby database
    b. Secondly , i created the standby control file on
    primary database.
    c. while mounting the standby database i am getting
    the following error.
    Database name "ORADATA" its should be "ORATEST"I didn't see you copy the cold backup db from primary to standby.
    and the error is coming from init.ora in your standby db. check it again.

  • 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

  • Creating a Control File

    I have a question about creating another control file. If I want to create another control file, do I need to put the values/paths of the current control files in the CREATE CONTROLFILE statement?

    996403 wrote:
    If I am wanting to create a new control file, do you recommend:
    1. Use the Create Control file statementWhen to Create New Control Files:
    All control files for the database have been permanently damaged/missing and you do not have a control file backup.
    You want to change one of the permanent database parameter settings originally specified in the CREATE DATABASE statement.
    These settings include the database name and the following parameters: MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, and MAXINSTANCES.
    For example, you would change a database name if it conflicted with another database name in a distributed environment,
    or you would change the value of MAXLOGFILES if the original setting is too low.
    2. Copy an existing control file and then edit the parameter file?i will recommend 2nd (if you have healthy control file) if you want multiplex control files.

  • Regarding RESETLOG and NORESETLOG option while creating a control file

    Hi,
    I dont understand the need for resetlogs option while creating a controlfile for a db in NOARCHIVELOGMODE. I assume that reset logs clears all the redo log contents.
    While taking a cold backup what I did was:
    1. Shutdown instance
    2. Copy all the files
    3. Startup
    Now I tried recovering the same database on a new machine (with different path btw.) coz of which i had to create a new control file. My question is: while restoring the database, do I need to create the control file with NORESETLOG or RESETLOG option?
    When I tried using the NORESETLOG (NOARCHIVELOG) option I was able to recover the instance without any hassles.
    ie
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING NORESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE
    4. ALTER DATABASE OPEN;
    While the same thing with NORESETLOG (NOARCHIVELOG) option:
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING RESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE USING BACKUP CONTROLFILE
    This step asked me for some archivelogs which were not generated since the db is in NOARCHIVELOG mode.
    I wonder why we require the RESETLOG OPTION SINCE A NORMAL SHUTDOWN PERFORMED BEFORE COLD BACKUP would have ensured that there is no redo information left in the redo logs.
    Please let me know if I am thinking the incorrect way.
    Regards and Thanx in Advance,
    Raj

    If you had a db running in noarchivelog mode and had to clone the db and rename it, the create controlfile stmt:
    create controlfile reuse <db_name> needs to be changed to: create controlfile SET <db_name>, in which case the db can only be opened with resetlogs. Hope this answers your question

  • Problem in control file created through  LKM File to Oracle (SQLLDR)

    I have a fixed file ABC.txt & it has three fields/columns of length ,C1:= 4, C2 :=10 & C3:=6 & I have to use LKM File to Oracle (SQLLDR) to load data into oracle target table.
    I recieved the following error at step CALL SQLLDR in the KM
    "org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 3, in ?"
    Then I checked the control file log & found that the position start value & end value was not defined in control file which is created automatically by LKM
    SQL*Loader-350: Syntax error at line 14.
    Expecting positive integer, found ":".
         C1_C1     POSITION(:), "
    The control file created by ODI is & it's missing the position value.
    OPTIONS (
         SKIP=0,
         ERRORS=0,
         DIRECT=FALSE
    LOAD DATA
    INFILE "C:/SNAPON/EOL.txt"
    BADFILE "C:/SNAPON/ABC.bad"
    DISCARDFILE "C:/SNAPON/ABC.dsc"
    DISCARDMAX 1
    INTO TABLE SNAPON_W.C$_0ABC
         C1_C1     POSITION(:),
         C2_C2     POSITION(:),
         C3_C3     POSITION(:)
    Does any one know why the position value is not created in the control file .
    Edited by: neeraj_singh on Mar 3, 2011 1:25 AM

    Hi Neeraj,
    It is happening because you have not selected the mapping execution area as STAGUING .
    Open your interface , click on each and every column of your target datastore , make sure the "Execute On" is marked on "Staging Area".
    Then run your interface.
    Thanks,
    Sutirtha

  • Creating control File in 10g

    Can anyone please let me have the syntax of creating a control file in 10g
    its very urgent .................

    If you are creating a New Control File using exisiting Datafiles and LogFiles(not creating Intial Control File during Database Creation), it hasn't changed as you did in 9i. This is an example:
    CREATE CONTROLFILE
    SET DATABASE testdb
    LOGFILE GROUP 1 ('logfile1_1.log',
    'logfile1_2.log'),
    GROUP 2 ('logfile2_1.log',
    'logfile2_2.log'),
    GROUP 3 ('logfile3_1.log',
    'logfile3_2.log')
    RESETLOGS
    DATAFILE 'datafile_system1.dbf' SIZE 5M,
    'datafile_user1.dbf' SIZE 5M,
    'datafile_undo1.dbf' SIZE 5M,
    'datafile_temp1.dbf' SIZE 5M
    MAXLOGFILES 50
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 400
    MAXDATAFILES 200
    MAXINSTANCES 6
    ARCHIVELOG;
    Find Documentation on Managing Controfiles Here:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/control.htm#sthref779

  • How to create Control file.

    Being a new bie plz help me.
    Can you let me know steps to create a new
    control file. Create control file is always
    giving error messages and if i have all data
    and REDO logs intact how can i recover my
    data base again using new control file
    please help ....
    null

    hai,
    for creating control file we proceed to ways:
    1. create controle file using sql command as sys or system users
    sql>alter database backup controlfile to trace;
    system itself creates controlfile and keeps in udump directory.
    2. using the old backup copies, edit the currect file locations, parameters manually.
    Then run this script at nomount mode, to create the controlfile
    murty
    null

Maybe you are looking for

  • How do you get your money back from iTunes?

    I bought an album off of iTunes yesterday (Jason & deMarco, "Till The End of Time" and it was just beautiful so I went back today to buy an earlier album they offered called "Spirit Pop". EVERY song skips and is marred in some way, halting, as though

  • Custome Partner Function from SD to CO-PA

    Hi, I have created 3 custom partner functions and have assinged in customer master. I need these 3 custom partner function to be transfered to CO-PA during billing. Is there a easy way around to achieve this, coz there are some SAP notes which are so

  • BPS_WB Chart Help

    Hi guys, i need help, for a Applications Web with BPS_WB(T Code). the problem is when i configured chart, generate and display i can't see the chart, (typical symbol error cross red, such as image no find in the page web) i have configurated the layo

  • Condtion types _Pricing procedure determination

    Dear friends What the use of CONDITION TYPES  in PRICING PROCEDURE DETERMINATION. With Regards Sankalp singhai

  • Adobe Creative Suite 6 Design Standard and Teacher Edition

    i just downloaded Adobe Creative Suite 6 Design Standard and Teacher Edition all products downloaded except indesign