Solved

Using MAIL_FILES procedure (PLS-00201 error)

Posted on 2004-09-10
3
1,982 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to recover a database from a user managed backup

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now