We have calculated the electronic stopping power and the energy-loss straggling parameter of swift He, Li, B, and N ions moving through several oxides, namely SiO2, Al2O3, and ZrO2. The evaluation of these stopping magnitudes was done in the framework of the dielectric formalism. The target properties are described by means of a combination of Mermin-type energy-loss functions that characterize the response of valence-band electrons, together with generalized oscillator strengths to take into account the ionization of inner-shell electrons. We have considered the different charge states that the projectile can have, as a result of electron capture and loss processes, during its motion through the target. The electron density for each charge...