Lab 06 — Parameters, Resource Limits & ADR (Read-only)
🧠 ภาพจำก่อนอ่าน: 🧪 Lab → 🗄️ Data → ⚙️ Process → 🩺 Health → 🧹 Cleanup
🎨 Visual Guide ของวิชานี้ — ภาพช่วยจำ ไม่แทนคำสั่งและเนื้อหาจริง
Original companion lab. Static review only; no live database execution. All database tasks are SELECT-only. Not copied from Oracle University Activity Guide.
Prerequisites
หัวข้อที่มีชื่อว่า “Prerequisites”- Approved Oracle 19c or 26ai sandbox / read-only DB account with specific grants on
V_$INSTANCE,V_$PARAMETER,V_$SPPARAMETER,V_$RESOURCE_LIMIT,V_$DIAG_INFO - SQL*Plus or SQLcl; record timezone and observation timestamp outside the SQL session
- Do not run
ALTER SYSTEM,CREATE SPFILE,STARTUP,SHUTDOWN, ADRCI purge or enable trace in this lab.
Task A — Identify target
หัวข้อที่มีชื่อว่า “Task A — Identify target”SHOW USERSHOW CON_NAMESELECT instance_name, host_name, status, startup_time FROM v$instance;Expected: target identity and availability match the authorized environment; redact hostname before sharing.
Task B — Current vs persistent settings
หัวข้อที่มีชื่อว่า “Task B — Current vs persistent settings”SELECT name, value, issys_modifiableFROM v$parameterWHERE name IN ('processes','sessions','open_cursors','sga_target','pga_aggregate_target','spfile')ORDER BY name;
SELECT name, value, isspecifiedFROM v$spparameterWHERE name IN ('processes','sessions','open_cursors','sga_target','pga_aggregate_target')ORDER BY name;Expected: current and persistent values may differ; NULL/unspecified rows do not necessarily mean misconfiguration.
Task C — Resource headroom
หัวข้อที่มีชื่อว่า “Task C — Resource headroom”SELECT resource_name, current_utilization, max_utilization, limit_valueFROM v$resource_limitWHERE resource_name IN ('sessions','processes','transactions');Write: which resource is closest to its configured limit? If limit is a text value such as UNLIMITED, don’t compute a percentage from it. Record a second snapshot at a different authorized time to avoid inferring trends from one row.
Task D — Find diagnostic evidence
หัวข้อที่มีชื่อว่า “Task D — Find diagnostic evidence”SELECT name, value FROM v$diag_infoWHERE name IN ('ADR Base','ADR Home','Diag Alert','Diag Trace');SELECT name, value FROM v$parameter WHERE name='diagnostic_dest';Expected: ADR paths. Do not upload raw trace files (could contain identifiers, SQL literals or sensitive data) to a public repository.
Task E — Tabletop scenario
หัวข้อที่มีชื่อว่า “Task E — Tabletop scenario”An application reports ORA-12519 at 10:05, but at 10:20 the processes utilization is much lower than limit. Describe:
- How to get timestamped evidence from alert log and listener/app pool;
- Why a single post-incident snapshot cannot disprove transient saturation;
- How to check for stale/leaked pooled connections;
- Why increasing processes without app investigation may merely postpone the incident;
- Which changes require separate approval and rollback plan.
Exit checklist
หัวข้อที่มีชื่อว่า “Exit checklist”- Current vs SPFILE parameters explained
- Static vs dynamic settings explained
- Processes/sessions resource view interpreted without fake percentages
- ADR/alert/trace location found using views
- Incident evidence timeline written
- No state-changing SQL executed
Cleanup: none; disconnect only.