Hello Everyone,
I know it is very old version I am discussing here but that is what we have in our environment, would really appreciate if anyone can help out.
I have a classic report with the below query, in this I have added a filter using a select list item (P70_GROUP).
SELECT vws.ServerID AS Display_ID, vws.ServerID AS ID, vws.Hostname, vws.ServerStatus, vws.SiteName AS Site, vws.Client, vws.CoreHours, vws.Patch_Notes, vws.PATCH_DEP, vws.Patch_Day, vws.PATCH_GROUPID, vws.PATCH_TIMEID AS Time FROM VW_Live_Support vws LEFT JOIN W_Patch_Groups wpg ON (vws.Patch_GroupID = wpg.ID) WHERE vws.Deleteable = 'N' AND NVL(wpg.Ignore, 'N') = 'N' AND ((:P70_GROUP > 1 AND vws.PATCH_GROUPID = :P70_GROUP) OR (:P70_GROUP = 1 AND vws.Patch_GroupID IS NULL) OR (NVL(:P70_GROUP,0) = 0)) AND ( INSTR(UPPER(vws.HostName), UPPER(NVL(:P70_SEARCH,vws.HostName))) > 0 OR INSTR(UPPER(vws.ServerStatus), UPPER(NVL(:P70_SEARCH,vws.ServerStatus))) > 0 OR INSTR(UPPER(vws.SiteName), UPPER(NVL(:P70_SEARCH,vws.SiteName))) > 0 OR INSTR(UPPER(vws.Client), UPPER(NVL(:P70_SEARCH,vws.Client))) > 0 OR INSTR(UPPER(vws.CoreHours), UPPER(NVL(:P70_SEARCH,vws.CoreHours))) > 0 OR INSTR(UPPER(vws.Patch_Notes), UPPER(NVL(:P70_SEARCH,vws.Patch_Notes))) > 0 )
Issue is when i select a group from the list I am getting
"report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
one unusual thing I have noticed here is when I select "All Groups" which returns 0, it is running fine and returning 3700 rows but when I select any group which returns some 10-20 rows I am getting the above error.
can't understand why this is, please help me out.
Regards,
Tauceef