GitHub Profile README · Visual Preview
github.com / valehdba
Principal DBA · 15+ Years
Database Engineering
at Scale
// Oracle · SQL Server · PostgreSQL · MySQL · CloudNativePG
Building production-hardened database systems across cloud-native and on-premises environments. This repo is a living reference of SQL, automation, architecture patterns, and operational best practices distilled from 15+ years of enterprise DBA work — from RAC clusters to Kubernetes-native PostgreSQL.
15+ Years Production
5 RDBMS Platforms
50+ Scripts & Tools
6 Best Practice Guides

// Platforms

🔴 Oracle 19c · RAC · DG
🔵 SQL Server 2022 · Always On
🐘 PostgreSQL PG 16 · Patroni
🐬 MySQL / MariaDB 8.x · Galera
☸️ CNPG K8s · GitOps

// Expertise

Performance Tuning
HA / Disaster Recovery
Backup & Recovery
Security Hardening
Schema Design
K8s / Cloud-Native DB
Automation (Ansible/TF)
Replication / CDC

// Highlighted Scripts

📄 awr_top_sql_report.sql
AWR-based top SQL analysis by CPU, elapsed time & I/O. Configurable lookback window.
wait_stats_analysis.sql
Delta wait stats with category labels. Filters benign idles for clean signal.
🔍 bloat_estimation.sql
Extension-free table & index bloat estimation. Includes VACUUM/repack recommendations.
☸️ cnpg-cluster-production.yaml
Production CNPG cluster with PgBouncer, S3 WAL archiving, Prometheus monitoring.

// Quick Connect

bash — dba@toolkit:~
git clone https://github.com/valehdba/dba-toolkit.git
Cloning into 'dba-toolkit'... remote: Counting objects: 247, done.
ls dba-toolkit/
oracle/ sqlserver/ postgresql/ mysql-mariadb/ cnpg/ best-practices/
cat best-practices/security-hardening.md | head -3
# Database Security Hardening Standards Least privilege. Encrypt everything. Audit all the things.
Oracle 19c SQL Server 2022 PostgreSQL 16 MySQL 8 MariaDB 10 Kubernetes CloudNativePG Helm ArgoCD Ansible Terraform Python Bash pgBackRest Percona XtraBackup RMAN Patroni Galera