2
I am trying to delete all rows of a table through Shell Script. The database is oracle. The database for some reason does not let me truncate and delete simply does not delete, without presenting any error. I don’t really know why, when trying to do such operations through PL/SQL Developer, I can normally, but through Linux I can’t.
Code I’m using:
sqlplus -s usuario/senha <<EOF
delete from table;
exit;
EOF
I’m no expert on the oracle but I wouldn’t have to use
commit;
after thedelete
and before theexit
?– laurent