ORA-07445 [koksOpnHasObjWTempLob] Error While Parsing a WITH Query Containing Lots Of Joins (Doc ID 1361355.1)

Last updated on FEBRUARY 07, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

ORA-07445 [koksOpnHasObjWTempLob] error is reported while parsing a WITH query containing lots of joins:

WITH otc_trn AS
( SELECT generic_product_id
FROM gpi_exclusion_lists
WHERE gpi_exclusion_list = 'TRN_OTC_11' ), ndc_trn AS
( SELECT ndc
FROM ndc_exclusion_lists
WHERE ndc_exclusion_list = 'TRN_11MMA' ),other_trn AS
( SELECT generic_product_id
FROM gpi_exclusion_lists
WHERE gpi_exclusion_list IN ('TRN_11013','TRN_11015') ),labelers AS
( SELECT DISTINCT SUBSTR(ndc, 1, 5) AS labeler_code
FROM ndc_exclusion_lists
WHERE ndc_exclusion_list = 'CONT_LAB' ), prot_meds AS
( SELECT '12102060000320' AS pgpi
FROM DUAL
UNION ALL
SELECT '12102060000330' AS pgpi
FROM DUAL
UNION ALL
SELECT '12103060100320' AS pgpi
FROM DUAL
UNION ALL
SELECT '12104515200120' AS pgpi
FROM DUAL
UNION ALL
SELECT '12104515200130' AS pgpi
FROM DUAL
UNION ALL
SELECT '12104515200140' AS pgpi
FROM DUAL
UNION ALL
SELECT '12104515200150' AS pgpi
FROM DUAL
...
FROM all_log
WHERE log_pref = 1
ORDER BY customer_name, pharmacy_nabp, date_filled, rx_number, new_refill,
payer_coverage_type

Call stack functions are:
     ksedmp <- ssexhd <- sighndlr <- call_user_handler <- qksbgGetCursorVal
        <- kkfdtrwo <- ob <- kkfdjoi <- qkajoi <- qkaqkn
         <- qkadrv <- qkadrv <- opitca <- kksFullTypeCheck <- rpiswu2
          <- kksLoadChild <- kxsGetRuntimeLock <- kksfbc <- kkspsc0 <- kksParseCursor
           <- opiosq0 <- kpooprx <- kpoal8 <- opiodr <- ttcpip
            <- opitsk <- opiino <- opiodr <- opidrv <- sou2o
             <- opimai_real <- main <- start

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms