Oracle Delete Statement: how many rows have been deleted by cascade delete
I'm executing a statement like DELETE FROM USER WHERE USER_ID=1; In SQLDeveloper. As the user is referenced in many tables (for example the user has an order, settings, ...) we activated ON DELETE CASCADE so that we do not have to delete each and every row manually. However while developing we are interested to know how many rows and and in which tables are "automatically" deleted by cascade delete. Is there any way to find this out. Either by SQL-Statement, directly in sqldeveloper from a logfile or any other idea? whilst this is not possible with sql%rowcount, it is possible if you write