The cursor ID that was created should be included in the log message when a query is started, that way you'll be able to correlate a cursor ID to the query that created it.