Create a materialized view to produce ORA-600 [Ksmovrflow], [Kkznxddl.begin] Error resolution

Source: Internet
Author: User
Tags error code
Create | error | resolve | view
Nightly test materialized view replication, the master site in the test environment is ORACLE10G,MV site is Oracle9201, and when creating a quick-refreshed materialized view on MV site, the report ORA-600 error.

Sql> CREATE materialized VIEW Kamus. ACCOUNT2004 REFRESH FAST with PRIMARY KEY as SELECT * from Kamus. ACCOUNT2004@ORCL;

CREATE materialized VIEW Kamus. ACCOUNT2004 REFRESH FAST with PRIMARY KEY as SELECT * from Kamus. Account2004@orcl

Ora-00600:internal error code, arguments: [Ksmovrflow], [Kkznxddl.begin], [], [], [], [], [], []

Check Metalink, found to be a bug, this bug only occurs when you create a materialized view based on oracle10g in Oracle8 or 9.

Reason:

The name of the primary key was explicitly specified when the primary key was created in ORACLE10G's master table. As follows

ALTER TABLE TABLE_NAME ADD CONSTRAINT < constraint name> primary KEY (< col>);

Workaround:

Delete this primary key, and then create a primary key that does not specify the name, which is automatically named by Oracle, as follows

ALTER TABLE ACCOUNT2004 add primary key (Occurtime, Acctid, CurrencyID);

The resulting primary key name becomes sys_cxxxx.

Then recreate the materialized view on MV site, successful.





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.