[oracle] use indexes for query

This query allows usage of indexes for oracle DB.