How to Upgrade Oracle Database and Replace the Operating System

How do you upgrade your Oracle Database and replace the operating system at the same time? Which options are at your disposal?