The tridiagonal J-matrix approach has been used to calculate the low and moderately high-lying eigenvalues of the rotating shifted Tietz-Hua (RSTH) oscillator potential. , are calculated with high accuracy. Some of the energy states for molecules are reported here for the first time. The results of the last four molecules have been introduced for the first time using the oscillator basis. Higher accuracy is achieved by calculating the energy corresponding to the poles of the S-matrix in the complex energy plane using the J-matrix method. Furthermore, the bound states and the resonance energies for the newly proposed inverted Tietz-Hua IRSTH-potential are calculated for the H 2 -molecule with scaled depth. A detailed analysis of variation of eigenvalues with n, ' quantum numbers is made. Results are compared with literature data, wherever possible.