Unless otherwise provided, before any officer enters on the duties of his office, he shall take and subscribe the oath or affirmation set forth in Section 3 of Article XX of the Constitution of California.