Bookmark Fixed font Go to End Monitor Bug
Bug No. 2980403
Filed 28-MAY-2003 Updated 18-OCT-2004
Product Oracle Server - Enterprise Edition Product Version 9.2.0.3.0
Platform HP-UX PA-RISC (64-bit) Platform Version No Data
Database Version 9.2.0.3.0 Affects Platforms Generic
Severity Severe Loss of Service Status Development to Q/A
Base Bug N/A Fixed in Product Version 9.2.0.3.99
Problem statement:
ORA-4045 ORA-942 ON FIRST COMPLETE REFRESH OF A MATERIALIZED VIEW USING DBLINK
*** 05/28/03 08:03 am ***
TAR:
----
PROBLEM:
--------
First complete refresh of a materialized view using dblink fails with errors
ORA-4045 & ORA-942 running Oracle 9.2.0.3.0.
DIAGNOSTIC ANALYSIS:
--------------------
The problem is reproducible in-house on Oracle 9.2.0.3.0 but not on ORACLE 8.1.7.4.0 or 9.0.1.4.0. Please see the testcase shown below.
In Oracle 8i and 9.0.1.4, the errors do not occur when SNAP_OWNER doesn't have SELECT privilege and only the link account SNAP_USER has the privilege.
WORKAROUND:
-----------
Grant select privilege to the user, SNAP_OWNER, that owns the database link.
RELATED BUGS:
-------------
REPRODUCIBILITY:
----------------
The problem is reproducible in-house and customer's site
When runnin Oracle 9.2.0.3.0.
The problem does not occur on Oracle 8.1.7.4.0 and 9.1.0.4.0.
TEST CASE:
----------
o On stsun7 machine
setevn ORACLE_HOME /utils/9.2.0
setenv ORACLE_SID FT9202B
sqlplus '/ as sysdba'
startup
connect system/manager
o Run the script on an Oracle 9.2.0.3 database (not migrated).
SQL> spool /testcase/3102838.999/ft9202b_testcase.lis1
SQL> alter session set events '10046 trace name context forever, level 12';
SQL> EXEC DBMS_SNAPSHOT.REFRESH('snap_owner.ss_usages','C');
ERROR at line 1:
ORA-04045: errors during recompilation/revalidation of SNAP_OWNER.SS_USAGES
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 794
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 851
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 832
ORA-06512: at line 1
SQL>EXEC DBMS_SNAPSHOT.REFRESH('snap_owner.ss_usages','C');
PL/SQL procedure successfully completed.
SQL> show user
USER is "SNAP_OWNER"
STACK TRACE:
------------
SUPPORTING INFORMATION:
-----------------------
ft9202b_create.sql Script to reproduce the problem on Oracle
9.2.0.3.0, FT9202B.WORLD.
ft9202b_ora_23177.trc: SQL trace for first complete refresh with errors shown above.
ft9202b_ora_23242.trc: SQL trace for second refresh, without errors.
ft9202b.lis: Spool result of the sql script
ft9202b_create.sql (first complete refresh failed)
ft9202b_testcase3.lis: Second complete refresh works
ft9202b_testcase2.lis: SELECT * FROM master.usages@FT9202B.WORLD@TST;
24 HOUR CONTACT INFORMATION FOR P1 BUGS:
----------------------------------------
DIAL-IN INFORMATION:
--------------------
IMPACT DATE:
------------
asap
*** 06/12/03 10:21 pm ***
Backport: Yes to 9.2.x
Forward Merge:N/A (As the problem doesn't exists in 10i. qsmqsub logic is totally rewritten)
Rediscovery Information:
Testcase:
Set compatible parameter to 9.2
CREATE USER master IDENTIFIED BY master ;
GRANT CONNECT, RESOURCE to master;
CREATE USER snap_user IDENTIFIED BY snap_user;
GRANT CONNECT to snap_user;
CREATE USER snap_owner IDENTIFIED BY snap_owner;
GRANT CONNECT,RESOURCE to snap_owner;
GRANT CREATE SNAPSHOT to snap_owner;
GRANT ALTER SYSTEM to snap_owner;
CONNECT master/master;
CREATE TABLE usages
(
usage VARCHAR2(40) NOT NULL,
usage_desc VARCHAR2(2000) NOT NULL
);
CREATE SNAPSHOT LOG ON usages WITH ROWID;
GRANT SELECT ON usages to snap_user;
GRANT SELECT ON MLOG$_usages to snap_user;
CONNECT snap_owner/snap_owner;
CREATE DATABASE LINK inst1@local
CONNECT TO snap_user identified by snap_user
using 'inst1';
CREATE SNAPSHOT ss_usages REFRESH WITH ROWID
AS SELECT * FROM master.usages@inst1@local;
EXEC DBMS_SNAPSHOT.REFRESH('snap_owner.ss_usages','C');
ORA-4045
ORA-942
Workaround: None
Release Notes:
]] ORA-942 is not raised during complete refresh of mview using dblink.
*** 06/12/03 10:42 pm ***
Note :
-- Please raise a backport request for 9.2 code line.
-- To fix the CT issue, please request for merge patch of bug 2869421 &
2980403.
.
Copyright (c) 1995,2000 Oracle Corporation. All Rights Reserved. Legal Notices and Terms of Use.
Partager