There is no official dress code for visiting Pearl Harbor, but keep in mind that you’re in a place of utmost historical importance. Therefore, it’s important to dress appropriately and be respectful.
It depends on your family's preference. There are specific interest in Pearl Harbor that are perfect for kids of all ages. It's worth visiting if you think it's your only trip to Oahu.