Z is the number of protons, 8 for oxygen.
If there is one single electron, we can still compute the orbital energies. At identical orbital size, the energy would be Z times bigger, but they also shrink by Z in al directions, so the energy is Z2 times bigger.