Oracle queries for performance tuning