- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
8#
发表于 2012-7-25 10:30:09
ORA-00979+ dbkdaKsdActDriver + subquery =>
ODM FINDING:
Hdr: 13503320 11.2.0.3 RDBMS 11.2.0.3 VIRTUAL_COLUMN PRODID-5 PORTID-226 10277722
Abstract: ORA-979 WITH SCALAR SUBQUERY
*** 12/14/11 03:53 pm ***
----
PROBLEM:
--------
Customer has a query that fails on ORA-979 that used to work ok in 10.2.0.4
SQL is
select project_id,
respondent_date,
- (trunc(sysdate) - trunc(respondent_date)) lag_days,
p_count,
e_count
from (select m.project_id,
trunc(m.respondent_date) respondent_date,
(select count(*)
from respondent_cases rc
where rc.eldorado_project_id = m.project_id
and trunc(rc.respondent_date) =
trunc(m.respondent_date)
and trunc(rc.respondent_date) > trunc(sysdate) - 7)
p_count,
count(m.respondent_id) e_count
from motherlode m, p_admin.projects pr
where m.project_id = pr.project_id
and pr.status = 'ACTIVE'
--remove
and trunc(m.respondent_date) > sysdate - 7
group by m.project_id, trunc(m.respondent_date)) a
where p_count < e_count;
This is the same identical SQL fixed in bug 7439134
DIAGNOSTIC ANALYSIS:
--------------------
SQL used to work fine in 10.2.0.3 and returned ORA-979 in 10.2.0.4 so bug
7439134 was created to fix the issue on this SQL
Customer has patch 7439134 applied in 10.2.0.4 (fix in included in 11.2) but
the SQL now fails again in 11.2.0.3
The SQL fails for all OFE > 10.2.0.5
From the stack trace the SQL undergoes GBP but preventing it does not solve
the issue as well as preventing CBQT
WORKAROUND:
-----------
OFE=10.2.0.5, not acceptable for the customer
RELATED BUGS:
-------------
7439134
REPRODUCIBILITY:
----------------
11.2.0.3
TEST CASE:
----------
Uploaded, unzip TC.zip and run setup.sql
The TC returns few errors on the locked stats on the stattab, safe to ignore
STACK TRACE:
------------
skdstdst <- ksedst1 <- ksedst <- dbkedDefDump <- ksedmp
<- dbkdaKsdActDriver <- dbgdaExecuteAction <- dbgdaRunAction <-
dbgdRunActions <- dbgdProcessEventAct
<- ions <- dbgdChkEventKgErr <- dbkdChkEventRdbmsEr <- ksfpec <-
dbgePostErrorKGE
<- 1176 <- dbkePostKGE_kgsf <- kgeade <- kgeselv <- kgesecl0
<- qcuErroer <- qcuErroep <- erroep <- qecgoc <- qecsel
<- qecpqbcheck <- qecdrv <- kkqcttcalo <- kkqctdrvGBP <-
kkqgbpTravChkTran
<- qksqbApplyToQbcLoc <- qksqbApplyToQbcLoc <- qksqbApplyToQbc
<- kkqctdrvTD <- kkqgbpdrv
<- kkqdrv <- kkqctdrvIT <- apadrv <- opitca <- kksFullTypeCheck
<- rpiswu2 <- kksLoadChild <- kxsGetRuntimeLock <- kksfbc <-
kkspsc0
<- kksParseCursor <- opiosq0 <- kpooprx <- kpoal8 <- opiodr
<- ttcpip <- opitsk <- opiino <- opiodr <- opidrv
<- sou2o <- opimai_real <- ssthrdmain <- main <- start
尝试设置以下参数
alter session set "_complex_view_merging"=FALSE;
alter session set "_replace_virtual_columns"=false;
并在11.2中重试以上语句 |
|