Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is there anyway to Validate a entire Schema........
"Scott Weinrich" <SWEINRICH_at_FNIS.COM> a écrit dans le message de
news:beac86c3.0402241129.710cc75f_at_posting.google.com...
> I was curious if there is command/tool to validate an entire schema,
> similar to the way you can gather schema stats using
> DBMS_STATS.GATHER_SCHEMA_STATS, or do you have to loop through the
> schema using ANALYZE TABLE tablename VALIDATE STRUCTURE CASCADE?
>
> Thanks
>
> Scott
Why not just write a little script ?
set head off
spool valid_schema.sql
select 'analyze table '||owner||'.'||table_name||' validate structure
cascade;'
from dba_tables
where owner = upper('&your_owner')
/
spool off
@valid_schema
I figure you get the idea Received on Tue Feb 24 2004 - 14:12:59 CST