regarding Controlfile...

Here's the Oracle Documentation of physical storage Structures

The control file contains the following types of records:

  • Circular re-use recordsThese files contain non-critical information are eligible to be replaced if necessary. When all the available record places are full, the database expands the control file to make room for a new record or replace the oldest record. Examples of records on the RMAN backups and archived redo logs files.

Question:

How do I know the reuse circular timeline view v$ controlfile_record_section?

TSharma wrote:

You can generate a dump controlfile with highest level of dumping. More it dump level records re-use more circular, you will see at the end of the dump file.

For example:

ALTER session set events ' trace immediate name controlf level 3 ";

ALTER session set events ' trace immediate name controlf level 4 ";

.

.

.

ALTER session set events ' trace immediate name controlf level 15 ";

Interesting about the levels up to 15 point.

Level 10 actually gives you a raw dump of the file - so there's a funny jump 9-11, I had not noticed.

The OP removes the dumps that is not available in the v$ controlfile_record_section, well - since no matter what item that has not used all the records will not give any idea of whether or not it would recycle any additional information:

Excerpt from the opinion:

TYPE                         RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX LAST_INDEX LAST_RECID
---------------------------- ----------- ------------- ------------ ----------- ---------- ----------
...
LOG HISTORY                           56         10888        10888        2545       2544     157246
OFFLINE RANGE                        200          1021            0           0          0          0
ARCHIVED LOG                         584         21480        21480        3203       3202      67642
BACKUP SET                            40         32672        32672       15883      15882     717917
BACKUP PIECE                         736         32128        32128        2155       2154     727763
BACKUP DATAFILE                      200         29288        29288       22862      22861     836798
BACKUP REDOLOG                        76         21488        21488         146        145     146154
DATAFILE COPY                        736         63936        63936       52286      52285     468871
BACKUP CORRUPTION                     44          1113            0           0          0          0
COPY CORRUPTION                       40          1021            0           0          0          0
DELETED OBJECT                        20        418048       418048      116058     116057    2210380
PROXY COPY                           928          1006            0           0          0          0
BACKUP SPFILE                        124          1812         1812        1438       1437      23634

It's a strong enough to bet that the sections where FIRST_INDEX is greater than LAST_INDEX sections where an array of limited size is reused. But what can infer you about the OFFLINE RANGE?

Compare with discharge, circular scales that have been used to show things like:

***************************************************************************
LOG FILE HISTORY RECORDS
***************************************************************************
(size = 56, compat size = 56, section max = 292, section in-use = 292,
  last-recid= 311, old-recno = 20, last-recno = 19)
(extent = 1, blkno = 95, numrecs = 292)
Earliest record:
RECID #20 Recno 20 Record timestamp  01/23/12 09:22:58 Thread=1 Seq#=20 Link-Recid=19 kccic-Recid=1
  Low scn: 0x0000.0009914b 01/23/12 09:22:45 Next scn: 0x0000.00099d0d
Latest record:
RECID #311 Recno 19 Record timestamp  06/24/13 08:00:24 Thread=1 Seq#=311 Link-Recid=310 kccic-Recid=1
  Low scn: 0x0b86.404a1635 06/14/13 16:06:45 Next scn: 0x0b86.404a8554

(Different control file, incidentally).

Yet once this only shows us anything on the beaches of circular reuse if they have not bee used.

Concerning

Jonathan Lewis

Tags: Database

Similar Questions

  • Help on recovering database /Restore - no available controlfiles kccpb_sanity_check_2 control file sequence number mismatch

    Hi all.

    I really need your help on this:

    (1) version: 11.2.0.1 EE / Windows.

    (2) database does not start, don't get database.

    Alert.log info:

    Instance of stopped by USER, pid = 3652

    2015-11-22 15:57:19.763000 - 04:30

    I found this after using adrci:

    2015-11-22 15:49:15.727

    SESSION ID: (191.1) 2015-11-22 15:49:15.727

    CUSTOMER ID :() 2015-11-22 15:49:15.727

    NAME OF THE SERVICE :() 2015-11-22 15:49:15.727

    MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727

    ACTION NAME :() 2015-11-22 15:49:15.727

    Informational message:

    Control file 1 has seq 2713995, low 2713994 file # 0

    Error: kccpb_sanity_check_2

    Control file sequence number mismatch!

    fhcsq: bhcsq 2713995: 2714016 cfn 0

    2015-11-22 15:49:15.758

    USER (ospid: 2504): put an end to the instance

    Verification of MOS Note: 435436.1 I must:

    (1) to restore a backup of a controlfile and recover

    OR

    (2) to recreate the controlfile

    OR

    (3) restore the backup data and recovery

    It is a database, that I was not, up to now administer. But:

    (1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)

    (2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/

    The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.

    So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?

    Please I'm pressed real here, so help will be greatly appreciated!....

    Thanks in advance!

    Best regards, Luis...!

    Hello

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    It seems that you have few options,

    In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.

    After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.

    I wish to have more ideas to help you, but I have no other.

    I hope this helps.

    Kind regards

    Juan M

  • to find checkpoint_change # to controlfile - autobackup vs Ckp_SCN #.

    Hi all

    (1) made a point of control to ensure that all checkpoint_change # SNA are synchronized.


    select null, null, checkpoint_change#,null from v$database
    union all
    select file#, name, checkpoint_change# , last_Change# from v$datafile;

              4095405
    1     +DATA/orcl/datafile/system.268.884148927     4095405
    2     +DATA/orcl/datafile/sysaux.269.884149053     4095405
    3     +DATA/orcl/datafile/undotbs1.270.884149167     4095405
    4     +DATA/orcl/datafile/usernew1.dbf     4095405
    5     +DATA/main/datafile/test.343.887323655     4095405

    (2) run a fulbackup (autobackup controlfile on) and run the same query as above


    select null, null, checkpoint_change#,null from v$database
    union all
    select file#, name, checkpoint_change# , last_Change# from v$datafile;

              4095405
    1     +DATA/orcl/datafile/system.268.884148927     4095581
    2     +DATA/orcl/datafile/sysaux.269.884149053     4095581
    3     +DATA/orcl/datafile/undotbs1.270.884149167     4095581
    4     +DATA/orcl/datafile/usernew1.dbf     4095581
    5     +DATA/main/datafile/test.343.887323655     4095581

    T1) why the checkpoint_change # in the database of v$ remains the same as before and yet datafiles checkpoint_change # has changed?

    -- proceed to list backup and see the controfile's autobackup scn
    list backup;
    ...
    Control File Included: Ckp SCN: 4095640

    Q2) why is the SNA cash at the same autobackup later then the checkpoint_change # in the database of v$?

    Q3) how to find the last checkpoint_change # in the current controlfile then?

    Q4) what is the use of the checkpoint_change # v$ database used since then? (because it does not reflect the last checkpoint #-v$ datafile.checkpoint_change # is more accurate)?

    Kind regards

    Noob

    Hello

    v$ database.checkpoint_change # Q1) is loaded from the record section of the controlfile right?
    v$ datafile.checkpoint_change # Q2) is also responsible for controlfile right?

    No, v$ datafile would be real datafile (AFAIK - as the nucleus is different for this) bonano$ x database $ kcc % structure (so she keeps track of more than all databases - my point of view more controlfile).

    (T3) - the v$ database.checkpoint_change # is responsible of the controlfile and then it is used to match against what?

    In your example above SNA for v$ database is 100, CPN for v$ datafile 6 is 98 and the v$ datafile_header is 97.  So, how the v$ database.checkpoint_change # a role here?  I mean just by comparing v$ datafile YVERT and v$ datafile_header SNA, we will know that there is a difference and a recovery is necessary.

    Why do we still need to look at v$ database.checkpoint_change #?

    v$ database is at the highest level of level/parent, and v$ datafile (x$ kcvdf) is a subset of the audit is made/done. v$ datafile_header (her picking up x$ kcvfh) both are different structures (If you dig the 'C' code header files so you can get to know), so it would play a break point (or) updates made to different internal control points are made by CKPT processes.  Now, you don't ask me on internal control points when and that process, so that you get support and view the code (it is people development oracle).

    or spend some time x$ active_ckpt how it gets changed and everything what you can observe from the validations and cheating LGWR (I can't go beyond that).

    Q4) in my scenario above, the v$ database.checkpoint_change # is significantly different from the v$ datafile and v$ datafile_header, but in reality no recovery is necessary.

    v$ database 4177813

    v$ datafile 4189456

    v$ datafile_header 4189456

    How does v$ database.checkpoint_change # here help to determine if a recovery is needed or not so?

    I did not sit that is it his ' necessary recovery or non-compulsory. When you try to open it will provide information - based consistenct check with the data files (v$ datafile and v$ datafile_header) else believe me your cannot open it (as much my testing goes).

    Now, don't say you took the backup and clone of another server, when it is permissible for you open resetlogs, so what is this case/situation, since the db you has opened, since you find no different to SNA (v$ datafile and v$ datafile_header) so he could continue with the new incarnation (new activation id #).  About the incarnation and activation id visit google or one of my blog where I have provided information on that.

    v$ Database.checkpoint_change #-does not say any substance above recovery, its comparison with (v$ datafile and v$ datafile_header) would help on the recovery.

    If you come back and say only above will be enough to decide that if recovery is necessary or not, so I can't decide on this, this is the /algorithm code, if you ask for reasons simply understand that we have below records

    CHECKPOINT PROGRESS RECORD

    EXTENDED ENTRY database... which contains the information

    Automatic backup control date)

    RECORDS IN DATA FILE

    MULTI INSTANCE REDO APPLY RECORD... It's needs to check that all committed or rollback - in terms of CARS (so all the code depends on two or three columns of two control points and can't decide on recovery - according to my knowledge /understanding)

    ARCHIVES NEWSPAPER RECORDS... If SNA isn't matches he can check what archives with SNA which are recovery - on this basis he asks what Archives need to apply.

    Hope this helps and ask you to spend some time, you will understand things.

    -Pavan Kumar N

  • Regarding the backup problem

    Hi all

    Recently, my database is down during backup. I tried to open the database, but it gave the error «File needs more recovery»

    I checked the backup mode is not active. I used the command "recover database until cancel using backup control file" (which should not be used) instead of only "recover the database.

    Now the database is looking in the backup control file and asking for more log archiving of recovery which has not yet occurred. do I have to cancel this backup control file to use the original control file to recover the database.

    Please notify.

    Thanks in advance

    Amit Dwivedi

    Hello

    1. Once you have used the backup control file option, there is no way you can do DB forget "backup control file is used.

    2. even after that application to redo online still records DB should be opened with RESETLOGS.

    3. Please be aware of the risk of open with RESETLOGS, this is the last recommended option.

    NOTE: If there is a system very important and crucial then it is recommended to register a service request with support.

    Refer to: backup and recovery scenarios (Doc ID 94114.1)

    Kind regards

    Ramana Rao - Oracle

    Here it is an example that is set up on 11g DB 11.2.0 on Linux x86_64 only for demonstration purposes:

    -Example Demo starts here-

    SQL > alter tablespace test begin backup;

    Tablespace altered.

    SQL > the judgment;

    ORACLE instance stops.

    -----------------------------------------------------------------------------------------------------------------------

    Comments: Force DB have a script failed

    -----------------------------------------------------------------------------------------------------------------------

    SQL > startup

    ORACLE instance started.

    Total System Global Area 534462464 bytes

    Bytes of size 2230072 fixed

    444598472 variable size bytes

    Buffers data 83886080 bytes

    Redo buffers 3747840 bytes

    Mounted database.

    ORA-10873: file 7 must be either switched off mode backup or recovered media

    ORA-01110: data file 7: ' / home/oracle/app/oracle/oradata/orcl/tet1.dbf'

    -----------------------------------------------------------------------------------------------------------------------

    Comments: DB Complains that a file is in need of recovery backup mode or media

    -----------------------------------------------------------------------------------------------------------------------

    SQL > restore database using backup controlfile until cancel;

    ORA-00279: change 3258225 September at 24/07/2015 05:10:47 necessary to screw 1

    ORA-00289: suggestion: /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_93_%u_.arc

    ORA-00280: change 3258225 thread 1 is in sequence #93

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: on purpose we use here backup control file option to simulate the same error condition

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > select FIRST_CHANGE #, NEXT_CHANGE #, name from v$ archived_log;

    FIRST_CHANGE # NEXT_CHANGE # NAME

    ------------- ------------------- -----------------------------------------------------------------------------------------------

    3244150 3254238 /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_88_bv3ys3h1_.arc

    3254238 3256570 /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_89_bv406xf3_.arc

    3256570 3257119 /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_90_bv407l01_.arc

    3257119 3257697 /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_91_bv4085h7_.arc

    3257697 3258225 /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_92_bv408qpq_.arc

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: The archive log asked o1_mf_1_93_%u_.arc is not yet produced.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > select file #, checkpoint_change # from v$ datafile_header;

    FILE # CHECKPOINT_CHANGE #.

    --------------    -----------------------------------------

    1 3258225

    2 3258225

    3 3258225

    4 3258225

    5 3258225

    6 3258225

    7 3263717<><>

    7 selected lines.

    SQL > alter database end backup;

    Database altered.

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: Safe Option: end DB back up and open.

    But DB is aware of this backup control file is used so refuses to open.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > alter database open noresetlogs;

    ALTER database open noresetlogs

    *

    ERROR on line 1:

    ORA-01588: must use RESETLOGS open database option

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: Safe Option: open with NORESETLOGS.

    But DB is aware of this backup control file is used so refuses to open.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > restore database;

    ORA-00283: cool cancelled due to errors

    ORA-01610: recovery using BACKUP CONTROLFILE option must be

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: Safe Option: try with database recovery

    But DB is aware of this backup control file is used therefore requires to use the backup controlfile option

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > restore database using backup controlfile

    ORA-00279: change 3258225 September at 24/07/2015 05:10:47 necessary to screw 1

    ORA-00289: suggestion: /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_93_%u_.arc

    ORA-00280: change 3258225 thread 1 is in sequence #93

    Specify the log: {= suggested |} Filename | AUTO | CANCEL}

    /Home/Oracle/app/Oracle/oradata/ORCL/redo01.log

    ORA-00310: archived log contains sequence 91; sequence required 93

    ORA-00334: archived log: ' / home/oracle/app/oracle/oradata/orcl/redo01.log'

    SQL > restore database using backup controlfile

    ORA-00279: change 3258225 September at 24/07/2015 05:10:47 necessary to screw 1

    ORA-00289: suggestion: /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_93_%u_.arc

    ORA-00280: change 3258225 thread 1 is in sequence #93

    Specify the log: {= suggested |} Filename | AUTO | CANCEL}

    /Home/Oracle/app/Oracle/oradata/ORCL/redo02.log

    ORA-00310: archived log contains sequence 92; sequence required 93

    ORA-00334: archived log: ' / home/oracle/app/oracle/oradata/orcl/redo02.log'

    SQL > restore database using backup controlfile;

    ORA-00279: change 3258225 September at 24/07/2015 05:10:47 necessary to screw 1

    ORA-00289: suggestion: /home/oracle/app/oracle/fast_recovery_area/ORCL/archivelog/2015_07_24/o1_mf_1_93_%u_.arc

    ORA-00280: change 3258225 thread 1 is in sequence #93

    Specify the log: {= suggested |} Filename | AUTO | CANCEL}

    /Home/Oracle/app/Oracle/oradata/ORCL/redo03.log

    Application log.

    Complete media recovery.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: Applied online redo logs manually.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

    SQL > alter database open noresetlogs;

    ALTER database open noresetlogs

    *

    ERROR on line 1:

    ORA-01588: must use RESETLOGS open database option

    SQL > alter database open resetlogs;

    Database altered.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Comments: Only able to open with the RESETLOGS Option.

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    ------------------------------- Example Demo Ends here --------------------------------------------

  • Restore controlfile from

    Hi all

    on 11.2.0.4 on Win 2008

    I have to run this every morning in a batch file:

    Restore controlfile from "C:\BACKUP\ORCL\CTL_ORCL_20140715_4_1"

    The problem is that the name of the file baclup (CTL_ORCL_20140715_4_1) is not the same. So how do you tell RMAN to restore from a generic name like C:\BACKUP\ORCL\CTL_ORCL*?

    Any solution?

    Thank you.

    Thank you for your attention.

    The database to create would then be on another server, but with the same database name:

    Can duplicate us with the same name?

    We want to be able to switch to the new database from the original crash.

    Kind regards.

  • controlfile autobackup and DBID

    Hi all

    If we are to restore RMAN controlfile autobackup controlfile, we must define the DBID. Otherwise, we can specify the full of the controlfile autobackup path if we do not have a DBID. My question is how exactly RMAN determines the proper backup of just the ID file? Is this something like this:

    RMAN goes to the default backup location - $ORACLE_HOME/dbs

    Examines all backups for DBID that we put

    Then restore the backup file appropriate?

    Kind regards

    Vinod

    The file name by default in $ORACLE_HOME/dbs includes the DBID.

    If you use db_recovery_file_dest (i.e. an MRE), record going under the DB_UNIQUE_NAME folder

    Hemant K Collette

  • Unnecessary number of backup controlfile

    Dear Sir

    Here is my script to take a daily backup of my my prod system:

    {

    allocate channels ch1 device type sbt PARMS 'ENV =(NSR_SERVER=xxxxx)' =;

    backup data format "XXXX_ t_ %s %";

    cross-checking of backup;

    ARCHIVELOG backup all the format "XXXX_ t_ %s %";

    overlap archivelog all;

    backup current controlfile;

    }

    And out of all is:

    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F ';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default

    But the problem is: when I took the backup with this script, I can see there are backup automatic the spfile and controlfile after each backup command. as after the backup of database compltes, it took a car controlfile bkp, after thn after archivelog backp... and so on... There are 4 backup controlfile who shouldn't be.

    Everyone guess why this is happening? My version of db is 11.1.0.6

    Kind regards

    My guess is that if you rearrange and rewrite your backup script, you'll see less automated backup controlfile.

    I guess you see a backup controlfile after your backup to the base, the second is after your backup archivelog, the third is when you save the controlfile explicitly and the fourth is taken automatically after backup current controlfile.

    Controlfile backups are performed whenever a backup folder is added.

    http://docs.Oracle.com/CD/E25054_01/backup.1111/e10642/rcmconfb.htm#autoId9

    If you are running your script as follows, I'd wait only autobackup controlfile is taken.

    {

    allocate channels ch1 device type sbt PARMS 'ENV =(NSR_SERVER=xxxxx)' =;

    backup data format "XXXX_ t_ %s %";

    ARCHIVELOG backup all the format "XXXX_ t_ %s %";

    cross-checking of backup;

    overlap archivelog all;

    }

  • Backup controlfile to trace as 'c:\prod_ctl.txt '.

    Hi all

    11.2.0.1

    I review the output of the trace file, because I want to simulate or test this process.

    This file has two (2) sets of command. one (1) for online newspapers intact and one (1) to damage newspapers online.

    Issues related to the:

    1. What do you mean by damage, newspapers online. does that mean I lost all these redo files:

    LOGFILE

    GROUP 1 ' D:\APP\PROD\ORADATA\ORCL\REDO01. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 2 ' D:\APP\PROD\ORADATA\ORCL\REDO02. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 3 ' D:\APP\PROD\ORADATA\ORCL\REDO03. NEWSPAPER "SIZE 50 M BLOCKSIZE 512


    2. Why is that the two (2) are still set up orders? with the exception of the backup controlfile and open resetlogs?

    3. should I backup RMAN to perform this recovery statements?


    Thank you

    pK

    ========

    -Here's current system-scope REDO Log archiving related

    -parameters and can be included in the database initialization file.

    --

    -LOG_ARCHIVE_DEST = "

    -LOG_ARCHIVE_DUPLEX_DEST = "

    --

    --LOG_ARCHIVE_FORMAT=ARC%S_%R.%T

    --

    -DB_UNIQUE_NAME = "orcl".

    --

    -LOG_ARCHIVE_CONFIG =' SEND, RECEIVE, NODG_CONFIG'

    -LOG_ARCHIVE_MAX_PROCESSES = 4

    -STANDBY_FILE_MANAGEMENT = MANUAL

    --STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS

    -FAL_CLIENT = "

    -FAL_SERVER = "

    --

    -LOG_ARCHIVE_DEST_1 =' LOCATION = USE_DB_RECOVERY_FILE_DEST'

    -LOG_ARCHIVE_DEST_1 = "NODELAY MANDATORY NOREOPEN.

    -LOG_ARCHIVE_DEST_1 = 'NOAFFIRM ARCH ACCELERATE NOVERIFY SYNC'

    -LOG_ARCHIVE_DEST_1 = 'NOREGISTER NOALTERNATE NODEPENDENCY.

    -LOG_ARCHIVE_DEST_1 = 'NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME.

    -LOG_ARCHIVE_DEST_1 = 'VALID_FOR = (PRIMARY_ROLE, ONLINE_LOGFILES)'

    -LOG_ARCHIVE_DEST_STATE_1 = ENABLE

    --

    -Here are two sets of SQL statements, each of them creates a new

    -control file and use it to open the database. The first series opens

    -the database with the NORESETLOGS option and should be used only if

    -the current versions of all online newspapers are available. The second

    -together opens the database with the RESETLOGS option and should be used

    -If online newspapers are not available.

    -All appropriate declarations that can be copied from the trace to

    -a script file, edited as necessary and executed when there is a

    -need to re - create the control file.

    --

    -Set #1. NORESETLOGS case

    --

    -The following commands will create a new control file and use

    -to open the database.

    -The data used by the Recovery Manager will be lost.

    -Additional logs may be required for media recovery of offline

    -Use this option only if the current versions of all online newspapers are

    -available.

    -After mounting the controlfile created, the following SQL code

    -Statement will place the database in case

    -protection mode:

    -ALTER DATABASE BASE_DE_DONNEES ENSURES TOGETHER TO OPTIMIZE PERFORMANCE

    STARTUP NOMOUNT

    CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS NOARCHIVELOG

    MAXLOGFILES 16

    MAXLOGMEMBERS 3

    MAXDATAFILES 100

    MAXINSTANCES 8

    MAXLOGHISTORY 292

    LOGFILE

    GROUP 1 ' D:\APP\PROD\ORADATA\ORCL\REDO01. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 2 ' D:\APP\PROD\ORADATA\ORCL\REDO02. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 3 ' D:\APP\PROD\ORADATA\ORCL\REDO03. NEWSPAPER "SIZE 50 M BLOCKSIZE 512

    -STANDBY LOGFILE

    DATA FILE

    ' D:\APP\PROD\ORADATA\ORCL\SYSTEM01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\SYSAUX01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\UNDOTBS01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\USERS01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\EXAMPLE01. DBF'

    WE8MSWIN1252 CHARACTER SET

    ;

    -Orders to recreate the table of the incarnation

    -Under journal names MUST be replaced by names of existing files

    -disc. The log files from each branch can be used for

    -re - create the folders of the incarnation.

    -REGISTRY ALTER DATABASE LOG FILE ' D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_. ARC'.

    -REGISTRY ALTER DATABASE LOG FILE ' D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_. ARC'.

    -Recovery is required if any of the data files are restored backups.

    - or if the last shutdown was not normal or immediate.

    RECOVER THE DATABASE

    -Database can now be opened normally.

    ALTER DATABASE OPEN;

    -Commands to add tempfiles to temporary storage.

    -Online Tempfiles have complete space information.

    -Other tempfiles may require an adjustment.

    ALTER TABLESPACE TEMP ADD TEMPFILE ' D:\APP\PROD\ORADATA\ORCL\TEMP01. DBF'

    SIZE 20971520 REUSE AUTOEXTEND ON NEXT 655360 32767M MAXSIZE;

    -End of tempfile additions.

    --

    -Set #2. RESETLOGS case

    --

    -The following commands will create a new control file and use

    -to open the database.

    -The data used by the Recovery Manager will be lost.

    -The content of online newspapers will be lost and all backups

    -be invalidated. Use this option only if online newspapers are damaged.

    -After mounting the controlfile created, the following SQL code

    -Statement will place the database in case

    -protection mode:

    -ALTER DATABASE BASE_DE_DONNEES ENSURES TOGETHER TO OPTIMIZE PERFORMANCE

    STARTUP NOMOUNT

    CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS NOARCHIVELOG

    MAXLOGFILES 16

    MAXLOGMEMBERS 3

    MAXDATAFILES 100

    MAXINSTANCES 8

    MAXLOGHISTORY 292

    LOGFILE

    GROUP 1 ' D:\APP\PROD\ORADATA\ORCL\REDO01. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 2 ' D:\APP\PROD\ORADATA\ORCL\REDO02. NEWSPAPER "SIZE 50 M 512 BLOCKSIZE,

    GROUP 3 ' D:\APP\PROD\ORADATA\ORCL\REDO03. NEWSPAPER "SIZE 50 M BLOCKSIZE 512

    -STANDBY LOGFILE

    DATA FILE

    ' D:\APP\PROD\ORADATA\ORCL\SYSTEM01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\SYSAUX01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\UNDOTBS01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\USERS01. DBF',.

    ' D:\APP\PROD\ORADATA\ORCL\EXAMPLE01. DBF'

    WE8MSWIN1252 CHARACTER SET

    ;

    -Orders to recreate the table of the incarnation

    -Under journal names MUST be replaced by names of existing files

    -disc. The log files from each branch can be used for

    -re - create the folders of the incarnation.

    -REGISTRY ALTER DATABASE LOG FILE ' D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_. ARC'.

    -REGISTRY ALTER DATABASE LOG FILE ' D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_. ARC'.

    -Recovery is required if any of the data files are restored backups.

    - or if the last shutdown was not normal or immediate.

    RECOVER DATABASE USING BACKUP CONTROLFILE

    -Database can now be opened to zero online newspapers.

    ALTER DATABASE OPEN RESETLOGS;

    -Commands to add tempfiles to temporary storage.

    -Online Tempfiles have complete space information.

    -Other tempfiles may require an adjustment.

    ALTER TABLESPACE TEMP ADD TEMPFILE ' D:\APP\PROD\ORADATA\ORCL\TEMP01. DBF'

    SIZE 20971520 REUSE AUTOEXTEND ON NEXT 655360 32767M MAXSIZE;

    -End of tempfile additions.

    --

    ===============,

    Hello

    According to the Oracle Documentation:

    RESETLOGS specify RESETLOGS if you want Oracle database to ignore the content of the files listed in the LOGFILE clause. These files do not have to exist. Each redo_log_file_spec in the LOGFILE clause must specify the SIZE parameter. The database assigns redo all online log file groups to thread 1 and enables this thread for public use by any instance. After using this clause, you must open the database by using the ALTER DATABASE statement RESETLOGS clause.

    NORESETLOGS NORESETLOGS to specify if you want the Oracle server to use all files in the LOGFILE clause as they were when the database was last open. These files must exist and must be the online redo logs rather that restore backups. The database reassigns log files groups redo the nets to which they were previously assigned and re-active threads as they authorized beforehand.

    With RESETLOGS you're going to have a new incarnation of the database and are used when you perform incomplete recovery when you do not have full recovery stack to perform a full restore.

    Do I need a backup RMAN to test this statement?

    No, 'must' use RMAN. You can perform a recovery by the managed user. Personally its always preferable to use RMAN, but if you aren't aware of the working RMAN you can go forward with the managed user.

    Kind regards

    Suntrupth

  • Clarification on controlfile autobackup

    Friends, I read in one of the famous books of RMAN that "when we add new data files to storage, server process initiates controlfile autobackup'.If controlfile autobackup is set on"ON"in parameter of RMAN. I tested in my dummy environment but did not find any truth in it, I checked for alert log and did not find any backup controlfile after adding data files. No indication in this regard will be appreciated.

    > Data files how much I add

    A few.  An accurate count is not documented.  Oracle monitors the number of changes in the course of an interval.  I know, it does not create a new autobackup controlfile for each data file added in a 5 minute window, but only at the end of this window.  But I don't know if that 5 minutes is a documented fact or a result of some heuristics.  The actual duration of your environment may vary.

    Hemant K Collette

  • backup of controlfile to 11g

    Hello

    11 g (11.2.0.3) are automatically saved controlfiles?

    If so where are they stored?

    Thank you.

    Thank you.

    We have:

    CONFIGURE CONTROLFILE AUTOBACKUP

    And:

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' L:\ORACLE\PRODUCT\11.2.0\... SNCFMYDB. ORA'; # by default

    This means that a snapshot of the control file is done? Then it can risk an Ora-600 [900]?

    ===============================Doc ID 1442397.1================

    ORA-00600: internal error code, arguments: [2103], [0], [0], [1], [900], [], [], [] while the backup control file.

    Solution

    • Set the hidden according to _CONTROLFILE_ENQUEUE_TIMEOUT > 900.

    ========================End of Doc=======================

    We had this accident last Saturday and want to be sure if he came when you perform the snapshot (about the same time).

    Thank you and best regards.

  • Catalog vs controlfile recovery... ID of the database

    Oracle 11 g 2 Linux RHEL6

    I was wondering why recovery catalog will allow you to store backups of databases have the same DBID, but will the controlfile?

    I mean it makes sense why recovery catalog gives you the ' RMAN-20004: name of the target database does not match the name in the recovery catalog ' error in the case, but why the controlfile has no problem with that?

    I was wondering.

    Thank you.

    OK;

    Think of the global catalog database and the local clone database control file. As the control file is local to the clone database it can store information it wishes to without conflict.

    Control of the clone database file is private to this base, the DBID can be the same without conflict.

    The catalog database is not private, so a DBID duplicate is a conflict. (Public to other databases in your system)

    Who help me?

    Best regards

    mseberg

  • ALTER database open resetlog with ora-01666: controlfile is in standby

    I have a problem after I have restore / recovered a backup of the source.

    On the target, restoration/recovery all finished successfully, but change open resetlog of database with the following errors:

    ORA-01666.

    My steps are:

    (1) make a backup as follows on the source (which is a prod before) complete
    Configure controlfile autobackup on;
    Configure snapshot controlfile name to ' / oracle_backup/rman/snapf.f'
    BACKUP OF DATABASE TAG 'FULL '.
    (2) CPC backupsets above the target
    (3) in rman, set the dbid as the dbid of source, restored the snapf.f and then added the location.
    (4) then restore, recover (everything is fine).
    (5) when I alter database open resetlogs, it gives me error ora-01666.
    (6) change the database open worked, but the PB is now in sleep mode and readonly.

    I checked the settings, the dbname points to the dbname in source and db_unique_name point test on the target name. These two parameters have been reset by RMAN Duplicate.

    We do not want a standby db, we need a test copied from the sourc.e environment

    How should I proceed from here?

    Thank you

    Hello again;

    And there is the problem, the only file of control is a watch. Compare your this example of mine:

    BS Key Type LV Size Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    4170117 Full 9.70M DISK 00:00:03 29-NOV-12
            BP Key: 4170119 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125327
            Piece Name: /u01/oradata/RECOVER2_cold/control_RECOVER2_2821_20121129.bak
    Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12
    
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    4170127 Full 9.73M DISK 00:00:01 29-NOV-12
            BP Key: 4170129 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125332
            Piece Name: /u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_11_29/o1_mf_s_800628756_8chcsf10_.bkp
    Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12
    

    Note the version of ".bak" auto backup and y.

    I think you need to take another backup. If you use Oracle 11 I have even more options.

    For example, I update my test system using this:

    http://www.Visi.com/~mseberg/RMAN/diff_database_duplicating.html

    Sometimes I save on users, roles etc and replace later to hide.

    Subsequently

    You may be able to save what you have by creating a trace on the source file and then use it to re-create a control on the copy file.

    If you run a backup trace command daily you can probably pull some SQL from your daily trace file like this.
    
    CREATE CONTROLFILE REUSE DATABASE "RECOVER2" NORESETLOGS  NOARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
    ...
    ...
    

    You can save as say cf.sql, then:

    SQL> startup nomount 
    
    Run the SQL as shown above
    
    SQL> @cf.sql
    
    Control file created.
    
    SQL>
    
    Check the status of the database
    
    SQL> select status from v$instance;
    
    -- should be mounted
    
    If the database is mounted, can it be opened?
    
    Open the database
    
    SQL> alter database open;
    
    Database altered.
    

    Best regards

    mseberg

    Published by: mseberg on November 29, 2012 19:10

  • Path of redo logs after restoring controlfile

    Hello!

    After restoration of the controlfile I see distorted redo logs metadata (column v$ logfile.member):
    $OH/dbs/data/ora/MY_SID/rlog/redo1a.log
    in the redo logs placed in another directory, source database
    also I should drop logfile member and log file groups, and then create them again, but may be there other way to solve this problem?
    Please notify.
    I'm usung 11.2.0.3

    Thank you and best regards,
    Pavel

    As I said earlier, is that your database is working well? If so, then forget those files which are present in $OH/dbs/data/ora/file/rConnectez/MY_SID. Ok?

    Suppose now, the question is what are these files? Who created/copied?
    So the answer is if these files are used by your this database (MY_SID); that can be confirmed by query:
    Select Member from v$ logfile; then the redo logs are used by this database else chances are these files were the first part of this database, but not now due to may be a corruption that happened, so another / previous DBA has left.

    And if the database is not running, then what is the error you found it please post it here; otherwise leave these files such what.

    Concerning
    Girish Sharma

  • Creating a new controlfile with RMAN backup data files

    Hello

    I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below

    RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
    ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.

    So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.

    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in file identification
    ' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to get file status
    Linux error: 2: no such file or directory
    Additional information: 3

    All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?

    Kind regards
    007

    restaurer restore as ORADB, then rename the database with DBNEWID
    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htm

    or use duplicate instead of restore

  • copy of database active errors includes: controlfile rman_04006 does not.

    I try to create active eve of primary school by rman duplicate database.

    However, I got following error when it tried to allocate auxiliary channel:
    output channel: prmy9
    output channel: prmy10
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to allocate command at 27/07/2012 13:20:39
    RMAN-06403: could not get a fully authorized session
    RMAN-04006: auxiliary database error: ORA-01034: ORACLE is not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 error: 2: no such file or directory

    RMAN > * end-of-file *.


    My init file took out controlfile, and alert log shows:
    ORA-00210: could not open the specified control file
    ORA-00202: control file: ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/cntrlremeprdl.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory

    There is no such controlfile in high places as controlfile is not created.

    Init file is like this:
    Using parameters in Server pfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initprdl.ora-side
    Parameters of the system with default values:
    process = 900
    sessions = 1376
    SPFile = "+ DAT/prdl/spfileprdl.ora".
    memory_target = 44416M
    db_file_name_convert = "+ DAT".
    db_file_name_convert = "+ DAT".
    log_file_name_convert = "+ DAT".
    log_file_name_convert = "+ DAT".
    log_file_name_convert = "+ FRA".
    log_file_name_convert = "+ FRA".
    DB_BLOCK_SIZE = 8192
    compatible = "11.2.0.0.0."
    Log_archive_dest_1 = 'LOCATION is USE_DB_RECOVERY_FILE_DEST ".
    log_archive_format = "prdl_%t_%s_%r.dbf."
    log_archive_max_processes = 10
    db_create_file_dest = '+ DAT '.
    db_create_online_log_dest_1 = "+ DAT".
    db_recovery_file_dest = '+ FRA.
    db_recovery_file_dest_size = 982915M
    standby_file_management = 'AUTO '.
    undo_tablespace = 'UNDOTBS1.
    Remote_login_passwordfile = "EXCLUSIVE."


    This init paraemter is followed 11g MAA rapic Eve as follows. After the double, I'll add all these parameters of dg.

    How should I proceed from here?

    Ok

    SID_LIST_LISTENER =
     (SID_LIST =
      (SID_DESC =
      (GLOBAL_DBNAME=prdl_DGMGRL)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME = prdl)
     )
    )
    

    Would increase to

    SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
          (global_dbname = prdl_DGMGRL)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
          (sid_name = prdl)
          )
          (SID_DESC =
          (global_dbname = prdl)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
          (sid_name = prdl)
    )
    

    The additional part: (wait for global_dbname prdl.hostname)

    (SID_DESC =
    (global_dbname = prdl)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (sid_name = prdl)
    

    You will have a static entry for RMAN duplicate...

    Another example

    SID_LIST_LISTENER =
       (SID_LIST =
           (SID_DESC =
           (SID_NAME = PLSExtProc)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
           (PROGRAM = extproc)
         )
           (SID_DESC =
           (global_dbname = RECLONE.hostname)
           (ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
           (sid_name = RECLONE)
       )
    )
    

    H3. Avoid delays

    Add them to both servers

    In listener.ora
    INBOUND_CONNECT_TIMEOUT_ = 120

    In sqlnet.ora
    SQLNET. INBOUND_CONNECT_TIMEOUT = 120

    Stop and start the listener

    Use

    lsnrctl status (to find a static entry)

    Best regards

    mseberg

Maybe you are looking for