DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Error ORA-00928 when querying view through dblink

Threaded View

  1. #2
    Join Date
    Oct 2002
    Posts
    807
    Below is an 8.1.6 bug, but it might be worth trying on yours as well.
    1) Try disabling query rewrites.
    2) Try setting STAR_TRANSFORMATION_ENABLED = FALSE in your session then run the query.
    If it doesn't help, open a TAR.
    ===============================

    BUG 768478 The message "ORA-00928: missing SELECT keyword" can occur when Oracle cost-based optimization attempts to rewrite a query that contains a set operator (e.g. UNION, MINUS, or INTERSECT) with a materialized view. There are three workarounds: 1. Disable query rewrite with an "ALTER {SESSION|SYSTEM} DISABLE QUERY REWRITE" statement. 2. Use a NOREWRITE hint with all SELECT statements referenced by the set operator. 3. Use a REWRITE(mv) hint with all SELECT statements in the set operator to tell the optimizer to explicitly use a materialized view.
    Last edited by Axr2; 07-26-2004 at 04:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width