The stability and local vibrational mode (LVM) of hydrogen related p-type AlN have been studied by firstprinciples calculations based on density functional theory. The stable and metastable microscopic geometries of group-II (Be, Mg, Ca, Sr, Ba)-H complexes have been investigated. The calculated results indicate that BC parallel to is the most stable configuration for isolated interstitial H+ and Be-H complexes, while it is AB(N),(perpendicular to) for Mg-H, Ca-H, Sr-H and Ba-H complexes. Moreover, the vibrational frequencies and the values of k and vertical bar alpha vertical bar for the H atom with LVM are calculated. Here, the values of k and vertical bar alpha vertical bar are used to describe the parameters of the harmonic and anharmonic contributions, respectively. The calculated results indicate that the larger the size of the doped ion is, the shorter the N-H bond length is, and the larger the potential energy, the vibrational frequencies, the values of k and vertical bar alpha vertical bar are. This implies that the size of the doped ion has an important influence on the vibrational properties of H.