DBA Cheat Sheet Library
Production-verified queries for daily DBA operations, incident triage, and performance profiling.
Printable & Offline DBA Cheat Sheets
psql CLI Quick Reference
Complete PostgreSQL Command Line Reference
InnoDB Tuning Reference
MySQL InnoDB Storage Engine Performance Tuning Guide
PostgreSQL Security Hardening
End-to-End Database Hardening Guide for Production Systems
PostgreSQL Backup & Recovery Reference
PostgreSQL Backup, PITR & Disaster Recovery Guide
MySQL Backup & Recovery Reference
MySQL Backup, Binary Log PITR & CLONE Guide
PostgreSQL Indexing & Query Optimization
PostgreSQL Index Types, EXPLAIN ANALYZE & Query Tuning
MySQL OCP 8.0 DBA Exam Topic Map
Comprehensive Study & Quick Reference Guide for Oracle 1Z0-908
Find Long-Running Active Queries & Locks
Lists active queries running longer than 5 minutes, along with client IP, state, and wait event details.
Cancel or Terminate a Blocking Backend Query
First attempts graceful query cancellation; if unresponsive, forcefully terminates the backend PID.
Identify Top Bloated Tables & Dead Tuple Counts
Identifies tables with high dead tuple ratios requiring manual vacuuming or autovacuum tuning.
Find Unused Indexes Wasting Storage and Write I/O
Finds non-primary indexes with zero scans since server restart that degrade INSERT/UPDATE speeds.
List Database and Top Table Disk Footprints
Calculates human-readable disk sizes for databases and top 10 individual tables including indexes.