🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Management / Database Administration › Certification Exam Preparation: PostgreSQL CE, Oracle DBA CA, Microsoft DP-300, and DAMA CDMP Associate › Lesson 2
TEC-DATA86-12 · Lesson 2 · 18 clock hours · theory

PostgreSQL CE and Oracle DBA CA Domain Review

Objective. Students review and accurately explain the high-weight exam domains for the PostgreSQL CE (EDB) and Oracle DBA CA credentials, working through representative exam-style questions for each domain.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

PostgreSQL CE and Oracle DBA CA Domain Review

This lesson consolidates the highest-weight exam domains for two industry credentials: the EnterpriseDB PostgreSQL CE and the Oracle DBA Certified Associate (DBA CA). Mastering these domains is essential not only for passing your exams but for performing safely and competently on the job.

---

PostgreSQL CE High-Weight Domains

Server Installation and Configuration Parameters

PostgreSQL is controlled largely through the `postgresql.conf` file, which sets server-level parameters such as `max_connections`, `shared_buffers`, `work_mem`, and `listen_addresses`. Changes to some parameters require a server reload; others require a full restart. Knowing which parameters fall into each category is a common exam topic. The `pg_hba.conf` file controls client authentication: it lists rules in order, and the server uses the first matching rule. Authentication methods include `trust`, `md5`, `scram-sha-256`, `peer`, and `reject`. Incorrectly configured `pg_hba.conf` rules are among the most common causes of connection failures in production.

VACUUM and Autovacuum

PostgreSQL uses Multi-Version Concurrency Control (MVCC). Dead tuples left by updates and deletes must be reclaimed by VACUUM. Regular VACUUM reclaims space for re-use; VACUUM FULL rewrites the table, returning space to the OS but requiring an exclusive lock. The autovacuum daemon runs this process automatically based on configurable thresholds. Failing to vacuum aggressively enough leads to table bloat and, in extreme cases, transaction ID (XID) wraparound, which can cause data unavailability. This is a critical operational safety concern: monitor `age(datfrozenxid)` and ensure autovacuum is never disabled without a deliberate alternative plan.

Query Planning and EXPLAIN Output

The `EXPLAIN` command shows the query plan chosen by the planner without executing the query. `EXPLAIN ANALYZE` executes the query and shows actual row counts and timing. Key plan nodes include Sequential Scan, Index Scan, Hash Join, and Nested Loop. High row-estimate errors between planned and actual rows often indicate stale statistics; running `ANALYZE` updates them. Understanding cost units (arbitrary, not milliseconds) and identifying inefficient plans is a core DBA skill.

Replication

PostgreSQL supports streaming replication (binary, physical copy of the WAL stream to a standby) and logical replication (publishes changes at the row level to subscribers, allowing selective table replication across major versions). Streaming replication requires a replication role and appropriate `pg_hba.conf` entries. The `recovery.conf` (pre-v12) or `postgresql.conf` (v12+) on the standby controls connection parameters.

Backup Strategies

`pg_dump` exports a single database in SQL or custom format and is suitable for logical backups. `pg_basebackup` captures a physical, consistent base backup of the entire cluster and is used as the starting point for Point-In-Time Recovery (PITR) when combined with archived WAL segments. Understand when to use each tool and their key options.

Role-Based Access Control

PostgreSQL uses roles for both users and groups. Privileges are granted at the database, schema, table, column, and function level. The `GRANT` and `REVOKE` commands manage privileges; `ALTER DEFAULT PRIVILEGES` controls what new objects inherit. The `pg_roles` and `information_schema.role_table_grants` views are useful for auditing access — an important security practice.

---

Oracle DBA CA High-Weight Domains

Instance and Database Architecture

An Oracle instance is the combination of memory structures and background processes. The System Global Area (SGA) includes the Database Buffer Cache, Shared Pool, Redo Log Buffer, and Large Pool. The Program Global Area (PGA) is private to each server process. Key background processes include DBWR (writes dirty buffers to datafiles), LGWR (writes redo log buffer to online redo logs), SMON (system monitor, crash recovery), PMON (process monitor, cleans up failed processes), and CKPT (updates checkpoint information).

Tablespace and Datafile Management

Oracle stores data in tablespaces, which are logical containers mapped to one or more physical datafiles. The SYSTEM and SYSAUX tablespaces are required. Locally managed tablespaces (using bitmaps in the datafile headers) are the modern standard over dictionary-managed tablespaces. DBAs create, resize, add datafiles to, and take tablespaces offline as needed.

Undo and Redo Log Management

Undo segments store before-images of changed data to support rollback and read consistency. Online redo logs record all changes for recovery. Oracle requires at least two redo log groups, and best practice calls for multiplexed members. Log switches and checkpoints are performance-sensitive operations.

RMAN Backup and Recovery

RMAN (Recovery Manager) is Oracle's primary backup and recovery tool. Common commands include `BACKUP DATABASE`, `BACKUP ARCHIVELOG ALL`, `RESTORE DATABASE`, and `RECOVER DATABASE`. RMAN works with a recovery catalog or the control file. Understanding full, incremental level 0, and incremental level 1 backups, and the difference between complete and incomplete (point-in-time) recovery, is essential.

Privileges, Roles, and Data Guard

Oracle separates system privileges (e.g., `CREATE SESSION`, `CREATE TABLE`) from object privileges (e.g., `SELECT`, `INSERT` on a specific table). Pre-defined roles such as `DBA`, `CONNECT`, and `RESOURCE` bundle common privileges. Oracle Data Guard maintains one or more standby databases synchronized with the primary through redo transport; it supports switchover (planned) and failover (unplanned) operations.

---

Accuracy and Safety in Exam Prep

When studying, rely only on official documentation — the PostgreSQL documentation at postgresql.org and Oracle's official documentation — rather than unofficial summaries that may contain errors. In a live environment, always test configuration changes in a non-production system first. Backup procedures are a professional safety net: a DBA who cannot restore a backup has no backup. Treat your study materials with the same discipline you would apply on the job.

Key terms10

pg_hba.confThe PostgreSQL host-based authentication configuration file that controls which hosts and users may connect to the server and by which authentication method; rules are evaluated in order, and the first match is applied.
VACUUM / AutovacuumVACUUM reclaims storage occupied by dead tuples in PostgreSQL tables caused by MVCC; autovacuum is the background daemon that runs VACUUM and ANALYZE automatically based on configurable thresholds.
EXPLAIN ANALYZEA PostgreSQL command that executes a query and returns both the planner's estimated execution plan and the actual run-time statistics, including row counts and timing for each plan node.
WAL (Write-Ahead Log)PostgreSQL's transaction log; all changes are written to the WAL before being applied to data files, enabling crash recovery, streaming replication, and point-in-time recovery.
SGA (System Global Area)A shared memory region in an Oracle instance that contains the Database Buffer Cache, Shared Pool, Redo Log Buffer, and other components; shared by all server processes connected to that instance.
RMAN (Recovery Manager)Oracle's built-in backup and recovery tool that manages full, incremental, and archivelog backups, and orchestrates restore and recover operations using backup sets or image copies.
Logical Replication (PostgreSQL)A PostgreSQL replication method that streams row-level changes for specific tables from a publisher to one or more subscribers, allowing selective replication and replication between different major versions.
Data Guard (Oracle)An Oracle feature that maintains one or more synchronized standby databases by shipping redo data from the primary; supports switchover (planned role transition) and failover (unplanned recovery) operations.
Undo Segment (Oracle)An Oracle storage structure that holds before-images of modified data rows, used to support transaction rollback, read consistency for queries, and Flashback features.
pg_basebackupA PostgreSQL utility that creates a physical, consistent binary backup of an entire database cluster, used as the base for standby servers and point-in-time recovery when combined with archived WAL segments.
In class: Work through instructor-led review sessions covering PostgreSQL CE domains: server installation and configuration parameters, authentication methods (pg_hba.conf), VACUUM and autovacuum, query planning and EXPLAIN output, logical and streaming replication, pg_dump and pg_basebackup backup strategies, and role-based access control — completing 15-to-20 practice questions per domain with answer explanations. · Work through Oracle DBA CA review covering Oracle instance and database architecture (SGA, PGA, background processes), tablespace and datafile management, undo and redo log management, RMAN backup and recovery commands, Oracle user privileges and roles, and Data Guard concepts — completing 15-to-20 practice questions per domain with answer explanations. · Pair with a classmate to quiz each other using flashcard sets built from incorrect answers on the diagnostic; each pair writes three original exam-style questions per credential and shares them with the class for group discussion.
Materials: EnterpriseDB PostgreSQL CE exam guide and sample questions (official or instructor-curated); Oracle Database Concepts documentation; Oracle Database Backup and Recovery User's Guide; RMAN command reference; flashcard software (Anki or printed cards); instructor-prepared domain review slide decks; PostgreSQL 16 documentation (postgresql.org)
Check: Domain knowledge quiz of 40 questions (20 PostgreSQL CE, 20 Oracle DBA CA) drawn from covered material; students must score at least 75% overall and no lower than 70% on any single credential's subset to demonstrate balanced readiness — results are recorded on the student's progress tracker.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

PostgreSQL CE — Server Installation and Configuration
1. A PostgreSQL administrator modifies the `max_connections` parameter in `postgresql.conf`. What action is required for the change to take effect?
PostgreSQL CE — Authentication (pg_hba.conf)
2. In a `pg_hba.conf` file, a DBA places a `reject` rule for a specific IP address above a `scram-sha-256` rule that would otherwise allow it. What happens when that IP address attempts to connect?
PostgreSQL CE — Query Planning and EXPLAIN
3. A DBA runs `EXPLAIN ANALYZE` on a slow query and notices that the planner estimated 10 rows but 50,000 rows were actually returned. What is the most likely corrective action?
PostgreSQL CE — Backup Strategies
4. Which PostgreSQL backup utility creates a physical, binary backup of the entire cluster that can serve as the starting point for Point-In-Time Recovery (PITR)?
Oracle DBA CA — Instance and Database Architecture
5. In Oracle's instance architecture, which background process is primarily responsible for writing modified (dirty) data blocks from the Database Buffer Cache to the datafiles on disk?
Oracle DBA CA — RMAN Backup and Recovery
6. An Oracle DBA needs to back up all archived redo log files using RMAN to ensure they are available for a complete recovery. Which RMAN command accomplishes this?
Oracle DBA CA — User Privileges and Roles
7. In Oracle, a developer needs to create tables in their own schema. Which type of privilege must be granted to allow this?
Oracle DBA CA — Data Guard Concepts
8. A company uses Oracle Data Guard. The primary database server must be taken offline for planned maintenance. Which Data Guard operation is used to transition the standby to the primary role in a controlled, no-data-loss manner?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.