Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Corrupt block in DBVERIFY
The workaround that first comes to my mind is to take all the objects of that tablespace and do an analyze .....validate structure. Take into account that the validate structure clause locks the object. This could be a script for that:
set pagesi 0
set feedba off
spool validate.sql
select 'analyze '||segment_type||'
'||owner||'.'||segment_name||' validate structure;'
from sys.dba_segments where
tablespace=upper('&tbsp.');
spool off
set feedba on
set echo on
set pagesi 25
spool validate.out
@validate.sql
spool off
You could improve it changing the query from dba_segments. That it is an slowly view.
Regards.-
--- "Smith, Ron L." <rlsmith_at_kmg.com> wrote:
> I have a corrupt block according to DBVERIFY. The
> block is on an index so I
> can rebuild it but I don't know how to find the
> object with the information
> displayed in DBVERIFY. Can anyone tell me how to
> find the object?
>
> Thanks!
> Ron
>
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: Smith, Ron L.
> INET: rlsmith_at_kmg.com
>
> Fat City Network Services -- (858) 538-5051 FAX:
> (858) 538-5051
> San Diego, California -- Public Internet
> access / Mailing Lists
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Christian Trassens INET: ctrassens_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jul 10 2001 - 02:32:06 CDT
![]() |
![]() |