SQL queries and PL/SQL scripts for DBAs