Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
Home/ Questions/Q 5062
Next
In Process

Oraask Latest Questions

Question
albert
  • 0
  • 0
albertExplorer
Asked: May 2, 20172017-05-02T09:54:08+03:00 2017-05-02T09:54:08+03:00In: Oracle SQL

ORA-12015: cannot create a fast refresh materialized view from a complex query

  • 0
  • 0

I have created materialized view successfully but when i am trying to add filter condition on that materialized view along with refresh fast clause i’m getting this error:

ORA-12015: cannot create a fast refresh materialized view from a complex query

this my regular sample script of my mv:

[code]
create materialized view mv
build immediate
refresh fast
as
select
t1.AppId,
t1.LineOfBusiness,
t1.ClientId
from
t1,
t2,
t3,
t4
where
t2.AppId = t1.AppId and
t4.Brand(+) = t2.Brand and
t4.Account(+) = t2.Account and
t3.ProfileId(+) = t1.ProfileId
group by
t1.AppId,
t1.LineOfBusiness,
t1.ClientId;
[/code]

now i want to filter by:

[code]
t1.ClientId > 0
[/code]

how to solve this.

 

thanks in advance.

complex querymaterialized viewORA-12015refresh fastsql
1
  • 1 1 Answer
  • 3k Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    Related Questions

    • How to get Column Names from a Table in Oracle
    • What are the different types of case manipulation functions available in Oracle SQL
    • What is the use of ADD, DROP and MODIFY Commands
    • What are the differences between SQL and PL/SQL in Oracle
    • What is the use of LIMIT and OFFSET in SQL

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. Hassan AbdElrahman
      Hassan AbdElrahman Master Oracle ACE Pro ♠ | Oracle Senior ERP Technical Consultant
      2018-09-08T20:49:12+03:00Added an answer on September 8, 2018 at 8:49 pm

      Hello Albert,

      generally this the explanation for that error :

      ORA-12015: cannot create a fast refresh materialized view from a complex query
      Cause: Neither ROWIDs and nor primary key constraints are supported for complex queries.
      Action: Reissue the command with the REFRESH FORCE or REFRESH COMPLETE option or create a simple
      materialized view.

      also to Diagnosing ORA-12015 fast refresh materialized view / complex queries that’s depend on the database version there is some restrictions ex:

        Oracle10g – 10.2
      ——————–

      Fast refreshable materialized views must be based on master tables, master materialized views, or synonyms of master tables
      or master materialized views. Complete refresh must be used for a materialized view based on a view.

       

      for further details about diagnosing refer to : Note.179466.1

      hope this helpful.

        • -1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Adv 250x250

    Explore

    • Categories
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Dev Tools
      • Online Compiler
      • Base64 Converter
    • Wiki
      • SQL Tutorials
      • Java Tutorials
      • Python Tutorials
      • JavaScript Tutorials

    Footer

    Oraask

    About

    Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

    About Us

    • About Us
    • Contact Us

    Legal Stuff

    • Privacy Policy
    • Terms & Conditions

    Follow

    Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

    © 2019 Oraask. All Rights Reserved
    With Love by Oraask.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.