The motion that repeats itself after fixed intervals of time is called periodic motion. We know that oscillatory motion is a type of periodic motion.
Oscillatory motion is defined as the to and fro motion of an object from its mean position.
The ideal condition is that the object can be in oscillatory motion forever in the absence of friction but in the real world, this is not possible and the object has to settle into equilibrium.
Following are the examples of oscillatory motion:
Oscillation of simple pendulum
Vibrating strings of musical instruments is a mechanical example of oscillatory motion
Movement of spring
Alternating current is an electrical example of oscillatory motion.