ORA-20002: 501 Bad syntax error

Hi,
I intend to send a simple smtp mail using the builtin UTL_SMTP package.
But i get the following error:-
ORA-20002: 501 Bad syntax error
Here is my code:-
CREATE OR REPLACE PROCEDURE mail
IS
BEGIN
DECLARE
v_connection UTL_SMTP.CONNECTION;
BEGIN v_connection := UTL_SMTP.OPEN_CONNECTION(<my host here>,25);
dbms_output.put_line('Connection Opened');
UTL_SMTP.HELO(v_connection,<my host here>);
dbms_output.put_line('After calling helo');
UTL_SMTP.MAIL(v_connection,'[email protected]');
dbms_output.put_line('Sender set');
UTL_SMTP.RCPT(v_connection,'[email protected]');
dbms_output.put_line('Recipient Set');
UTL_SMTP.DATA(v_connection,'Sent From PL/SQL');
dbms_output.put_line('Message body set');
UTL_SMTP.QUIT(v_connection);
dbms_output.put_line('Connection Closed');
end;
END;
Here is the output:-
SQL> exec mail
Connection Opened
After calling helo
BEGIN mail; END;
ERROR at line 1:
ORA-20002: 501 Bad address syntax
ORA-06512: at "SYS.UTL_SMTP", line 86
ORA-06512: at "SYS.UTL_SMTP", line 204
ORA-06512: at "ADMIN.MAIL", line 13
ORA-06512: at line 1
I tried sending mails to my smtp server via java mailing API and i am
successful. So i am wondering wat i am doing wrong up there in Oracle.
I have JServer enabled, i also ran the initplsj.sql successfully.
Please help.
Regards,
Leo.

Hi APC,
Yep HELO returns 250. Here is the code i use followed by the output. I use valid e-mail addresses(changed them here cz they belong to real ppl :) ). Again, i am able to send mails via java mailing API's, to the same recipietn from same sender via same smtp server.
Code :------
CREATE OR REPLACE PROCEDURE mail
IS
v_connection UTL_SMTP.CONNECTION;
value UTL_SMTP.reply;
PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
BEGIN
UTL_SMTP.write_data(v_connection, name || ': ' || header || utl_tcp.CRLF);
END;
BEGIN
v_connection := UTL_SMTP.OPEN_CONNECTION('smtp.server',25);
dbms_output.put_line('Connection Opened');
dbms_output.put_line('before calling helo');
value := UTL_SMTP.HELO(v_connection,'smtp.server');
dbms_output.put_line('after calling helo');
dbms_output.put_line('code ' || value.code);
dbms_output.put_line('before Sender is set');
value := UTL_SMTP.MAIL(v_connection,'[email protected]');
dbms_output.put_line('code ' || value.code);
dbms_output.put_line('text ' || value.text);
UTL_SMTP.RCPT(v_connection,'[email protected]');
dbms_output.put_line('Recipient Set');
UTL_SMTP.open_data(v_connection);
send_header('From','"Sender" <[email protected]>');
send_header('To','"Recipient" <[email protected]>');
send_header('Subject','Hello');
UTL_SMTP.write_data(v_connection, UTL_TCP.CRLF || 'Hello, world!');
UTL_SMTP.close_data(v_connection);
dbms_output.put_line('Message body set');
UTL_SMTP.QUIT(v_connection);
dbms_output.put_line('Connection Closed');
END;
Output:--------
Connection Opened
before calling helo
after calling helo
code 250
before Sender is set
code 501
text Bad address syntax
Looking forward to hearing from youself. :)
Reagrds,
Leo.

Similar Messages

  • UTL.MAIL error ORA-29279: SMTP permanent error: 501 Address Syntax Error in

    Hi,
    I am new to the forum so please excuse if I post incorrectly without conforming to the standards.
    We need to send mails using the UTL.MAIL package and have installed them on the database.
    Whenever I am trying to send an email I am getting the following error:
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 501 Address Syntax Error in
    [email protected]
    ORA-06512: at "SYS.UTL_MAIL", line 654
    ORA-06512: at "SYS.UTL_MAIL", line 671
    ORA-06512: at line 2
    The test code which I am running is as follows:
    BEGIN
    UTL_MAIL.send(sender => 'test <[email protected]>',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    I have tried different combinations:
    BEGIN
    UTL_MAIL.send(sender => 'test "<[email protected]>"',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    even tried
    BEGIN
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    subject => 'UTL_MAIL test subject',
    message => 'UTL_MAIL test body');
    END;
    Everytime I am getting the same error.
    This seems to be working with an exchange mail server but never on the SMTP server.
    In the SMTP server logs the sender address is not having the angular brackets <> unlike the other mails which are being sent over.
    It seems that the SMTP server is pretty strict and the SMTP admin will not change any settings on the server.
    The oracle version is as follows
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Could you please help me out with a solution.
    Some how the angular brackets are geting stripped off (which UTL MAIL package generally does), Is there any way in which I can include the angular brackets.
    Edited by: 984757 on 29-Jan-2013 02:56
    Edited by: 984757 on 29-Jan-2013 02:57

    I dislike UTL_MAIL - clunky and poor abstraction interface, and not well written.
    Had a look at the code. It does this:
    WHILE (ALL_RCPTS IS NOT NULL) LOOP
          UTL_SMTP.RCPT(MAIL_CONN,'&lt;' || GET_ADDRESS(ALL_RCPTS) || '&gt;');
    END LOOP;The GET_ADDRESS() function process the ALL_RCPTS parameter, returns the 1st address from it, and updates the (in/out) parameter with the remaining string.
    SQL> var address varchar2(200);
    SQL> exec :address := '<[email protected]>,[email protected]';
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    get_address=[email protected] address=[email protected]
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    get_address=[email protected] address=
    PL/SQL procedure successfully completed.
    SQL> The address is explicitly surrounded by brackets as per the RFC. So that is what your SMTP server should see.
    If not - perhaps then our UTL_MAIL versions do not match. Cannot recall from what version I pulled and unwrapped the UTL_MAIL package code I have.
    Personally though, I've ceased using UTL_MAIL a while back. It lacks in may respects. I have written my own mail package that supports multiple attachment, complex Mime formatting, attachments of 20+ MB in size, and so on - running on the UTL_SMTP interface (that provides the transport layer for sending mail). And for issues like you are facing, I suggest considering using UTL_SMTP directly.
    Edited by: Billy Verreynne on Jan 29, 2013 12:52 PM
    (Updated the code with HTML entity names to get the code snippet to render correctly)

  • CDDB "bad syntax" error

    Within the past few months, every time I insert a CD and try to get the CD track names, I receive the following error message: "Response from CDDB server had bad syntax". I've tried a number of different CDs, and I've even gone to the Gracenote website to make sure they're in the system, and they are.
    I thought I might just need to update iTunes, so just today I switched from version 5 to version 7. No change. Same problem.
    On another discussion board, someone recommended to another person with this problem that they get an "update patch" from Gracenote. However, if that's the problem, I can't find one for a Mac. There's an only an .exe file for Windows on their site.
    Any suggestions? How can I fix this?
    iBook G4   Mac OS X (10.3.9)  

    Yes 7.6 is a mess. Like you I am trying to load many CDs, but since the switch to 7.6 I've had nothing but trouble. I can't turn back either as I would have wasted two weeks of importing.

  • BADI Syntax Error

    Dear Sir,
    I am getting following Syntax error while using GET_DATA( ) method  :
    "The format of field specification "IM_ITEM->GET_DATA( )" is not supported ...
    The code , I am using is as :
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    DATA: is_mepoitem TYPE mepoitem ,
          wa_bwtar TYPE mepoitem-bwtar,
          wa_matnr TYPE mepoitem-matnr .
          is_mepoitem = im_item->get_data().
          wa_matnr = is_mepoitem-matnr .
          wa_bwtar = is_mepoitem-bwtar .
    endmethod.
    I request sap gurus , to kindly guide as how to remove the above error .
    Regards
    B Mittal

    DATA: is_mepoitem TYPE mepoitem,
    wa_bwtar TYPE mepoitem-bwtar,
    wa_matnr TYPE mepoitem-matnr.
    CALL METHOD im_data->get_data()
         RECEIVING
             re_data = is_mepoitem.
    wa_bwtar = is_mepoitem-bwtar.
    wa_matnr = is_mepoitem-matnr.
    Reward points if you find it helpful.
    Regards,
    J.Prasanna

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • Unable to send Email: ORA-29279: SMTP permanent error: 501 Syntax error in

    We have a procedure use utl_smtp in 10g (10.0.4). we got this msg (Unable to send Email: ORA-29279: SMTP permanent error: 501 Syntax error in arguments) when send e-mail to another mail box (internal),
    but we use the same procedure running in 10g(10.03) it works perfectly. Is Oracle 10g(10.0.4 vs. 10.0.3) causing this issue ? Can someone shed some lights on my head ? Thx.

    We found what is wrong about this.
    The problem is in CC we had a e-mail address has one space like this test [email protected] so UTL_smtp doesn't like this kind format then we recreated a new e-mail address without space and it works fine.

  • UTL_MAIL: ORA-29279..... 501 badly formatted MAIL FROM user - no " "

    Hi guys,
    I’m trying to redesign a current process that requires a large amount of manual intervention. As such I’d like to utilise UTL_MAIL to send notifications of system events but have been unable to get it to execute on my dev database (installed on my local PC).
    O/S ver:
    Windows XP SP3
    Oracle ver:
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    I’ve configured the smtp_out_server parameter:
    SQL> sho parameter smtp_out_server;
    NAME                                 TYPE        VALUE
    smtp_out_server                  string        XXX.XXX.XXX.80:25
    And installed the required Oracle built in packages:
    SQL> @C:\oracle_builtins\utlmail.sql
    Package created.
    Synonym created.
    SQL> @C:\oracle_builtins\prvtmail.plb
    Package body created.
    No errors.
    I’ve compiled a simple test version of the code:
    CREATE OR REPLACE PROCEDURE test_email IS
    BEGIN
    UTL_MAIL.send(sender     => '[email protected]',
    recipients => '[email protected]',
    subject    => 'UTL_MAIL test subject',
    message    => 'UTL_MAIL test body');
    END;
    +/+
    SQL> @C:\procs\email_proc.sql
    Procedure created.
    However when I execute it I get the attached error(s):
    SQL> execute test_email ;
    BEGIN test_email ; END;
    *+
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 501 badly formatted MAIL FROM user - no <
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 397
    ORA-06512: at "SYS.UTL_MAIL", line 608
    ORA-06512: at "SYS.TEST_EMAIL", line 3
    ORA-06512: at line 1
    I’ve also confirmed with our mail team that the sender is included in our firewall config and should not be being blocked……
    Any ideas? Does the package produce any log files / alerts that I could check or is it possible to execute in a verbose mode so I can debug?
    Thanks,
    Chris

    Welcome to the forum.
    That error comes from your SMTP server, and it indicates there's something wrong with the email address.
    You could try the following and see if that works:
    CREATE OR REPLACE PROCEDURE test_email
    IS
    BEGIN
      UTL_MAIL.send(sender => 'test <[email protected]>',
                    recipients => '[email protected]',
                    subject => 'UTL_MAIL test subject',
                    message => 'UTL_MAIL test body'
    END;
    /Some more inputs can be read here: Reg.SMTP Error while using UTL_MAIL in Oracle 10g
    Also, when you want post formatted examples, just use the {noformat}{noformat} tag before and after your examples.
    So, when you type:
    {noformat}select *
    from dual;{noformat}
    it will appear as:select *
    from dual;when you post it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error while sending E-Mail -- 501 Syntax error in parameters or arguments

    Dear Friends,
    I was trying to send E-Mail using the NTLM Authentication mechanism using the below program:
    import java.util.Properties;
    import javax.mail.Message;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import javax.mail.PasswordAuthentication;
    import java.util.Date;
    import com.sun.mail.smtp.*;
    public class MailerWithAuthentication
         private String     smtpServer;
         private String      fromEmailId;
         private String      toEmailId;
         private String      ccEmailId;
         private String      bccEmailId;
         private String      subject;
         private String      message;
         private String host;
         public MailerWithAuthentication(String toemail, String msg,String sub,String fromId,String host)
              this.toEmailId = toemail;;
              this.subject = sub;
              this.message = msg;
              this.fromEmailId=fromId;
              this.host=host;
    public void sendMail()
              String mailContent = "";
              try
                   Authenticator authenticator = new Authenticator();
                   Properties props = new Properties();
              props.put("mail.smtp.host",this.host );
              props.put("mail.smtp.port", "25");
              props.put("mail.smtp.auth", "true");
              props.put("mail.smtp.auth.mechanisms", "NTLM");
              props.put("mail.smtp.auth.ntlm.flags", "0x00000200");          
              props.put("mail.smtp.auth.ntlm.domain","sal.ad");
              props.put("mail.debug", "true");
              Session session = Session.getDefaultInstance(props,authenticator);
    Message msg = new MimeMessage(session);          
              MimeMessage message = new MimeMessage(session);
              message.setContent("This is a test", "text/plain");
              message.setFrom(new InternetAddress(this.fromEmailId));
              message.addRecipient(Message.RecipientType.TO,new InternetAddress(this.toEmailId));
              Transport.send(message);
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println("Exception in MailerThread : run: " + e.getMessage());               
    private class Authenticator extends javax.mail.Authenticator {
              private PasswordAuthentication authentication;
              public Authenticator() {
                   String username= "sal.ad\mailuser";
                   String password = "mail@123";          
                   authentication = new PasswordAuthentication(username, password);
              protected PasswordAuthentication getPasswordAuthentication() {
                   return authentication;
    public static void main(String args[])
              try
                   System.out.println(" Usage : java MailerWithAuthentication <To-Email> <Message> <Subject> <From-Email> <Mail-Server-IP>");
                   MailerWithAuthentication mailer = new MailerWithAuthentication (args[0],args[1],args[2],args[3],args[4]);
                   mailer.sendMail();
              catch(Exception e)
                   e.printStackTrace();
    Following is the output while running the program:
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.providers (No such file or directory)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.address.map (No such file or directory)
    Mechanishm = NTLM
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "192.168.14.6", port 25, isSSL false
    220 ****************************************************************************
    DEBUG SMTP: connected to host "192.168.14.6", port: 25
    EHLO
    501 Syntax error in parameters or arguments -
    HELO
    501 Syntax error in parameters or arguments -
    javax.mail.MessagingException: 501 Syntax error in parameters or arguments -
    =================================
    The error is :
    EHLO
    501 Syntax error in parameters or arguments -
    HELO
    501 Syntax error in parameters or arguments -
    =================================
    Please tell me what went wrong here. Is it due to any mistake in the program ?
    Thanks in advance.

    hello Anirudh Pucha,
    thanks for your message,
    i'm downloading all the files you advised and one more doubt regarding SOA installation,
    i'm using BPEL Process manager 10.1.3.1.0 installed on my machine and not installed SOA Suite (problem in installing AS Middle tier), i send voice,sms through BPEL PM which works fine, and faced problem in e-mail notification only, according to me with out installing SOA suite we can use BPEL PM or please let me know the procedure to install the downloading files.
    if possible please send me a details in word documents to my mail "[email protected]".
    Thanks again

  • Listener.ora syntax error in NV string

    Hi. I'm attempting to establish a connection with an Access db using ODBC. I've edited my listener.ora file to read the following:
    # listener.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = capital2)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname.domain)(PORT = 1521))
    When I restart the listener, I get the following error:
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 16-JUN-2005 12:34:47
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Log messages written to C:\oracle\product\10.1.0\Db_1\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.domain)(PORT=1521)))
    TNS-01155: Incorrectly specified SID_LIST_LISTENER parameter in LISTENER.ORA
    NL-00303: syntax error in NV string
    Listener failed to start. See the error message(s) above...
    I'm guessing that my listener.ora file has a ")" in the wrong place or something to that effect. Would anyone mind pointing this out for me?
    Thanks!

    normel start :
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Myserver)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    you start:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = webserver)(PORT = 1521))
    ) )

  • FTPEx: 501 Syntax errors in parameter in File Adapter

    Hi All,
      I have a scenario idoc to file when I try sending file through the FTP connection I got the below error
    An error occurred while connecting to the FTP server 'ftp-gw.dx.dxxxx.com:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter.     usage: %[recipient id]%[APRF]       where either [recipient] or [APRF] can be omitted.            (to change your current default SEND relationship).            %% (places you in your 'HOME' TR).   &['s'|'single'] ('get' command gets single file).   &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor.
    I have gone through the forum below which is also unanswered
    FTPEx: 501 Syntax errors in parameter - Any Ideas...
    Note: Luis Melgar and Satish Reddy please let me know if this problem is solved and also please share with me if any discussion you have in offline
    Regards,
    Senthil.

    Hi Anand,
    Not sure whether I need to used the variable substituion but the user as specified to send file as
    PUSHING FILES TO FTP Server
    put localfilename %localfilename%CITISECUFLATNA%CITIGPASSIN%%B
    currently I specified in comm. channel as
    File Access parameters
    Target Directory %xi_output.txt%CITISECUFLATNA%CITIGPASSIN%%B
    Unchecked the checkbox Create Target Directory
    File Name Scheme xi_output.txt
    Please let me know if any more details required.
    Regards,
    Dhill

  • Error with Listener. ORA-00132: syntax error or unresolved network name

    Hi all,
    I have been getting a strange error while trying to start the db.
    SQL> startup nomount
    ORA-01078: failure in processing system parameters
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_TSS2A076N3'
    Listener is up and running.
    Here is my Listener file.
    # listener.ora.tss2a119n1 Network Configuration File: /oradb/oracle/product/asm/
    11.1.0/network/admin/listener.ora.tss2a119n1
    # Generated by Oracle configuration tools.
    LISTENER_TSS2A076N3 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxx.xx.xx.xxxx.net)(PORT =
    4329)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxx.xxx.xx.xxxx.net)(PORT =
    4329)(IP = FIRST))
    SID_LIST_LISTENER_TSS2A076N3 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME=pnet01r_dgmgrl)
    (SID_NAME = pnet01r3)
    (ORACLE_HOME = /oradb/oracle/product/db_1/11.1.0)
    (SID_DESC =
    (SID_NAME = +ASM3)
    (ORACLE_HOME = /oradb/oracle/product/asm/11.1.0)
    Well, i am trying to setup data guard, and this error i am getting on the Standby Server. The above listener is also from the same.
    Please help.
    regards

    @sb92075 Thanks for your reply. Please have a look at this.
    The listener is being soft linked to another location.
    pwd
    /oradb/oracle/product/db_1/11.1.0/network/admin
    $ ls -la
    total 40
    drwxr-xr-x 3 oracle oinstall 256 Nov 18 15:37 .
    drwxr-xr-x 12 oracle oinstall 4096 Nov 6 16:20 ..
    lrwxrwxrwx 1 oracle oinstall 59 Nov 12 17:52 listener.ora -> /oradb/oracle/product/asm/11.1.0/network/admin/listener.ora
    drwxr-xr-x 2 oracle oinstall 256 Nov 6 16:14 samples
    -rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
    lrwxrwxrwx 1 oracle oinstall 59 Nov 12 17:52 tnsnames.ora -> /oradb/oracle/product/asm/11.1.0/network/admin/tnsnames.ora
    -rw-r--r-- 1 oracle oinstall 2998 Oct 22 10:40 tnsnames.ora.SAVE
    -rw-r--r-- 1 oracle oinstall 3084 Nov 16 14:51 tnsnames.ora.old
    -rw-r--r-- 1 oracle oinstall 3341 Nov 18 15:37 tnsnames.ora.save01
    @oradba Thanks for your reply mate..
    I am not very clear on that.. Kindly explain... what exactly should add, remove or change.

  • Syntax error in ora sid user .profile

    Hello all,
    I am getting the following error whenever I su to the ORA<SID> user in AIX 5.3
    .profile[37]: 0403-057 Syntax error: `"' is not matched.
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/SAPSRC.SH#6 $ SAP
    necessary to get hostname without domain (AIX, OS/390 and NOT sun)
    reset the -u option for HP
    case `uname` in
      AIX*)
           alias hostname='hostname -s';;
      OS/390*)
           export BPXKAUTOCVT=ON
           export TAGREDIR_IN=TXT
           export TAGREDIR_OUT=TXT
           export TAGREDIR_ERR=TXT
      HP*)
           if [ -o "nounset" ]; then
                set +u
           fi
    esac
    SAP environment
    if [ -f $HOME/.sapenv_`hostname`.sh ]; then
         . $HOME/.sapenv_`hostname`.sh
    elif [ -f $HOME/.sapenv.sh ]; then
         . $HOME/.sapenv.sh
    fi
    APO environment                         
    if [ -f $HOME/.apoenv_`hostname`.sh ]; then
         . $HOME/.apoenv_`hostname`.sh
    fi
    LiveCache environment                         
    if [ -f $HOME/.lcenv_`hostname`.sh ]; then
         . $HOME/.lcenv_`hostname`.sh
    elif [ -f $HOME/.lcenv.sh ]; then
         . $HOME/.lcenv.sh
    fi
    JAVA environment                         
    if [ -f $HOME/.j2eeenv_`hostname`.sh ]; then
         . $HOME/.j2eeenv_`hostname`.sh          <----
    Line 37
    elif [ -f $HOME/.j2eeenv.sh ]; then
         . $HOME/.j2eeenv.sh
    fi
    XI environment                         
    if [ -f $HOME/.xienv_`hostname`.sh ]; then
         . $HOME/.xienv_`hostname`.sh
    elif [ -f $HOME/.xienv.sh ]; then
         . $HOME/.xienv.sh
    fi
    reset the -u option for HP
    case `uname` in
      HP*)
        if [ -o "nounset" ]; then
          set +u
      fi
    esac
    RDBMS environment
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ind/ind/DBSRC.SH#4 $ SAP
    if [ -f $HOME/.dbenv_`hostname`.sh ]; then
         . $HOME/.dbenv_`hostname`.sh
    elif [ -f $HOME/.dbenv.sh ]; then
         . $HOME/.dbenv.sh
    fi
    <br>
    I am not seeing where there would be any syntax problems at line 37.  The other odd thing is that this profile is the same as my ROOT and <SID>ADM user, so I do not understand why I am getting this error.
    Any help would be greatly appreciated.
    Thanks.

    I would say that one of the sourced profile contains the error, not .profile itself.
    Markus

  • Action Required: Error in Workflow ,  ORA-20002: [WFMLR_DOCUMENT_ERROR]'

    Hi,
    While executing custom workflow on oracle EBS version : R 12.0.6
    i am getting the error like
    An Error occurred in the following Workflow.
    Item Type = ATLCUSMS
    Item Key = ATLCUSMS-795
    User Key =USERKEY: 525
    Error Name = WF_ERROR
    Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
    ATL_CUST_MASTER_APPROVAL.CUST_NOTIF_ATTACH_PROCEDURE(, text/html)
    Wf_Notification.GetAttrblob(6134628, ATUL_CUST_ATTACHMENT, text/html)
    WF_XML.GetAttachment(6134628, text/html)
    WF_XML.GetAttachments(6134628, http://apps.atul.co.in:8024/pls/clonedb, 10602)
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 6134628)
    WF_XML.Generate(oracle.apps.wf.notification.send, 6134628)
    WF_XML.Generate(oracle.apps.wf.notification.send, 6134628)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 6134628, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    Error Stack =
    Activity Id = 267938
    Activity Label = ATLCUSMSPR:ATL_CUST_SALESPER_NT
    Result Code = #MAIL
    Notification Id = 6134628
    Assigned User = KANTILAL_LPRAJAPATI
    Please help if anybody got the answer.
    Regards,
    Vijay

    Hi Vijay;
    Please see:
    Error "Wfe_dispatch_gen_err" When Attaching Blob Document To A Notification [ID 885474.1]
    Purchase Order Workflow Errors With ERROR_MESSAGE=3835 ORA-20002: [WFMLR_DOCUMENT_ERROR]' PDF_ATTACHMENT_SUPP When Trying to Email PO Document [ID 1069009.1]
    Unable to Get the PO as Attachment When PO Communicate Option is Used - System Failed to Generate the PDF Document. Error message 3835 at EMAIL_PO_PDF_SUPP [ID 1056167.1]
    Regard
    Helios

  • Getting ORA-20002: 3825: Error '-4061-ORA-04061: Error from business event

    Hi,
    I have defined custom subscription to the iRecruitment business event oracle.apps.per.api.assignment.update_apl_asg . In this custom subscription i am launching a custom workflow to send Notification about offer acceptance or Application Submission information.
    The subscription package is in my custom schema. When i do transaction to invoke the subscription i am getting below error.
    ORA-20002: 3825: Error '-4061 - ORA-04061: existing state of has been invalidated ORA-04061: existing state of package
    "XXPJ.XXPJ_IREC_EXT_COMPONENTS_PK" has been invalidated ORA-04065: not executed, altered or dropped package "XXPJ.PT in Package irc_party_swi Procedure
    registered_user_application.
    I need to bounce the Workflow services and Apache server to clear this error and functionality work for some time, again after doing 3-4 transaction i get the same error.
    Any help on this appreciated.
    Regards,
    Ram

    From error: "existing state of has been invalidated ORA-04061" It only can happen when current db session finds this package as INVALID. Now when which cases it can find ir INVALID:
    1) One case is that: some other db session "really" compiled your current package. Please note: even if the status is VALID but other db session will see that as INVALID in first attempt and in second attempt, current db session will try to recompile that on-the-fly.
    2) Or Some other db session compiled or altered dependent objects, I mean objects on which your current package is dependent on.

  • [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to g

    Failed Activity
    Notify Requester of Confirm Receipt SSP5 - initial notice
    Activity Type
    Notice
    Error Name
    WF_ERROR
    Error Message
    [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: sqlerrm wf_notification.GetAttrDoc2(452560, PO_RCV_NOTIF_MSG, text/html) Wf_Notification.GetAttrDoc(452560, PO_RCV_NOTIF_MSG, text/html) Wf_Notification.GetText(452560, text/html) Wf_Notification.GetBody(452560, text/html) WF_NOTIFICATION.GetFullBody(nid => 452560, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 452560, r_ntf_pref => MAILHTML)' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(452560, WFMAIL, 2020: Error when getting notification content. Caused by: sqlerrm wf_notification.GetAttrDoc2(452560, PO_RCV_NOTIF_MSG, text/html) Wf_Notification.GetAttrDoc(452560, PO_RCV_NOTIF_MSG, text/html) Wf_Notification.GetText(452560, text/html) Wf_Notification.GetBody(452560, text/html) WF_NOTIFICATION.GetFullBody(nid => 452560, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 452560, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 452560) WF_XML.Generate(oracle.apps.wf.notification.send, 452560) WF_XML.Generate(oracle.apps.wf.notification.send, 452560) Wf_Event.setMessage(oracle.apps.wf.notification.send, 452560, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack

    Hi Klaus,
    I just pick the gateway 11.2.0.3 patch to the installation. Here I got error and patch installation failed.
    [oracle@sjcgnm62v2db1 13092292]$ opatch apply
    Invoking OPatch 11.2.0.1.7
    Oracle Interim Patch Installer version 11.2.0.1.7
    Copyright (c) 2011, Oracle Corporation.  All rights reserved.
    Oracle Home       : /home/oracle/11g/product/11
    Central Inventory : /home/oracle/oraInventory
       from           : /etc/oraInst.loc
    OPatch version    : 11.2.0.1.7
    OUI version       : 11.2.0.3.0
    Log file location : /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Applying interim patch '13092292' to OH '/home/oracle/11g/product/11'
    Verifying environment and performing prerequisite checks...
    Prerequisite check "CheckApplicable" failed.
    The details are:
    Patch 13092292: Required component(s) missing : [ oracle.rdbms.tg4db2, 11.2.0.3.0 ]
    [ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
    Log file location: /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Recommended actions: This patch requires some components to be installed in the home. Either the Oracle Home doesn't have the components or this patch is not suitable for this Oracle Home.
    OPatch failed with error code 39
    [oracle@sjcgnm62v2db1 13092292]$
    Pl help.

Maybe you are looking for

  • What is the BADI  while SAVING purchase order using me22n?

    what is the BADI  while SAVING purchase order using me22n? while i will save purchase order through me22n, badi should be fire what is badi for that? regards, dushyant.

  • RFC for PLM and R/3

    I have 2 servers R/3 and PLM . I want to create a program in R/3 wherein i want to fetch daat from PLM. So i want to connect between the two. There is already a connect between R/3 dev. server and PLM dev. server. I am using the function module 'RFC_

  • Manipulate Product/Service Selection at start of SC (SRM 7.0)

    Hello, I want to manipulate the possibility of selecting  'Product' or 'Service' at the beginning of SC creation. Normally I would do this with BAdI BBP_SC_MODIFY_UI. But this doesn't help. Is there any other place which needs to be considered or che

  • Style overflow problem

    Hi, I used to 3 months ago that kind of declaration <div style="overflow:auto;"> - header of IR </div> - Footer of IRand it was working fine - today in firefox 3.5 it works fine only when I'll specifie width and height (but only body of region, not a

  • Reinstalling 10.5.6 has been stuck with one minute left.

    Trying to reinstall and for 20 minutes has said one minute remaining. Should I quit and try again, or will it eventually finish? What to do? Thnx.