The stream has been disabled-the partitions of these indexes are unavailable.

Source: Internet
Author: User

Today, I used hibernate to access the oracle database and found a problem;
Java code
<Span style = "font-size: small;"> icacert IcaCaCert = icaCaCert. findByCertSerialNumber (certSerial); </span>
 
An exception is reported: the stream is disabled.

Looking at the database, we found that there is a LONG text field of the type: LONG (oracle-specific type, equivalent to mysql longtext)

So I will change this type to ask about the clob type (irreversible)
SQL code
<Span style = "font-size: small;"> alter table ICA_CA_CERT modify SIGN_BUF_P7 clob; </span>
When you try again, there is no stream closed exception, but a new exception occurs: partitions of indexes such as ITRUSCA. ICA_CA_CERT_USER_ID_IND are unavailable.

The original table has an index. After I change the type, the index is incorrect;

Re-indexing to solve the problem;

SQL code
<Span style = "font-size: small;"> alter index ITRUSCA. ICA_CA_CERT_USER_ID_IND rebuild online; </span>

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.