Linear transformation and oscillation criteria for Hamiltonian systems