Home
All Oracle Error Codes
Oracle DBA Forum

Frequent Oracle Errors

TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated

Re: [Q] wield send mail from ORACLE ???

Cristian Chelemen

2007-04-24

Replies:
Dear DBA1MCC,
 
I encountered almost the same error when the mail server went down. The "421" error code means that the <domain> Service is not available and it will be closing the transmission channel (This may be a reply to any command if the service knows it must shut down.). If you know that you don't have a permanent problem with the mail server you should increase the transfer time-out variable (vn$tx_timeout in my example) in UTL_SMTP.OPEN_CONNECTION function and after that you should check if you can proceed with the mail procedure. You should define a variable smtp$verify as UTL_SMTP.REPLY and then check if this reply code is "220" (<domain> Service is ready) smtp$verify := UTL_SMTP.OPEN_CONNECTION(vv$mail_server, vn$mail_port, smtp$conn, vn$tx_timeout). Personaly, I gave the vn$tx_timeout the value of 100 seconds.

 
Cristian Chelemen

dba1 mcc <mccdba1@yahoo.com> wrote:
We have ORACLE 9.2.0.8 and 10.2.0.2 on Redhat servers
(4.3). I tried to send mail from ORACLE (we use
utl_smtp.data( conn, mesg );). We always get one time
work, second time fail repeatly. Does any one know
why??

===============================================
SQL> @mailbody
32 .
SQL> /

PL/SQL procedure successfully completed.

SQL> /
Declare
*
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not
available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 15


SQL> /

PL/SQL procedure successfully completed.

SQL> /
Declare
*
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not
available
ORA-06512: at "SYS.UTL_SMTP", line 17
ORA-06512: at "SYS.UTL_SMTP", line 96
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 15


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
http://www.freelists.org/webpage/oracle-l




Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.