Yoenis Cespedes homered twice and tied a career high with five RBIs before leaving with an apparent right thumb injury, and the Oakland Athletics held off the Houston Astros 9-7 on Wednesday night.