There is also a bus from Dubai Airport to Muscat. If in Muscat visit the harbour area and the souk. If you have some time make a visit to the 16th century (?) fort at Nizwa.
You will probably need a visa for Oman. I believe these days you can get one on entry (for a small fee).