Courses / Professional engineering / Database Administration Basics

Free course6 languagesSelf-paced

Database Administration Basics

Run a PostgreSQL database safely: roles and access, configuration, backups with verified restores, a standby, monitoring and maintenance runbooks.

  • Who it's for. Learners who know SQL and the command line and want to look after a database in operation.
  • Before you start. Courses: SQL and Database Foundations, Linux and the Developer Command Line.
  • 37 to 63 hours of study with practice
  • 9 modules, 65 lessons
  • 5 guided projects and a final project

What you'll learn

  • Create, start, stop and inspect a scratch PostgreSQL 18 cluster, and explain its processes, sessions and waits.
  • Audit and control access as an operator: role inventories, predefined monitoring roles, validated pg_hba.conf changes, password rotation and allow/deny tests.
  • Map storage and manage configuration with traceable sources, correct reload or restart handling and diff-based change control.
  • Design and run a backup strategy from written recovery objectives: logical, physical, WAL-archived and incremental backups with retention and monitoring.
  • Prove recoverability: verify backups, restore into a new cluster, compare data by counts and checksums, and perform point-in-time recovery with a measured drill report.

Skills you'll gain

  • Database processes
  • Roles
  • privileges
  • Storage
  • configuration
  • Backup strategy
  • Restore verification
  • Replication
  • standbys
  • Monitoring
  • plans
  • Maintenance boundaries
  • Operations lab

Tools you'll use

  • PostgreSQL 18
  • pg_hba
  • pg_upgrade
  • pg_stat_statements

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 9 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 6 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Hardened scratch cluster with access tests and a config baseline

    Covers Database processes, Roles and privileges and Storage and configuration.

    You build: Guided project: A scripted cluster build with hardened authentication, role inventory, privilege matrix and a staged pg_hba.conf change script.

  2. 02

    Modules 4 to 5

    Backup chain with a verified restore

    Covers Backup strategy and Restore verification.

    You build: Guided project: Objectives sheet, logical dump plus globals, base backup, WAL archive with health check, incremental chain record and retention script.

  3. 03

    Module 6

    Standby with lag and slot monitoring

    Covers Replication and standbys.

    You build: Guided project: Options table, scripted loopback standby and a 30-sample lag CSV.

  4. 04

    Module 7

    Seeded slowdown investigation

    Covers Monitoring and plans.

    You build: Guided project: Interval statistics report, logging profile, statement ranking and saved plan.

  5. 05

    Module 8

    Maintenance and upgrade runbook set

    Covers Maintenance boundaries.

    You build: Guided project: Autovacuum trigger table, long-transaction diagnosis, per-table tuning record, wraparound monitor and a checksum check on a damaged throwaway copy.

  6. 06

    Module 9

    Final project and assessment

    Covers Operations lab, then the final project: Isolated database operations runbook with restore and access tests.

    You build: Final project, one of: Operations runbook for a ticketing database: scripted scratch build, role and pg_hba controls with a failing-capable harness, backup chain with verified PITR, one standby, and drill records for disk-full and accidental-delete incidents.

Full curriculum

9 modules and 65 lessons, 37 to 63 hours of study

01Database processes7 lessons, 3 to 5 hours

Lessons

  • Choosing a supported PostgreSQL major and applying the minor rule
  • Creating a scratch cluster with initdb
  • Starting, stopping and checking a cluster with pg_ctl
  • Postmaster, backends and background processes
  • Reading pg_stat_activity for state and wait events
  • Finding the blocker and cancelling safely
  • Crash recovery after an immediate stop

After this module you can

  • Pick a supported major version from the project's versioning policy and explain why minor releases are applied without data migration.
  • Initialise a new cluster in an empty directory with chosen authentication methods and confirm what initdb created.
  • Predict and observe what the server does at start-up after an immediate shutdown and verify that committed data survived.
02Roles and privileges7 lessons, 3 to 5 hours

Lessons

  • Inventorying roles and their dangerous attributes
  • Building a privilege matrix from catalog data
  • Predefined roles for operations and monitoring
  • Staging a pg_hba.conf change with validation and rollback
  • Password methods, rotation and expiry
  • Allow and deny tests as a repeatable access check
  • Offboarding a role without breaking objects

After this module you can

  • Produce a role inventory from the catalogs that flags superuser, createrole, createdb, replication and bypassrls attributes and login ability.
  • Generate a role-by-table privilege matrix with has_table_privilege and information_schema and spot unexpected access.
  • Remove a departed person's role by reassigning owned objects, dropping remaining grants and then dropping the role, in every database that references it.
03Storage and configuration8 lessons, 4 to 6 hours

Lessons

  • Reading the data directory layout
  • Measuring what uses space: tables, indexes, TOAST and databases
  • Tablespaces and where WAL lives
  • Where a setting came from: sources and precedence
  • Reload versus restart: reading the context column
  • Memory settings: shared_buffers, work_mem and maintenance_work_mem
  • Checkpoints and WAL sizing settings
  • Configuration change control with diffs

After this module you can

  • Locate a table's files from SQL and explain the role of PG_VERSION, base, global, pg_wal and pg_xact in the data directory.
  • Report the size of databases, tables, indexes and TOAST data and identify the largest consumers.
  • Capture non-default settings before and after a change and produce a reviewed diff that is the only evidence of what changed.
04Backup strategy7 lessons, 3 to 5 hours

Lessons

  • Writing recovery objectives before choosing a backup
  • Logical backups of a database and of global objects
  • Physical base backups with pg_basebackup
  • WAL archiving and archive health
  • Incremental backups and the backup chain
  • Retention and the backup inventory
  • Monitoring backups: freshness, size and failure alarms

After this module you can

  • Turn a business description into a recovery point objective, a recovery time objective and a list of what must be restorable.
  • Take a custom-format pg_dump of one database and a pg_dumpall globals file, and state what a logical backup does and does not capture.
  • Define and test backup freshness checks that alert on age, size drift and archive failures.
05Restore verification7 lessons, 3 to 5 hours

Lessons

  • Verifying a base backup with pg_verifybackup
  • Restoring a base backup into a new cluster on another port
  • Comparing restored data by counts and checksums
  • Point-in-time recovery to a named restore point
  • Point-in-time recovery to a timestamp and timelines
  • Restoring a logical dump into a fresh database
  • The restore drill report: measured recovery time and failure modes

After this module you can

  • Run pg_verifybackup on a plain-format backup, interpret each of its four stages, and demonstrate that it detects a corrupted file.
  • Restore a plain base backup into an empty directory, start it on a different loopback port, and confirm it reaches consistency.
  • Run a timed restore drill from a written runbook, record the actual recovery time against the RTO, and prove the drill can fail with a missing WAL segment.
06Replication and standbys6 lessons, 3 to 4 hours

Lessons

  • Replication options and what each protects against
  • Building a physical streaming standby on loopback
  • Measuring replication lag and replay position
  • Replication slots and runaway WAL retention
  • Promotion, timelines and what a failover loses
  • Logical replication for selective data and major upgrades

After this module you can

  • Compare shared-disk, file-system, WAL-shipping, streaming and logical replication by granularity, synchrony and failure protection.
  • Take a base backup with -R and a replication slot, start a standby on a second port and confirm it streams.
  • Create a publication and subscription between two loopback clusters and decide when logical replication fits better than physical.
07Monitoring and plans7 lessons, 3 to 5 hours

Lessons

  • Cumulative statistics and what resets them
  • Logging settings an operator turns on
  • Finding expensive statements with pg_stat_statements
  • Capturing a plan for a slow statement
  • Table-level signals: scans, dead tuples and autovacuum activity
  • Connection pressure, locks and idle sessions
  • Building an investigation checklist from the evidence

After this module you can

  • Read pg_stat_database ratios and explain when the cumulative counters reset or persist.
  • Configure slow-statement, lock-wait, checkpoint, connection and temporary-file logging and decide what to log at low cost.
  • Combine statistics, logs, statement ranking, plans and table signals into a ranked list of findings with one next step each.
08Maintenance boundaries9 lessons, 4 to 6 hours

Lessons

  • What autovacuum does and when it triggers
  • Long transactions and why dead rows cannot be removed
  • Per-table autovacuum settings
  • Transaction ID wraparound watch
  • Detecting corruption: data checksums and index checks
  • Rewrites and reindexing: locks, disk and approvals
  • Minor release updates
  • Rehearsing a major upgrade with pg_upgrade --check
  • Capacity planning from measured growth

After this module you can

  • Compute the autovacuum vacuum and analyze trigger points for a table and verify them on a seeded table.
  • Demonstrate that an old open transaction prevents cleanup and identify the culprit with pg_stat_activity.
  • Forecast disk, connection and WAL needs from recorded measurements and set thresholds with lead time.
09Operations lab7 lessons, 3 to 5 hours

Lessons

  • Health gate and approval before heavy operations on a shared host
  • Writing a runbook that someone else can follow
  • Incident drill: full disk from WAL or a stale slot
  • Incident drill: connection exhaustion and a blocking session
  • Incident drill: accidental data loss and recovery
  • Incident drill: access lockout and pg_hba recovery
  • Capstone integration: the operations runbook with restore and access tests

After this module you can

  • Classify operations as read-only or heavy, and write a gate that checks host health and records approval before any heavy step.
  • Write one runbook with trigger, impact, safety checks, steps, verification, rollback and escalation, and test it by having a reader follow it blind.
  • Assemble the runbook set, restore proof, access test harness and configuration evidence into one reviewable package for an isolated scratch deployment.

What you'll build

5 guided projects along the way, then a final project.

  • Hardened scratch cluster with access tests and a config baseline

    after module 3
  • Backup chain with a verified restore

    after module 5
  • Standby with lag and slot monitoring

    after module 6
  • Seeded slowdown investigation

    after module 7
  • Maintenance and upgrade runbook set

    after module 8

Final project

Isolated database operations runbook with restore and access tests.

What you submit

Source and artifact submission: all scripts, runbooks, settings snapshots and evidence files in a repository, with an index mapping each claim to a regenerating command.

How it's reviewed

Trainer-reviewed demonstration, scored on: Restore verification: restored data equals source by counts and checksums, with a measured time (25 percent) Access control: inventory, validated pg_hba change and a harness that can fail (20 percent).

Where you'll use it

  • Prove last night's backup restores to a point in time on a scratch server.
  • Investigate a slow query with statistics and a plan, and record the fix in a runbook.

Roles that use these skills

  • Database Administrator
  • Database Reliability Engineer
  • DevOps Engineer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before starting?

Learners should have completed SQL and Database Foundations and Linux and the Developer Command Line, or pass this diagnostic: write a SELECT with WHERE, JOIN and GROUP BY; create a table with a primary key and a foreign key; explain COMMIT and ROLLBACK; in a terminal, set an environment variable, redirect output to a file, run a script, read a log with tail or Get-Content, and compare two text files with diff. PostgreSQL Database Development is recommended but not required: this course teaches the operator view and does not re-teach role creation, GRANT, row-level security, indexing or query tuning.

When do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Staff issue certificates after review; nothing is issued automatically.

Which languages is this course in?

Every lesson has audio and captions in English, Hindi, Telugu, Tamil, Kannada and Malayalam. You can switch language inside any lesson.

How do I report a problem in a lesson?

Email [email protected] with the course and lesson name. We read every report and correct the lesson.

Start Database Administration Basics today

Every lesson has audio and captions in English, Hindi, Telugu, Tamil, Kannada and Malayalam.

Start learning
FreeOpen now
Start