Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3550414
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2022-09-18 15:15:27

temp是系统自动管理的

  1. 查当前位置
  2. select group_id,id,path,auto_extend,max_size from v$datafile;

查大小
  1. SELECT
  2.         a.tablespace_name "表空间名称" ,
  3.         (total - free) / (1024 * 1024 ) "使用(M)" ,
  4.         free / (1024 * 1024) "剩余(M)" ,
  5.         total / (1024 * 1024) "大小(M)" ,
  6.         round((total - free) / total, 4) * 100 "使用率 %"
  7. FROM
  8.         (
  9.                 SELECT
  10.                         tablespace_name, SUM(bytes) free
  11.                 FROM
  12.                         dba_free_space
  13.                 GROUP BY
  14.                         tablespace_name
  15.         )a,
  16.         (
  17.                 SELECT
  18.                         tablespace_name, SUM(bytes) total
  19.                 FROM
  20.                         dba_data_files
  21.                 GROUP BY
  22.                         tablespace_name
  23.         ) b
  24. WHERE
  25.         a.tablespace_name = b.tablespace_name and a.tablespace_name='TEMP';

  26. 或者 ls -lh /home/dmdba/dmdbms/data/dmserver/TEMP*

调大
  alter tablespace temp resize datafile '/home/dmdba/dmdbms/data/dmserver/TEMP.DBF' to 128;

调小
  1. SP_TRUNC_TS_FILE (ts_id ,file_id, to_size);        
  2. SP_TRUNC_TS_FILE (3 ,0, 64);


限制暴涨


0是不限制temp空间大小。

改一下

要注意生效情况。
阅读(459) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~