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

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

บทนำ

Blog นี้อธิบายวิธี Configure Oracle® Automatic In-Memory (AIM) เพื่อ Manage Objects ใน In-Memory (IM) Column Store

IM Column Store Feature อนุญาตให้ Populate Segments ใน Columnar Format ต่างจาก Buffer Cache IM Column Store Populate Complete Segment เข้า Memory Automatic Data Optimization (ADO) และ AIM Manage Objects ใน IM Column Store

Oracle Introduce AIM ใน Oracle Database Version 18c ใช้ Access Tracking, Column Statistics, และ Statistics อื่นๆ ที่เกี่ยวข้อง Manage Objects ใน IM Column Store AIM Ensure ว่า Active Segments อยู่ใน Populated State โดย Auto Evict Cold (Infrequently Accessed) Segments

In-memory Segment Eligible สำหรับ Eviction ก็ต่อเมื่อ INMEMORY Priority เป็น NONE และ AIM Evict In-memory Segment เมื่อ IM Column Store Space Exhausted Database ใช้ Internal Statistics ของ Populated Segments Define Set of Objects ที่จะ Evict ถ้ามี ADO Policy Enabled ป้องกัน In-memory Segment Eviction ADO Policy จะ Override AIM และ Prevent Eviction

Enable AIM

System-level Initialization Parameter INMEMORY_AUTOMATIC_LEVEL Enable AIM มีค่า:

  • OFF (Default): Disable AIM
  • LOW: Cold Segments ถูก Evict จาก IM Column ในกรณี Memory Pressure
  • MEDIUM: Level นี้ Ensure ว่า Hot Segment ใดๆ ที่ยังไม่ Populated เพราะ Memory Pressure จะถูก Populate ก่อน

ภาพแสดง Parameter INMEMORY_AUTOMATIC_LEVEL และวิธี Modify Value:

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

Set Time Interval สำหรับ AIM

ใช้ Package DBMS_INMEMORY_ADMIN Set Time Interval สำหรับ Usage Statistics ที่ AIM Check Default Value = 31 Days สามารถเปลี่ยนได้ตามตัวอย่าง:

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

เข้าใจว่า AIM ทำงานอย่างไร

Query Dynamic Performance (V$) View V$IM_SEGMENTS เพื่อ List Currently Populated Segments ใน IM Column Store และ Check Tables ที่มี Status INMEMORY ENABLED สำหรับ Schema ในตัวอย่าง Segment TAB1 แสดงใน Populated Segments List แล้วเพราะ Priority = HIGH

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

ตอนนี้ Populate Tables อื่นๆ ด้วย INMEMORY ENABLED Tables จะ Populated ใน IM Column Store หลังจาก Access Tables แล้ว

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

ลอง Populate Table อีกตัว EXAMPLE3 ด้วย Priority HIGH ให้ Preference Over Segments ที่ Priority = NONE Query V$IM_SEGMENTS พบว่า Tables ที่ Priority = NONE ไม่แสดง เพราะ IM Column Store Under Memory Pressure EXAMPLE3 Partially Populated BYTES_NOT_POPULATED ไม่ใช่ 0 นั่นคือ AIM Evicted Cold Segments อื่นๆ (Segments ที่ Priority = NONE) หมายเหตุ: ถ้า Segment Partially Populated Query ที่ Access Objects ใน IM Column Store ทำงานได้ปกติ — ได้ Remaining Data ที่ไม่เจอใน IM Column Store จาก Database

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

Query DBA_INMEMORY_AIMTASKS ดู Status ของ All Tasks ที่ AIM สร้าง DBA_INMEMORY_AIMTASKDETAILS List Details ของ Actions ที่ AIM ทำบน Segments ใน IM Column Store ในภาพ ไม่มี Action บน TAB1 เพราะ Priority = HIGH และขณะ Populate EXAMPLE3 IM Column Store Under Memory Pressure AIM Evicted Segments อื่นๆ

Oracle 18c Automatic In-Memory (AIM): Configuration Guide สู่ Peak Performance

สรุป

แม้ AIM จะเป็น Feature ที่ช่วย Automate Objects ใน IM Column Store แต่มี Restrictions เพราะ Enable ได้เฉพาะ Databases ที่ Hosted บน Cloud-based Systems และ Engineered Systems Databases ที่ Hosted บน System Types อื่นๆ เช่น Premise Systems จะ Generate Error ตอนพยายาม Enable AIM

ใช้แท็บ Feedback เพื่อแสดงความคิดเห็นหรือถามคำถาม

เพิ่มประสิทธิภาพสภาพแวดล้อมด้วยบริการผู้เชี่ยวชาญ

ผู้เชี่ยวชาญ Rackspace Application Services (RAS) ให้บริการ Professional และ Managed Services ครอบคลุม Portfolio หลากหลาย:

  • Platform สำหรับ eCommerce และ Digital Experience
  • Enterprise Resource Planning (ERP)
  • Business Intelligence
  • Salesforce Customer Relationship Management (CRM)
  • Databases
  • Email Hosting และ Productivity

เรามอบ:

  • Unbiased Expertise: ลดความซับซ้อนและนำทางการ Modernization เน้นความสามารถที่สร้างคุณค่าทันที
  • Fanatical Experience™: รวมแนวทาง Process First. Technology Second.® พร้อม Technical Support ให้ Soluation ครบวงจร
  • Unrivaled Portfolio: ประยุกต์ประสบการณ์ Cloud มากมายช่วยเลือกและ Deploy เทคโนโลยีที่เหมาะสมบน Cloud ที่เหมาะสม
  • Agile Delivery: ตรงจุดที่คุณอยู่ในการเดินทางและทำให้ความสำเร็จของเราสอดคล้องกับคุณ

แชทตอนนี้เพื่อเริ่มต้น