Because the system load is high and the index rebuilding on the Online system is too slow, kill the session directly, prepare to delete the index, and then recreate it. At this time, it is found that the session cannot be deleted or rebuilt. SQLdropindexcall. ind_id; dropindexcall. ind_id * ERRORatline1: ORA-08104: thisindexobject179685isbeingonlin
Because the system load is high and the index rebuilding on the Online system is too slow, kill the session directly, prepare to delete the index, and then recreate it. At this time, it is found that the session cannot be deleted or rebuilt. SQL> drop index call. ind_id; drop index call. ind_id * ERROR at line 1: ORA-08104: this index object 179685 is being onlin
Because the system load is high and the index rebuilding on the Online system is too slow, kill the session directly, prepare to delete the index, and then recreate it. At this time, it is found that the session cannot be deleted or rebuilt.
SQL> drop index call. ind_id;
Drop index call. ind_id
*
ERROR at line 1:
ORA-08104: this index object 179685 is being online built or rebuilt
SQL> alter index call.ind_id rebuild;
alter index call.ind_id rebuild
*
ERROR at line 1:
ORA-08104: this index object 179685 is being online built or rebuilt
SQL> alter index call.ind_id rebuild online;
alter index call.ind_id rebuild online
*
ERROR at line 1:
ORA-08104: this index object 179685 is being online built or rebuilt
Reported A ora-08104 error, found several articles on mos
Session Was Killed During The Rebuild Of Index ORA-08104 (Document ID 375856.1)
CAUSE
A session failure during an online index rebuild can leave the data dictionary in a state reflecting a rebuild is ongoing when in fact it is not.
SOLUTION
The dbms_repair.online_index_clean function has been created to cleanup online index rebuilds. Use the dbms_repair.online_index_clean function to resolve the issue.
* Please note if you are unable to run the dbms_repair.online_index_clean function it is due to the fact that you have not installed the patch for Bug 3805539 or are not running on a release that includes this fix. The fix for this bug is a new function in the dbms_repair package called dbms_repair.online_index_clean, which has been created to cleanup online index [[sub]partition] [re]builds. New functionality is not normally introduced in patchsets; therefore, this is not available in a patchset but is available in 10gR2.
- Check your patch list to verify the database is patched for Bug 3805539 using the following command and patch for the bug if it is not listed:
opatch lsinventory -detail
The reason for this is that the data dictionary information conflicts with the actual information. The index record in the data dictionary is being rebuilt, but this is not the case.
The following small fish manually simulate the start and end of the fault:
SQL> create table tab01 as select * from dba_tab_col_statistics;
Table created.
SQL> insert into tab01 select * from tab01;
179626 rows created.
SQL> /
359252 rows created.
SQL> commit;
Commit complete.
SQL> select spid from v$process where addr in (select paddr from v$session where sid=userenv('sid'));
SPID
------------
24990
Kill the ospid OF THE SESSION
SQL> create index ind_test on tab01 (table_name, column_name, num_nulls) online;
Create index ind_test on tab01 (table_name, column_name, num_nulls) online
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
This index cannot be deleted or rebuilt.
SQL> conn xiaoyu/xiaoyu
Connected.
SQL> drop index ind_test;
Drop index ind_test
*
ERROR at line 1:
ORA-08104: this index object 125197 is being online built or rebuilt
The information of this index is recorded in the data dictionary.
SQL> select status from user_indexes where index_name = 'ind _ test ';
STATUS
--------
VALID
SQL> select object_id from user_objects where object_name='IND_TEST';
OBJECT_ID
----------
125197
After oracle 10GR2, we can use dbms_repair.online_index_clean to clear it directly. You do not need to restart the database or modify the dictionary table ind $ at a high cost.
SQL> DECLARE
2 RetVal BOOLEAN;
3 OBJECT_ID BINARY_INTEGER;
4 WAIT_FOR_LOCK BINARY_INTEGER;
5 BEGIN
6 OBJECT_ID: = 125197;
7 WAIT_FOR_LOCK: = NULL;
8 RetVal: = SYS. DBMS_REPAIR.ONLINE_INDEX_CLEAN ();
9 COMMIT;
10 END;
11/
RetVal: = SYS. DBMS_REPAIR.ONLINE_INDEX_CLEAN ();
*
ERROR at line 8:
ORA-06550: line 8, column 11:
PLS-00201: identifier 'sys. DBMS_REPAIR 'must be declared
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored
Use sysdba to log on.
SQL> conn/as sysdba
Connected.
SQL> DECLARE
2 RetVal BOOLEAN;
3 OBJECT_ID BINARY_INTEGER;
4 WAIT_FOR_LOCK BINARY_INTEGER;
5 BEGIN
6 OBJECT_ID: = 125197;
7 WAIT_FOR_LOCK: = NULL;
8 RetVal: = SYS. DBMS_REPAIR.ONLINE_INDEX_CLEAN ();
9 COMMIT;
10 END;
11/
PL/SQL procedure successfully completed.
Log on again and find that the index information of the dictionary table has been cleared. You can re-create the index.
SQL> conn xiaoyu/xiaoyu
Connected.
SQL> select object_id from user_objects where object_name = 'ind _ test ';
no rows selected
SQL> select object_id from user_objects where object_name='IND_TEST';
no rows selected
SQL> drop index ind_test;
drop index ind_test
*
ERROR at line 1:
ORA-01418: specified index does not exist
Original address: online index create fail caused ora-08104, thanks to the original author to share.