2013-12-20 23 views
0

我們正在使用下面的一段ant build文件來恢復oracle轉儲。oracle'imp'實用程序返回結果代碼3

<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

什麼是警告?有一個選項來抑制一些.. ignore = y – Jayan

回答

0

看起來像密碼即將過期,它通過返回結果代碼'3'抱怨。更改密碼使問題消失。

[exec] IMP-00058: ORACLE error 28002 encountered 
[exec] ORA-28002: the password will expire within 5 days