What happens when I am halfway with a transaction and we have a power failure?

Being on an Oracle Data Base, a ‘Roll Back’ Function will be performed and put the system back to a state just before the failure.