Skip to content

Oracle Utility Scripts Library — 356+ Production-Tested DBA Scripts

This collection contains 356+ production-tested Oracle database utility scripts organized by category for easy navigation and reference.


ScriptCategoryPurpose
gvsess.sqlPerformanceActive session analysis across RAC instances
gvlock.sqlPerformanceLock analysis and blocking session detection
health.sqlAdministrationComprehensive database health check suite
ddbspacea.sqlAdministrationTablespace space usage with autoextend
dtable.sqlSchemaTable storage parameters and analysis
dinvalid.sqlAdministrationFind and fix invalid database objects
db.sqlDatabase InfoQuick database overview and status
dprivall.sqlSecurityComplete user privilege analysis

  1. Review the script code — Understand what it does
  2. Check prerequisites — Ensure you have required privileges
  3. Test in development — Never run untested scripts in production
  4. Backup if needed — Some scripts may affect system state

Most scripts follow these patterns:

  • Prompt for parameters using &variable syntax
  • Use formatting commands for clean output
  • Include column formatting for readability
  • Filter results based on user input