Oracle 11g prompts a solution for "ORA-01788: require connect by clause in this query block" when creating a remote materialized view

Source: Internet
Author: User


A solution that prompts "ORA-01788: This query block requires a connect by clause" when creating a remote materialized view on Oracle 11g maps a table on the remote server to a local materialized view, use the following statement: www.2cto.com ---- create database link lnk connect to user1 identified by pwd1 using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = 172.17.211.114) (PORT = 1521) (CONNECT_DATA = (SERVER = DEDICATED) (SID = REMOTEDB) '; -- create a materialized view, update automatically every two days; CREATE MATERIALIZED VIEW DEPARTMENT R Efresh force start with sysdate next sysdate + 2 with primary key as select * FROM user1.DEPARTMENT @ lnk WHERE 1 = 1; Result: "ORA-01788: the connect by clause is required in this query block ". Google cannot be accessed. Baidu search is too boring. Bing is used to get clues. Solution: execute the following statement in the local database: alter system set "_ ALLOW_LEVEL_WITHOUT_CONNECT_BY" = true scope = both OK! Source http://www.cnblogs.com/downmoon/archive/2012/12/14/2817939.html
 

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.