You could try calling it with -execute_p f and see if the resulting plsql code can be used as a basis to build your create script.