×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Materialized View: expression not supported for query rewrite error

Materialized View: expression not supported for query rewrite error

Materialized View: expression not supported for query rewrite error

(OP)
Hi,

I'm trying to create a very simple materialized view, basically a "select <column> from table". Here it is:

CREATE MATERIALIZED VIEW REGISTRANT_MV
BUILD IMMEDIATE
USING INDEX
REFRESH FAST ON DEMAND START WITH sysdate+2/1440 NEXT sysdate + 10/1440
ENABLE QUERY REWRITE
AS
SELECT registrant_id, person_id, first_name, last_name, badge_name, address_1,
address_2, city, state_prov, postal_cd, email, phone, fax, registration_dt,
cancellation_dt, guest_of, create_dt, create_by, update_dt, update_by, company,
country, preregistration, badge_city, badge_state_prov, badge_role, badge_role_text,
maps_import_fl, mobile_phone, kw_commercial_int_fl, kw_luxury_int_fl
FROM REGISTRANT@univ_qa;

I've created a plan vanilla materialized view log:
CREATE MATERIALIZED VIEW LOG ON REGISTRANT;

And, I'm receiving the ORA-30353 expression not supported for query rewrite. I've read up on this error but the indications that I've seen from googling don't seem to apply to this select statement.
Any help/thoughts would be appreciated!

Thanks!

RE: Materialized View: expression not supported for query rewrite error

Oracleuser,

I notice that you're using a database link to get your information from a different database.
I don't know, but I suspect that this might be something to do with the problem.

Could you copy some sample data to a table in the local database, attempt to make the MV, and see what happens?

Regards

T

RE: Materialized View: expression not supported for query rewrite error

unless query rewrite is enabled in the database then you can not specify the "ENABLE QUERY REWRITE" in your MV command. Remove it and it will work fine.

Bill
Lead Application Developer
New York State, USA

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close