oracle临时表空间地址,oracle修改临时表空间

今天查看 alert 日志,发现又告警信息

hu Nov 03 12:57:55 2011

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Thu Nov 03 12:57:55 2011

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Thu Nov 03 12:57:55 2011

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Thu Nov 03 13:01:02 2011

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Thu Nov 03 13:04:28 2011

ORA-1652: unable to extend temp segment by 128 in tablespace TEMP

Thu Nov 03 13:17:07 2011

一看就是临时表空间满了,所以准备扩展临时表空间

先查看下默认的临时表空间是哪个

select * from database_properties

where property_name='DEFAULT_TEMP_TABLESPACE';

默认临时表空间是temp,路径是:E:\ORACDATA\TESTSXX\TEMP01.DBF

用alter database tempfile ‘E:\ORACDATA\TESTSXX\TEMP01.DBF’ resize 50000M

但出现报错:报错的原因是由于在当初建立这个临时表空间的时候设置了maxsize 参数,所以现在不能用resize

现在只能先建立个临时表空间

create temporary tablespace TEMPORARY_DATA1

TEMPFILE 'e:/oradata/testsxx/TEMPORARY_DATA02.DBF'

SIZE 50M

AUTOEXTEND ON

NEXT 50M MAXSIZE 30720M

EXTENT MANAGEMENT LOCAL ;

然后把新建立的 临时表空间 设为默认的临时表空间

alter database default temporary tablespace TEMPORARY_DATA1;

增加下哪些用户在使用临时表空间的语句:

Select se.username,se.sid,se.serial#,su.extents,su.blocks*to_number(rtrim(p.value))as Space,

tablespace,segtype,sql_text

from v$sort_usage su,v$parameter p,v$session se,v$sql s

where p.name='db_block_size' and su.session_addr=se.saddr and s.hashvalue=su.sqlhash

and s.address=su.sqladdr

order by se.username,se.sid;

删除临时表空间语句:

drop tablespace tempspacename including contents and datafiles;

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值