重慶分公司,新征程啟航
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊、服務(wù)器等服務(wù)
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊、服務(wù)器等服務(wù)
聯(lián)機(jī)重定義功能是通過物化視圖來實(shí)現(xiàn)的。在調(diào)用START_REDEF_TABLE存儲過程時,會自動創(chuàng)建與臨時表名稱相同的物化視圖,并將源表的記錄拷貝到臨時表,此時源表可以DML和查詢,不可DDL。
在聯(lián)機(jī)重定義階段源表產(chǎn)生的DML修改記錄,將會被記錄到物化視圖日志中。在SYNC_INTERIM_TABLE和最后的FINISH_REDEF_TABLE過程,都會根據(jù)物化視圖日志中的記錄更新臨時表。
調(diào)用ABORT_REDEF_TABLE存儲過程后,建立的物化視圖被清除。如果臨時表上已經(jīng)有拷貝的數(shù)據(jù),那么在ABORT后,臨時表上的數(shù)據(jù)并未被清除,應(yīng)手工清除臨時表上的數(shù)據(jù)。
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.
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。