Oracle10gMaterialized视图的改进Oracle认证考试

文章作者 100test 发表时间 2009:08:31 18:37:52
来源 100Test.Com百考试题网


"mkhgigh">   truncate分区以后,物化视图快速刷新出错
  0drop分区以后,物化视图快速刷新出错
  测试Oralce9i的情况:
  SQL>. create table T_PART
  2 (
  3 C1 NUMBER,
  4 C2 NUMBER,
  5 C3 NUMBER
  6 )
  7 partition by range (C2)
  8 (
  9 partition T_P2 values less than (20)
  10 ,
  11 partition T_P3 values less than (30)
  12 )
  13 .
  Table created.
  SQL>. insert into t_part values(1,2,3).
  1 row created.
  SQL>. insert into t_part values(1,25,3).
  1 row created.
  SQL>. insert into t_part values(1,18,3).
  1 row created.
  SQL>. commit.
  Commit complete.
  SQL>. create materialized view log on t_part with rowid.
  Materialized view log created.
  SQL>. create materialized view mv_t_part refresh with rowid as 0select * from t_part.
  Materialized view created.
  SQL>. 0select * from t_part.
  C1 C2 C3
  ---------- ---------- ----------
  1 2 3
  1 18 3
  1 25 3
  SQL>. 0select * from mv_t_part.
  C1 C2 C3
  ---------- ---------- ----------
  1 2 3
  1 18 3
  1 25 3
  SQL>. alter table t_part truncate partition t_p2.
  Table truncated.
  SQL>. exec dbms_mview.refresh("mv_t_part","f").
  BEGIN dbms_mview.refresh("mv_t_part","f"). END.
  *

相关文章


更改Oracle数据库的SIDOracle认证考试
清理RMAN备份数据中的过期数据Oracle认证考试
特定需求和应用催生新型数据库革命Oracle认证考试
Oracle数据库的建模与具体设计Oracle认证考试
Oracle10gMaterialized视图的改进Oracle认证考试
Oracle学习:分区表和索引Oracle认证考试
dumpOracle数据库的内部结构Oracle认证考试
调整OracleSGA大小的解决方法Oracle认证考试
大型数据库设计原则Oracle认证考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛