§1. The judge is to call to the attention of the witness the grave obligation to speak the whole truth and only the truth.
§2. The judge is to administer an oath to the witness according to can. 1532; a witness who refuses to take it, however, is to be heard without the oath.
Source: Code of Canon Law (Vatican.va)