on 2015 Mar 21 8:35 PM
Hi ,
We executed rebuild index for a big table, Index size was 32 GB.
Rebuild index was running almost 10 hrs but did not complete and was showing row lock in in ST04 So we canceled rebuild index job in SM37.
Now every time we are running update stats on that table, It is failing with below error -
BR0301E SQL error -20000 at location stats_tab_collect-69, SQL statement:
'EXECUTE stmt_1d'
'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPR3"', TABNAME => '"DBTABLOG"', ESTIMATE_PERCENT => 0.001, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', DEGREE => NULL, CASCADE => TRUE, NO_INVALIDATE => FALSE); END;'
ORA-20000: this index object "SAPR3"."DBTABLOG~0" is being online built or rebuilt
ORA-06512: at "SYS.DBMS_STATS", line 24301
ORA-06512: at "SYS.DBMS_STATS", line 24352
ORA-06512: at line 1
BR0886E Collecting statistics failed for table SAPR3.DBTABLOG
BR0280I BRCONNECT time stamp: 2015-03-21 13.06.18
BR0879I Statistics checked for 0 tables
BR0878I Number of tables selected to collect statistics after check: 0
BR0880I Statistics collected for 0/0 tables/indexes
BR1308E Collection of statistics failed for 1/0 tables/indexes
BR0806I End of BRCONNECT processing: ceqcqkvr.sta 2015-03-21 13.06.18
BR0280I BRCONNECT time stamp: 2015-03-21 13.06.18
BR0804I BRCONNECT terminated with errors
We checked there is no process or job running for index rebuild but it is still showing index is under rebuild.
Please suggest what could be reason of this and how can we solve it.
Regards,
Shivam
Hello Shivam,
Please check that if note 682926 - Composite SAP note: Problems with "create/rebuild index" can help you or not.
Regards,
Ning Tong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shivam,
Please try solution 1 in SAP note 682926, please try multiple times of the clean script.
Best regards,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
Checked note, Can you let me know how to execute these OSS notes command -
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
Hi Shivam,
unfortunately you have not provided the object state, but you can cross-check this on your own.
SQL> select flags from ind$ where obj#= <OBJECT_ID>;
Failed index rebuilds are usually cleared up by SMON every 60 minutes, but it only works if there are no on-going transaction against the corresponding base table / objects. In your case table DBTABLOG is affected, which can be written permanently (depends on detailed SAP settings).
However you can also clear up this stuff manually with help of PL/SQL procedure DBMS_REPAIR.ONLINE_INDEX_CLEAN.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Thank you for your reply, Could not mention object state as was not sure on how to find it.
I am running Update stats on table DBSTATLOG and its failing saying index under built.
We have row deletion activity going on this table, So this might be reason of not clearing index by SMON.
Can you let me how can we execute this SQL Procedure and if these is any impact of running this procedure on running system.
Also please suggest how can I find object it for index.
SQL> select flags from ind$ where obj#='DBTABLOG~0';
select flags from ind$ where obj#='DBTABLOG~0'
*
ERROR at line 1:
ORA-01722: invalid number
Regards,
Shivam
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.