The equilibrium equation for the the dissociation of Ba(OH)2 is Ba(OH)2(s) ⇔ Ba2+ + 2(OH-)
By LeChatelier's principle adding Ba2+ or OH- (Increasing pH) would move the equilibrium away from the products and towards precipitation. Barium nitrate dissolves completely and adds Barium ions to the solution.