Police chief and the attorney-general will be excluded from an investigation against opposition leader Anwar Ibrahim who has been accused of sodomy, the prime minister said.