I convert form 6.0 to form 10g and when run the form and this try to connect to other server, the following mensage appears:"FRM-40735: ON-ERROR trigger raised unhandled exception ORA-06508".

I debug the form and found supposedly the problem:
connection_id :=
EXEC_SQL.OPEN_CONNECTION('scott/tiger@odbc:batabase')

my question is: This command of being written different in oracle 10g?.