- 论坛徽章:
- 0
|
本帖最后由 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
请各位高手出山帮忙,非常感谢!!!!!! |
|