Home
All Oracle Error Codes
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

materialized view ON COMMIT REFRESH - 942 error

Tony Adolph

2005-12-28

Hi all,

I've been reading this guide / that guide trying to get this problem fixed,
but have failed :-( So I've created a simple example to illustrate my error
(lack of knowledge).

My master table, xxx is owned by billing_api and I want to replicate this to
user tony. Both schemas (in my example) are on the same database. I can't
create a fast refresh on commit MV. See the following:

Version: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit

The problem:

connect billing_api

create table xxx (id number not null, val varchar2(10));
alter table xxx add constraint pk_xxx primary key (id) using index;
grant select on xxx to tony;

create materialized view log on xxx;

begin
 for i in 1 .. 3 loop
   insert into xxx (id,val) values (i, 'val'||i);
 end loop;
end;
/

select * from xxx;

ID                         VAL
-------------------------------------- ----------
1                          val1
2                          val2
3                          val3

connect tony

select PRIVILEGE from user_sys_privs;
CREATE TABLE
CREATE SNAPSHOT
ON COMMIT REFRESH

select * from billing_api.xxx;
ID                         VAL
-------------------------------------- ----------
1                          val1
2                          val2
3                          val3

create materialized view xxx
build immediate
refresh fast on commit
as
select * from billing_api.xxx
/
18:37:16 ORA-00942: table or view does not exist


At this point I did a lot of RTFMing, but couldn't resolve the problem. I
then resulted to hacking and tried creating the MVLog with/without PK/rowid,
with/without INCLUDING NEW VALUES, with/without SEQUENCE. But am obviously
missing something key.

Any pointers would be appreciated. At the moment I'm just trying to get all
types of MVs working so that I can make a reasonably educated choice on how
to use them later on.

Any pointers to a good doc, would also be useful.

TIA
Cheers
Tony


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