Oracle 快照(snapshot) 管理

來源:互聯網
上載者:User

Oracle 快照(snapshot) 管理

----手工建立Oracle 快照
 BEGIN
 DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
 END;
 /

---刪除快照
 具體快照資訊可以查看視圖 DBA_HIST_SNAPSHOT
 
BEGIN
 DBMS_WORKLOAD_REPOSITORY.DROP_SNAPSHOT_RANGE (low_snap_id => 22,
high_snap_id => 32, dbid => 3310949047);
 END;
 /
 

---修改快照設定
 BEGIN
 DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS( retention => 43200, interval => 30, topnsql => 100, dbid => 3310949047);
 END;
 /
 
/* retention :43200 minutes (30 days) ;interval:30 minutes ;topsql:    */
 通過視圖  DBA_HIST_WR_CONTROL 查看當前快照參數配置。

Oracle資料庫 ORA-01555 快照過舊

Oracle ORA-01555 快照過舊 說明

Oracle 快照控制檔案(snapshot control file)

Oracle教程:快照控制檔案 

Oracle如何?兩個資料庫的同步(用實體化視圖實現)(Oracle快照執行個體)

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.