Oil gained 3.4 percent on higher seasonal demand in developed economies and expectations of falling US shale production.