Bo's Oracle Station

查看: 2425|回复: 0

课程第46/47/48/49次(2017-08-27星期天上下午和2017-09-03星期天上下午)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-8-27 11:19:45 | 显示全部楼层 |阅读模式
第三阶段New Feature/OCM Exam Preparation31-49

  1. CREATE TABLE sf_demo.resumes_interim
  2. (id NUMBER, first_name VARCHAR2(15),
  3. last_name VARCHAR2 (40), resume BLOB  encrypt )
  4. LOB (resume) STORE AS SECUREFILE
  5. (TABLESPACE users
  6. COMPRESS HIGH
  7. DEDUPLICATE)
  8. partition by range (id)
  9. ( partition p1 values less than ( 15 )  ,
  10.   partition p2 values less than (maxvalue))
  11. /

  12. pause Press [Enter] to continue...

  13. /*== Perform the online redefinition ==*/

  14. DECLARE
  15. error_count PLS_INTEGER := 0;
  16. BEGIN

  17. DBMS_REDEFINITION.START_REDEF_TABLE
  18. ('sf_demo', 'resumes', 'resumes_interim');

  19. DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
  20. ('sf_demo', 'resumes', 'resumes_interim', NUM_ERRORS=> error_count);

  21. DBMS_OUTPUT.PUT_LINE('Errors := ' || TO_CHAR(error_count));

  22. DBMS_REDEFINITION.FINISH_REDEF_TABLE
  23. ('sf_demo', 'resumes', 'resumes_interim');

  24. END;
复制代码

DATAGUARD  OBSERVER:

Screenshot.png


Screenshot-1.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-24 08:15 , Processed in 0.047680 second(s), 28 queries .

快速回复 返回顶部 返回列表