Lab 01 — Inspect Oracle Architecture (Read-only)
🧠 ภาพจำก่อนอ่าน: 🧪 Lab → 🗄️ Data → ⚙️ Process → 🩺 Health → 🧹 Cleanup
🎨 Visual Guide ของวิชานี้ — ภาพช่วยจำ ไม่แทนคำสั่งและเนื้อหาจริง
Oracle learning hub · Lesson 01
Companion lab / original Thai exercises — not an Oracle University Activity Guide reproduction.
Validation: static review only; no live instance accessed.
Safety: SELECT-only. Do not start, stop, alter, or grant anything on production.
Prerequisites
หัวข้อที่มีชื่อว่า “Prerequisites”- Lab/sandbox Oracle 19c or a supported current instance; SQL*Plus or SQLcl connected to CDB root with a read-only account that already has privileges on the required dynamic views.
- If a query fails with ORA-00942 or ORA-01031, ask the DBA for approved view access rather than granting
SELECT ANY DICTIONARYorDBAautomatically. - Some views are container-scoped; use
SHOW CON_NAMEand record your container before comparing outputs. - Do not paste real usernames, hostnames, IP addresses or connection strings containing credentials into public GitHub issues.
Task 1 — Identity and lifecycle
หัวข้อที่มีชื่อว่า “Task 1 — Identity and lifecycle”SHOW CON_NAMESELECT instance_name, host_name, status, startup_timeFROM v$instance;
SELECT name, open_mode, database_role, log_mode, cdbFROM v$database;Expected: instance status (typically OPEN), database open mode and role. In 19c or 26ai a CDB may still contain PDBs that are not open.
Task 2 — PDB readiness (CDB only)
หัวข้อที่มีชื่อว่า “Task 2 — PDB readiness (CDB only)”SELECT con_id, name, open_mode, restrictedFROM v$pdbs ORDER BY con_id;Expected: PDB rows with READ WRITE / READ ONLY / MOUNTED as applicable. In a non-CDB 19c environment, skip and explain why.
Task 3 — Explore shared memory
หัวข้อที่มีชื่อว่า “Task 3 — Explore shared memory”SELECT component, current_sizeFROM v$sga_dynamic_componentsWHERE current_size > 0 ORDER BY current_size DESC;
SELECT name, valueFROM v$pgastatWHERE name IN ('total PGA allocated','total PGA inuse','aggregate PGA target parameter');Expected: see SGA components and PGA statistics, but values and names depend on configuration and version. Do not change SGA_TARGET/PGA_AGGREGATE_TARGET in this exercise.
Task 4 — Identify storage file types
หัวข้อที่มีชื่อว่า “Task 4 — Identify storage file types”SELECT file#, name FROM v$datafile ORDER BY file#;SELECT name FROM v$controlfile;SELECT group#, member FROM v$logfile ORDER BY group#, member;Expected: datafile, control file and redo member paths. This is metadata-only: do not delete/move any file.
Task 5 — Background process sample
หัวข้อที่มีชื่อว่า “Task 5 — Background process sample”SELECT pname, COUNT(*) AS process_countFROM v$processWHERE pname IS NOT NULLGROUP BY pnameORDER BY pname;Expected: system processes on the instance. Exact list changes by version/configuration.
Task 6 — Your incident analysis
หัวข้อที่มีชื่อว่า “Task 6 — Your incident analysis”Scenario: TCP port to listener reachable; app still reports service unavailable.
Write down:
- What is
V$INSTANCE.STATUS? - What is
V$DATABASE.OPEN_MODE? - Is the correct PDB open?
- What service does JDBC request, and is it registered with listener? (listener/service examination is a separate network lab)
- Is the issue connectivity, database availability or authorization?
Exit criteria
หัวข้อที่มีชื่อว่า “Exit criteria”- Can distinguish instance/database and CDB/PDB states
- SGA/PGA explained accurately
- Datafile/controlfile/redo separated
- No resource modified
- Relevant output recorded without sensitive details
Cleanup: none — this lab changes no resources. Do not run SHUTDOWN, STARTUP or ALTER SYSTEM as part of this exercise.
Sources
หัวข้อที่มีชื่อว่า “Sources”🧪 Sandbox Execution & Evidence (Optional)
หัวข้อที่มีชื่อว่า “🧪 Sandbox Execution & Evidence (Optional)”▶️ Runbook + Approved Read-only SQL Scripts · 📝 Expected vs Actual Evidence Template
Status: NOT_EXECUTED. เมื่อมี Isolated Sandbox ที่ได้รับอนุญาต ให้เลือก Script ที่ตรงหัวข้อ, บันทึก Oracle Version/RU, Container/Privileges และ Expected vs Actual ลง Private Evidence. อย่าอ้างว่า GitHub Actions PASS เท่ากับรัน Lab จริง และห้าม Commit Raw Database Output ลง Public Repository.