No Yankee is more familiar with Travis Hafner than CC Sabathia, making the ace the resident expert.

“It looks like he is back,’’ Sabathia said of his former Indians teammate whose career has been derailed by injuries. “He is healthy and happy.’’

Last night at Camden Yards, Hafner put a smile on Yankees faces with a game-tying homer in the ninth inning off pellet-throwing Jim Johnson and added an RBI single in a two-run 10th that carried the Yankees to a 6-4 win over the Orioles in front of 24,133.

“He means a lot. He is a run producer and sees a lot of pitches,’’ Joe Girardi said of the DH who sent up red flags last week when the right shoulder barked loud enough that a cortisone injection was required. “He can hit the ball out of any ballpark.’’

However, Hafner has lowered the anxiety level by hitting two homers and driving in four runs in the past two games.

Leading by a run in the ninth, O’s manager Buck Showalter called for Johnson despite him having flushed the last two save chances. Two outs away from helping the Orioles stop a five-game losing streak, Johnson came with a 94-mph 3-1 pitch that Hafner crushed the other way into the seats in left-center.

“He made a pretty good pitch there, pretty good swing on it,’’ Hafner said.

In the 10th, the left-handed swinging Hafner’s RBI single off lefty Brian Matusz upped the lead to 6-4 and was more than enough for Mariano Rivera to record the final three outs for a 17th save in 17 chances.

The victory was the Yankees’ (28-16) third straight and 10th in 13 games. The Orioles have dropped six in a row.

The late-game heroics were required because Sabathia gave up a pair of leads and surrendered four runs and 11 hits in 6 1/3 innings. He didn’t bury the Yankees, but he wasn’t pleased with a second consecutive game in which he gave up double-digit hits.

“Later in the game, I was up with everything,’’ said Sabathia, who hasn’t won since April 27 (four starts). “Early, I had good control but couldn’t put guys away.’’