One of the sites we host is based on an ancient version of the ACS. No database API... it's painful! :)
We're using the latest Oracle driver, but for some reason bind variables don't work unless you use "ns_ora exec_plsql_bind" to execute the statement. If you do it the "normal" way, you get this error:
[01/Sep/2003:18:38:35][29862.4285446][-conn257-] Error: ora8.c:1500:ora_exec: error in `OCIStmtExecute ()': ORA-01008: not all variables bound
The site's performance is really suffering from the lack of bind variables, but I know they are not going to go through and modify every "ns_db select". So I wanted to test out setting cursor_sharing to force, which is supposed to simulate using bind variables. Problem is, I can't figure out how to set it. I only want to do it on a per-session basis for testing, but this:
ns_ora exec_plsql $db "alter session set cursor_sharing=force"
gives this error:
[01/Sep/2003:19:08:33][29862.4310022][-conn265-] Error: ora8.c:3355:ora_tcl_command: error in `OCIBindByPos ()': ORA-01036: illegal variable name/number
Any suggestions? Thanks in advance!