Fix the index with status unusable and statusunusable

Source: Internet
Author: User

Fix the index with status unusable and statusunusable

Log On with the DBA permission and execute the following script.

Declare
-- Cursor pointing to the index of all UNUSABLE states
Cursor c is
Select index_name, owner
From dba_indexes
Where status = 'unusable ';

Owner dba_indexes.owner % type;
Index_name dba_indexes.index_name % type;
Begin
Open c;
Loop
Fetch c into index_name, owner;
Exit when c % notfound;

Execute immediate 'alter Index' | owner | '.' | index_name | 'rebuilt ';
End loop;
Close c;
End;


<Td class = "td_title"> Function checkIdentityCard (obj ){
If (obj. value. length! = 18 ){
Alert ('not 18 bits ');
}
}
 
HTTP Status 500-javalangIndexOutOfBoundsException: Index: 0, Size: 0

Obviously, the array you are using has a problem. Maybe your List is not empty, but list. size () = 0. If you want to get the first value, there is no such error. When using list. get (0);, You need to judge list! = Null & list. size ()! = 0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.