Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MV causing ORA -1417 error..

udnappJan 19 2009 — edited Feb 23 2009
Our customer is encountering a UI exception when accessing a specific page in
our application. We have determined the source of the problem, but do not
understand why it is occurring. A self-contained, generic replication
scenario has been created for your needs.

1. Run the four create table statements
2. The select statement can be executed successfully
3. Run the create materialized view statement.
4. Running the select statement now results in an ORA -1417 error.
5. If the MV is dropped, the select statement is run successfully.

The MV's select statement was written such that it shouldn't be used when executing the 'SELECT t0.*' statement.

I understand what normally causes a 1417 error, but this statement does not
fall into that category. The question we have is why would a MV, with a
select statement that does not even exist in the application, cause a 1417
error on a select statement that does not violate the outer join principles.

The select query is as follows:


SELECT t0.*
@ FROM table1 t0,
@ table2 t1,
@ table2 t3,
@ table3 t2,
@ table4 t4
@ WHERE t0.e = t1.J(+)
@ AND t1.J = t2.C(+)
@ AND t1.J = t4.E(+)
@ AND t2.C = t3.J(+)
@ .
@ CREATE MATERIALIZED VIEW mv1
@ ENABLE QUERY REWRITE
@ AS SELECT description FROM table2
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2009
Added on Jan 19 2009
2 comments
1,213 views