How to import Oracle 10 GB Data to Oracle 9i?

Source: Internet
Author: User
Generally, it is not a problem to import data from a lower version to a later version. The trouble is to import data from a later version to a lower version. Before Oracle9i, EXP/IMP between Oracle versions can be solved through the following methods:

1. Run catexp. SQL of the base version on the High Version database;

2. Use exp of a lower version to export data of a later version;

3. Use the lower-version IMP to import the database to the database of the actual version;

4. Run the catexp. SQL script in the later version of the database.

But in 9i, the above method cannot solve the problem. If you use the base version exp/IMP directly, the following error occurs:

EXP-00008: Oracle error % lu encountered

ORA-00904: Invalid column name

This is a published bug that can be solved only after oracle10.0. The bug number is 2261722. You can go to Metalink to view details about this bug.

Bug is a bug. We still need to do our work. We should solve the bug by ourselves before we have Oracle Support. Execute the following SQL statement in Oracle9i to recreate the exu81rls view.

Create or replace view exu81rls

(Objown, objnam, policy, polown, polsch, polfun, mongots, chkopt, enabled, spolicy)

As select U. Name, O. Name, R. pname, R. pfschma, R. ppname, R. pfname,

Decode (bitand (R. stmt_type, 1), 0, '', 'select ,')

| Decode (bitand (R. stmt_type, 2), 0, '', 'insert ,')

| Decode (bitand (R. stmt_type, 4), 0, '', 'Update ,')

| Decode (bitand (R. stmt_type, 8), 0, '', 'delete ,'),

R. check_opt, R. enable_flag,

Decode (bitand (R. stmt_type, 16), 0, 0, 1)

From user $ U, OBJ $ o, RLS $ R

Where U. User # = O. Owner #

And R. OBJ # = O. OBJ #

And (uid = 0 or

Uid = O. Owner # Or

Exists (select * From session_roles where role = 'select _ catalog_role ')

)

/

Grant select on SYS. exu81rls to public;

/

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.