ITPub博客

首页 > 数据库 > Oracle > 11g temp shrink space;

11g temp shrink space;

原创 Oracle 作者:monkeybron 时间:2015-12-23 11:11:44 0 删除 编辑
[oracle@monkey bin]$ df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootVG-LogVol01
                       16G   15G   39M 100% /
/dev/sda1              99M   11M   84M  11% /boot
none                  2.0G  1.1G  933M  53% /dev/shm
[oracle@monkey bin]$ 

[oracle@monkey bin]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 23 09:32:05 2015


Copyright (c) 1982, 2009, Oracle.  All rights reserved.




Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> 
SQL> 
SQL> 
SQL> select tablespace_name from dba_tablespaces;


TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
EXAMPLE


6 rows selected.


SQL> 
SQL> alter tablespace TEMP shrink space;


Tablespace altered.


SQL> host df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootVG-LogVol01
                       16G   15G  772M  95% /
/dev/sda1              99M   11M   84M  11% /boot
none                  2.0G  1.1G  933M  53% /dev/shm

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30182853/viewspace-1878040/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-03-30

  • 博文量
    70
  • 访问量
    94588