Generate oracle script