Oracle 9i contains the Connect by clause query error and solution after porting to Oracle 10g

Source: Internet
Author: User

From:

Http://cache.baidu.com/c? M = Response & p = Response & newp = Response & user = baidu & fm = SC & query = java % 2 Esql % 2 ESQLException % 3A + ORA % 2D01788% 3A + % B4 % CB % B2 % E9 % D1 % AF % BF % E9 % D6 % D0 % D2 % AA % C7 % F3 + CONNECT + BY + % D7 % D3 % BE % E4 & qid = c7e8c3cf05836eb1 & p1 = 2

Error Message:

ORA-01788:The connect by clause is required in this query block.

Description:An error occurred while executing the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details:System.Data.OracleClient.OracleException: ORA-01788:The connect by clause is required in this query block.

Source Error:

An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.

Stack Tracing:

[OracleException (0x80131938): ORA-01788:The connect by clause is required in this query block.
]
System.Data.OracleClient.OracleConnection.CheckError (OciErrorHandle errorHandle, Int32 rc) + 203
System.Data.OracleClient.OracleCommand.Execute (OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor & rowidDescriptor, ArrayList & resultParameterOrdinals) + 1018
System.Data.OracleClient.OracleCommand.Execute (OciStatementHandle statementHandle, CommandBehavior behavior, ArrayList & resultParameterOrdinals) + 25

Solution:

Run the following statement as a dba::

Alter system set "_ allow_level_without_connect_by" = true scope = both

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.