A man will spend 12 years in prison in connection with a deadly shooting that happened at a downtown Portland hotel in Oct.