Philippine National Security Adviser Eduardo Ano has resigned and will be replaced by former military chief Eduardo Oban.