ORA-02069: global_names parameter must be set to true for this operation

Source: Internet
Author: User

During data testing today, you need to call dblink in the local database to insert the data to another database. The ID column uses the auto-incrementing sequence, and then promptsORA-02069: Global_names parameter must be set to true for this operation error. Online Search generally means that global_names must be set to true. The default value is false in Oracle installation, however, changing to true will become inconvenient when dblink is used. The two Sid must be set to the same name. The two databases have been running for several years at the customer's end, and manyProgramOnce the SID is changed, this method cannot be used. Finally, it was found that when data was inserted to a remote database, the sequence could not call the local sequence, and the remote sequence must also be called.

Original SQL: insert into testtig @ link173 (ID, uname, uage) values (z_seq.nextval, 'z', 22 );

After changing the SQL statement, insert into testtig @ link173 (ID, uname, uage) values (z_seq.nextval @ link173, 'z', 22 );

Insert OK.

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.