B.J. Upton hit an RBI double in the ninth inning to end Ziegler 's record scoreless streak , then Carlos Pena homered leading off the 12th to give Tampa Bay a 7-6 win over the host Oakland Athletics on Thursday .