Perform the preparation steps
Shut down primary
Shutdown standby
Install DB software on the standby
Mount the physical standby
Start redo apply on the standby
Install DB software on the primary
Upgrade the primary
Open the upgraded primary db