Use "friendly names" in Sonar MIDI devices.
You should see Oxygen 49 listed twice. Even though they have the same name, they are recognized by the system as two unique devices.
Change the names to OxygenA/OxygenB, KeysLeft/KeysRight, Moe/Larry, whatever. That will be the name shown when you select your input device from within Sonar.
Note: Do not switch ports, and do not change your start-up sequence. This can cause Sonar to swap the names.