Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: DB stats fail - ORA-20000: this index object is being online built or rebuilt

$
0
0

Hi James,

 

Checked note, Can you let me know how to execute these OSS notes command -

 

  1. set serveroutput on

 

      begin

 

        if dbms_repair.online_index_clean() then

 

          dbms_output.put_line('All fragments cleaned');

 

        else

 

          dbms_output.put_line('DML Locks on some tables.');

 

          dbms_output.put_line('Not all fragments cleaned. ');

 

          dbms_output.put_line('Try again later');

 

        end if;

 

      end;

 

Should we put these lines in text file then save as .SQL and execute or what is the process.

 

And Will this process be fast or it will execute long time and can impact running system.

 

Some more information -

 

SQL> select NAME, OBJ# from obj$ where NAME = 'DBTABLOG~0';

 

 

NAME                                 OBJ#

------------------------------ ----------

DBTABLOG~0                        1622362

 

 

 

SQL> select flags from ind$ where obj#='1622362';

 

 

     FLAGS

----------

      2594

 

Please suggest.

 

Regards,

Shivam


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>