Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

40

积分

0

好友

14

主题
1#
发表于 2012-3-12 14:43:46 | 查看: 7998| 回复: 3
imp操作在我机器上导入正常。但是在同事的机器上出错了。相同的数据库版本号。
唯一区别就是我是windows 32 ,同事的是windows 64.但是imp 可以跨操作系统,跟这个没关系。
但是在同事这边报错日志如下:
   
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by DSRIS, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing DSRIS's objects into APPS
. . importing partition        "INFECTIONCARD":"PART1"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART2"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART3"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART4"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART5"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART6"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART7"
IMP-00058: ORACLE error 4098 encountered
ORA-04098: trigger 'APPS.TRI_INFECTIONCARD_CDLOG' is invalid and failed re-validation
. . importing partition        "INFECTIONCARD":"PART8"
IMP-00058: ORACLE error 4098 encountered
2#
发表于 2012-3-12 15:36:52
至少把你的 imp 语句贴出来吧

回复 只看该作者 道具 举报

3#
发表于 2012-3-12 15:39:37

回复 2# 的帖子

imp apps/apps file=E:\imp\cmcd.dmp fromuser=apps touser=apps log=E:\imp\cmcd..log buffer=1024000  ignore=y

回复 只看该作者 道具 举报

4#
发表于 2012-3-12 15:46:15
[oracle@vrh8 ~]$ oerr ora 4098
04098, 00000, "trigger '%s.%s' is invalid and failed re-validation"
// *Cause: A trigger was attempted to be retrieved for execution and was
//         found to be invalid.  This also means that compilation/authorization
//         failed for the trigger.
// *Action: Options are to resolve the compilation/authorization errors,
//         disable the trigger, or drop the trigger.


ignore=y  =》说明你的对象结构都是已经存在的


建议你 recompile 整个失效的 trigger:

1.  alter trigger APPS.TRI_INFECTIONCARD_CDLOG compile

或者 disable 这个trigger
2.   alter trigger APPS.TRI_INFECTIONCARD_CDLOG  disable


之后再重试 imp导入

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-24 03:51 , Processed in 0.047289 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569