- 最后登录
- 2015-3-3
- 在线时间
- 49 小时
- 威望
- 0
- 金钱
- 210
- 注册时间
- 2012-12-12
- 阅读权限
- 10
- 帖子
- 63
- 精华
- 0
- 积分
- 0
- UID
- 813
|
1#
发表于 2013-7-1 16:43:45
|
查看: 4771 |
回复: 2
env:XD X2-2 quarter rack
rdbms:11.2.0.3.BP 7
执行以下sql的时候报错:- SQL> create table wxx_ydtrac_1306 compress for query high nologging as
- 2 select a.region_id,to_char(a.start_time,'yyyymmddhh24') sd,
- 3 b.acct_item_type_id ,a.event_type_id event_type,
- 4 count(distinct a.calling_nbr) zjsh,count(a.event_inst_id) hd,
- 5 sum(b.rate_duration) rum_value,sum(a.duration) duration,
- 6 sum(b.charge) fy
- 7 from V_NBIL_EVT_TGCDR_DAY a,
- 8 V_NBIL_EVT_TGCDR_FEE_DAY b
- 9 where a.event_inst_id=b.event_inst_id
- 10 and to_char(a.start_time,'yyyymm')='201306'
- 11 group by a.region_id,to_char(a.start_time,'yyyymmddhh24'),
- 12 b.acct_item_type_id ,a.event_type_id
- 13 order by
- 14 a.region_id,to_char(a.start_time,'yyyymmddhh24'),
- 15 b.acct_item_type_id ,a.event_type_id;
- create table wxx_ydtrac_1306 compress for query high nologging as
- *
- ERROR at line 1:
- ORA-12801: error signaled in parallel query server P070, instance
- ods02odscpy02.xjods.com:odscpy2 (2)
- ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
复制代码 temp tablespace有512G,在执行过程中用- select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks
- from gv$sort_segment ;
复制代码 这条命令检查也没发现有哪个节点的free出现0的情况
用- SELECT vt.inst_id,
- vs.sid,
- vs.serial#,
- vs.username,
- vs.osuser,
- vs.machine,
- vs.saddr,
- vs.client_info,
- vs.program,
- vs.module,
- vs.logon_time,
- vt.tempseg_usage,
- vt.segtype
- FROM gv$session vs,
- ( SELECT inst_id,
- username,
- session_addr,segtype,
- ROUND (SUM (blocks) * 8192 / 1024 / 1024 / 1024, 2)
- tempseg_usage
- FROM gv$tempseg_usage
- GROUP BY inst_id, username, session_addr,segtype
- ORDER BY 4 DESC) vt
- WHERE vs.inst_id = vt.inst_id AND vs.saddr = vt.session_addr order by tempseg_usage desc;
复制代码 这条命令一直监控temp表空间使用情况,发现所有session最多也就使用100G左右的temp tablespace
参考mos上的这两份文档
ORA-01652: Unable to Extend Temp Segment in RAC [ID 1534590.1]
Bug 14383007 - Sort runs out of temp space in RAC even when temp space is available [ID 14383007.8]
感觉场景不是很吻合,麻烦ML帮忙分析一下吧,谢谢你了。
我正在生成10046,完了传上来。 |
|