Dear Friends ,
I write a script to kill a oracle impdp job like below :
--
[oracle@rptsvr ~]$ cat kill_job.sh
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_SID=ORCL
impdp system/sys123 attach=SYS_IMPORT_FULL_01 << !
kill_job
--
After run the script it needs to give manual entry option , 'yes' or 'no' .
like :
Import> Are you sure you wish to stop this job ([yes]/no): UDI-00005: unexpected End-Of-File encountered
while reading input.
Now I want this script will be killed prompting 'yes' command automatically , not manually .
Hope My question is clear .
Please help me regarding this .