What is the valency of calcium

In calcium oxide, the calcium is electropositive in nature and to fulfil its octet, the calcium atoms lose two electrons to form the calcium cations whose valency is 2, hence the corresponding anion, i.e. the oxide anion must also have valency 2 to balance the positive charge on the calcium cation.