Knicks owner James Dolan has turned his rage from Charles Oakley to a Knicks season-ticket holder from Astoria, Queens, engaging in a profane shouting match with him before Tuesday’s victory over the Bulls.

Deadspin reported the eccentric owner owned up to cursing out a fan after he got heckled.

Dolan told the website: “I did call him an a–hole because he is an a–hole.”

Mike Hamersky, a 35-year-old attorney, was drinking a beer near the lobby of the Garden while waiting for a friend before the Knicks-Bulls game when Dolan walked past.

Hamersky said he shouted, “Sell the team, Jim!” before Dolan angrily approached him.

“That’s all I yelled,” Hamersky told The Post in a phone interview. “He continued to walk past me, opened the limo door, then closed the door, turned around and walked all the way back and said, ‘Who said that?'”

Hamersky said he took credit, “Then [Dolan] got 2 inches from my face and started screaming. That’s all I said, and he started cursing at me. He said multiple times I’m not getting in the game. I never thought I’d be mentioned in the same breath as Oakley.”

Dolan charged him with being drunk and stated, “What if I told you, ‘You suck at your job?’”

Hamersky said Dolan demanded to see his tickets and he refused. Dolan repeatedly told his security detail not to let Hamersky into the arena. The Astoria native said he was then followed by a security guard for at least a block. He eventually shook security and got into the game.

A statement released by a Dolan spokesperson Wednesday night did not deny Dolan’s reaction.

“As Jim clearly stated, no one should come to an event at The Garden feeling as though it’s OK to be verbally abusive or disrespectful to anyone — including the owner of the arena — and not expect to be told that their behavior is unacceptable. This fan was completely out of line last night and does not like the fact that he was told he was out of line, and so has chosen to spend the day Tweeting away looking for his 15 minutes of fame.”

Hamersky said on Twitter he “was sober.’’

“I don’t think he cares about the losing,” Hamersky said of Dolan. “He’s making the money. I don’t think the temper is result of losing — more of the cause.

“I think he’s bothered by fan reaction to his ownership and the culture he’s set. I’m sure I’m not the first person to suggest he sells the team.”

The incident comes only two months after Dolan’s infamous feud with Oakley, who was arrested at the Garden for cursing security guards staring at him. Dolan then banned Oakley from the building.

It also comes more than two years after Dolan emailed an elderly Knicks fan with abusive language, accusing him of being an alcoholic. Dolan, a recovering alcoholic, apologized for the email incident.

The Knicks, with four games remaining, will miss the playoffs for the fourth straight year, clearly putting Dolan at his boiling point. However, Dolan said he won’t fire president Phil Jackson at season’s end despite what widely looks like a colossal mistake in hiring an executive without prior front-office experience.