How does oracle know the databse is inconsistent and needs recovery?

Hello,
How does Oracle know that the datafiles are inconsistent and db needs recovery when rebuilding the db off of the online/hot backups? Whereas, it doesn’t ask for recovery when rebuilding the database from cold backup (I understand that, for cold backup, database is shutdown immediate and hence the db is consistent). In both scenarios, a new control file is created (that means it won’t have SCN) and only datafile header will have the SCN. What’s that piece of info that oracle check to know if the database is consistent or inconsistent during the backup restore and recovery and where that info resides?
Thank you for any hints and answers.
Jay

Oracle uses the datafiles to identify if they are consistent. If the datafiles backup was taken when the database was OPEN, they are marked as "fuzzy" in the header. Also, likely, the Checkpoint SCNs may be different if tablespace checkpoints (e.g. by ALTER TABLESPACE BEGIN BACKUP) are at different points in time.
If the backup was a cold backup with the database shutdown normal/immediate, the headers are marked appropriately.
When you run CREATE CONTROLFILE, it has to read the datafiles because the controlfile, itself, has no SCN and LogSequenceNumbers information.
Hemant K Chitale

Similar Messages

  • How does oracle know which AO Framework page or process to execute.

    Hi,
    How does oracle know which AO Framework page or process to execute. I use to think this was defined in the Function definition. But looking through some Function definition in HRMS setup I noticed some of them simply calling the same first page, such as the one below used in many managers menus. This initial page is the page that allows managers to choose the employee they want to work on.
    OA.jsp?akRegionCode=HR_PERSON_TREE_TOP_SS&akRegionApplicationId=800.
    My question is, after executing this initial page, how does Oracle then varies the OA page by the diffferent functions?

    Hi;
    Thanks for sharing
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding*
    Regard
    Helios

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

  • TS3276 Does anyone know the YAHOO authentication method and port? I recently installed the new OSX 10.8.2 software and my mac mail wont work.

    Does anyone know the YAHOO authentication method and port? I recently installed the new OSX 10.8.2 software and my mac mail wont work.

    Hello,
    I have no idea what you're talking about, however my Mail stopped working when I
    had to add a new e-mail address for my Hotmail account.
    My new Hotmail address works, and seems to get e-mail from the old e-mail address,
    which from I've read behaves as a "default" address for the old address.
    Apple Mail is linked to my Hotmail account of the old e-mail address.
    I no longer know my old password.
    Apple Mail will not accept my new password for ny new Hotmail account.
    Can someone help me solve this problem WITOUT COMPLICATED SOLUTION!
    As I said I have no idea what a port, or SSL or authentication is!
    If you do answer,please answer in vert simple steps that are easy to follow, and donlt make matters worse.
    Thanks,
    SB

  • How does delta know the value of keyfigures to substract?

    Hi
    I was wondering... I have a delta load to a ODS. The delta would go like this:
    doc nr.     item nr.     qty
    111111    0000010     15
    111111    0000010     -15
    111111    0000010     19
    But how does the delta know that it has to subtract 15 before it adds 19? Is it just looking in the ODS for a record with the same primary key? In that case, how does it then know what to subtract when it is an infocube that is the target?
    Thanks in advance.
    Kind regards,
    Torben

    Hi Torben,
    Delta Process is the Property of the Datasource as mentioned by Tripple K.
    You can go to table ROOSOURCE in OLTP (R/3) sytem and check the property of the Datasource for which you are extracting the data.
    And also you can see table RODELTAM to see details about a particular Delta Process Type.
    RODELTAM table contains the details abt DELTA PROCESS like
    ABR, A, ADD, AID, AIED, AIM ets
    Delta only with Full Upload (ODS or InfoPackage Selection)
    A ALE Update Pointer (Master Data)
    ABR Complete Delta wth Deletion ID Using Delta Queue (Cube-Cap.)
    ABR1 As 'ABR' Procedure, but Serializatn only Request by Request
    ADD Additive Extraction Using Extractor (e.g.LIS-InfoStructures)
    ADDD As 'ADD' but via Delta Queue (Cube Enabled)
    AIE After Images Using Extractor (FI-GL/AP/AR)
    AIED After-Images with Delete Indicatr via Extractr (FI-GL/AP/AR)
    AIM After Images Using Delta Queue (e.g. FI-AP/AR)
    AIMD After Images wth Deletion ID Using Delta Queue (e.g. BtB)
    CUBE InfoCube Extraction
    D Unspecific Delta Using Delta Queue (Not ODS-Capable)
    E Unspecific Delta Using Extractor (Not ODS-capable)
    FIL0 Delta Using File Import with After Images
    FIL1 Delta Using File Import with Delta Images
    NEWD Only New Records (Inserts) via Delta Queue (Cube Enabled)
    NEWE Only New Records (Inserts) via Extractor (Cube Enabled)
    O
    ODS ODS Extraction
    X Delta Unspecified (Do Not Use!)
    The Datasource contains a field called ROCANCEL which is mapped to 0RECORDMODE in BW(if ODS is present in BW Data Flow). The Role of this field is to indicate the Cancellation of data record , similarly the field 0RECORDMODE determines whether the records are added to or overwritten. It determines how a record is updated in the delta process: A blank character signifies an after image, ‘X’ a before image, ‘D’ deletes the record and ‘R’ means a reverse image.
    By mapping ROCANCEL to 0RECORDMODE the data extraction and concept of delta is realised in BW.
    So while modelling the Data Flow in BW and Delta mechanism in BW the Datasource property (ROOSOURCE and RODELTAM) plays a vital role in Modelling.
    Basically this ROCANCEL Field will have values like "blank" - after image, and "X" - before image and if you check in RSA7 for the records extracted in your last delta run you will find multiple records for same key fields, as there are multiple images (After, Before, Reverse etc) depending on Delta Process of Datasource.
    Hope this clears.
    Please let us know if you have further queries.
    Thanks!
    CK

  • How does Oracle fills the Blocks of an extent ?

    Hi,
    does anybody know why Oracle uses p.e. the fourth block of the first extent, then the 8th block, and not continous amount of blocks?
    So the HWM is higher then necessary.
    Thanks
    Marco

    Thanks Mark for the fast Reply.
    Yes, you are right, seeing is beliving ... :-)
    I had imported a table into the db (and there were NO deletes!)
    SQL> select tablespace_name, initial_extent, ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT from dba_tablespaces where tablespace_name='KUNDEN';
    TABLESPACE_NAME INITIAL_EXTENT ALLOCATIO SEGMEN
    KUNDEN 5242880 UNIFORM AUTO
    SQL> select count(*) from orte;
    COUNT(*)
    1628
    SQL> select segment_name, tablespace_name, header_block, bytes, blocks, extents from dba_segments where segment_name='ORTE';
    SEGMENT_NAME TABLESPACE_NAME HEADER_BLOCK BYTES BLOCKS EXTENTS
    ORTE KUNDEN 28820 5242880
    640 1
    SQL> SELECT DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) AS block_nr, COUNT(*) AS anzahl FROM orte
    GROUP BY DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
    BLOCK_ID ROWS_IN_BLOCK
    28844 255
    28848 218
    28852 230
    28856 233
    28864 241
    28860 244
    28868 207
    Thanks
    Marco

  • How does JVM know the method's stack depth?

    When a caller push several operands into its operand
    stack,how does the JVM know the number of the
    callee's parameters and pop correct number of operands
    out of the stack.

    It's determined by the signature of the method given in the invokestatic, invokevirtual, invokeinterface, or invokespecial bytecode.

  • How does one turn the french keys on and off in the wireless keyboard?

    how does one turn on and off the French keys on a wirleless keyboard?

    Hello dustysmart,
    I believe what is going on is that you have a secondary keyboard turned on within Windows. When you press alt + shift at the same time you are alternating between the two keyboards.
    To check this (and possibly delete the French keyboard if you don't want it) you can go into Control Panel and check under Change Keyboard.
    This article will provide you instructions depending on which version of Windows you are using.
    How to Type French Accents
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • How does Oracle handles the delete ?

    Hi ,
    I have a unix loder that does the issue this command
    EXEC SQL DELETE FROM TBl1 where id in (select id from TMP)
    if any user is accessing a record in TBL1 , will Oracle wait for the record to be released before it does the delete or it simply skip it ?
    pls advise
    tks & rgds

    It will wait please look at the example below:
    Session 1:
    [email protected]> select * from dept;
    DEPTNO DNAME LOC
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    [email protected]> update dept set loc = 'WARSAW' where deptno = 10;
    1 row updated.
    Session 2:
    [email protected]> delete dept;
    -- waiting
    Session 1:
    [email protected]> commit;
    Commit complete.
    Session 2:
    4 rows deleted.
    [email protected]> select * from dept;
    DEPTNO DNAME LOC
    10 ACCOUNTING WARSAW
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    Location was changed
    Best Regards
    Krystian Zieja / mob

  • How does JWS know the files have updated? Is this a bug?

    Ok, I have the following problem. I have applications installed on computers which are not in the same timezone as the server where the installation is - they are several hours ahead. The 1st time I start the application, it never checks for updates, it just starts the old version installed on the computer. The 2nd time it always downloads the application from the server, the 3rd time it doesn't and so on - regardless of whether the application has changed on the server or not!
    I believe this problem started with the JWS from jdk 1.5 - I think the 1.4 was updating properly.

    For the basic protocol, javaws makes HEAD requests to the server and uses the timestame informatiopn returned in the response. This code is the same in 1.4.2 as in 5.0.
    Your problem sounds like a problem in 5.0 (fixed in update 1) where the timeout value was changed from 1+1/2 seconds to 1/2 second. For applications with offline-allowed, if javaw scannot determine within the timeout if the application has updated, it will launch it from the cache and then continue the check in the background. on the next launch, the update would have completed and marked that the application needs updating. By changing the timeout value to 1/2 second, we caused many apps to timeout where they would find the update within the 1+1/2 seconds, so it was changed back in 1.5.0_01
    /Andy

  • How does cyrus flag the state of  mail and can we preserve this ?

    When I restore an e-mail account the user gets his mail as unread
    What i am saying here is
    We use imap accounts and I had to restore the mail from a backup, all the users got there mail back, but all as unread including the folders they created.
    it would be handy to know

    There is no reliable way of preserving the read/unread states when restoring.

  • How can I know the security role of the logged in user

    When you design an enterprise bean or Web component, you should always think about the kinds of users who will access the component. For example, an Account enterprise bean might be accessed by customers, bank tellers, and branch managers. Each of these user categories is called a security role, an abstract logical grouping of users that is defined by the person who assembles the application. When an application is deployed, the deployer will map the roles to security identities in the operational environment.
    But wondering when I log into my application with some user name and password (specified in my Oracle database),wondering how this works with the security role I created .How does J2EE know the security role of the logged in user.
    Thanks
    Manohar

    shet wrote:
    role at run time.
    When I login say as "manju" and password as "money" then how does it know that this user belongs to this security role.Is that the j2ee administrator has to say that user manju has this this security role.Programmitically how does it really work.I am confusedThe j2ee implementation assigns the roles using the JAAS module you have configured for your application on your application server. different JAAS modules get roles in different ways. many allow a single static role to be assigned using a config file. if using a database, often there will be configuration to specify additional database fields which specify the role for a given username.
    At runtime, a developer can test roles using methods like EJBContext.isCallerInRole().

  • How does firefox know to fill in my credit card details in a webpage? i don't like it to keep them on file.

    how does firefox know the details of my credit card to fill in a web form.? how can I prevent firefox from keeping a copy of my credit card numbers?
    == This happened ==
    Not sure how often
    == i previously filled in the same web page a month ago.

    See [[Form autocomplete]]
    http://kb.mozillazine.org/Deleting_autocomplete_entries

  • I have some videos that are completely well shown when using any media player, but some parts of the video appear with red screens when I try to edit them on Adobe Premier. Does anyone knows the reason?

    I have some videos that are completely well shown when using any media player, but some parts of the video appear with red screens when I try to edit them on Adobe Premier. Does anyone knows the reason?

    More information needed for someone to help... please click below and provide the requested information
    -PPro Information FAQ http://forums.adobe.com/message/4200840
    Plus, EXACTLY what are you editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • Does anyone know the procedure, how to publish in NewsStand  my own magazins?

    Does anyone know the procedure, how to publish in NewsStand  my own magazins? What does it cost? How much time? Tell me please, may be a link. Or common steps.

    http://www.quora.com/How-does-one-publish-magazines-to-Apples-Newsstand

Maybe you are looking for

  • Header Information Repeating in the Same Page

    Hi Buddies, I have an issue with PO Print Report. I am trying to reapet the header information by using <?start:body?> after the header informaiton and <?end body?> before the footer informaiton. If i have two different headers, it displayed in the s

  • Change font size of an table with javascript

    Hello! i am new to developing in javascript as well as to indesign. i have to make a few changes to an existing script. in a user dialouge i get the font size in which the imported table should be. but how can i change the font size of an table??? pl

  • How to view images from Pictures Folder using iPhoto?

    Right now when I click an image in the Pictures folder, the image is automatically opened using Preview. I want to view images directly from my Pictures folder, and have them open to iPhoto. Is that possible? I just want to be able to view/sort my ph

  • Returning more than one variable in TEI

    I was trying to use custom tags in my application. It was quite           straightforward how to return a single variable using extra info           class. Can you throw light on how can I return two or more variables?           Parag           

  • Enhancement Request - comments

    I've recently demonstrated the SQL Workshop within HTMLDB to a number of users of varying experience, and the response has been very positive indeed. However, a common complaint was that there is very little table and column specific (i.e. metadata)