To find failed queries. Use following plsql trigger to find queries.
CREATE TABLE QUERY_LOG (ID NUMBER,ORA_ERR VARCHAR2(10),EXE_DATE DATE,QRY_LOG NCLOB);
CREATE SEQUENCE QUERY_LOG_ID NOCACHE;
CREATE OR REPLACE TRIGGER Failed_To_Extend_Temp
AFTER SERVERERROR ON DATABASE
DECLARE
l_sql_text ora_name_list_t;
l_n NUMBER;
t1 NCLOB;
BEGIN
--IF (is_servererror(942) ) THEN
l_n := ora_sql_txt(l_sql_text );
FOR I IN 1 .. l_n
LOOP
t1 := t1||l_sql_text(i);
END LOOP;
INSERT INTO QUERY_LOG (Id , Ora_Err , EXE_DATE , QRY_LOG)
VALUES (QUERY_LOG_ID.Nextval, ora_server_error(1), Sysdate,t1 );
--END IF;
END;
/
See my YouTube video Oracle, Find Failed Queries