国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > 綜合 > 正文

ORA-01650

2024-07-21 02:09:49
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

數(shù)據(jù)庫(kù)很多表頻繁報(bào)錯(cuò) ora-01688 ora-01650 等錯(cuò)誤
ora-01650: unable to extend rollback segment %s by %s in tablespace %s     
cause: failed to allocate extent for the rollback segment in tablespace.    
action: use the alter tablespace add datafile statement to add one or more files to the specified tablespace.
從原因上看 unable to extend 是因?yàn)闆](méi)有鄰近的空間可以去擴(kuò)展
報(bào)錯(cuò)的是motorola表空間

首先!我的所有表的next 都是1m pctincrease 0


所以我就先去查motorola 所在表空間最大的鄰近空間
sql>select  max(bytes)       
from    dba_free_space       
where   tablespace_name = 'motorola';

max(bytes)
----------
2126503936

這個(gè)結(jié)果明顯比表的設(shè)置 next extent= 1024k 要大
那我們看看rpt_mot_cell_per的參數(shù)

select next_extent, pct_increase, tablespace_name   
from   dba_tab_partitions      
where  partition_name='p9' and table_owner = 'mot_nmc' and table_name='rpt_mot_cell_per';

next_extent pct_increase
----------- ------------
tablespace_name
------------------------------------------------------------
     1048576            0
motorola


metalink上提供了解決方法:
1.alter tablespace motorola coalesce;

the extents must be adjacent to each other for this to work
 我用了!沒(méi)有用
2 add datafile 或者 resize
  這個(gè)明顯是有效果的!后來(lái)我加了數(shù)據(jù)文件以后也是有效果的!

3.修改next
  這個(gè)也是有效的

后來(lái)我發(fā)現(xiàn)我的思路有問(wèn)題了

早最大的extent 并沒(méi)有用!

select count(*)    
from    dba_free_space       
where   tablespace_name = 'motorola';
————————

47212

select count(*)    
from    dba_free_space       
where   tablespace_name = 'motorola'
and bytes<1048576;
————————

47208

大部分extent都是小與1m的所以不能分配 oracle不會(huì)去找最大!

 

 

 

 

 

 


 
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 健康| 西丰县| 海安县| 翁牛特旗| 时尚| 察哈| 阿尔山市| 成都市| 淮滨县| 扎赉特旗| 晋宁县| 石渠县| 栖霞市| 韶山市| 镇江市| 安塞县| 西华县| 河南省| 济阳县| 周宁县| 江津市| 沐川县| 高雄县| 济阳县| 鹿邑县| 太仆寺旗| 阳春市| 南充市| 澄江县| 新竹县| 任丘市| 莎车县| 花莲市| 赫章县| 崇州市| 永顺县| 眉山市| 寻乌县| 镇安县| 舒城县| 宣城市|