A motion is periodic if it repeats after a fixed time; it is oscillatory if, in addition, it goes to and fro about a mean (equilibrium) value. The displacement variable need not be a distance; any quantity that varies about a mean value can play that role.
(i) Beating heart: periodic (at a steady pulse rate) and oscillatory. The heart contracts and relaxes about a mean size, so the volume of a chamber and the blood pressure rise and fall about mean values. Displacement variable: the blood pressure (or the volume of a chamber) measured from its mean value.
(ii) Engine piston: periodic and oscillatory. At a steady engine speed the piston moves up and down the cylinder, repeating its motion once per turn of the crankshaft, to and fro about the middle of its stroke. Displacement variable: the position of the piston measured from the middle of its stroke. (Its motion is close to, but not exactly, simple harmonic.)
(iii) Harbour tide: periodic and oscillatory. The water level rises to high tide, falls to low tide and rises again, repeating roughly every 12.4 hours, so there are about two high tides a day. It goes above and below a mean level. Displacement variable: the height of the water surface above (or below) the mean sea level. The repetition is only approximately exact, since successive tides differ a little in height.
(iv) Clock pendulum: periodic and oscillatory. The mechanism gives the pendulum a small push on each swing, just enough to keep its swing the same size, so each swing repeats the last and takes the same time; the bob moves to and fro about its vertical rest position. For a small swing it is very nearly simple harmonic. Displacement variable: the angle the pendulum rod makes with the vertical (or the sideways displacement of the bob from its lowest position).