I do not know for sure if I have experience with Oracle bug 5130732, but he is sure that it looks like. Anyway, I rewrote the request as follows:
select case ... from (select ... from (select a.V_ID, a.D_ID, a.C_ID, case when a.percent > 0 THEN 'Y' ELSE 'N' end L_val, a.C_val from ab_a_table a where a.C_ID = '00000003' -- '00000007' -- test values and a.B_VAL = '6010001' and aQ = '11234567') q1, <other tables> where ...) subquery1, (select ... from (select a.V_ID, a.D_ID, a.C_ID, case when a.percent > 0 THEN 'Y' ELSE 'N' end L_val, a.C_val from ab_a_table a where a.C_ID = '00000003' -- '00000007' -- test values and a.B_VAL = '6010001' and aQ = '11234567') q1, <other tables> where ...) subquery2, (select ... from (select a.V_ID, a.D_ID, a.C_ID, case when a.percent > 0 THEN 'Y' ELSE 'N' end L_val, a.C_val from ab_a_table a where a.C_ID = '00000003' -- '00000007' -- test values and a.B_VAL = '6010001' and aQ = '11234567') q1, <other tables> where ...) subquery3, <other tables> where....
Yes, I included a copy of q1 in every subquery that used it, and now everything works fine. A real look would also work, but it was easier (politically, that is, no requests to promote the code to the environment where the analysis should be performed, there are no meetings about a late added object in the database, etc.)
UPDATE
And now, when I added the query to my PL / SQL script, Oracle gives me ORA-00600 [qcscpqbTxt], [600] , which seems to be related to Oracle error # 5765958 .... * sigh * ... Maybe someone Would you like to suggest a workaround? I do not have access to metalink (well, I can, through DBA, if it can somehow get on their radar).