Moving Tablespace for the Schema(Owner)

    版本為 23:05, 26 Dec 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    說明:

    1. 列出所有 Tables Name
    2. 對 Table 搬 Tablespace
    3. 重建已搬動 Table 的 Index
    4. 變更 Owner (Schema) 的預設 Tablespace

    TIPs:

    如果搬移有完成,舊的 Tablespace 可以直接刪除,如果還有其他物件沒有完成搬移,則 Tablespace 刪除會失敗。

    move_tbs.sh:

    如果 Table 裡有 LOB 物件,必須另外手動執行搬移指令

    reference to undefined name 'syntax' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)

     

    列出有 LOB 欄位的 Table 的相關資訊

    reference to undefined name 'syntax' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)

    move_tbs.sh:

    reference to undefined name 'syntax' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)

    另一種方式 gensql_move_tbs.sql:

    這個 Procedure 會產生需要的 SQLs

    reference to undefined name 'syntax' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)

    另一個 procedure:

    This procedure moves/rebuilds the tables/indexes of shema owners SUBBU/SUGGU to
    usr_d_01, usr_x_01, usr_d_02 and usr_x_02 tablespaces as per the case condition.

    You need to edit the CASE condition as per your database reorg requirements.
    Test this procedure in a test db thoroughly, before running in a production db.

    reference to undefined name 'syntax' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)
    Powered by MindTouch Core