BACKUP VALIDATE vs VALIDATE in checking logical/physical corruption
Hello all,
I am checking if our 10gR2 database has any physical or logical corruption. I have read in some places where they state that VALIDATE command is enough to check database for physical corruption. Our database was never backed up by RMAN specifically before. Are any configuration settings needed for running BACKUP VALIDATE command? The reason I am asking is because just the VALIDATE command returns an error and BACKUP VALIDATE command runs without error but it is not showing the
"File Status Marked Corrupt Empty Blocks Blocks Examined High SCN" lines.
I used the command in two different formats and both do not show individual data file statuses:
RMAN> run {
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 10 BACKUP TYPE TO BACKUPSET;
BACKUP VALIDATE CHECK LOGICAL DATABASE FILESPERSET=10;
RMAN> BACKUP VALIDATE CHECK LOGICAL DATABASE
RMAN> VALIDATE DATABASE;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "database": expecting one of: "backupset"
RMAN-01007: at line 1 column 10 file: standard input
However on a different database already being backed up by RMAN daily, BACKUP VALIDATE output shows list of datafiles and STATUS = OK as below:
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
How can we check every individual datafile status. Appreciate your responses. Thanks.
Hi,
After you have run:
BACKUP VALIDATE CHECK LOGICAL DATABASE You can use sqlplus and run:
select * from v$database_block_corruption.The output will tell you which block in which datafile is corrupt.
Regards,
Tycho
Edited by: tychos on 8-sep-2011 18:34
Similar Messages
-
hi,
An mssql dba asked me if oracle could do logical/physical corruption checking when performing backups. Im aware of BACKUP VALIDATE CHECK LOGICAL.
However, it doesn't create any backup. It just checks for corruption. If I remember, you can run BACKUP CHECK LOGICAL which will actually create the backup and check logical at the same time, but my question is...
Why would you not want one or both of these as standard? I get it that there's overhead, more so for VALIDATE, but would you really want backups that contain corruption? Even if you keep 30 days worth of backups, you could realise after 40 days that you had corruption, and not be able to restore.
Or is the reasoning behind not making it default, that you've got 'enough' backups that even if a datafile gets logical/physical corruption, you're bound to discover it before your backups become obsolete, and that it's then not worth the overhead of making it default?You can have the settings with SET MAXCORRUPT FOR DATAFILE.
By default a checksum is calculated for every block read from a datafile and stored in the backup or image copy. If you use the NOCHECKSUM option, then checksums are not calculated. If the block already contains a checksum, however, then the checksum is validated and stored in the backup. If the validation fails, then the block is marked corrupt in the backup.
The SET MAXCORRUPT FOR DATAFILE command sets how many corrupt blocks in a datafile that BACKUP will tolerate. If a datafile has more corrupt blocks than specified by the MAXCORRUPT parameter, the command terminates. If you specify the CHECK LOGICAL option, RMAN checks for logical and physical corruption.
By default, the BACKUP command terminates when it cannot access a datafile. You can specify parameters to prevent termination, as listed in the following table.
If you specify the option ... Then RMAN skips...
SKIP INACCESSIBLE Inaccessible datafiles. A datafile is only considered inaccessible if it cannot be read. Some offline datafiles can still be read because they exist on disk. Others have been deleted or moved and so cannot be read, making them inaccessible.
SKIP OFFLINE Offline datafiles.
SKIP READONLY Datafiles in read-only tablespaces. -
How to find physical corruption
Hi,
I sed backup validate command to find physical corruption into my database as follows.
backup validate check logical database;
After his command, I queried v$database_block_corruption.
12:04:47 SQL> select * from v$database_block_corruption;
FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO
1 11477 2 228760588 LOGICAL
1 11514 1 228760329 LOGICAL
12:05:09 SQL>
How can I find if this is physical corruption of logical corruption?
I also used dbv command to check my system datafile (File# 1). And output is as foolows
D:\>dbv file=D:\ORACLE\ORADATA\OPERA\SYSTEM01.DBf
DBVERIFY: Release 10.2.0.4.0 - Production on Mon Nov 18 11:56:23 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
DBVERIFY - Verification starting : FILE = D:\ORACLE\ORADATA\OPERA\SYSTEM01.DBf
DBV-00200: Block, DBA 4205781, already marked corrupt
DBV-00200: Block, DBA 4205782, already marked corrupt
DBV-00200: Block, DBA 4205818, already marked corrupt
DBVERIFY - Verification complete
Total Pages Examined : 168960
Total Pages Processed (Data) : 127180
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 25248
Total Pages Failing (Index): 0
Total Pages Processed (Other): 2440
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 14092
Total Pages Marked Corrupt : 3
Total Pages Influx : 0
Highest block SCN : 245793757 (0.245793757)
Since dbv always checks for physical corruption, but how can I make sure by using RMAn that whether this is physical corruption of only logical corruption? Thanks
Alert log says something as follows
Sat Sep 14 00:22:50 2013
Errors in file d:\oracle\admin\opera\bdump\opera_p008_3916.trc:
ORA-01578: ORACLE data block corrupted (file # 1, block # 11478)
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\OPERA\SYSTEM01.DBF'
ORA-10564: tablespace SYSTEM
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\OPERA\SYSTEM01.DBF'
ORA-10561: block type 'TRANSACTION MANAGED DATA BLOCK', data object# 5121
ORA-00607: Internal error occurred while making a change to a data block
ORA-00600: internal error code, arguments: [kddummy_blkchk], [1], [11478], [6101], [], [], [], []
SAQHi,
DBVerify reports both physical and logical intrablock corruptions by default. A good place to start would be going through the below MOS note for understanding them well.
Physical and Logical Block Corruptions. All you wanted to know about it. (Doc ID 840978.1)
Basically you will not be able to read data from the corrupt blocks in physical corruption while might be able to read data in logical corruption.
Also, DBVerify reports DBV-200/201 errors for logical corruption.
Hth
Abhishek -
can some one tell me
what is the meaning of datafile physical corruption.
we had one ORA-00600 error in our production database (9i R2 )
I checked on metalink that it is saying to check for physical corruption of 2 datafiles.
but database is working and it never went down .I just got this error message in alter log file.
how to check it and if it is here how can i resolve it .donald wrote:
Thanks a lot laura
we are not using RMAN (not good but...)
can i use dbverify
dbv file=test1.dbf log='/u001/as.log'
if it will say some header or block corrupt .
what will be the solutionJust because you're not using rman for backups (worse than "not good") doesn't mean you can't use it to verify file corruption. -
Backup validate check logical database
What is exactly the following RMAN command do? I want to know Is it doing a full backup or not?
rman> backup validate check logical database' . Kindly help me.RMAN does not physically backup the database with this command. But it reads all blocks and checks for corruptions.
If it finds corrupted blocks it will place the information about the corruption into a view:
v$database_block_corruption;
Now we can tell RMAN to recover all the blocks which it has found as being corrupt:
RMAN> blockrecover corruption list; # (all blocks from v$database_block_corruption)
Use below link for reference.
http://luhartma.blogspot.com/2006/04/how-to-check-for-and-repair-block.html
-Bharath -
Backup blocks all check logical validate database
Hello,
From Metalink : How To Use RMAN To Check For Logical & Physical Database Corruption [ID 283053.1]
The following example shows how to validate all datafiles:
run {
allocate channel d1 type disk;
backup blocks all check logical validate database;
release channel d1;
Does this following command just check for corruption , or is it actually trying to backup the datafiles to the disks ?
ThanksHello,
The BACKUP VALIDATE statement is used for checking Block Corruption not for running a Backup.
You'll have more detail 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 help.
Best regards,
Jean-Valentin -
How to validate that only one check box is checked in detail block
Hi All,
I am using oracle Forms 10G on windows.
I need help on how to validate that only one check box is checked in detail block. I have multiple records in the detail block and I have check boxes for each record in the detail block.
I have a button to select the values from the detail records where the check box is checked. But I want to make sure that only one record is check not more than one.
How do I validate this on a push button trigger?
ThanksWhen I've done this kind of thing, I create a Form level variable of TYPE number and then add or subtract to this variable as I check and uncheck the checkboxes. If the value of the variable is 1, then you know that only one checkbox is selected. If the value is greater than 1, then you know the user has selected more than one check box. You could also add code to your When-Checkbox-Changed trigger to test the variable and instruct the user to un-check selected record before selecing a new record.
With respect to the Form level variable, you can use a GLOBAL, PARAMETER or Program Unit package specification. I prefer to use the PU Package Spec as this method has a smaller memory footprint. For example, in the Program Unit node of the object navigator create the following;
/* Form variables package spec */
PACKAGE Form_Vars IS
CheckBox_Cnt NUMBER := 0;
END;Now in your When-Checkbox-Changed trigger...
BEGIN
IF ( Form_Vars.CheckBox_Cnt = 0 ) THEN
Form_Vars.CheckBox_Cnt := Form_Vars.CheckBox_Cnt + 1;
ELSE
/* it's assumed the value is greater than 0 */
Message('Please uncheck selec ted record before choosing a new record.');
RAISE Form_Trigger_Failure;
END IF;
END;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.
Edited by: CraigB on Feb 3, 2011 10:15 AM -
On 10gR2 and Solaris 10 we want to test our rman backups periodically. Can I have your advices on which method and how we might use?
BACKUP .. VALIDATE
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/strategy004.htm#sthref186
RESTORE... PREVIEW
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/recov003.htm#sthref555
Thank you.As they are for different purposes both can be used. You can get detailed information using PREVIEW like which files the backup set contains, which archivelogs will be used, etc...
RMAN> restore database preview;
Starting restore at 04.JAN.2008 15:56:41
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=135 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: WARNING: Oracle Test Disk API
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=143 devtype=DISK
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
42 Full 861.50M SBT_TAPE 00:02:51 25.DEC.2007 15:24:16
BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20071225T152124
Handle: 1ij4gdbl_1_1 Media: /sbt_tape,1ij4gdbl_1_1
List of Datafiles in backup set 42
File LV Type Ckp SCN Ckp Time Name
1 Full 2676243 25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_system_3lyw58ct_.dbf
2 Full 2676243 25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_undotbs1_3lj593qr_.dbf
3 Full 2676243 25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_sysaux_3lj598gc_.dbf
4 Full 2676243 25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_data_3lj7f81h_.dbf.tmp
using channel ORA_SBT_TAPE_1
using channel ORA_DISK_1
List of Archived Log Copies
Key Thrd Seq S Low Time Name
103 1 106 A 26.DEC.2007 09:15:19 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_26/o1_mf_1_106_3q4h8sqg_.arc
104 1 107 A 26.DEC.2007 13:38:01 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_26/o1_mf_1_107_3q5dxp9w_.arc
105 1 108 A 26.DEC.2007 22:04:05 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_108_3q7hkpyw_.arc
106 1 109 A 27.DEC.2007 17:01:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_109_3q7jcvq3_.arc
107 1 110 A 27.DEC.2007 17:15:07 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_110_3q7jl37r_.arc
108 1 111 A 27.DEC.2007 17:18:27 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_111_3q7jo6hk_.arc
109 1 112 A 27.DEC.2007 17:20:06 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_28/o1_mf_1_112_3q883z06_.arc
110 1 113 A 28.DEC.2007 00:00:30 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_28/o1_mf_1_113_3qbol2q6_.arc
111 1 114 A 28.DEC.2007 22:02:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_29/o1_mf_1_114_3qcknl4s_.arc
112 1 115 A 29.DEC.2007 06:01:20 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_29/o1_mf_1_115_3qfhjq8k_.arc
113 1 116 A 29.DEC.2007 23:37:27 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_30/o1_mf_1_116_3qj281j8_.arc
114 1 117 A 30.DEC.2007 23:09:20 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_31/o1_mf_1_117_3qllqy7d_.arc
115 1 118 A 31.DEC.2007 22:03:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_01/o1_mf_1_118_3qmgq0w1_.arc
116 1 119 A 01.JAN.2008 06:00:32 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_01/o1_mf_1_119_3qochbm6_.arc
117 1 120 A 01.JAN.2008 23:17:30 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_120_3qq2r4wj_.arc
118 1 121 A 02.JAN.2008 15:00:51 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_121_3qq3f0v1_.arc
119 1 122 A 02.JAN.2008 15:12:00 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_122_3qq3jkpq_.arc
120 1 123 A 02.JAN.2008 15:13:53 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_03/o1_mf_1_123_3qr53rcb_.arc
121 1 124 A 03.JAN.2008 00:47:19 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_03/o1_mf_1_124_3qtj22bp_.arc
122 1 125 A 03.JAN.2008 22:06:25 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_04/o1_mf_1_125_3qvtmx5c_.arc
Media recovery start SCN is 2676243
Recovery must be done beyond SCN 2676243 to clear data files fuzziness
Finished restore at 04.JAN.2008 15:58:59With VALIDATE you can be sure that you will be able to use that backup to restore your database as it reads all the files.
RMAN> restore database validate;
Starting restore at 04.JAN.2008 15:59:06
using channel ORA_SBT_TAPE_1
using channel ORA_DISK_1
channel ORA_SBT_TAPE_1: starting validation of datafile backupset
channel ORA_SBT_TAPE_1: reading from backup piece 1ij4gdbl_1_1
channel ORA_SBT_TAPE_1: restored backup piece 1
piece handle=1ij4gdbl_1_1 tag=TAG20071225T152124
channel ORA_SBT_TAPE_1: validation complete, elapsed time: 00:00:38
Finished restore at 04.JAN.2008 15:59:46I find both of them useful. -
How to check for physical damage on a disk using the Command Line
I have a startup disk that I suspect of physical damage. The symptoms is that the server (10.4.7) would "hang" randomly, about once a day. I have already changed it and restored from a backup, and now everything is fine. However just out of curiosity are there any command line utilities to do a physical surface scan of the drive, like TechTool Pro but included in Mac OS X Tiger?
G4 Dual 1.42 Ghz Mac OS X (10.4.6)Extract from the Command Line Guide for Tiger Server:
Checking for Disk Problems
You can use the diskutil or fsck command (fsck_hfs for HFS volumes) to check the physical condition and file system integrity of a volume. For more information, see the related man pages.
MacBook Pro Mac OS X (10.4.7) -
Using Oracle10gR2
If i create a new tablespace or add datafile on the primary db will it automatically create on the STANDBY LOGICAL & PHYSICAL
Please adviceHi,
i had logged metalink SR,go ahead with below ACTION PLAN response received
primarydb
=======
create tablespace per datafile 'c:\DATA\perfstat.dbf' size 200M autoextend on;
Logical stdby db [explicitly]
=====================
create tablespace per datafile 'c:\DATA\perfstat.dbf' size 200M autoextend on;
Physical stdby db
=============
No statements to execute, the above changes to primary will automatically get
updated here.
Since i do not have a test environment to check, my concern is
1. Above steps are correct sequence
2. Will it stop my replication to logical & physical stdby
3. Has anyone done this
Please help -
Parameter ' check logical ' question
Hello,
in the rman backup and recovery reference 10gR2, it says for the check logical parameter for backup:
If the initialization parameter DB_BLOCK_CHECKSUM=TRUE, and if MAXCORRUPT and NOCHECKSUM are not set, then specifying CHECK LOGICAL detects all types of corruption that are possible to detect.
But there is no description for the alternative of DB_BLOCK_CHECKSUM=FALSE.
Now Ct. wants to know: What does check logical check if this parameter is not set to true?
Ct. wants to check all kinds of corruption which is checkable by rman.
regards
UlliWithout the CHECK LOGICAL clause, RMAN will perform 2 types of validation in the cache layer of the datablock: block checksum and head/tail verification. When you add CHECK LOGCIAL clause, we perform additional checks in the transaction and data layer of the block which will add to the the processing time.
However, a delay of 3.2 times seems a bit of higher side. You might want to check for the CPU/IO utilization on the machine. If you have idle CPU, you may consider adding more channels. Look out for v$backup_async_io.LONG_WAITS, if the number is high, IO is slow.
It is also possible that due to the additional checks, RMAN is not able to fill the output buffer as fast as earlier. In that case, consider increasing multiplexing (FILESPERSET / MAXOPENFILE) -
What App Checks the Physical Health of Firewire & USB External Drives?
Hi. I need to check the physical health of my Time Machine backup which is a Firewire and USB. Is there an app that can check their health or S.M.A.R.T. status without going to Boot Camp Windows [I usually use Speedfan or one of the windows S.M.A.R.T. checker/analyzer but it's not accurate and won't even detect backups format which is in HFS+/Mac OS Standard (Journaled) ]?
Thank you in advance.
God bless.I don't think so. However, if you open Disk Utility located in Applications>Utility's>Disk Utility, and select the disk on the left side, you will see some buttons. One says "Repair disk permissions" and another one says "Verify disk". Click on "Repair disk permissions" first. Next, when that is complete, click "Verify disk". When you have done all this, your disk should be repaired and work great!
-
On my touch I have an iCloud backup message asking me to check my settings, when I click on settings nothing happens and the screen goes black. It will not allow me to turn my touch on or off. What should I do to rectify this?
Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
Significance of DEFAULT check in Physical Schema
Hi guys! Can you tell me the significance of Default check in physical schema(in topology manager)?
When I remove this check from my current physical schema and run any Interface based on the same. I get errors like Delete previous checksome error
And If i create two or more than two physical schema and everytime when I want to Excecute interfaces based on these different schemas all I need to go to that particular schema and make it my default Schema; Otherwise excecuting Interface gives checksome error if that interface doesnot belong to our default physical schema.
Can you please comment on this.
Thankyou.Hi Diwakar,
Adding my comment on this is,
The below is coded in document,
"If this box is checked, then the physical schema will be the data server default schema, when no schema has been specified. Only one physical schema can be marked by default."
The bottom line is for one data server even though it has one/more physical schemas ,atleast one should be default schema.
So every time if you are using different schema you have to make it as default to took that connection.
P.S: Experts comments are welcome !!!
Thanks,
Guru -
I haven't backed up my computer in over a year. When I tried to back it up today, Time Machine says 'an error occurred while creating the backup folder.' When I check the side of the partition where I manually saved old photos and documents (including all the pictures from the year I studied abroad/traveled a bunch), the folders are there, but NONE of the files are.
Does anyone have any idea what the problem might be, or how I could fix it? I really don't want to lose all those photosSo you were doing a time machine backup to another partition on the same hard drive? Just trying to gather some information so i can provide a helpful response.
Maybe you are looking for
-
HOW THE ************** Do I set up nokia messaging on the 5800? Please if somone can help me I shall burn an effigy in your honour. First A person in the UK CANNOT set up a Nokia mail account. You go to email.nokia.com, you select your device and e
-
I've got about 3 yrs of pictures, which are backed up, but the "upgrade" to iPhoto six (which I now regret having paid for) crashes on launch every time. I tried all the tricks I could find in this forum: the cmd-opt launch, and each of the rebuilt o
-
Business Application Guru Max Dolgicer Speaks at Business Technology Summit
Max Dolgicer has more than 25 years of management and technical experience in development and support of Business applications, software products and systems internals. An internationally recognized expert, Max is Technical Director and principal at
-
Assign button or knob to show/hide instruments on channelstrips?
Hi, I am trying to assign a knob or button on my controller to show or hide the instruments on a channel strip so if I play live I can directly see what is going on. This works great with my M-Audio Garageband-controller in Logic. It would be really
-
I always recceive error messages when I´m trying to export projects with certain effects into the mp4 format. (crossfade or other basic effects). How can I handle this?