Did ptolemy have a wife?

If you are referring to Ptolemy VIII, yes, he did. It was his sister and co-ruler, Cleopatra.