1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
>${FIC_SQL}
echo "delete from teta;" > ${FIC_SQL}
echo "delete from tjon;" >> ${FIC_SQL}
echo "delete from ttyl;" >> ${FIC_SQL}
echo "delete from tage;" >> ${FIC_SQL}
echo "delete from tpai;" >> ${FIC_SQL}
echo "delete from tsta;" >> ${FIC_SQL}
echo "delete from TSTT;" >> ${FIC_SQL}
echo "delete from TST1;" >> ${FIC_SQL}
echo "commit;" >> ${FIC_SQL}
echo $FIC_SQL
echo $ORA_DBA
#
#-------------------------------------------------------------------------------
# Execution de la requete SQL sous SQL*PLUS
#-------------------------------------------------------------------------------
sqlplus $ORA_DBA@XE @Fic.sql
exit
EOF |