In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Table on-line redefinition principle:
The online redefinition of oracle table is realized by prebuilt materialized view. After executing DBMS_REDEFINITION.START_REDEF_TABLE (), we can find that the corresponding materialized view and materialized view log are added by querying, user_mviews and user_mview_logs and viewing prebuilt materialized view, while SYNC_INTERIM_TABLE () is actually just an incremental refresh of materialized view. Finally, when FINISH_REDEF_TABLE () is executed, the original table will be locked. To prevent the DML on the table, the materialized view performs a refresh. After the refresh is completed, the materialized view and the corresponding log will be deleted, and the intermediate table will be rename into a target table. Note: if the business system is busy, it will block the business in the last step.
Begin DBMS_REDEFINITION.CAN_REDEF_TABLE ('chunqiu','WL_FLOW_INFO', DBMS_REDEFINITION.CONS_USE_PK); end
Begin dbms_redefinition.start_redef_table ('chunqiu','WL_FLOW_INFO','WL_FLOW_INFO_tmp'); end
Begin dbms_redefinition.sync_interim_table ('chunqiu','WL_FLOW_INFO','WL_FLOW_INFO_tmp'); end
Begin dbms_redefinition.finish_redef_table ('chunqiu','WL_FLOW_INFO','WL_FLOW_INFO_tmp'); end
If the operation fails, find the reason, and you can do it again after the following processing:
Begin DBMS_REDEFINITION.abort_redef_table ('chunqiu','WL_FLOW_INFO','WL_FLOW_INFO_tmp'); end
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.