免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2805 | 回复: 6
打印 上一主题 下一主题

imp时报错,请各位高手出山帮忙,非常感谢!!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-22 11:37 |只看该作者 |倒序浏览
本帖最后由 wzqawp 于 2010-04-22 22:34 编辑

由于公司数据库出了问题,导出了数据,放到自己的机器上测试一下,
结果imp的时候出了错,很郁闷,昨天还从那个数据库exp-imp过,没有问题,

报错:
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
...............................................................................
...............................................................................
出现了好多行,上网查了一下,改一下buffer,    然后我imp命令“buffer=” 后我换了很大的数字,
还是不行,出现的频率低了,但是还会出现这个报错!

请高手帮忙!

论坛徽章:
0
2 [报告]
发表于 2010-04-22 11:54 |只看该作者
回复 1# wzqawp


    可否把环境、命令 详细说下。 上来就扔错误信息很难定位。

论坛徽章:
0
3 [报告]
发表于 2010-04-22 22:21 |只看该作者
本帖最后由 wzqawp 于 2010-04-22 22:33 编辑

是这样,从公司exp了两个文件,第一个j.dmp,第二个是j2.dmp
SQL>exp system/oracle  OWNER=j  file=j.dmp
第一次由于产生了一个表的报错,其实就是
ORA-01578: ORACLE 数据块损坏(文件号1,块号77335)
ORA-01110: .......................................
正好是system表空间,不知道那个傻瓜把用户数据放在这上面。


于是在网上查找解决办法,按照老盖网站上的做法
SQL> ALTER SYSTEM SET EVENTS='10231 trace name context forever,level 10';
这个命令是要让exp跳过坏块而继续导出


然后继续导出数据
SQL>exp system/oracle  OWNER=j  file=j2.dmp


将这个两个dmp文件都放到自己机器上并建立了2个用户w1 w2, j.dmp导入w1没有任何问题。
j2.dmp导入w2,则出现了IMP-00032: SQL statement exceeded buffer length的问题.
imp w1/oracle fromuser=j touser=w1 file=j.dmp log=j.log commit=y buffer=2048000;
imp w2/oracle fromuser=j touser=w2 file=j2.dmp log=j2.log commit=y buffer=2048000;

我觉得j1能成功导入,就与两个数据库设置什么的没关系,两个文件相比j2大了一点,应该是
忽略坏块后,多导出了许多行数据,buffer改了好几个数,还是报错,还出现了其他的报错:
[oracle@linux ~]$ imp w2/oracle fromuser=j  touser=w2 file=j2.dmp commit=y buffer=20480000;

Import: Release 10.2.0.1.0 - Production on Thu Apr 22 21:35:48 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.01.00 via conventional path
Warning: the objects were exported by SYSTEM, not by you

import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
export client uses US7ASCII character set (possible charset conversion)
. . importing table                "WAP_MOBILEPIC"         49 rows imported
. . importing table                 "WAP_MOBILEUA"        736 rows imported
. . importing table             "WAP_MOBILEUA_BAK"       1343 rows imported
. . importing table                  "WAP_NEWSPIC"       2990 rows imported
. . importing table                   "YS_AMS_ADS"          0 rows imported
. . importing table                "YS_AMS_IPLIST"          0 rows imported
. . importing table                 "YS_AMS_PLACE"          0 rows imported
. . importing table                 "YS_BBS_BOARD"          0 rows imported
. . importing table                "YS_BBS_CONFIG"          0 rows imported
. . importing table               "YS_BBS_MESSAGE"          0 rows imported
. . importing table                "YS_BBS_ONLINE"          0 rows imported
. . importing table                 "YS_BBS_REPLY"          0 rows imported
. . importing table                 "YS_BBS_TOPIC"          0 rows imported
. . importing table                  "YS_BBS_USER"          0 rows imported
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"P"
IMP-00003: ORACLE error 6550 encountered
ORA-06550: line 1, column 40:
PLS-00103: Encountered the symbol ""P" when expecting one of the following:

   ( - + case mod new not null others <an identifier>
   <a double-quoted delimited-identifier> <a bind variable> avg
   count current exists max min prior sql stddev sum variance
   execute forall merge time timestamp interval date
   <a string literal with character set specification>
   <a number> <a single-quoted SQL string> pipe
   <an alternatively-quoted string literal with character set specif
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length

请各位高手出山帮忙,非常感谢!!!!!!

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
4 [报告]
发表于 2010-04-23 12:20 |只看该作者
有没有 clob,blob这样的类型存在。

论坛徽章:
0
5 [报告]
发表于 2010-04-23 13:38 |只看该作者
数据库的内存怎么分配的?

论坛徽章:
0
6 [报告]
发表于 2010-04-24 20:52 |只看该作者
本帖最后由 wzqawp 于 2010-04-24 21:02 编辑

是这样,我把dmp文件再次导入了公司另外一台机器,除了1个表出现了报错,没有别的错误,不会出现
IMP-00032: SQL statement exceeded buffer length
IMP-00032: SQL statement exceeded buffer length
....................................................................................这样的问题。

我想这应该证明是我的数据库存在问题,但是我不知道哪里出了问题!!
以下是我的buffer
buffer SQL
SQL> show parameter buffer;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
buffer_pool_keep                     string
buffer_pool_recycle                  string
db_block_buffers                     integer     0
log_buffer                           integer     2927616
use_indirect_data_buffers            boolean     FALSE
SQL> show parameter sga

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 160M
sga_target                           big integer 160M

论坛徽章:
0
7 [报告]
发表于 2010-04-24 20:55 |只看该作者
有没有 clob,blob这样的类型存在。
renxiao2003 发表于 2010-04-23 12:20



好像有blob这样的类型,这种情况怎么办呢,是不是我的数据库设置上有问题??????
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP