I have been trying to put the following line into a spool file:
execute send_mail('sheryl@acme.com','sheryl@test.com','TEST SUBJECT','PROD:USERS is 75% used');
by the following sql:
dbms_output.put_line('execute send_mail('''||send_address||''','''||rec_address||''','''TSA Alert''','''||dbname||''': '''||tbsname||''' is '''||bytes_pct||'''% used''');');
But I get the following error:
ORA-01756: quoted string not properly terminated
I have now been working on this all day, by adding or removing the single quotes, even using chr(39), but still can't seem to crack this. Can anyone please help?
Bookmarks