NEW YORK -- Tom Glavine, leading off first base, saw the ball jump off Jose Reyes' bat and knew it was time to put on the burners. Still, the not-so-speedy Glavine was thrown out at the plate.
It was pretty much the only thing that went wrong for him all night.
The 41-year-old pitched into the ninth inning and added two hits and two RBI. But it was Glavine storming around the bases, with Reyes on his heels, that had the Mets' locker room buzzing.
Reyes' sixth-inning drive went to the wall in center, and Glavine was a little surprised when third base coach Sandy Alomar sent him. He slid in to home, almost beating shortstop Bobby Crosby's relay throw.
"I couldn't have lapped him," said a smiling Reyes. "He's very good, you know."
"At least I didn't get hurt," Glavine said.
Said catcher Paul Lo Duca: "Now I don't feel so bad about my running after watching that."
The Mets needed a nice moment of levity, not to mention a win. New York won for the fifth time in 19 games in June.
In the Mets' five wins this month, their opponents have scored three runs total. The Mets are 0-14 when allowing two runs or more this month.
Glavine (6-5), whose previous win was May 19 against the Yankees, doubled and scored the go-ahead run in the second inning. He added a two-run single to cap the Mets' five-run sixth.
The pitcher's good night at the plate seemed to inspire his teammates.
"Well it should," manager Willie Randolph said. "If I'm a hitter, I don't want the pitcher outhitting me."
Shawn Green hit a solo home run and a two-run double, and Carlos Beltran homered and drove in two runs.
Green led off the fifth with a drive to left to make it 3-1. It was Green's sixth of the year, and first since May 15.
"For the first time since coming off the disabled list, I could say I had good at-bats each time up there," Green said.
Glavine received a loud ovation before the ninth inning and Randolph was booed when he came out to remove the left-hander after he gave up a leadoff single to Eric Chavez on the first pitch. Glavine tipped his hat to acknowledge the crowd as he walked to the dugout.
"That's the Tom Glavine we know," Randolph said. "You're entitled every once in a while to get out of rhythm a little bit. Hopefully this is the start of something more consistent."
Glavine allowed six hits, walked two and struck out five. Aaron Heilman got the final three outs. It was the first time Glavine went eight innings or more since Sept. 19 against the Marlins.
Following two straight subpar outings, Glavine was masterful, breezing through most of the lineup. Shannon Stewart and Chavez were a combined 5-for-7 against him; the rest of the Oakland lineup was 1-for-22.
"I was much more consistent than the last two outings but not where I want to be," Glavine said.
The Mets capitalized on some shoddy fielding by Oakland, scoring six unearned runs.
Reyes beat out a bunt single in the first and advanced to second when third baseman Chavez threw the ball into right field. Reyes scored on a bloop single to center by Beltran.
With one out in the sixth, shortstop Crosby bounced a throw to first on a routine grounder by Beltran. The error led to a five-run inning. David Wright followed with an infield single and Carlos Delgado drove in Beltran with a single to left. After Damion Easley flied out to center, Green's double scored Wright and Delgado, and after an intentional walk, Glavine lined a two-run single to left-center.
Green's homer was also the first home run allowed by Oakland starter Lenny DiNardo since April 14, when the New York Yankees' Jason Giambi hit one in the 13th inning. He threw 40 2-3 innings between home runs, facing 165 batters during the homerless streak.
DiNardo (2-4) gave up six runs -- two earned -- and seven hits in 5 1/3 innings.
Stewart got the Athletics on the board in the second when he hit Glavine's 1-2 pitch deep to left field for his fourth homer of the season.
Rich Harden, activated Thursday after a two-month stint on the DL because of a strained right shoulder, pitched a perfect eighth for Oakland with two strikeouts. He said he only threw fastballs and curveballs and threw from the stretch because pitching coach Curt Young wanted him to.
"It was good to get in there and get that first inning out of the way," Harden said.
Reyes extended his hitting streak to 12 games with his first-inning bunt single. ... A day after the team parted ways with OF Milton Bradley, manager Bob Geren was confident the team made the right move. "I think it's just gonna work out best for the team," Geren said. ... All of the Mets' five runs in the bottom of the six were unearned for the A's as a team, but reliever Colby Lewis was charged with two earned runs in the inning because he cannot benefit from an error that happened before he was in the game.