In this paper, we investigate light shifts of heavy alkaline earth elements barium (Ba) and radium (Ra), which are interesting for optical lattice clocks and for permanent electric dipole moment searches. Detailed knowledge is required in the design of efficient loading of atoms from a magneto-optical trap into an optical dipole trap, to facilitate Doppler cooling while trapping and to achieve longer lifetimes of the trapped atoms with reduced heating rates. The wavelength dependence of light shifts of the ns(2) (1)S(0) ground state, the nsnp (3)P(1) and ns(n - 1) d (1)D(2) excited states in barium (n = 6) and the n s(2) (1)S(0) ground state, the nsnp (3)P(1) and ns(n - 1) d (3)D(2) excited states in radium (n = 7) are calculated. Several m...