我们使用以下ant构建文件来恢复oracle转储。
<exec executable="imp" failonerror="true">
<arg line="system/passwordOfSystem" fromuser="myuser" touser="myuser" file="path_to_dump_file"/>
</exec>
当执行此操作时,它未能提供以下结果。
[exec] About to enable constraints...
[exec] Import terminated successfully with warnings.
BUILD FAILED
build.xml:: The following error occurred while executing this line:
build.xml:: The following error occurred while executing this line:
build.xml:: exec returned: 3
我知道设置failonerror =“false”将摆脱这个问题。但是不想这样做,因为它意味着它永远不会失败(例如,即使转储已损坏)。任何想法这个结果代码意味着什么?
答案 0 :(得分:0)
似乎密码即将过期,它通过返回结果代码'3'来抱怨。更改密码使问题消失。
[exec] IMP-00058: ORACLE error 28002 encountered
[exec] ORA-28002: the password will expire within 5 days