Is database consistent?

Hi @ll
have oracle 9.2.0
what is the best way to check whether the database is consistent or not when it is mounted?
one way: i can try to open the database in read only mode oder i can open them.
but is there a better way to check that. is there a view where i can check whether it is consistent?
Regards

Hi,
In fact there's V$RECOVER_FILE, which from the link to TFM is a view that "displays the status of files needing media recovery", so I think the info the OP searches can be found there. But I don't know when is this view populated! I checked on my physical standby and the CHANGE# value was the one equivalent to the MRP (V$DATABASE.CONTROLFILE_CHANGE#), but hey, I don't have any database to crash in order to test this ATM. Maybe somebody can test and paste resultst there?
Regards,
Yoann.

Similar Messages

  • Check Database Consistency

    Dear All,
    i m trying to run Check Database Consistency through DB13,i m getting following error.
    Unable to start execution of step 1 (reason: The
    ob step contains one or more tokens. For SQL Serv
    r 2005 Service Pack 1 or later, all job steps wit
    tokens must be updated with a macro before the j
    b can run.).  The step failed.
    i m runing SAP ecc5 On SQL 2005 SP1.
    Please advice how to resolved this error.
    Thanks & Regards,
    Hiten Modi

    Ok, I don't know much about MS SQL. Really.
    But just looking for "step contains one or more token" in the SDN search brought up this note:
    [SAP Note 947702 DB13 - DBCC Checkdb job fails in SQL 2005 SP1|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_db/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393437373032%7d]
    Why does apparently no one ever tries this before posting a question?
    cheers,
    Lars

  • What does a package database consist of?

    What does a package database consist of? can any one give me complete description.

    Hi,
    This is Prabhuram Devar,
    A package database consists of:
    /var/sadm/pkg: This is a directory containing one directory entry for every package installed on the system.
    /var/sadm/pkg/<packagename>/pkginfo
    /var/sadm/pkg/<packagename>/save/<patchid>/undo.Z for the backout packages.
    /var/sadm/pkg/<packagename>/save/pspool/<packagename>: A sparse package that is used for non-global zone install.
    /var/sadm/install/contents: This file has an entry for every file in the system that has been installed through a package. Entries are added or removed automatically using the binaries installf and removef.

  • Database consistency issue..

    Hi.
    SCCM 2012 English, RTM
    For unknown reason the DR link broke between CA and primary.
    It says Site Replication status both way Active, but data replication is mixed. Parent to child Global data - failed and child to parent site data failed. Child to parent global - Active. Replication link analyzer performs several checks and then informs
    - Database consistency issues detected for site XXX.   (parent). Skiping rule  - shows different replication groups which are failed. I tried to replicate those, but nothing changed.(according to following article last step)
    http://blogs.msdn.com/b/minfangl/archive/2012/05/16/tips-for-troubleshooting-sc-2012-configuration-manager-data-replication-service-drs.aspx
    Any more ideas?

    Now i have read more about DRS and SCCM 2012 and get in state where 2 from 3 replications are active.
    Mainly with puting  relevatnt pub  files to RCM.BOX. But global data replication from CAs to PRI is still failed. No idea ....
     More related articles:  
    http://blogs.technet.com/b/sudheesn/archive/2012/10/21/drs-initialization-in-configuration-manager-2012.aspx
    http://anoopcnair.com/2012/06/20/sccm-configmgr-2012-site-to-site-replication-sql-data-replication-service-replication-configuration-management-sql-service-broker-replication-groups-and-manual-sync/
    And one more thing - do not know it is related or not
    Severity Type Site code Date / Time System Component Message ID Description
    Error Milestone XXX 12/14/2012 10:34:29 AM server.domain.local SMS_POLICY_PROVIDER 620 Microsoft SQL Server reported SQL message 547, severity 16: [23000][547][Microsoft][SQL Server Native Client 10.0][SQL Server]The INSERT
    statement conflicted with the FOREIGN KEY constraint "ResPolicyMap_PolicyAssignment_FK". The conflict occurred in database "CM_XXX", table "dbo.PolicyAssignment", column 'PADBID    Please refer to your Configuration Manager documentation, SQL
    Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    It is jaming replication ? and how fix DB inconsistency detected by Replication Link analyzer ?

  • How to recover from database consistency errors?

    I have a SQL server cluster 2005. Due to the broken of SAN storage's controller and disks, one of my SharePoint content DB has corrupted and has been causing numerous error to the SharePoint. I have run the command "DBCC CHECKDB WITH NO_INFOMDGS"
    and the truncated output are as following:
    Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
    CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
    Table error: Object ID 53575229, index ID 1, partition ID 72057594038583296, alloc unit ID 72057594043564032 (type In-row data), page ID (3:21580503) contains an incorrect page ID in its page header. The PageId in the page header = (3:21580511).
    CHECKDB found 0 allocation errors and 6 consistency errors in table 'AllDocs' (object ID 53575229).
    Object ID 1058102810, index ID 4, partition ID 72057594052411392, alloc unit ID 72057594058571776 (type In-row data): Page (3:21580478) could not be processed.  See other errors for details.
    CHECKDB found 0 allocation errors and 4 consistency errors in table 'EventCache' (object ID 1058102810).
    Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985593), slot 35, text ID 5702751551488 is not referenced.
    Msg 8964, Level 16, State 1, Line 1
    Table error: Object ID 1762105318, index ID 1, partition ID 72057594055819264, alloc unit ID 72057594062897152 (type LOB data). The off-row data node at page (3:21985594), slot 14, text ID 5702751354880 is not referenced.
    Msg 8986, Level 16, State 1, Line 1
    Too many errors found (201) for object ID 1762105318. To see all error messages rerun the statement using "WITH ALL_ERRORMSGS".
    CHECKDB found 0 allocation errors and 307 consistency errors in table 'AuditData' (object ID 1762105318).
    CHECKDB found 0 allocation errors and 363 consistency errors in database 'ALCIM_WSS_Content'.
    repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content).
    Error show in the event log:
    SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 3:21580475; actual 0:0). It occurred during a read of page (3:21580475) in database ID 9 at offset 0x00002929576000 in file 'E:\Microsoft SQL Server\Data\MSSQL.1\MSSQL\DATA\WSS_Content_2.ndf'. 
    The last DB backup creatred was about a month ago so doing DB resotre will be my last choice. Is it possible I can recover the DB without data loss using "DBCC CHECKDB ('WSS_Content', REPAIR_REBUILD)"? Any alternative method to acheive my
    goal?
    Thank you.

    Hi,
    Check this part of the output that you have posted
    "repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (WSS_Content)."
    Which clearly states that your only option is "repair_allow_data_loss". This option should ONLY be tried as a last resort. If you have any chance of restoring the backup as Bass_player suggested that should be your way. Even if you run repair_allow_data_loss
    and it runs successfully and fixes the corruption, you still would be facing logical corruption with data, as we never know which all records repair_allow_data_loss removes.
    More over in case of SharePoint databases as far as I know, Microsoft Sharepoint Support never used to support those sharepoint databases which were repaired. They will only support a backup of the database in case of corruptions.
    I would suggest you to start working on a better disaster recovery plan in the mean while you are waiting for the backups :)
    HTH,
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.wordpress.com

  • LMS Database consistency verification tool

    Hello all,
    I upgraded from LMS 3.1 to 3.2 yesterday. The upgrade went well, but DFM and Campus Manager didn't work afterwards.
    After a few searches on the forum, and the help of a great Cisco TAC engineer, we were able to solve the PIDM database inconsistencies that were preventing DFM links from showing up. And Campus Manager needed a kick in the butt to start again it seems.
    My PIDM table had many duplicate device ids, some registered to DFM 2.0 (on the previous server) and some registered to DFM 3.1 (current server). So it seems the previous upgrade (from 2.6 to 3.0 and then 3.1) had some bad entries.
    My question for the pros is this : is there a tool that can be run against the LMS databases to check for inconsistencies like these ? Duplicate entries, wrong server names, application version, and other nasty stuff ?
    My next chore is to move LMS from Windows 2003 to Windows 2008, but before I do that, I'd like to make sure the DB is clean
    Thanks!
    Alex.

    No, there are no tools to verify data consistency.  There is a tool to validate the file structure consistency of the database, but if the database is running, that is typically not an issue.
    The PIDM table is the source of quite a few problems, but they are generally easy to sort out.  If you have a good backup of your 2003 server data, I would say you can do the 2008 migration.

  • Directory database consistency/repair check tools

    hi,
    my understanding is that the directory uses ldbm database backends for the changelog and diretcory dtaabase files? is this correct?
    if so are there any consistency/repair checking tools available to use on these? (apart from doing db2ldif dumps etc)
    thanks

    Sun DS 5.1 uses Sleepycat (Berkeley) DB version 3.3.x.
    I'm not sure if Sun provides db consistency checking tools. They might be in the DSRK. I suppose you could download the free source code from sleepycat and build them yourself.

  • Secodary database consistency question

    hello!
    We have got an idea - to increase performance, we want to combine our database with objects, needed to be processed, together with objects which are already processed. The processed flag is kept inside a record. What we want, is to create 2 secondary databases - with processed records and with pending records. To do this, we want to create 2 secondary key creators, which will check a flag property in record, and decide whether record needs to be included into pending records or processed records. The pending records should also be ordered (there is a property with the record's order), used as a key for secondary database
    Now we would like to know - is it possible to do in this way? In javadocs for SecondaryKeyCreator there is a statement, which tells the resulting key needs to be the same for given primary key and value entries. Would we violate the constraint, in case if we have a record A with processed flag set to false (the key appears in "pending" secondary database), then we get this record, process it and place into a database with processed flag set to true - and now the record should disappear from pending secondary database but appear in processed database? In another words, first time key creator for pending database returns true for the record, and secondary key creator for processed database returns false, but when the record becomes to be processed - secondary key creator for pending database returns false, and secondary key creator for processed database returns true?

    Hi Eugene,
    Sure, that will work fine. To satisfy the constraint, just make sure that the pending flag is stored as a field in the primary data. The constraint is that secondary keys, returned by the secondary key creator method, must be derived from information in the primary key and/or data. Given inputs X and Y (primary key and data) it returns a result Z. JE may call this method at any time. Given the same inputs X and Y it must always return the same result Z.
    An example of a secondary key creator that is wrong -- that violates the constraint by returning different results at different times -- is a creator method that uses a timestamp or another external counter to create the secondary key.
    Mark

  • How to access multiple database present in single instance

    Hi Team,
    In oracle 11.2, can there be multiple databases in an instance???  In one of our environment, I could see multiple databases in an instance. Could you please help me in giving the data dictionary or query to access those databases?
    Actually, querying v$database, I could see only one database which is same as instance name. But in inventory, there are multiple database in an instance?
    I am still not exactly clear about this. Can someone help me with this?
    Thanks!
    Vidhya

    In Oracle one instance manages one (1) database. A database consists of multiple *schemas*.
    Other vendors erroneously call a schema 'database'.
    So, no, you didn't see multiple databases.
    There is also one datadictionary, consisting of a set of views.
    All views beginning with dba_  list the entire database, all schemas.
    All views beginning with all_ list the objects you have access to.
    All views beginning with user_ list your own objects.
    The view DICT show you the contents of the datadictionary.
    Oracle also has online documentation at http://docs.oracle.com
    From your question it is clear you should read the document called the 'Oracle Concepts Manual'.
    You can find all documentation for 11gR2 here Oracle Database Online Documentation 11g Release 2 (11.2)
    Too many people here don't make any effort to read it. This is probably the reason why you got no response.
    Sybrand Bakker
    Senior Oracle DBA

  • Applying transaction log corrupted database?

    Hi experts,
    Symptoms:
      I built a standby system this Monday and I completed a full DB restore without errors. I used log shipping to apply logs but an error occurred: SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 20:5746350; actual 0:0). It occurred during a read of page (20:5746350) in database ID 5 at offset 0x00000af5d5c000 in file 'l:\TCPDATA4\TCPDATA19.ndf'.
      I run dbcc page and found page(20:5746350) did corrupt on standby system. However, I ran dbcc page on production and it is ok. I restored this full db to another standby and ran dbcc page and it is ok. Also, Checkalloc, Checkcatalog, Checktable on production are ok.
    Questions:
      Does checktable detect secondary indexes corruption? I am re-compressing COSP indexes and running full checkdb on production right now to find out what's going on in our DB. How do I fix this issue? Any information will be really appreciated.
    Error message:
    2011-08-23 17:26:00.19 spid52      The log shipping secondary database TCCDBM1.TCP has restore threshold of 45 minutes and is out of sync. No restore was performed for 1 minutes. Restored latency is 720 minutes. Check agent log and logshipping monitor information.
    2011-08-23 17:26:39.62 Backup      Log was restored. Database: TCP, creation date(time): 2011/07/03(05:36:16), first LSN: 184193:4075900:1, last LSN: 184193:7288500:1, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'w:\LogB\TCP_20110822213010.trn'}). This is an informational message. No user action is required.
    2011-08-23 17:28:00.88 spid52      Error: 14421, Severity: 16, State: 1.
    2011-08-23 17:28:00.88 spid52      The log shipping secondary database TCCDBM1.TCP has restore threshold of 45 minutes and is out of sync. No restore was performed for 2 minutes. Restored latency is 716 minutes. Check agent log and logshipping monitor information.
    2011-08-23 17:28:34.03 Backup      Log was restored. Database: TCP, creation date(time): 2011/07/03(05:36:16), first LSN: 184193:7288500:1, last LSN: 184193:10880343:1, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'w:\LogB\TCP_20110822213511.trn'}). This is an informational message. No user action is required.
    2011-08-23 17:28:53.06 spid65      Error: 824, Severity: 16, State: 2.
    2011-08-23 17:28:53.06 spid65      SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 20:5746350; actual 0:0). It occurred during a read of page (20:5746350) in database ID 5 at offset 0x00000af5d5c000 in file 'l:\TCPDATA4\TCPDATA19.ndf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
    2011-08-23 17:30:00.54 spid52      Error: 14421, Severity: 16, State: 1.
    2011-08-23 17:30:00.54 spid52      The log shipping secondary database TCCDBM1.TCP has restore threshold of 45 minutes and is out of sync. No restore was performed for 2 minutes. Restored latency is 713 minutes. Check agent log and logshipping monitor information.
    2011-08-23 17:30:35.94 spid53      Error: 824, Severity: 16, State: 2.

    Hi Dennis!
    I understand your reasonable doubt, but think that physical corruptions are 99,999...% caused by a hardware failure e.g. a defective RAM module, or a related, low-level failure as e.g. an outdated NIC driver, etc.
    Then, in this case it is clear that you have a platform problem only on your standby system, and not in the one running productively right now.
    Maybe you already checked your platform, but you should take into account that in most cases just reading the logs is not enough; stress tests on all of the components are usually necessary. Most of the time, when we analyze hardware related problems, the problem is only reproduced when special tests are performed. Furthermore it is possible that more than one component is weak or broken.
    My recommendation is that you check the components in this order:
       - disks (complete surface) (while SAP and SQL Server are shut down)
       - disk controller
       - Memory (stress test)
       - CPU
       - all other components
    Consider that restoring a backup and running in a damaged platform would imply further problems. You would be waiting until the next problem arises and that would imply a system halt or corruptions, maybe even with data loss.
    Once the hardware checked and -if necessary- fixed, you can proceed as explained in SAP notes 142731 and 1420452. Of course you can also restore in a different hardware, but remember checking the platform as it is also exposed to hardware failures.
    Cheers!!
    --Jesú

  • How to find out the size of a database?

    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?

    An oracle database consists of data files, redo log files, control files, temporary files. Whenever you say the size of the database this actually means the summation of these files.
    select a.data_size+b.temp_size+c.redo_size+d.controlfile_size "total_size in MB"
    from
    ( select sum(bytes)/1024/1024 data_size from dba_data_files ) a,
    ( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) b,
    ( select sum(bytes)/1024/1024 redo_size from sys.v_$log ) c,
    ( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v$controlfile) d;
    here
    a is megabytes allocated to ALL datafiles
    b is megabytes allocated to ALL TEMP files
    c is megabytes allocated to ALL redo-logs
    d is megabytes allocated to ALL control files
    Nimish Garg
    Software Developer
    *(Oracle & ASP.NET)*
    Indiamart Intermesh Limited, Noida
    To Get Free Oracle & ASP.NET Code Snippets
    Follow: http://nimishgarg.blogspot.com

  • How to find out the scructure of OID database

    Hello,
    I installed the OID on our server, but now I have to have access to the databse. There is no problem, but there are no primary or foreign keys in a database, so I can not find out the relations between the tables in OID-databse.
    How can I find it out?
    It is very important.
    Thanks and regards
    Heinrich

    An oracle database consists of data files, redo log files, control files, temporary files. Whenever you say the size of the database this actually means the summation of these files.
    select a.data_size+b.temp_size+c.redo_size+d.controlfile_size "total_size in MB"
    from
    ( select sum(bytes)/1024/1024 data_size from dba_data_files ) a,
    ( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) b,
    ( select sum(bytes)/1024/1024 redo_size from sys.v_$log ) c,
    ( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v$controlfile) d;
    here
    a is megabytes allocated to ALL datafiles
    b is megabytes allocated to ALL TEMP files
    c is megabytes allocated to ALL redo-logs
    d is megabytes allocated to ALL control files
    Nimish Garg
    Software Developer
    *(Oracle & ASP.NET)*
    Indiamart Intermesh Limited, Noida
    To Get Free Oracle & ASP.NET Code Snippets
    Follow: http://nimishgarg.blogspot.com

  • How to repair backup of .mdf file database?

    Hi folks, One of our clients gets the following error when trying to backup a database:
    quote:
    System.Data.SqlClient.SqlException: SQL Server detected a logical consistency-based I/O error: incorrect
    checksum (expected: 0x121db60d; actual: 0x521db60d). It occurred during a read of page (1:1632) in database ID 4 at offset 0x00000000cc0000 in file 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\MSDBData.mdf'. Additional messages in the SQL
    Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many
    factors; for more information, see SQL Server Books Online. Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful.
    I tried to perform checkdb, checkdb repair_rebuild as well as checkdb REPAIR_ALLOW_DATA_LOSS but none of these corrected the issues is the MSDB database. My
    question is: can I just grab a clean MSDB database from another instance to recover corrupt one or do I really have to uninstall/reinstall SQL Server?

    You should consider restoring from Valid backup as already pointed. if you dont have valid backup you have to rebuild the system databases as Mark said.
    Backup and restore of system databases
    I would not adivise using Third party recovery tool.
    You should also look at SQL server errorlogs and windows event viewer to find out root cause of this issue. You should find out
    cause and mitigate it otherwise you would again face corruption issue
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Buffer Busy Waits in a Read-Mostly Database?

    11gR2 Standard Edition on Linux x86_64.
    The database consists of two large tables (12GB+), one column of each of which has an Oracle Text index on it. Once a month, the two tables are refreshed from elsewhere, the Text indexes are updated, and then they sit there for the rest of the month, effectively read-only as users perform full text searches. The instance runs in 20GB of RAM, of which 16GB is given over to the (8K, default) buffer cache, 1GB SGA, 2GB PGA.
    The principle recurring wait event on this database is buffer busy waits, for data blocks (i.e., not undo segment headers) -and the data blocks are those of the two tables (which have default freelists, freelist groups and initrans and maxtrans).
    I get that during the monthly refresh, when there's loads of inserts happening, there could be lots of buffer busy waits. Since that refresh happens at weekends out-of-hours, waits during that time are not of any great concern.
    My question is why there would be any such waits during the database's 'read-only' period, in between refreshes. I can positively guarantee that no DML is taking place then, yet the buffer busy waits still occur, from time to time.
    On a possibly related note, why would I see lots of "consistent reads" during the 'read-only' period? The data isn't changing at all, so why would the database be busy doing consistent reads when current reads (I would have thought) would be good enough to get the data in the state it's actually at?

    Catfive Lander wrote:
    11gR2 Standard Edition on Linux x86_64.
    The database consists of two large tables (12GB+), one column of each of which has an Oracle Text index on it. Once a month, the two tables are refreshed from elsewhere, the Text indexes are updated, and then they sit there for the rest of the month, effectively read-only as users perform full text searches. The instance runs in 20GB of RAM, of which 16GB is given over to the (8K, default) buffer cache, 1GB SGA, 2GB PGA.
    The principle recurring wait event on this database is buffer busy waits, for data blocks (i.e., not undo segment headers) -and the data blocks are those of the two tables (which have default freelists, freelist groups and initrans and maxtrans).
    I get that during the monthly refresh, when there's loads of inserts happening, there could be lots of buffer busy waits. Since that refresh happens at weekends out-of-hours, waits during that time are not of any great concern.
    My question is why there would be any such waits during the database's 'read-only' period, in between refreshes. I can positively guarantee that no DML is taking place then, yet the buffer busy waits still occur, from time to time.
    On a possibly related note, why would I see lots of "consistent reads" during the 'read-only' period? The data isn't changing at all, so why would the database be busy doing consistent reads when current reads (I would have thought) would be good enough to get the data in the state it's actually at?Catfive,
    Are you running 11.2.0.1 or 11.2.0.2? If you are running 11.2.0.1 there are at least two bugs fixed by 11.2.0.2 to correct problems that lead to buffer busy waits. You mentioned that this is a "mostly" read only database where you are experiencing these waits - does that mean that there might be some inserts, updates, and deletes (possibly auditing related?)? One of the bug reports found on Metalink (MOS) is this one:
    Doc ID 9341448.8, Bug 9341448 - "Buffer block contention on full block which keeps being tried for space"
    How did you determine that the buffer busy waits were related to these two tables? Did you check V$SEGMENT_STATISTICS, monitor the session level wait events, create a 10046 trace at level 8 or 12, or use some other method? Are these tables typically read using parallel execution? Is there any chance that the application is performing SELECT ... FOR UPDATE?
    Have you checked V$SESSION_EVENT to see which sessions waited on buffer busy waits? How severe are the buffer busy waits - 10 seconds in a 24 hour period, 1 minute in a 20 minute time period? Are you backing up this database using RMAN and comparing the change in the buffer busy waits before and after RMAN completes its backup?
    I wonder if using SGA_TARGET could lead to buffer busy waits during an automatic buffer cache resize operation?
    Regarding seeing "consistent reads" during the read only period, that should be expected when blocks are read from the buffer cache. Jonathan Lewis explained it well in at least one of the threads that he contributed to on OTN, but I cannot find that thread at the moment. Essentially (in as few words as possible), you will see current mode block accesses when the data blocks are being changed and consistent reads (consistent gets) when the blocks are being read. This thread includes comments that suggest what to check to determine if undo had to be applied to perform the consistent gets:
    Index consists 1.5mln blocks, but full scan gets 11mln blocks
    Edit:
    I found the thread with Jonathan's comment:
    high consistent read during parse call | tkprof output
    "If you're not doing a current read then the only alternative is to do a consistent read.
    Typically you do current reads because you want to change a block"
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.
    Edited by: Charles Hooper on Jan 5, 2011 8:45 AM
    Added link to second OTN thread

  • Database in Suspended Mode

    Hi,
    I faced this problem suddenly when i was trying some indexes on a local dummy table(using 'sa' user id) on DB COSMOS. After working around indexes i saved the file and closed Query Analyzer. On relogging again with 'sa' user Id i faced the following problem "A connection was successfully established but then an error occured during the login process.(provider : Shared Memory Provider, error:0 - No process is on the other end of the pipe.) "
    Then i logged in with Windows Authentication account. however i couldnt access DB COSMOS as it was put in Suspended Mode. On checking the event viewer i found below error
    "SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0xb42e9a1f; actual: 0xb45a9f73). It occurred during a read of page (2:0) in database ID 7 at offset 0000000000000000 in file 'E:\COSMIC\COSMOS_log.ldf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online."
    Well how the above error can be repaired. There are no backups of this db. I cannot run DBCC CHECKDB command for COSMOS as the same has been suspended.
    Please give me the solution to above problem.
    Thanks

    Hi ,
    Thanks for the info. Lekss thanks for that article..it was quite useful.
    Please check the below error that i found in error log.
    2009-12-29 21:09:45.81 spid20s     Error: 824, Severity: 24, State: 2.
    2009-12-29 21:09:45.81 spid20s     SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0xb42e9a1f; actual: 0xb45a9f73). It occurred during a read of page (2:0) in database ID 7 at offset 0000000000000000 in file 'E:\COSMIC\COSMOS_log.ldf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
    2009-12-29 21:09:45.81 spid20s     Error: 3414, Severity: 21, State: 2.
    2009-12-29 21:09:45.81 spid20s     An error occurred during recovery, preventing the database 'COSMOS' (database ID 7) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
    2009-12-29 21:09:45.85 spid53      EMERGENCY MODE DBCC CHECKDB (COSMOS, repair_allow_data_loss) WITH no_infomsgs executed by HOME\ADMIN terminated abnormally due to error state 5. Elapsed time: 0 hours 0 minutes 1 seconds.
    by putting my DB in emergency mode i could get the tables.Luckily there were only ten tables. however how do i take backup of the entire database in this case. As mentioned above, on executing DBCC CheckDB ('DBname', REPAIR_ALLOW_DATA_LOSS) after setting dB to single User mode, the system still displayed that the dB was in suspect mode and cannot be opened. Also the other system dbs including master is damaged and in Online mode. how do i get damaged free dBs. What should be done in real live situation where data is very important.

Maybe you are looking for

  • Syncing more than one iPod on a single Mac

    Hi all - I currently have an iMac and iPhone 3G. I sync the 3G to iTunes under my account. I am about to buy my an iPod and am wondering how the whole process of having one computer and 2 iPods will work. Is it possible to sync 2 iPods on the same co

  • Not able to create row in HANA via .create or ajax call (oData Services)

    Hello Experts, SYSTEM: AWS (Amazone Cloud with HANA SPS06), tunneling via VPN. My HANA-Studio is rev.70 with the "Kepler" addons. I´m the owner of this Schema and granted the necessary privliegues to the __SYS_REPO User. The following issues when I t

  • Remote App and Home sharing not working

    I've had no luck getting either the Remote app or Home Sharing working.  I've opened the correct ports, turned on sharing (both home sharing and under the Preferences -> Sharing tab), installed the newest version of iTunes, restarting the computer, i

  • Video Resolution and monitor setup

    OK, I need a little help here because I can not get what I want.  I am running a gaming system with MSI Plat. K9A2, with 8G gskil ram @1066, timings 5-5-5-15, 2.1v, two saphire 4870 1g cards, crossfireX via dual HDMI. CCC 9.7 for 64 bit on 64 bit Vis

  • Problem with multiple tiles-defs.xmls  in struts

    Hi, I am using struts1.3.I have two struts-config.xml files in my application.I am adding those files in web.xml. <servlet>           <servlet-name>action</servlet-name>           <servlet-class>                org.apache.struts.action.ActionServlet