Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to send email from pl/sql in 806?

Re: How to send email from pl/sql in 806?

From: Saurabh Sharma <saurabhs_at_fcsltd.com>
Date: Thu, 31 May 2001 22:43:27 -0700
Message-ID: <F001.00317655.20010531222526@fatcity.com>

hi,

the package involved is utl_tcp, i created it under sys. the procedure is also created without any error under sys. do i still need to grant execute privilege on it, when sys itself is the owner.

saurabh
----- Original Message -----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Thursday, May 31, 2001 9:56 PM

> Saurabh;
> Have you looked at ALL of the packages involved ?? Does the SYS.UTL_TCP
> exist and does the ID using SEND_MAIL have the correct access to it ?? (I
> know these are basic questions, but its usually the basic ones that get us
> first !)
>
> Kevin
>
> -----Original Message-----
> Sent: Thursday, May 31, 2001 3:21 AM
> To: Multiple recipients of list ORACLE-L
>
>
> hi Jared,
>
> my execution cmd goes like..
> EXECUTE
> SEND_MAIL('saurabhs_at_fcsltd.com','saurabhs_at_fcsltd.com','urgent','hello')
>
> it's giving the following error msgs..
> ORA-04068: existing state of packages has been discarded
> ORA-04067: not executed, package body "SYS.UTL_TCP" does not exist
> ORA-06508: PL/SQL: could not find program unit being called
> ORA-06512: at "SYS.SEND_MAIL", line 10
> ORA-06512: at line 2
>
> the package is shown as valid in dba_objects for sys.
>
>
> ----- Original Message -----
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Thursday, May 31, 2001 12:05 PM
>
>
> >
> > Your procedure is masking the error in the exception block.
> >
> > Comment out the exception block to see the real error.
> >
> > Jared
> >
> > On Wednesday 30 May 2001 22:18, you wrote:
> > > it gives other error msg which are defined in the exception body
inside
> the
> > > procedure.
> > > here it goes..
> > >
> > > EXCEPTION
> > > when others then
> > > raise_application_error(-20000,'Unable to send e-mail message
> from
> > > pl/sql');
> > >
> > > this msg is returned with ora 06512
> > >
> > > any suggestions..
> > > ----- Original Message -----
> > > From: Jared Still <jkstill_at_cybcon.com>
> > > To: <ORACLE-L_at_fatcity.com>; Saurabh Sharma <saurabhs_at_fcsltd.com>
> > > Sent: Wednesday, May 30, 2001 9:43 PM
> > > Subject: Re: How to send email from pl/sql in 806?
> > >
> > > > On Wednesday 30 May 2001 03:10, Saurabh Sharma wrote:
> > > > > should i give it all four arguments. but it still not executing
> saying
> > > > > ora-06512
> > > >
> > > > There are always other error messages accompanying an ORA-6512.
> > > >
> > > > What are they?
> > > >
> > > > Jared
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Jared Still
> > INET: jkstill_at_cybcon.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Saurabh Sharma
> INET: saurabhs_at_fcsltd.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Kevin Lange
> INET: kgel_at_ppoone.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Saurabh Sharma
  INET: saurabhs_at_fcsltd.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Jun 01 2001 - 00:43:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US