Hello!
I'm using DOA 4.0.7.1 with Delphi 2007 on a Windows 7 x64 laptop and version 11.2.0.1.0 of the 32-bit Oracle Instant Client.
I've added a TOracleQuery with the following SQL:
When I execute the query I get the following error:
Project raised exception class EOracleError with message 'ORA-02248: invalid option for ALTER SESSION'.
However, if I separate the two command into two different TOracleQueries, it works!
Why is that, and how can the two commands be combined in a single TOracleQuery?
Thanks!
/Neil
I'm using DOA 4.0.7.1 with Delphi 2007 on a Windows 7 x64 laptop and version 11.2.0.1.0 of the 32-bit Oracle Instant Client.
I've added a TOracleQuery with the following SQL:
Code:
ALTER SESSION SET smtp_out_server = '<my_smtp_server>'
BEGIN
utl_mail.send(
sender => '<sender>',
recipients => '<recipient>',
subject => 'A test of UTL_MAIL in Oracle 10g',
message => 'This is a test...');
END;
When I execute the query I get the following error:
Project raised exception class EOracleError with message 'ORA-02248: invalid option for ALTER SESSION'.
However, if I separate the two command into two different TOracleQueries, it works!
Why is that, and how can the two commands be combined in a single TOracleQuery?
Thanks!
/Neil