Use a prepared statement to filter in the workflow log ihm (the previous string query was Sybase specific, not Oracle compliant).