which substance is a base in this equation, Ba(OH)2 + 2 HNO3

Ba(OH)2 is barium hydroxide, a base.

HNO3 is nitric acid, an acid.