This review gives a brief overview of when it is best to take the tour offered by the cruise line or go on your own.
Copenhagen: We arrived a couple of days early and enjoyed Copenhagen. I recommend the combined Hop-on Hop-off bus and canal boat ride. You can see a lot of Copenhagen with this tour.
Oslo: The ship docks a short distance from the main square. It's very easy to walk around town.