Under optimal conditions (stored in the original, unopened containers at moderate temperatures), motor oil usually remains stable for an extended period of time. There should be no deposits at the bottom of the container. You cannot dissolve the deposits at the bottom by simply shaking the package. The oil has to be replaced.
That said, engine oil characteristics are best if used within two to three years. After that, we recommend replacing the oil.
Don’t put old oil in the trash. Oil must be recycled.