Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1957634
  • 博文数量: 176
  • 博客积分: 1857
  • 博客等级: 上尉
  • 技术积分: 2729
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-14 22:55
个人简介

吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.

文章分类

全部博文(176)

文章存档

2019年(1)

2018年(14)

2017年(20)

2016年(31)

2015年(15)

2014年(5)

2013年(10)

2012年(80)

分类: Oracle

2012-08-09 10:26:48

1.1SQL*Loader使用报错.

场景:定时脚本的sql*loader导入的数据不全.

分析:  分析SQL*loader日志.

ORA-01688: unable to extend table WEBLOG.BROWSER_DETAIL_ZIYOU_XBK partition CREATE_DATE_W1 by 1024 in tablespace WEBLOG

 错误显示:无法扩展表空间。

 查看错误编号:

[oracle@oralocal1 2012-08-07]$ oerr ora 01688
01688, 00000, "unable to extend table %s.%s partition %s by %s in tablespace %s"
// *Cause:  Failed to allocate an extent for table segment in tablespace.
// *Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
//         files to the tablespace indicated.

 

使用脚本查看(观察表空间的剩余量)

select

b.file_name 物理文件名,

b.tablespace_name 表空间,

b.bytes/1024/1024 大小M,

(b.bytes-sum(nvl(a.bytes,0)))/1024/1024 已使用M,

substr((b.bytes-sum(nvl(a.bytes,0)))/(b.bytes)*100,1,5) 利用率

from dba_free_space a,dba_data_files b

where a.file_id=b.file_id

group by b.tablespace_name,b.file_name,b.bytes

order by b.tablespace_name

 

发现:weblog的表空间已经全部用完了。

 

解决方法:

增加表空间的大小(固定):

ALTER TABLESPACE WEBLOG ADD DATAFILE '/ora/OraHome/oradata/hoodong/weblog09.dbf'SIZE 8192M;

 

增加表空间的大小(自动扩展)

ALTER TABLESPACE WEBLOG ADD DATAFILE '/ora/OraHome/oradata/hoodong/weblog09.dbf'SIZE 200M

AUTOEXTEND ON

NEXT 10M

MAXSIZE 8192M;

阅读(6321) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~