Polarization of the oocyte along its anterior-posterior axis. An example of this is found in Drosophila melanogaster.