The electronic structure of the ground electronic state and of some special charge-transfer excited states in ionic solids is examined from the ab initio cluster model approach. Different ab initio wave functions, including a frozen orbital approach, the Hartree-Fock self-consistent field, and multireference configuration interaction wave functions, are considered and analyzed using different theoretical techniques. We explicitly consider some alkaline-earth oxides such as CaO, a more difficult case such as Al2O3, a transitionmetal oxide such as NiO, and a system with a more complicated structure such as KNiF3. Analysis of ab initio wave functions in terms of valence bond components shows that all these compounds are largely ionic, thus supporting the simple picture arising from the ionic model. However, the nature of the excited states is more complex. Alkaline-earth oxides lowest excited states are essentially described as charge-transfer excitations dominated by a single resonant valence bond structure and the calculated energy difference is comparable to the experimental optical gap. In the case of Al2O3, the electronic spectra presents excitonic features and the local charge-transfer excitation excited states provide a reasonable representation of these phenomena. Finally, several different valence bond structures are present in the lowest electronic states of KNiF3.