Solved

Using MAIL_FILES procedure (PLS-00201 error)

Posted on 2004-09-10
3
1,984 Views
Last Modified: 2013-12-11
<Newbie to Procedures and Packages>

I've created the MAIL_FILES procedure successfuly:

http://home.clara.net/dwotton/dba/oracle_smtp.htm

and now, I want to test using:

execute MAIL_FILES ( from_name='oracle',to_name='myemail@mydomain.com',subject='A test',message='A test message');

but I'm getting:

ERROR at line 1:
ORA-06550: line 1, column 20:
PLS-00201: identifier 'FROM_NAME' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

(v8.1.7.4 Win2k btw)


Any ideas on what I'm doing wrong?
0
Comment
Question by:globalwm
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
biglaxman17 earned 75 total points
ID: 12030388
According to the link that you provided

mail_files( from_name => 'oracle' ,
                to_name   => 'someone@somewhere.com' ,
                subject   => 'A test',
                message   => 'A test message',
                filename1 => '/data/oracle/dave_test1.txt',
                filename2 => '/data/oracle/dave_test2.txt');

You need to add the  >  after the equals sign.

Or you can just leace out the from_name =, to_name  = , etc.....  in the call of the procedure.
0
 
LVL 1

Author Comment

by:globalwm
ID: 12030410
Thanks, that was (simply) it. Forgot about just specifying the vars...

0
 
LVL 1

Author Comment

by:globalwm
ID: 12030419
Now, onto the next errors:

ERROR at line 1:
ORA-29540: class oracle/plsql/net/TCPConnection does not exist
ORA-06512: at "SYS.UTL_TCP", line 537
ORA-06512: at "SYS.UTL_TCP", line 199
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 121
ORA-06512: at "SYSTEM.MAIL_FILES", line 133
ORA-06512: at line 1

heh


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query 34 116
Create table from select - oracle 6 54
PL/SQL Two changes 7 34
join a table with user_tab_columns in oracle 3 54
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question