Sammy Stewart pitched six strong innings yesterday, Cal Ripken Jr. and Bobby Bonner each drove in three runs and the Baltimore Orioles beat the Philadelphia Phillies, 9-2, in an exhibition baseball game in Miami.

Stewart struck out six and gave up five hits in the longest stint by an Oriole pitcher this spring.

Ripken hit his first homer this spring in the second inning to give Stewart a 2-0 lead. The home run, off Philadelphia starter Dick Ruthven, followed a walk to Gary Roenicke. The rookie third baseman singled home a run in the fifth.

Rookie shortstop Bonner tripled in two runs during a four-run fourth and hit a sacrifice fly the next inning.

Philadelphia first baseman Len Matuszek tripled in a run in the fifth and the Phillies scored in the sixth on Mike Schmidt's ground out following a single by Ivan DeJesus and Gary Matthews' double.

Philadelphia pitcher Tug McGraw, 37, who had surgery between seasons to remove bone chips, scar tissue and cartilage in his left arm, has been given permission to throw hard again.

Pitching Coach Claude Osteen said he would like to see McGraw work a few innings in a training camp game, but Manager Pat Corrales has instructed McGraw not to push himself. "I don't care if he can't pitch until May," Corrales said.