What happens if you disable cursor_sharing? Also why can you not take the OR out - is the code generated at runtime perhaps by a code generator? -- Niall Litchfield Oracle DBA http://www.orawin.info