zoukankan      html  css  js  c++  java
  • truncate 空间不释放问题

    SQL> set linesize 200

    SQL> select segment_name, sum(bytes / 1024 / 1024/1024)

      from dba_segments

      where segment_name='T_PM_DEBIT_CARD'

      group by segment_name;  2    3    4 

     

    SEGMENT_NAME                                                                 SUM(BYTES/1024/1024/1024)

    --------------------------------------------------------------------------------- -------------------------

    T_PM_DEBIT_CARD                                                                  16.1968994

     truncate table T_PM_DEBIT_CARD;

    SQL> select segment_name, sum(bytes / 1024 / 1024 / 1024)

      from dba_segments

     where segment_name = 'T_PM_DEBIT_CARD'

     group by segment_name;  2    3    4 

     

    SEGMENT_NAME                                    SUM(BYTES/1024/1024/1024)

    --------------------------------------------------------------------------------- -------------------------

    T_PM_DEBIT_CARD                                         .836181641

    为什么还有800M呢?

    SQL> alter table T_PM_DEBIT_CARD deallocate unused keep 0;

     

    Table altered.

     

    SQL> select segment_name, sum(bytes / 1024 / 1024 / 1024)

      from dba_segments

     where segment_name = 'T_PM_DEBIT_CARD'

     group by segment_name;  2    3    4 

     

    SEGMENT_NAME                                    SUM(BYTES/1024/1024/1024)

    --------------------------------------------------------------------------------- -------------------------

    T_PM_DEBIT_CARD                                         .051513672

    是因为initial 分配的缘故.

  • 相关阅读:
    html5晋级之路-响应式布局基本实现
    html5晋级之路-css动画-过度
    html5晋级之路-css尺寸操作
    ios-晋级之路 在模拟器中测试定位
    html5晋级之路-css选择器
    html5 css定位
    ios-晋级之路 CocoaPods引用第三方库不import不自动补齐
    html5晋级之路-css背景
    02需求工程-软件建模与分析阅读笔记
    01需求工程-软件建模与分析阅读笔记
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/3797954.html
Copyright © 2011-2022 走看看