how to convert from 12v to 9v without using a ceramic capacitor?

You don't need a ceramic capacitor. But you will need a voltage regulator like an LM7809 or LM317 with the correct resistor. The capacitor is good to have though to help reduce noise so you have a good clean output voltage from the regulator.