V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dot2017
V2EX  ›  数据库

Oracle 回收多余表空间文件的正确姿势?

  •  
  •   dot2017 · Feb 20, 2019 · 1636 views
    This topic created in 2626 days ago, the information mentioned may be changed or developed.
    因为应用开发的历史原因,之前数据库里有个 schema 使用到了若干个表空间文件(data file)。现在应用对这个 schema 进行了数据清理,表空间使用率有了大幅度的下降,这样一来多个表空间文件就没什么意义了,于是就想整合到一个表空间文件中。google 到的教程都是说要备份出整个 schema 的数据,然后 drop 掉整个表空间,再重建并导回数据。感觉这么做比较麻烦的样子。想问一下如果直接 drop 掉多余的表空间文件会有什么影响吗?或者说如何将可能分散在不同表空间文件里的数据块,整和到一个文件中呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5100 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 09:10 · PVG 17:10 · LAX 02:10 · JFK 05:10
    ♥ Do have faith in what you're doing.