The Iran war caused a sharp rise in global oil prices, benefiting producers and shareholders.