Bits of one-off code for working with Oracle