I have a query like
DELETE from tablename where colname = value;
which takes awfully long time to execute. What could be the reason? I have
There is a significant difference between Oracle and mysql :
Oracle does not create index automatically for foreign keys but mysql does. Then if you have some parent table that you may execute delete command on it then you must create index on foreign keys in child tables otherwise the delete command on parent table will be very very slow if child tables has a lot of rows, because it must surf all records of child table per deletion of any parent records.
Then be careful when you want to delete from parent table in Oracle database.