Query = Error ORA-600
(Doc ID 2481204.1)
Last updated on FEBRUARY 15, 2019
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Information in this document applies to any platform.
The following error occurred in the alert log:
This error occurs when a query such as the following is run:
WHEN (SELECT ISERROR FROM <OwnerNameA>.<TableNameA> WHERE TABLE_NAME = '<ValueA>') = 'Y'
WHEN (SELECT 1 FROM DUAL WHERE EXISTS
-- Next portion fails
(SELECT 1 FROM <OwnerNameA>.<ValueA> WHERE <ColumnB> = -5 OR <ColumnC> = -5 OR <ColumnD> = -5 OR <ColumnE> = -5 OR <ColumnF> = -5 OR <ColumnG> = -5 OR <ColumnH> = -5 OR <ColumnI> = -5 OR <ColumnJ> = -5
SELECT 1 FROM <OwnerNameB>.<TableNameB> WHERE ISRESOLVED = 0
-- End failing portion
) = 1
END AS <Alias>
The Call Stack Trace in the associated incident trace file shows:
<- qersoFetchSimple <- qersoFetch <- opifch2 <- kpoal8 <- opiodr <- ttcpip <- opitsk <- opiino
<- opiodr <- opidrv <- sou2o <- opimai_real <- ssthrdmain <- main
This ORA-600 error occurs when the query is run as <OwnerNameA>. It does not occur when:
a. the query is run as SYSTEM
b. the query is run as <OwnerNameA> and a UNION ALL is used instead of UNION
c. "1" is replaced with "count(*)"
This worked in Oracle RDBMS 18.104.22.168 on Solaris but fails in 12c on Exadata.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document