Low- and high-energy solutions of nonlinear elliptic oscillatory problems