The SQL script running 10 Gb in Oracle9i environment is incompatible.

Source: Internet
Author: User
There is no problem running in Oracle10g environment, but in Oracle9i execution, it will be inexplicably reported ORA-22905: cannotaccessrowsfromanon-neste

There is no problem running in Oracle 10g environment, but in Oracle 9i execution, it will be inexplicably reported ORA-22905: cannot access rows from a non-neste

There is no problem in running Oracle 10g environment, as shown below:

For c in (SELECT * from table (pkg_1__common.f_split (P_IN_IDS _, ',') LOOP
.... Omitted here
End loop;

However, in Oracle 9i execution, the ORA-22905: cannot access rows from a non-nested table item cannot access rows from non-nested table items.

Analysis:

The f_split function in the pkg_1__common package returns the type-type custom array type_varchar_array.

Check on the Internet: cast conversion is required under oracle9i.

For c in (SELECT * from table (CAST (pkg_assist_common.f_split (P_IN_IDS _, ',') AS TYPE_VARCHAR_ARRAY) LOOP
.... Omitted here
End loop;

After re-compilation, no error is reported. Now the problem is solved. Record it here.

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.