Managing error handling while running sqlplus from shell scripts

前端 未结 5 1960
天涯浪人
天涯浪人 2020-12-14 03:58
#!/bin/sh

echo \"Please enter evaluate database username\"
read eval_user
echo \"Please enter evaluate database password\"
read eval_pass
echo \"Please enter the da         


        
5条回答
  •  情书的邮戳
    2020-12-14 04:26

    The fact you are entering fake values, are probably only related to the login. Then: Check database connectivity using Shell script

    The WHENEVER ... are for errors during the SQL script execution. Once you'll successfuly connect with your script (I assume this your problem right now), you should get the kind of error managed by WHENEVER ERROR because you forgot the EXEC at your line with DBMS_OUTPUT.

提交回复
热议问题