Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> SQL

สามระดับของสถาปัตยกรรมฐานข้อมูล (Three-level Architecture)


ANSI-SPARC (American National Standards Institute - Standards Planning and Requirements Committee) รับรองและอนุมัติสถาปัตยกรรม 3 ระดับสำหรับฐานข้อมูล

สามระดับของสถาปัตยกรรมฐานข้อมูล (Three-level Architecture)

1. Physical หรือ Internal Level

เป็น Internal Level คือการจัดเก็บข้อมูลทางกายภาพ (physical storage) ของฐานข้อมูล

อธิบายว่าข้อมูลจัดเก็บภายในอย่างไร รวมถึงโครงสร้างข้อมูลที่ฐานข้อมูลใช้

2. Conceptual หรือ Logical Level

แสดงเนื้อหาทั้งหมดของฐานข้อมูล คือ records และ relationships มุมมองกลาง (global view) อยู่ชั้นกลาง

Conceptual level มีโครงสร้างตรรกะของฐานข้อมูลทั้งหมด

3. External หรือ View Level

External Level คือสิ่งที่ end users เห็น ฐานข้อมูลจะมี Internal Schema และ Conceptual Schema เพียงหนึ่งเดียว แต่อาจมี External Schemas หลายอัน ตามความต้องการของผู้ใช้แต่ละกลุ่ม

สรุป

ระดับ ชื่อเรียก ความรับผิดชอบ ผู้เกี่ยวข้อง
1 Internal / Physical Physical storage, data structures, indexing DBA, System architects
2 Conceptual / Logical Global logical structure, entities, relationships Data architects, developers
3 External / View User-specific views, security, abstraction End users, application developers

ประโยชน์

  • Data Independence: เปลี่ยนระดับล่างไม่กระทบระดับบน
  • Security: ควบคุมการเข้าถึงผ่าน Views
  • Abstraction: ซ่อนความซับซ้อนของ storage