Tan Phat Media

Lộ Trình Database Administrator 2026

Lộ trình học Database Administrator chi tiết nhất 2026 với PostgreSQL, MySQL, MongoDB, Performance Tuning, High Availability. Checklist từng bước, mức lương, cơ hội việc làm và resources miễn phí.

Lộ Trình Chi Tiết 12-18 Tháng

Roadmap được chia thành 7 giai đoạn rõ ràng, từ cơ bản đến nâng cao

1
Tháng 1-3: SQL Mastery

Mục tiêu: Thành thạo SQL - nền tảng quan trọng nhất của DBA

SQL Basics (4 tuần):

  • SELECT - Columns, WHERE, ORDER BY, LIMIT
  • DML - INSERT, UPDATE, DELETE, UPSERT
  • DDL - CREATE, ALTER, DROP, TRUNCATE
  • Data Types - INT, VARCHAR, TEXT, DATE, TIMESTAMP, JSON
  • Constraints - PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, NOT NULL

JOINs & Relationships (3 tuần):

  • INNER JOIN - Matching rows from both tables
  • LEFT/RIGHT JOIN - Include non-matching rows
  • FULL OUTER JOIN - All rows from both tables
  • CROSS JOIN - Cartesian product
  • Self JOIN - Table joined with itself

Advanced SQL (5 tuần):

  • Aggregations - GROUP BY, HAVING, COUNT, SUM, AVG, MIN, MAX
  • Subqueries - Scalar, Row, Table subqueries
  • CTEs - Common Table Expressions, Recursive CTEs
  • Window Functions - ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD
  • Set Operations - UNION, INTERSECT, EXCEPT
  • CASE Expressions - Conditional logic in queries

Dự án thực hành:

  • • Complex reporting queries cho e-commerce database
  • • Data analysis với Window Functions
  • • Recursive CTE cho hierarchical data (org chart)
2
Tháng 4-5: Database Design & Modeling

Mục tiêu: Thiết kế database schema hiệu quả

Database Design Principles (4 tuần):

  • ER Diagrams - Entities, Relationships, Cardinality
  • Normalization - 1NF, 2NF, 3NF, BCNF
  • Denormalization - When and why to denormalize
  • Relationships - One-to-One, One-to-Many, Many-to-Many
  • Surrogate vs Natural Keys - Primary key strategies

Indexing Fundamentals (4 tuần):

  • B-tree Index - Default index type, range queries
  • Hash Index - Equality comparisons only
  • GiST/GIN Index - Full-text search, JSON, Arrays
  • Composite Index - Multi-column indexes
  • Partial Index - Index subset of rows
  • Covering Index - Include columns in index

Dự án thực hành:

  • • Design E-commerce database schema
  • • Social media database với complex relationships
  • • Index strategy cho high-traffic application
3
Tháng 6-8: PostgreSQL Administration

Mục tiêu: Master PostgreSQL - Database phổ biến nhất 2026

Installation & Configuration (3 tuần):

  • Installation - Linux, Windows, Docker
  • postgresql.conf - Memory, connections, logging
  • pg_hba.conf - Client authentication
  • Tablespaces - Storage management
  • Schemas - Logical organization

User & Security Management (2 tuần):

  • Roles - CREATE ROLE, GRANT, REVOKE
  • Privileges - Table, Schema, Database level
  • Row Level Security - Fine-grained access control
  • SSL/TLS - Encrypted connections

Backup & Recovery (3 tuần):

  • pg_dump/pg_restore - Logical backup
  • pg_basebackup - Physical backup
  • PITR - Point-in-Time Recovery với WAL
  • pgBackRest - Enterprise backup solution
  • Backup Strategies - Full, Incremental, Differential

Maintenance Tasks (2 tuần):

  • VACUUM - Dead tuple cleanup
  • ANALYZE - Statistics update
  • REINDEX - Index maintenance
  • Autovacuum - Configuration và tuning

Dự án thực hành:

  • • Setup PostgreSQL cluster với proper configuration
  • • Implement backup strategy với PITR
  • • Security hardening cho production database
4
Tháng 9-11: Performance Tuning

Mục tiêu: Optimize database performance - Core skill của DBA

Query Optimization (4 tuần):

  • EXPLAIN ANALYZE - Query execution plans
  • Scan Types - Seq Scan, Index Scan, Bitmap Scan
  • Join Algorithms - Nested Loop, Hash Join, Merge Join
  • Query Rewriting - Optimize slow queries
  • pg_stat_statements - Query performance tracking

Index Optimization (3 tuần):

  • Index Selection - Which columns to index
  • Index Usage Analysis - pg_stat_user_indexes
  • Unused Index Detection - Remove bloat
  • Index Bloat - Detection và cleanup

Memory & Connection Tuning (3 tuần):

  • shared_buffers - Buffer cache sizing
  • work_mem - Sort và hash operations
  • effective_cache_size - Planner hints
  • Connection Pooling - PgBouncer, pgpool-II
  • max_connections - Connection limits

Monitoring & Alerting (2 tuần):

  • pg_stat_activity - Active connections
  • pg_stat_database - Database statistics
  • Prometheus + Grafana - Metrics visualization
  • pgAdmin - GUI monitoring

Dự án thực hành:

  • • Optimize slow queries (từ 10s xuống 100ms)
  • • Setup monitoring dashboard với Grafana
  • • Connection pooling với PgBouncer
5
Tháng 12-13: High Availability & Replication

Mục tiêu: Setup HA clusters và replication

Replication (4 tuần):

  • Streaming Replication - Physical replication
  • Logical Replication - Table-level replication
  • Synchronous vs Asynchronous - Replication modes
  • Read Replicas - Load balancing reads
  • Replication Lag - Monitoring và troubleshooting

High Availability (4 tuần):

  • Patroni - HA solution cho PostgreSQL
  • Automatic Failover - Leader election
  • HAProxy - Load balancing
  • etcd/Consul - Distributed configuration
  • Split-brain Prevention - Fencing strategies

Dự án thực hành:

  • • Setup PostgreSQL HA cluster với Patroni
  • • Configure streaming replication với read replicas
  • • Implement automatic failover testing
6
Tháng 14-15: NoSQL & MySQL

Mục tiêu: Expand skills với MongoDB, Redis, MySQL

MongoDB (4 tuần):

  • Document Model - Collections, Documents, BSON
  • CRUD Operations - find, insert, update, delete
  • Aggregation Pipeline - Data processing
  • Indexing - Single, Compound, Text indexes
  • Replica Sets & Sharding - HA và scaling

Redis (2 tuần):

  • Data Structures - Strings, Lists, Sets, Hashes
  • Caching Patterns - Cache-aside, Write-through
  • Persistence - RDB, AOF
  • Redis Cluster - Sharding, HA

MySQL (2 tuần):

  • InnoDB - Storage engine, ACID compliance
  • MySQL vs PostgreSQL - Key differences
  • Replication - Master-Slave, Group Replication

Dự án thực hành:

  • • MongoDB aggregation pipeline cho analytics
  • • Redis caching layer cho PostgreSQL
  • • MySQL to PostgreSQL migration
7
Tháng 16-18: Cloud Databases & Automation

Mục tiêu: Cloud database services và DBA automation

AWS Database Services (4 tuần):

  • RDS - Managed PostgreSQL, MySQL, MariaDB
  • Aurora - High-performance, Auto-scaling
  • DynamoDB - Serverless NoSQL
  • ElastiCache - Managed Redis/Memcached
  • DocumentDB - MongoDB-compatible

Database Automation (4 tuần):

  • Terraform - Infrastructure as Code cho databases
  • Ansible - Configuration management
  • Python Scripting - Automation scripts
  • Schema Migration - Flyway, Liquibase

Disaster Recovery (4 tuần):

  • RPO/RTO - Recovery objectives
  • Cross-region Replication - Geographic redundancy
  • DR Testing - Regular failover drills
  • Data Encryption - At rest và in transit

Dự án thực hành:

  • • Deploy RDS với Terraform
  • • Automated backup và monitoring scripts
  • • DR plan với cross-region replication

📚 Resources Học Miễn Phí 100%

SQL & PostgreSQL
  • PostgreSQL Documentation - Official docs
  • SQLBolt - Interactive SQL lessons
  • Mode SQL Tutorial - Advanced SQL
  • Use The Index, Luke - Index optimization
  • roadmap.sh/postgresql-dba - DBA roadmap
NoSQL & Redis
  • MongoDB University - Free official courses
  • Redis University - Free Redis courses
  • MongoDB Documentation - Official docs
  • Redis Documentation - Commands reference
  • NoSQL Distilled - Free book chapters
Performance & HA
  • PostgreSQL Wiki - Performance tuning
  • Patroni Documentation - HA setup
  • pgBackRest Docs - Backup solution
  • PgBouncer Docs - Connection pooling
  • Database Internals - Free book
Cloud & Automation
  • AWS RDS Documentation - Cloud database
  • Terraform Registry - Database modules
  • Flyway Documentation - Schema migration
  • Ansible Galaxy - Database roles
  • AWS Free Tier - RDS hands-on

💼 Thị Trường Việc Làm 2026

Mức Lương DBA (VN 2026)
  • Junior (0-1 năm): 15-30 triệu/tháng
  • Mid-level (1-3 năm): 30-55 triệu/tháng
  • Senior (3-5 năm): 55-110 triệu/tháng
  • Lead/Architect (5+ năm): 110-180+ triệu/tháng
  • Remote (US/EU): $4,000-12,000/tháng
Skills Được Ưu Tiên 2026
  • PostgreSQL expert (most in-demand)
  • Performance tuning & Query optimization
  • High Availability (Patroni, Replication)
  • Cloud databases (AWS RDS, Aurora)
  • Automation (Terraform, Ansible, Python)
  • MongoDB / Redis experience
Ngành Nghề Tuyển Dụng Nhiều
  • Banking & Fintech (lương cao nhất)
  • E-commerce (Shopee, Lazada, Tiki)
  • Telecommunications
  • Enterprise Software
  • Healthcare & Insurance
Vị Trí Phổ Biến
  • Database Administrator (DBA)
  • Database Engineer
  • Data Engineer
  • Database Reliability Engineer
  • Cloud Database Architect

Câu Hỏi Thường Gặp

Giải đáp các thắc mắc phổ biến về nghề Database Administrator

Zalo
Facebook
Tấn Phát Digital
Zalo
Facebook