- 15
- 0
- 约3.01万字
- 约 34页
- 2017-12-13 发布于江苏
- 举报
数据库物化视图临时表
Materialized Viewsand Temporary Tables Objectives After completing this lesson, you should be able to do the following: Identify the purpose and benefits of materialized views Create materialized views Enable query rewrites Create dimensions Identify the benefits of temporary tables Materialized Views A materialized view: Is an “instantiation” of a SQL statement Has its own data segment and offers: Space management options Use of its own indexes Is useful for: Expensive and complex joins Summary and aggregate data Why Materialized Views? Why Materialized Views? How Many Materialized Views? Query rewrite chooses the materialized view to use. One materialized view per query: Ideal for queries performance Not recommended: consumes too much disk space One materialized view for multiple queries: One materialized view can be used to satisfy multiple queries. Less disk space is needed. Less time is needed for maintenance. Create Materialized Views:Syntax Options Creating a Materialized View: Example Types of Materialized Views Materialized views with aggregates Materialized views containing only joins Refresh Methods COMPLETE FAST FORCE NEVER REFRESH_METHOD in ALL_MVIEWS Refresh Modes ON DEMAND: Manual ON COMMIT: Refresh done at transaction commit. Mode can be specified for only fast-refreshable materialized views. In case of failure, subsequent refreshes are manual. Schedule: At regular intervals REFRESH_MODE in ALL_MVIEWS Refresh Materialized Views Manual refresh: By using the DBMS_MVIEW package Automatic refresh Synchronous: Upon commit of changes made to the underlying tables but independent of the committing transaction Asynchronous: Defines a refresh intervalfor the materialized view Full Notes Page Manual Refresh Using DBMS_MVIEW For ON DEMAND refresh only Three procedures with the DBMS_MVIEW package: REFRESH REFRESH_ALL_MVIEWS REFRESH_DEPENDENT Materialized Views: Manual Refresh Specific materialized views: Query Rewrites To use a materialized view instea
您可能关注的文档
最近下载
- 苏教版数学四年级上册第五单元《解决问题的策略》大单元整体教学设计.pdf
- 小学英语新人教版PEP四年级上册全册教学反思(2025秋)2.doc
- 药物生产车间污染交叉污染混淆的防控课件.ppt VIP
- 齿轮传动及测量理论 .pptx
- 西南财经大学《高等数学》2016-2017第一学期期末试卷.pdf VIP
- 新闻采访与写作(绪论).ppt VIP
- 2022年7月份呼吸内科护士理论考核.docx VIP
- 广西南宁市2024-2025学年七年级上学期期末地理试卷(含答案).pdf VIP
- 高质量精品资料—高一数学函数的概念.ppt VIP
- 中职数学第6章《数列》单元检测试题及答案【基础模块下册】.docx VIP
原创力文档

文档评论(0)