logical corruption in the database

What is logical corruption.
How this can happen in the data file, it is bound to caused due to the disc.
How to avoid this problem.
Is it possible to check this regularly. with a script to work... no idea what command how to... Dbverify will do.

Good reading/url is more welcomed.

Thank you very much.

user642237 wrote:
What is logical corruption.
How this can happen in the data file, it is bound to caused due to the disc.
How to avoid this problem.
Is it possible to check this regularly. with a script to work... no idea what command how to... Dbverify will do.

Good reading/url is more welcomed.

Thank you very much.

What is the version of db and the o/s? Where did you read the logical corruption of the word in the data files? As far as I know, data files get damaged physically only. Logical corruption is happening within the blocks, for example an index pointing to a rowid to null entry. I'm not sure that I came across any situation/reference stating this corruption for files as well. To check this, the best way is to RMAN that can do the job by simple commands.

HTH
Aman...

Tags: Database

Similar Questions

  • backs up all blocks of logic control validate the database

    Hello

    Metalink: How to use RMAN, check for logical and physical database Corruption [ID 283053.1]

    The following example shows how to validate all data files:

    Run {}
    allocate channel d1 type disk;
    backs up all blocks of logic control validate the database.
    output channel d1;
    }


    This command checks only corruption, or it is actually trying to save the data files on the disks?

    Thank you

    Hello

    The BACKUP VALIDATE statement is used to check The corrupt block is not for the performance of a backup.

    You will have more details on the following links:

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDECGBJ

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDCEHFD

    Hope this helps.
    Best regards
    Jean Valentine

  • ocrcheck poster "failure of control of logical corruption.

    Hi, I have a strange problem, I don't know how to recover the...

    In a 'ocrcheck' at random, we found the "logical corruption" above. In the CRS_HOME/journal/nodename/client / I found the previous ocrcheck was made a month earlier and has been a success. So, something in the last month caused a logical corruption. The cluster works ok now.

    So, I tried to do an ocrdump on certain safeguards that we have and I get the following error:

    #ocrdump - backupfile backup00.ocr < < < any backup I try for a month
    PROT-306: Impossible to extract the data from cluster registry

    This error occurs when even on the backup file taken just before for the successful ocrcheck of a month earlier. The log for this ocrdump shows-

    Cat ocrdump_6494.log
    Oracle Database 11g Release 11.1.0.7.0 - Production Copyright 1996 CRS, 2007 Oracle. All rights reserved.
    12:57:17.024 2010-08-18: ocrdump [OCRDUMP] [2813008768] begins...
    12:57:17.038 2010-08-18: utread:3 [OCROSD] [2813008768]: problem reading buffer buflen 7473000 4096 retval 0 phy_offset 15982592 try again 0
    12:57:17.038 2010-08-18: utread:4 [OCROSD] [2813008768]: problem not reading the buffer errno 2 errstring no such file or directory
    2010-08-18 12:57:17.038: [OCRRAW] [2813008768] GST: Dev/Page/block [0/3870/3927] is CORRUPT (header)
    12:57:17.039 2010-08-18: rbkp:2 [OCRRAW] [2813008768]: could not read the free list
    2010-08-18 12:57:17.039: [OCRRAW] [2813008768] GST: could not read page fcl 1
    12:57:17.039 2010-08-18: rbkp:2 [OCRRAW] [2813008768]: could not read the free list
    2010-08-18 12:57:17.039: [OCRRAW] [2813008768] GST: could not read page fcl 2
    12:57:17.039 2010-08-18: fkce:2 [OCRRAW] [2813008768]: problem reading the tnode 131072
    12:57:17.039 2010-08-18: propropen [OCRRAW] [2813008768]: failed in the input key comp search [26]
    2010-08-18 12:57:17.039: [OCRDUMP] [2813008768] could not open the key handle for the name of the key [SYSTEM] [PROC-26: error when accessing the physical storage]
    2010-08-18 12:57:17.039: [OCRDUMP] [2813008768] failure trying to cross the CLE_PRINCIPALE [SYSTEM]
    2010-08-18 12:57:17.039: [OCRDUMP] [2813008768] [status = success] output...

    NOTE: a "ocrdump" of active ocr works and creates the ocrdumpfile

    Corruption in the ocr appears to be two keys pointing to the same block.

    Oracle Database 11g Release 11.1.0.7.0 - Production Copyright 1996 CRS, 2007 Oracle. All rights reserved.
    13:22:54.095 2010-08-18: ocrcheck [OCRCHECK] [285084544] begins...
    13:22:55.447 2010-08-18: protchcheck [OCRCHECK] [285084544]: OCR status: total = [262120], used = [15496], avail = [246624]

    13:22:55.545 2010-08-18: CORRUPTION LOGIC [OCRCHECK] [285084544]: current_keyname [SYSTEM.css.diskfile2] and nom_de_clu [SYSTEM.css.diskfile1.FILENAME] link to the same block_number [3928]
    13:22:55.732 2010-08-18: CORRUPTION LOGIC [OCRCHECK] [285084544]: current_keyname [SYSTEM. OCR. MANUALBACKUP. Items.0], and nom_de_clu [SYSTEM.css.diskfile1] link to the same block_number [3927]
    2010-08-18 13:23:03.159: [OCRCHECK] [285084544] [status = success] output...


    As one of the keys refers to the votedisk, appearing incorrectly on a request-

    crsctl query css votedisk
    0 0/oracrsfiles/voting_disk_01
    1 0
    2 0 backup_20100818_103455.ocr < < < < this value changes if I run a command that writes something in the rock, in this case a manual backup.


    My DBA opens a SR, but I wonder if I can use ' ocrconfig - restore "If the backupfile that I want to use is not ' ocrdump would have?"

    In addition, anyone who is familiar with the ' ocrconfig - fix "as a possible solution?

    Although it is a pole of development (two nodes) reconstruction would be a disaster ;)

    Any help or thoughts would be appreciated!

    Hey Buddy,

    My DBA opens a SR

    Well well... the problems of corruption, no doubt that there better works with support team

    , but I wonder if I can use ' ocrconfig - restore "If the backupfile that I want to use may not be ' would be ocrdump?"

    No, this isn't the idea... If your backup is not good, it cannot restore. ;)

    In addition, anyone who is familiar with the ' ocrconfig - fix "as a possible solution?

    It is to repair the nodes that have declined when a kind of change in the configuration (replace for example OCR) was performed while he was 'off', so, I guess that's not your case.

    Good luck!
    Cerreia

  • RMAN backup on the database with data file with corrupted block

    Hi friends,

    I have a problem with a database of oracle 11g XE on windows server 2003, the database is in production, it is open, is operating normally.

    The database has no backup configured before, so I put the database archiving mode and tried to backup using rman utility, but it show me some errors.

    First of all, it showed me:

    ORA-19501: error in reading file... SYSAUX. DBF

    ORA-27070: async read/write failed

    OSD-04016: error queuing an asynchronous i/o request.

    And when I passed the dbv on the SYSAUX file utility. DBF showed the fatal error.

    So, I switched CHKDSK utility on windows to repair the disc of the error. After that, run utility dbv and he passed and showed me the corrupt on SYSAUX blocks. DBF

    Then, came to rman and ran:

    RMAN > validate the logical database checking;

    State of the file marked corrupt blocks examined empty blocks high YVERT

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

    3 0 1111 115840 78859075 FAILED

    File name: C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    Type block for lack of treated blocks blocks

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

    Data 0 0

    Index 0 0

    Other 38 114729

    After that: watching the content of v$ database_block_corruption;

    Show me a lot of lines like this:

    SQL > select * from v$ database_block_corruption;

    FOLDER # BLOCK # BLOCKS CORRUPTION_CHANGE # CORRUPTIO

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

    3 4440 1 FRACTURED 0

    3 4439 1 0 ZERO ALL THE

    3 4386 2 FRACTURED 0

    3 4384 1 0 ZERO ALL THE

    3 4334 1 0 ZERO ALL THE

    ...

    33 selected lines.

    Finally I try to rerun rman and he shows me the error:

    ORA-19566: exceeded the limit of 0 blocks corrupt file C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    How can I do backup with rman? Maybe I can by pass the corrupt block?

    I'll be grateful for any help you can provide.


    =)

    It would be better if you try to find the reason of corruption and try to recover the corrupt blocks. A block corrupted in the backup would really not must use. But if you're ready to take backup, you can ask RMAN to ignore corrupt blocks and move forward.

    Use the pseudo-code for the backup

    Run {set maxcorrupte for the database to 10;

    backup tablespace sysaux ;}

    HTH

    Aman...

  • Block corruption on the physical Standby database

    Hi all

    Operating system: HP Unix

    DB: 10.2.0.4

    We are facing corruption block on our database of physical intelligence. The same has been detected using commands below and several blocks were found to be corrupt.

    RMAN > backup validate check the logic of database;

    SQL > select * from v$ database_block_corruption

    As it is a basic data watch no backup is present, pulling the command below did not help

    RMAN > list of corruption block restoration;

    I think taking the incremental backup of the PR and the same application on DR, y at - it another way to eliminate corruption said?

    Kind regards

    Sphinx

    You can check below link if corruption block results nologging, there is a thread already with the question.

    Block corruption on the standby database

    10.5.2 steps of recovery for databases physical standby

    Data protection scenarios

  • EMERGENCY: Opening of a MS Access 2003 database in Ms 2003 and Vista simultaneously irremediably corrupts the database, erasing all forms.

    EMERGENCY: Opening of a MS Access 2003 database in Ms 2003 and Vista simultaneously irremediably corrupts the database, erasing all forms.  It is a progressive company upgrade to Ms Windows and Office 2003 to Ms Vista and Office 2007.  Some users now have the Vista Machines and still others 2003 machines.  They all share the object database, which resides on a SQL Server.  When the database is opened in 2003 and Vista users at the same time, the forms are destroyed and the database is permanently damaged.

    Means of access:

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://social.answers.Microsoft.com/forums/en-us/addbuz

    Access support at the link above.

    They will help you with your questions of access when repost you in the Office Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • I'm running 5 neat and it keeps crashing, or finds that the database is corrupted.

    I'm running 5 neat and it keeps crashing, or finds that the database is corrupted. I finally do work, then install a backup of the data. Then it works for awhile and then it crashes and repeat the cycle.  This happened to me several times, someone has the same experience and have a solution I can try?

    Thank you
    Nomad

    Original title: program compatibility Application Applications Apps game games Legacy Crash accidents Application Hang hangs

    I did a search on Google for 5 own database corrupted and came up with a number of references but most were neat user in a forum and links for whom work is no longer.  The following link to Amazon in the comments sections has several people commenting on common database corruption.  http://www.Amazon.com/NeatDesk-desktop-scanner-digital-filing/product-reviews/B001CQ8ER2?PageNumber=2 you can try the treated Support site to see if there is any assistance or fix: http://www.neat.com/support

  • At what stage of the treatment we use a rule to update to apply logic to the way the data are updated in the database?

    Hello

    At what stage of treatment do you use a rule to update to apply logic to the way the data are updated in the database?

    Rahul

    Hello Rahul,

    Update the existing record or a data object

    Thank you

    edynamic expert Eloqua

  • How to retrieve the database SYSTEM datafile get corrupted?

    Database is in ARCHIVELOG mode, and the system tablespace data file is corrupt. Until when can I recover the database?

    A. until the last commit.
    (B) until the moment where you are recovering.
    (C) until the moment when the data file has been corrupted.
    D. you may not recover the SYSTEM tablespace and you must be re - create the database.


    --
    and 1 more doubt:

    If redologfiles are not multiplexed and blocks redolog get damaged in Group 2, archiving stops and. All redolog files are filled and database activity is interrupted.
    DBWR wrote everything on the drive. What command allows you to go further?

    A. retrieve the block logfile Group 2;
    B. change the database drop logfile Group 2;
    C. change the database group claire logfile 2;
    D. change the group database recover logfile 2;
    E. change the database clear no archived lofile Group 2;

    Published by: user642367 on September 18, 2008 20:45

    1A. Because the DB is in archivelog mode, so you can always restore and recover the entire DB including system tablespace datafile to latter YVERT generated provided that redo record is available in in line/Archives log files.

    2 E. Because only redolog corrupt archive so only proceed where a blockage of the db is obvious, then, in order to proceed further you must clear (a journal archived file) online and then db will work as usual. There you must take a full backkup of DB (cold backup insofar as possible) as soon as possible after the issuance of this order. Like now, you do not repeat information in the archivelog files to recover the db in case of crash.

    Please go through Oracle 10 g DB Administrator's guide (available on OTN) for more details.

    Thank you

  • V 8.05 - file corrupted tablespace for schema - unable to open the database

    Group,

    Sun 450 companies running Solaris 6. No failure of equipment or problems.

    I have a database that does not open and here is the info I think you will need:
    Several diagrams, each in its own tablespace. A single schema, the production is necessary, and it is fine. The test schema 'tst' got its tablespace files, replaced by one of our admins. I DO NOT need any data in any diagram but production, and its files are OK.

    When I try to open the database so that it abandons the tablespace and the content, I get:
    Logged in as oracle owner
    svrmgrl
    OPEN > connect internal
    OPEN > start
    Message of the SGA
    Buffermessages
    Mounted database.
    ORA-01122: database file 5 failed verification check
    ORA-01110: data file 5: ' / oracle01/max/tst01.dbf'
    ORA-01251: unknown file header Version from the record
    OPEN > drop tablespace tst, including content.
    ORA-011109: database is not open

    I tried 'start-up open force' - same mistake, almost every combination of options of svrmgrl I can think.

    All I want is to get the Oracle to ignore these schema (tablespace) files "tst".

    Thank you
    Vince

    You can try:

    startup
    alter database datafile 'your_datafile_name' offline drop;
    alter database open;
    drop tablespace your_tablespace_name;
    

    Nicolas.

  • ORA-19599: block number 45289 is corrupt in the backup piece

    OS: RHEL 5.7 64bits

    Database: 11.1.0.7

    Hi all

    I have problems to restore RMAN backup on test computer. The restore command is sick of following error message:

    ORA-19599: block number 45289 is corrupted in the backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927509_1 item

    I already checked the piece back on prod and it seems OK:

    RMAN > validate backupset 3840;

    From post on 27 February 15

    using channel ORA_DISK_1

    using the ORA_DISK_2 channel

    channel ORA_DISK_1: starting from the validation of the data file backup set

    channel ORA_DISK_1: reading of the backup/oradata/ERP/RMAN_BACKUP/RMAN_ERP_20150227_15927509_1 element

    channel ORA_DISK_1: piece handle = / oradata/ERP/RMAN_BACKUP/RMAN_ERP_20150227_15927509_1 tag = TAG20150227T040007

    channel ORA_DISK_1: restored the backup part 1

    channel ORA_DISK_1: validation complete, duration: 00:02:45

    Finished post on 27 February 15

    Restore validate command also fails on the test machine:

    RMAN > restore database validation verification logic;

    From restoration to 27 February 15

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 779 type device = DISK

    allocated channel: ORA_DISK_2

    channel ORA_DISK_2: SID = 778 type device = DISK

    channel ORA_DISK_1: sweeping datafile copy /oracle/DEV/db/apps_st/data/a_ref03.dbf

    channel ORA_DISK_2: from the validation of the data file backup set

    channel ORA_DISK_2: reading of the backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927510_1 element

    channel ORA_DISK_1: sweeping datafile copy /oracle/DEV/db/apps_st/data/a_txn_data05.dbf

    channel ORA_DISK_2: ORA-19870: error when restoring backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927510_1 piece

    ORA-19599: block number 233296 is corrupted in the backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927510_1 item

    channel ORA_DISK_2: scanning datafile copy /oracle/DEV/db/apps_st/data/a_int01.dbf

    channel ORA_DISK_1: starting from the validation of the data file backup set

    channel ORA_DISK_1: reading of the backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927509_1 element

    channel ORA_DISK_1: ORA-19870: error when restoring backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927509_1 piece

    ORA-19599: block number 45289 is corrupted in the backup/oracle/clone/DEV/rman/RMAN_ERP_20150227_15927509_1 item

    switch to the previous backup

    My confusion is why validate backupset succeeds the prod and the same backupset presents corruption block during test.

    Kind regards

    Vinod

    Maybe the backuppiece has been altered in the transfer to the DEV machine?  Run a checksum on the backuppiece on both machines and compare.

    Hemant K Collette

  • ORA-19599: block number 782 is corrupt in the backup piece

    Hi Experts,
    I use Database 11g & restore the backup to another location.

    RMAN > RESTORE CONTROLFILE FROM ' / u01/RMAN/forstandby_0acekubq_1_1 ";
    RMAN > catalog starts by ' / u01/RMAN /';
    RMAN > restore database;
    channel ORA_DISK_1: backup/u01/RMAN/forstandby_09ceku8r_1_1 piece reading
    channel ORA_DISK_1: ORA-19870: error when restoring backup/u01/RMAN/forstandby_09ceku8r_1_1 piece
    ORA-19599: number 782 block is corrupted in the backup/u01/RMAN/forstandby_09ceku8r_1_1 item

    switch to the previous backup

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 23/10/2012 19:24:11
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06023: no backup or copy of the file 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore

    What is the problem someone guide me...

    Hello;

    Use this command to check potential physical and logical corruption:

    RMAN> restore database validate check logical;
    

    In Oracle 11 possible to repair/recovery corrupted blocks.

    This link should help:

    http://www.oracleracexpert.com/2011/09/repair-block-corruptions-using-data.html

    Block recovery is also possible.

    This link should help:

    http://www.oracleracexpert.com/2009/08/block-recovery-using-RMAN.html

    Best regards

    mseberg

  • A new question on how to enable Flashback Database on the database pending?

    Best practical side says:

    Activate the Flashback Database on the database shall minimize downtime for logical corruption.

    I would like to know where to find the document or everybody already had experience in this topic?

    Also, I would like to know what is the best practice for backup/restore of the database of physical relief?

    Thanks in advance.

    Hello;

    Just an opinion, but I like the book 'Oracle Data Guard 11g Handbook' as the document and the answers to the second question.

    Chapter 12 covers the A to Z of RMAN with Data Guard.

    This book sold me since Flashback Flashback allows a former primary database to be reinstated after a failover with ongoing restoration operation (provided that enough newspaper flashback is available)

    My own experience is I tried a test failover without it and trash my primary test.

    I did a test of simple failover a few weeks ago, here are my notes.

    http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF

    Best regards

    mseberg

  • The problem with SQL after the migration of the database to another machine

    Having a SQL strange problem trying to extract a database being moved from one machine to the other.  Both machines are running SQL 2008 32-bit and are both Windows 2008 servers.  When I try to backup the database using the SQL tools and restore the. BAK file on the new SQL Server, I get the following error:

    Restore failed for server 'servername' (Microsoft.SqlServer.Smo)
    Additional information:
    System.Data.SqlClient.SqlError: RESTORE detected an error on the page (44:2097184) in database 'RestoreDBName' read from the backup set.

    Similarly, when I am trying to copy the. MDF and. LDF files to the new server and tie them, I get the following error:

    Attach the database failed for the server 'servername '.
    Additional information:
    An exception occurred during the execution of a Transact-SQL statement or batch.
    A system assertion failed.  An assertion failure is usually caused by a corruption of data or software bug.  To check the database, consider running DBCC CHECKDB.  If you have agreed to send images to Microsoft during installation, a mini dump will be sent to Microsoft.  An update can be an available from Microsoft in the latest Service Pack or a QFE from Technical Support.
    Could not open new database 'NewDatabaseName' create a DATABASE is dropped.
    "" Location: "logmgr.cpp": 3277
    Expression: lfh-> lfh_startOffset is startOffset
    SPID:55
    PID: 292876 (Microsoft SQL Server, error: 3624)

    Everything I've read, these errors usually indicate some sort of database corruption.  However when I run DBCC CHECKDB on the database on the source server, it is up to perfectly don't own... None detected corruption.  In fact, this server hosts 8 different databases.  Departure from all the correct DB on the source server, none of them will restore however to a new server using one of the methods above.  I'm having a hard time to believe that each of them could be corrupted when they show absolutely no indication of a problem.

    Anyone have any ideas?

    Try to make the backup and restore via SQLCMD (or via a query in SQL Server MS window).

    The backup will be the following (obviously, change "MaBase" and "D:\BACKUPS" to some database and the location you wish to save - just using for example):

    BACKUP DATABASE MyDatabase

    TO DISK = 'D:\BACKUPS\MyDatabase.bak. '

    WITH NOFORMAT, NOINIT,.

    NAME = 'Database MyDatabase - Full Backup',

    NOREWIND, NOUNLOAD, STATS = 10, SKIP

    Copy your backup to the other server and file make:

    RESTORE the DATABASE to MyDatabase

    FROM DISK = 'E:\Backups\MyDatabase.bak' WITH FILE = 1,

    GO to "MyDatabase_Data" to "E:\SQLDATA\MyDatabase_Data.mdf,"

    GO to "MyDatabase_Log" to "E:\SQLLOG\MyDatabase_Data.ldf,"

    NOUNLOAD, STATS = 10 REPLACE

    Again, change your names and locations in function.

    If this does not work, try to restore a database by third-party tools. You can find them in Google. If you don't want to spend the time to research, you can try a tool SQL Server Recovery Toolbox. All the details about this program on the link. http://www.oemailrecovery.com/sql_repair.html

  • Error 'the database of the Max came out abnormally' in 2010

    The 2010 version installed and ran the MAX 4.7, it gave me this error. It worked fine when I used version 2009 & MAX 4.6. Does anyone have the same problem? I start the Configuration Manager of NOR, but it still doesn't work. I re-install DAQmx 9.2, however, it still does not - always gives me the same error. Can anyone help?

    I have corrected the problem. I downloaded the exe of the MAX database corruption to clear the database. After this, I restarted the computer, it worked. I'm running a few VI to the test and it seems to work very well.

Maybe you are looking for