Ozoliņš' later entered into the league's substance abuse program following a drunk driving arrest. After playing 2 games for the Worcester Sharks of the AHL and being cleared to play by doctors within the league's substance abuse program, he signed a one-year contract with San Jose on November 2, 2007. "That was a big turnaround this summer and I'm finally comfortable with what I am and what has happened, I actually feel pretty good and I do what I have to do and I do what I was advised to do. And I do it for myself and not for anybody else," said Ozoliņš. In the 2007–08 NHL season he scored 3 goals and 13 assists in 39 games for the Sharks. He had a notable highlight reel save against the Anaheim Ducks, where as the puck slipped by goalie Evgeni Nabokov, and Ozoliņš slipped and fell as he made a stick save on the goal line.