OCP 1Z0 053 25
2014-06-30 20:18
239 查看
25.You enabled Flashback Data Archive on the INVENTORY table. Which DDL operation is supported on
the table after enabling Flashback Data Archive?
A. Drop the table.
B. Partition the table
C. Truncate the table.
D. Add a column to the table.
E. Rename a column in the table.
Answer: D
http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_flashback.htm#BJFJHDAG
Using any of the following DDL statements on a table enabled for Flashback Data Archive causes error ORA-55610:
Drops, renames, or modifies a column
Performs partition or subpartition operations
Converts a
Includes an
不知是否新版本有改进,测试结果不一样
版本
新增字段
删除字段
truncate
rename column
rename table
the table after enabling Flashback Data Archive?
A. Drop the table.
B. Partition the table
C. Truncate the table.
D. Add a column to the table.
E. Rename a column in the table.
Answer: D
http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_flashback.htm#BJFJHDAG
DDL Statements Not Allowed on Tables Enabled for Flashback Data Archive
Using any of the following DDL statements on a table enabled for Flashback Data Archive causes error ORA-55610:ALTER
TABLEstatement that does any of the following:
Drops, renames, or modifies a column
Performs partition or subpartition operations
Converts a
LONGcolumn to a LOB column
Includes an
UPGRADE
TABLEclause, with or without an
INCLUDING
DATAclause
DROP
TABLEstatement
RENAME
TABLEstatement
TRUNCATE
TABLEstatement
不知是否新版本有改进,测试结果不一样
版本
SQL> select * from v$version where rownum <=1; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - Production 1 row selected
SQL> CREATE TABLE employee (EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10), 2 JOB VARCHAR2(9), MGR NUMBER(4)) FLASHBACK ARCHIVE; Table created SQL> insert into employee(empno) values(11); 1 row inserted SQL> commit; Commit complete SQL> select systimestamp from dual; SYSTIMESTAMP -------------------------------------------------------------------------------- 30-JUN-14 08.10.33.031000 PM +08:00 1 row selected
新增字段
SQL> alter table employee add new_col number; Table altered SQL> delete from employee; 1 row deleted SQL> commit; Commit complete SQL> SELECT empno FROM employee 2 AS OF TIMESTAMP TO_TIMESTAMP('2014-6-30 20:10.33', 'YYYY-MM-DD HH24:MI:SS'); EMPNO ----- 11 1 row selected
删除字段
SQL> alter table employee drop column new_col; Table altered SQL> SQL> SELECT empno FROM employee 2 AS OF TIMESTAMP TO_TIMESTAMP('2014-6-30 20:10.33', 'YYYY-MM-DD HH24:MI:SS'); EMPNO ----- 11 1 row selected
truncate
SQL> truncate table employee; Table truncated SQL> SQL> SELECT empno FROM employee 2 AS OF TIMESTAMP TO_TIMESTAMP('2014-6-30 20:10.33', 'YYYY-MM-DD HH24:MI:SS'); EMPNO ----- 11 1 row selected
rename column
SQL> alter table employee rename column empno to empno2; Table altered SQL> SELECT empno2 FROM employee 2 AS OF TIMESTAMP TO_TIMESTAMP('2014-6-30 20:10.33', 'YYYY-MM-DD HH24:MI:SS'); EMPNO2 ------ 11 1 row selected
rename table
SQL> alter table employee rename to emp3; Table altered SQL> SQL> SELECT empno2 FROM emp3 2 AS OF TIMESTAMP TO_TIMESTAMP('2014-6-30 20:10.33', 'YYYY-MM-DD HH24:MI:SS'); EMPNO2 ------ 11 1 row selected
相关文章推荐
- [每日一题] 11gOCP 1z0-053 :2013-10-6 significance of the CHANGE FAILURE ..................25
- OCP-1Z0-053-V13.02-25题
- OCP-1Z0-053-V13.02-25题
- OCP-1Z0-053-200题-25题-606
- [每日一题] 11gOCP 1z0-053 :2013-10-6 significance of the CHANGE FAILURE ..................25
- OCP-1Z0-053-200题-8题-92
- OCP-1Z0-053-200题-126题-264
- OCP-1Z0-053-200题-175题-534
- OCP-1Z0-053-200题-157题-105
- OCP-1Z0-053-200题-146题-234
- OCP-1Z0-053-200题-135题-150
- OCP-1Z0-053-200题-118题-496
- OCP-1Z0-053-200题-84题-660
- OCP-1Z0-053-200题-70题-647
- OCP-1Z0-053-200题-48题-626
- OCP-1Z0-053-200题-67题-644
- OCP-1Z0-053-200题-200题-61
- OCP-1Z0-053-V13.02-473题
- OCP-1Z0-053-V13.02-698题
- OCP 1Z0 051 25