.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
fast refresh of MV based on a view

fast refresh of MV based on a view

2006-05-12       - By jaromir nemec
Reply:     1     2  

Hi,

I try to define a MV based on a (very simple) view. There are some
problems with fast refresh (complete refresh works fine) ? see below.
Can anybody explain me why is fast refresh not possible?
There are no sysdates, rownum1, joins, unions etc. where the fast refresh
doesn't work on the documented way!
Interestingly if the MV accesses the source view over a dblink the error
message is slightly different:
ORA-12014 (See ORA-12014.ora-code.com): table 'VV' does not contain a primary key constraint


Thanks,

Jaromir

Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit


SQL> create table tt (i number primary key);

Table created.

SQL> create view vv as select * from tt;

View created.

SQL> CREATE MATERIALIZED VIEW LOG ON  tt  WITH primary key, rowid;

Materialized view log created.

SQL> create materialized view mm
 2  build immediate
 3  refresh  fast      on demand
 4  as
 5  select     * from vv;
select  * from vv
              *
ERROR at line 5:
ORA-12015 (See ORA-12015.ora-code.com): cannot create a fast refresh materialized view from a complex
query


--
http://www.freelists.org/webpage/oracle-l