Preparation by reacting oxides or hydroxides with alkali metal salts