Eddie Murray doubled home the go-ahead run in a five-run eighth inning tonight to help the Baltimore Orioles beat the Boston Red Sox, 9-8, in the second game of a doubleheader before 14,384 at Memorial Stadium.

In the first game, Bob Ojeda beat the Orioles, 6-2, on a five-hitter that extended their losing streak to six. Ojeda's teammates scored five runs in 2 1/3 innings off Sammy Stewart, who made his first start in 2 1/2 years.

Murray's heroics came in a wild eighth inning that began with the Orioles down, 8-4, and apparently headed for their seventh straight loss. But in the same inning, Tom O'Malley got an RBI single and pinch hitter Dempsey a two-run homer off Tim Lollar.

Murray had little to say after the game. "He threw me a fast ball," he said. "You try to win as many games as you can."

"Just a matter of pride at this point," catcher Rick Dempsey of the Orioles said. "I really don't know how to act because we haven't had too many years like this."

The loss in the first game meant that the Orioles will end with fewer victories than in any season since 1967, excluding two strike-shortened seasons.

Ojeda (9-11) threw only 112 pitches. The only damaging hit was Gary Roenicke's two-run double in the third down the right field line.

The only other good thing that happened to the Orioles in that game was Tippy Martinez. After relieving in the third inning, he struck out seven and allowed only one run on two hits thereafter.

In the second game, Murray singled home Cal Ripken, who had tripled, to put the Orioles ahead, 1-0, in the first inning.

But in the Boston fourth, Dwight Evans hit his 29th homer.

In the Orioles' half, Mike Young singled with one out, and Larry Sheets homered for a 3-1 lead.

Boston scored three runs in the fifth inning. Included was an RBI single by Wade Boggs, which tied a 60-year-old record set by Al Simmons of the Philadelphia Athletics. Boggs and Simmons each hit safely in 133 games in one season.

The Orioles tied the game in the fifth. Al Wiggins led of with a double, was sacrificed to third by Jim Dwyer, and scored on Ripken's short fly ball to left field.