Oracle PLSQL export data table xx contains one or more CLOB columns Solution

Source: Internet
Author: User

Oracle PLSQL export data table xx contains one or more CLOB columns Solution

When Oracle exports data, the Table xx contains one or more CLOB columns error occurs. This indicates that the Table contains multiple clob types and cannot be exported.

There are three PLSQL export methods. The first method is to export a. dmp file. It is a binary file and has good versatility and can be used across platforms. The second method is to export the. SQL file. The advantage is that you can see the SQL statement, which is suitable for small data volumes and cannot contain large fields (blob, clob, and long ). The third method is to export the. PVDF file, which is a special plsql format. Only plsql knows it, and other compilers do not know it.

If you encounter this problem, you can use the first method to export the content.

 

Foreign key conflicts may occur during import. In this case, we need to block the foreign key constraints, import them, and then enable the foreign key constraints.

SQL that shields Foreign keys:

Select 'alter table' | table_name | 'Disable constraint' | constraint_name | ';' from user_constraints where constraint_type = 'R'

SQL statement for restoring foreign key constraints:

Select 'alter table' | table_name | 'Enable constraint' | constraint_name | ';' from user_constraints where constraint_type = 'R'

The above script only Concatenates the foreign key operation of the corresponding table and runs the query results.

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.