SAN FRANCISCO -- Randy Johnson limited Oakland to four hits over seven strong innings to earn his 301st victory, and Juan Uribe drove in the go-ahead run in the seventh inning in the San Francisco Giants' 5-2 win Saturday night.
With two straight wins in the season's first Bay Bridge Series, the surging Giants moved five games above .500 for the first time since 2004.
In his first home start since getting his 300th win, Johnson (6-5) narrowly outpitched A's rookie left-hander Josh Outman, who retired 14 straight batters before Bengie Molina's leadoff double in the seventh.
Outman (4-1), who left with two runners on base in the seventh after his teammates made a fielding blunder, allowed five hits and four runs.
Molina also hit an early two-run homer for the Giants, while Emmanuel Burriss and pinch-hitter Nate Schierholtz drove in runs against Oakland's relievers during the decisive rally in the seventh.
Brian Wilson pitched the ninth for his 17th save in 20 chances.
Kurt Suzuki homered for the A's, who had won seven straight at San Francisco's waterfront ballpark until this series. Oakland is 1-4 since its seven-game winning streak ended Tuesday.
Johnson won his 300th game in Washington on June 4, but each of the 45-year-old Big Unit's other five victories this season were picked up in his native Bay Area. He managed just three strikeouts, boosting his career total to 4,853, but repeatedly escaped trouble while persevering into the seventh.
Outman was cruising until Molina cracked a double down the left field line leading off the seventh. Pinch-runner Fred Lewis then moved to third when right fielder Jack Cust and first baseman Bobby Crosby nearly collided while chasing Pablo Sandoval's popup, with Crosby appearing to get in his teammate's right-of-way.
Uribe then hit reliever Michael Wuertz's first pitch into right, scoring Lewis.
Back in the first inning, Molina put San Francisco ahead with a two-run shot, his 10th of the season. After Andres Torres' single in the second, Outman got Burriss on a fielder's choice grounder and then retired every batter he faced until Molina's double.
Jack Hannahan hit a triple and scored on Adam Kennedy's single in the third, and Suzuki tied it for Oakland in the fourth with his third homer of the season.
Copyright 2013 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.