Oracle implementation (untested)