Catupgrd.sql Fails With 3113 Creating SYS.KU$_XMLSCHEMA_VIEW[ID 603714.1]

10.2.0.4 Catupgrd.sql Fails With ORA-03113 Creating SYS.KU$_XMLSCHEMA_VIEW [ID 603714.1]

In this Document
Symptoms
Cause
Solution
References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later [Release: 10.2 and later ]
Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later [Release: 10.2 and later]
Information in this document applies to any platform.

Symptoms

-- Problem Statement:

Patching the production database from 10.2.0.3.to 10.2.0.4 after starting the database in upgrade mode.
While running the catupgrd.sql script, the upgrade fails reproducibly at the following statement.

SQL> create or replace force view sys.ku$_xmlschema_view of sys.ku$_xmlschema_t
2 with object identifier (schemaoid) as
3 select '1','0',
4 u.user#, u.name, extractvalue(VALUE(s), '/schema/@x:schemaURL',
5 'xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x="http://xmlns.oracle.com/xdb"'),
6 s.sys_nc_oid$,
7 case when under_path(value(r), '/sys/schemas/PUBLIC') = 1
8 then 0 else 1 end,
9 s.getclobval(), -- unstripped
10 xdb.dbms_xdbutil_int.XMLSchemaStripUsername(XMLTYPE(s.getClobVal()),
11 u.name) -- stripped
12 from sys.user$ u, xdb.xdb$schema s, xdb.xdb$resource r
13 where extractvalue(VALUE(r), '/Resource/XMLRef') = ref(s)
14 and u.user# = sys_op_rawtonum(extractvalue(VALUE(r),'/Resource/OwnerID'))
15 AND (SYS_CONTEXT('USERENV','CURRENT_USERID') IN (u.user#, 0) OR
16 EXISTS ( SELECT * FROM session_roles
17 WHERE role='SELECT_CATALOG_ROLE' ))
18 /
create or replace force view sys.ku$_xmlschema_view of sys.ku$_xmlschema_t
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel


Also when running the relevant select separately, it fails with the same ORA-3113 error.



SQL> select a.name "OWNER",
2 b.name "NAME",
3 b.obj# "OBJ#"
4 from sys.user$ a,
5 sys.obj$ b
6 where b.name in ('XDB$NMSPC_ID', 'XDB$QNAME_ID', 'XDB$PATH_ID')
7 and a.user# = b.owner#;

OWNER NAME OBJ#
----- ------------ -----
XDB XDB$PATH_ID 41341
XDB XDB$QNAME_ID 41340
XDB XDB$NMSPC_ID 41339


Cause

The following event was set as a workaround for Bug 4684209 which is fixed in patch set 10.2.0.4

event='10195 trace name context forever, level 1'

Solution

-- To implement the solution, please execute the following steps::

1. Remove the following event from the parameter file as the workaround for Bug 4684209 is no longer needed with patch set 10.2.0.4

event='10195 trace name context forever, level 1'


2. Execute the 10.2.0.4 catupgrd.sql script. again.

References

BUG:4684209 - ORA-7445 [EVAOPN2] RUNNING A QUERY WITH ORDER BY AGAINST A VIEW
BUG:5161782 - ORA-3113 ON VIEW SYS.KU$_XMLSCHEMA_VIEW

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17252115/viewspace-742693/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17252115/viewspace-742693/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值