oracle_online table redefinition_2

发布时间:2020-07-26 21:27:49 作者:仕强君
来源:网络 阅读:545

联机重定义功能是通过物化视图来实现的。在调用START_REDEF_TABLE存储过程时,会自动创建与临时表名称相同的物化视图,并将源表的记录拷贝到临时表,此时源表可以DML和查询,不可DDL。
在联机重定义阶段源表产生的DML修改记录,将会被记录到物化视图日志中。在SYNC_INTERIM_TABLE和最后的FINISH_REDEF_TABLE过程,都会根据物化视图日志中的记录更新临时表。
调用ABORT_REDEF_TABLE存储过程后,建立的物化视图被清除。如果临时表上已经有拷贝的数据,那么在ABORT后,临时表上的数据并未被清除,应手工清除临时表上的数据。

Table redefinition is started by the DBA creating an interim table based on the original table. The interim table can have a different structure than the original table, and will eventually take the original table's place in the database. While the table is redefined, DML operations on the original table are captured in a Materialized View Log table (MLOG$_%). These changes are eventually transformed and merged into the interim table. When done, the names of the original and the interim tables are swapped in the data dictionary. At this point all users will be working on the new table and the old table can be dropped.

oracle_online table redefinition_2
oracle_online table redefinition_2
oracle_online table redefinition_2

推荐阅读:
  1. Oracle 中 isnumeric 的三种实现
  2. 怎么理解Oracle数据库中的多表查询,分组查询,子查询

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

oracle online table

上一篇:mysql的varchar与text对比

下一篇:iOS UITableView 移除单元格选中时的高亮状态

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》