Oakham squeeze through to quarters