V $ SQL_MONITOR
และ
V $ SQL_PLAN_MONITOR
แต่สำหรับใน Enterprise Manage ของ 11gR2 นี้ มี GUI ที่เราสามารถทำการ Mornitor ได้โดยไม่ต้องพิมพ์ command
เราจะลองยกตัวอย่างสาธิตให้ดู โดย...สมมุติว่าเราต้องการ สร้างตารางการขาย ขนาดใหญ่ (560 M) เพื่อ Select statement ซึ่งกินเวลามากกว่า 30 วินาที
ขั้นแรก เราไปที่ Performance page > Top Activity ตามปรกติ

เราสามารถเห็นเวลาในการ run ได้ พร้อมกับในขณะที่ Statement มีการ run อยู่ (20 วินาที) ตามรูปด้านล่าง


อ้างอิง
No comments:
Post a Comment