From oracle-l-bounce@freelists.org Mon Apr 18 16:37:55 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j3ILbtpE001485 for ; Mon, 18 Apr 2005 16:37:55 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j3ILbt4Z001481 for ; Mon, 18 Apr 2005 16:37:55 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 23B58184B49; Mon, 18 Apr 2005 15:35:38 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23497-01; Mon, 18 Apr 2005 15:35:38 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 97EAB184103; Mon, 18 Apr 2005 15:35:37 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=MzpAFDZXs3h8qFKZUU177wzvUab8hCEohWcMkflMbU394zCb6X18+d1IPZDYJqLIikxBDNZll+oVkZcWpxs8UvFy1KX2hUZJev40IOf7ii2WptvP0srL9LEZ38v2URLov+OAIsbcBzfMyrSSTU2eWXzM/ZuAdNFHSljVR2uIHpA= Message-ID: Date: Mon, 18 Apr 2005 13:33:48 -0700 From: Jared Still To: peterdixon001@hotmail.com Subject: Re: Data corruption Cc: oracle-l@freelists.org In-Reply-To: Mime-Version: 1.0 Content-type: text/plain References: Content-Transfer-Encoding: 8bit X-archive-position: 18573 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: jkstill@gmail.com Precedence: normal Reply-To: jkstill@gmail.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.63 > > #corrupt one block > dd conv=notrunc if=/dev/zero of=/u01/oradata/dv03/corrupt.dbf bs=8192 > seek=10 count=1 > > This bit will actually work better if you use something other than /dev/zero to wipe out a block. I used a file of 1048576 'Y' characters. If you use /dev/zero, the table just disappears from the file, though still in the DD. ( Oracle initializes its files with chr(0)) perl -e 'for ($i=1;$i<=2**20;$i++){print "Y"}' >| yes.txt dd conv=notrunc if=yes.txt of=/u01/oradata/dv03/corrupt .dbf bs=8192 seek=10 count=1 -- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist -- http://www.freelists.org/webpage/oracle-l