Oil prices rise to $ 45 a barrel