User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,127 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 596 | Replies: 0
Reply
Join Date: Apr 2008
Posts: 102
Reputation: veledrom is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
veledrom veledrom is offline Offline
Junior Poster

oracle utlmail problem

  #1  
May 11th, 2008
This what i do; Can anyone tell me whay i receice an error.

1- Run "SQL Command Line".
2- connect / as sysdba. "No error".
3- @?/rdbms/admin/utlmail.sql. "Created and no error".
4- @?/rdbms/admin/prvtmail.plb. "Created and no error".
5- GRANT execute ON utl_mail TO SYSTEM; "No error"
6- Open my "Oracle SQL Developer" GUI.
7- Type code blow as it is and run;
BEGIN
  EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = authsmtp.streamline.net';
  UTL_MAIL.send(sender => 'root@florya.co.uk',
            recipients => 'root@florya.co.uk',
               subject => 'Test Mail',
               message => 'Hello World',
             mime_type => 'text; charset=us-ascii');
END;
8- I receive this error;
Error starting at line 1 in command:
BEGIN
  EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = authsmtp.streamline.net';
  UTL_MAIL.send(sender => 'root@florya.co.uk',
            recipients => 'root@florya.co.uk',
               subject => 'Test Mail',
               message => 'Hello World',
             mime_type => 'text; charset=us-ascii');
END;
Error report:
ORA-00922: missing or invalid option
ORA-06512: at line 2
00922. 00000 -  "missing or invalid option"
*Cause:    
*Action:
I use:
- Oracle 10g Express edition
- Win XP Prof SP2

Thanks
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Oracle Marketplace
Thread Tools Display Modes

Other Threads in the Oracle Forum

All times are GMT -4. The time now is 2:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC