Good luck finding a Governor with the guts to do this.
I also think it would be unlikely that any federal judge would take such an oath. A federal judge is far more likely to charge a governor trying such a tactic with threatening a federal judge.
A governor planning to try this had better have a very strong case.
The strategy to jam the federal judges counter attack is the incorporation of the whole of federal criminal code by reference into state statutes while establishing that the crime is a cash fine misdemeanor that may be plead guilty to without prosecution so as to preempt the federal judges retaliatory attacks on those who would bind him with the chains of our constitutions. Double jeopardy protect would then make the people of the state immune to federal retaliation.