|
第三阶段New Feature/OCM Exam Preparation(31-49)
- CREATE TABLE sf_demo.resumes_interim
- (id NUMBER, first_name VARCHAR2(15),
- last_name VARCHAR2 (40), resume BLOB encrypt )
- LOB (resume) STORE AS SECUREFILE
- (TABLESPACE users
- COMPRESS HIGH
- DEDUPLICATE)
- partition by range (id)
- ( partition p1 values less than ( 15 ) ,
- partition p2 values less than (maxvalue))
- /
- pause Press [Enter] to continue...
- /*== Perform the online redefinition ==*/
- DECLARE
- error_count PLS_INTEGER := 0;
- BEGIN
- DBMS_REDEFINITION.START_REDEF_TABLE
- ('sf_demo', 'resumes', 'resumes_interim');
- DBMS_REDEFINITION.COPY_TABLE_DEPENDENTS
- ('sf_demo', 'resumes', 'resumes_interim', NUM_ERRORS=> error_count);
- DBMS_OUTPUT.PUT_LINE('Errors := ' || TO_CHAR(error_count));
- DBMS_REDEFINITION.FINISH_REDEF_TABLE
- ('sf_demo', 'resumes', 'resumes_interim');
- END;
复制代码
DATAGUARD OBSERVER:
|
|