You will require
this part if replacing your O2 sensor, and
this knock sensor.
Before replacing parts, though, I would try clearing your ECU by disconnecting the negative terminal on the battery for several hours to see whether the codes return, as well as try reconnecting the wiring harnesses to both sensors and verifying the condition of the wiring to begin with.