Lesson 21 — Configuring User Resource Limits (ภาษาไทย)
🧠 ภาพจำก่อนอ่าน: 👤 Identity → 🔑 Access → 🛡️ Controls
🎨 Visual Guide ของวิชานี้ — ภาพช่วยจำ ไม่แทนคำสั่งและเนื้อหาจริง
Security index · Lab 10 · 👤 Identity Fundamentals: Lesson 19
Provenance: Oracle University 19c Administration Workshop Lesson 21 topic-level alignment. Original Thai learning material; not full page-by-page source fidelity. SQL is read-only; live test NOT RUN. Version-specific behavior of 26ai must be confirmed before change.
🎯 เป้าหมายเฉพาะ Lesson นี้
หัวข้อที่มีชื่อว่า “🎯 เป้าหมายเฉพาะ Lesson นี้”- ตรวจ
DBA_PROFILESและDBA_USERSเพื่อเชื่อม User กับ Password/Resource Policy - แยก Password-Rule Enforcement จาก
RESOURCE_LIMITและ Session Limits - ประเมินผลกระทบต่อ Service Accounts, Secret Rotation และ Connection Pool ก่อนเปลี่ยน Profile
พื้นฐานการแยก Identity/Authentication/Authorization และ Scope อยู่ใน Lesson 19
เนื้อหาและแนวปฏิบัติ
หัวข้อที่มีชื่อว่า “เนื้อหาและแนวปฏิบัติ”PROFILE รวม password restrictions และ resource constraints ที่กำหนดให้ user. Password limits เช่น FAILED_LOGIN_ATTEMPTS, PASSWORD_LIFE_TIME ต่างจาก resources เช่น SESSIONS_PER_USER/CONNECT_TIME/IDLE_TIME. การบังคับใช้บาง resource limits ขึ้นกับ RESOURCE_LIMIT แต่ password limits มี enforcement ของตัวเอง.
Application impact: เมื่อ profile เปลี่ยน อาจเกิด connection churn/expired/locked accounts หรือ sessions ล้มเหลว จึงต้องประสาน app pool และ service accounts; อย่าแก้ด้วยการปิดทุก limits.
SELECT username,profile,account_status FROM dba_users ORDER BY username;SELECT profile,resource_name,resource_type,limitFROM dba_profiles ORDER BY profile,resource_name;SELECT name,value FROM v$parameter WHERE name='resource_limit';Scenario: service account login ไม่ผ่านหลัง credential policy เปลี่ยน — ตรวจ expiry, lock, policy, app secret store, audit log; วาง remediation ที่ไม่ลดความปลอดภัย.
🔎 Workflow เมื่อเกิด Incident — Profile Lifecycle & Resource Limits
หัวข้อที่มีชื่อว่า “🔎 Workflow เมื่อเกิด Incident — Profile Lifecycle & Resource Limits”- เก็บ ORA Error, เวลา, User/Service Account และ Connection Pool Symptoms โดยปิดบัง Secret
- อ่าน Account Status, Assigned Profile และ Limits จริงใน Container ที่เกี่ยวข้อง
- แยก Password Expiry/Lockout จาก Resource Session Limit และ Application Secret Mismatch
- ประเมิน Policy/Compliance, Password Verification Function, Monitoring และ Rollback ก่อนขอ Change
- หลังแก้ใน Environment ที่อนุมัติ ตรวจ Reconnect, Pool Recovery และ Failed Login Trend
🧠 Self-check — Profile Lifecycle & Resource Limits
หัวข้อที่มีชื่อว่า “🧠 Self-check — Profile Lifecycle & Resource Limits”- Password Limits กับ Resource Limits ภายใต้ Profile ใช้เงื่อนไขบังคับเหมือนกันหรือไม่?
- การเปลี่ยน Profile ของ Service Account อาจทำให้ Connection Pool มีอาการอย่างไร?
- จะตรวจ
RESOURCE_LIMITกับDBA_PROFILESอย่างไรโดยไม่แก้ Parameter? - เหตุใดการปิด Password Policy เพื่อให้ App Login ได้จึงไม่ใช่ Root Cause Fix?
Official references
หัวข้อที่มีชื่อว่า “Official references”Source-objective deepening — Profile Lifecycle and Password Verification Functions
หัวข้อที่มีชื่อว่า “Source-objective deepening — Profile Lifecycle and Password Verification Functions”นอกจากอ่าน profile แล้ว วัตถุประสงค์ของ Lesson 21 รวมการ create and assign profiles และการใช้ Oracle-supplied password verification functions ภายใน password policy. Oracle ships built-in password verification functions/scripts in supported versions, but function name, complexity rules, available scripts and installation process may change with releases. ตรวจ current 19c/26ai security guidance และ OS environment ห้าม copy legacy sample password policy มาใช้เป็นมาตรฐานทันที.
- Profiles มีได้หนึ่ง profile ต่อ user ในขณะหนึ่ง; เปลี่ยน profile อาจมีผลหลัง reconnect หรือเมื่อ enforcement condition เข้ามา
- Password restrictions (
FAILED_LOGIN_ATTEMPTS,PASSWORD_LIFE_TIME,PASSWORD_VERIFY_FUNCTION) ต่างจาก resource restrictions (SESSIONS_PER_USER,CPU_PER_SESSION) - สำหรับ resource constraints ต้องตรวจ
RESOURCE_LIMITenforcement ส่วน password policies ไม่ได้เป็น synonym ของ parameter นี้ - ก่อนเปลี่ยน profile ต้องวาง secret rotation, service accounts, app pool, monitoring และ rollback
SELECT username,profile,account_status FROM dba_users ORDER BY username;SELECT profile,resource_name,resource_type,limitFROM dba_profilesWHERE resource_name IN ('PASSWORD_VERIFY_FUNCTION','PASSWORD_LIFE_TIME','SESSIONS_PER_USER','FAILED_LOGIN_ATTEMPTS')ORDER BY profile,resource_name;Lab tabletop: ออกแบบ policy แยก human DBA vs noninteractive app account; ระบุ MFA/secret vault, lockout risk, failed login alerting และ legal/security policy. ห้าม disable password function เพื่อ bypass compliance.
เมื่ออ่านและฝึกทบทวนจบแล้ว ทำเครื่องหมายเพื่อบันทึกใน Browser นี้