暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

analyze on each object to check is the are corrupted

许玉冲 2024-12-16
42


SQL>Connect / as sysdba

SQL>oradebug setmypid
SQL>oradebug unlimit
SQL>@$ORACLE_HOME/rdbms/admin/utlvalid.sql

-- By running utlvalid.sql (if not exist, a table named invalid_row will be created and that is needed to run
-- Analyze on partition table as below syntax show.
-- You might get ora-955 if the invalid table already exist, ignore it and continue with the Analyze command.

For Index:

SQL>Analyze Index <Owner>.<Index_name> Validate Structure Online;

For Parition/Subpartition Index:

SQL> analyze Index <Owner>.<Index_name> partition (<partition_name>) validate structure online;
SQL> analyze Index <Owner>.<Index_name> subpartition (<subpartition_name>) validate structure online;


For Cluster:

SQL>Analyze Cluster <Owner>.<Cluster_name> validate structure cascade;

For non-partition table

SQL>Analyze Table <OWNER>.<TABLE_NAME> Validate Structure Cascade Online;

SQL>Analyze Table <OWNER>.<TABLE_NAME> Validate Structure Online;



For Partition table
SQL> Analyze table <OWNER>.<TABLE_NAME> partition (<partition_name>) validate structure cascade Online into invalid_rows;

SQL> Analyze table <OWNER>.<TABLE_NAME> validate structure cascade Online into invalid_rows;




SQL> oradebug tracefile_name
This last command will tell the name of the trace and its location.
Please send us the trace.


Upload following trace file

/oracle/pc52c/diag/rdbms/pc52c/pc52c/trace/pc52c_ora_5561.trc:

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论