You imagine incorrectly - a molecule or atom that is gripped firmly is a solid, full stop. You can't just go and grab an atom without doing chemistry to it to get it into solid form: they're almost perfectly bouncy and perfectly slippery. We can modify the question so that it's possible-ish by putting the atom in a solid. Now the atom is in fact gripped firmly on all sides and we can mechanically shake it.
Let's use hydrogen, since it's simple.*
The electron has a quantized set of energy levels. These energy levels correspond to the size and shape of the electron orbitals. The electrons can't be continuously displaced from their energy levels, but skip discontinuously between them. Therefore it is impossible for the nucleus to shift around continuously inside of the orbital.
It is possible for the hydrogen atom (or larger atoms with more complex systems) to be hit hard enough that the electron is temporarily excited to a higher energy level. The electron will then decay back down to a lower level after a probabilistically determined (but very short) amount of time, emitting a photon.
It is even possible to knock the atom so hard that its electron flies free entirely. (Or in the case of heavier elements, one or more electrons.) This is called ionization because the result is an ion - an atom with a nonstandard charge.
So, could we take our hydrogen atom in a solid - call it a piece of plastic - and vibrate it hard enough to make it glow blue? After all, each direction reversal in the oscillation imparts energy to each atom in the solid, so maybe we could impart enough to pop the electron up an energy level - the quantum-mechanical equivalent of hitting it hard enough to make the nucleus shift relative to the electron/s.
No. The first reason is that the bonds that make the solid structurally stiff enough to vibrate are far weaker per unit volume than the energy density required to excite our electron. Either the sample or the machine we used to vibrate it would break.
What if we constructed some sort of device that would vibrate the sample using something that couldn't break, for instance by blasting it with lasers or something?
Still no - the second reason is that the bonds holding the solid together are themselves much weaker per unit volume than the energy density required to excite our electron. The sample will probably glow because of blackbody radiation, but it will vaporize before it emits photons from electron energy level decay.
Okay, now we've vaporized the sample. We can't grip it any more, but we can still blast it with lasers or fling other atoms at it to bounce it back and forth violently. Now can we shake it hard enough?
Yes. Now since there aren't any material constraints keeping our energy density from getting too high, there's nothing stopping us from blasting the atom hard enough to make its electrons skip up to higher energy levels.
*Hydrogen is much less simple if we put it into a compound, so maybe the choice of atom doesn't matter much. Fortunately we can get by with order-of-magnitude estimates for energy densities - I think it should be order of $10^{27} \;\text{eV}$ per kg to start affecting electron energy levels, order of $10^{25} \;\text{eV}$ per kg to vaporize the sample, if it's a plastic.