Error during execute UTL_MAIL package

I am using Oracle 10g in windows environment.
I got following error during execute utl_mail.send package.
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 97
ORA-06512: at "SYS.UTL_SMTP", line 139
ORA-06512: at "SYS.UTL_MAIL", line 405
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 2
What is the solution..
Message was edited by:
Pankaj Gupta

Are you sure your configuration is set up correctly.
Note: the UTL_MAIL package is not installed by default. It can be created by running two scripts, <ORACLE_HOME>/rdbms/admin/utlmail.sql and <ORACLE_HOME>/rdbms/admin/prvtmail.sql, from a SQL*Plus session.
In addition, a new initialization parameter, SMTP_OUT_SERVER, specifies the name of the mail server domain. Oracle does this because it gives the DBA a chance to secure the port that SMTP_OUT_SERVER defines from being overloaded from incoming data transmissions. If SMTP_OUT_SERVER is not defined, however, Oracle automatically accepts the domain from the DB_DOMAIN initialization parameter instead.

Similar Messages

  • Getting Error while Execute SSIS Package from Console Application

    Dear All,
    SSIS package working fine directly.
    I got following error while execute SSIS package from C# console application.
    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    OLE DB Destination failed validation and returned error code 0xC004800B.
    One or more component failed validation.
    There were errors during task validation.
    Code : 
       public static string RunDTSPackage()
                Package pkg;
                Application app;
                DTSExecResult pkgResults;
                Variables vars;
                app = new Application();
                pkg = app.LoadPackage(@"D:\WORK\Package.dtsx", null);
         Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = pkg.Execute();
    I have recreate the application with again new connection in SSIS.
    Still not working, Please provide solution if any one have.
    DB : SQL Server 2008 R2
    Thanks and regards,
    Hardik Ramwani

    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    Are you sure that you are running the same package via .NET which works fine from Visual Studio?
    By reading error message, I can say that you have copied OLEDB task from another package OR you have deleted one OLEDB connection manager. Now when package is run this task tries to use the connection manager and not found thus throws error message.
    Open all OLEDB destination tasks and you find connection manager missing. Connection Manager name should be provided there
    Cheers,
    Vaibhav Chaudhari
    MCSA - SQL Server 2012

  • Error during executing the tp command 'tp Connect DEV...

    Dear All,
       There is error when I SPAM support package SAPKB70010.(SAP ECC6.0)
       Info:
       Import phase 'CHECK_REQUIREMENTSS'
       \HOSTNAME\SAPMNT\trans\bin\TPPARAM
       Error during executing the tp command 'tp connect DEV...'
       TP return cod:'0208', tp message:'error in transportprofil (param missing,unknow..'tp output
       sapmnt\trans\bin\TPPARAM could not be opened.
      EXIT
      ERROR:
    System: Parameter SAPEVTPATH not set. Batch jobs cannot be started.
      Error in
    hostname\sapmnt\trans\bin\TPPARAM: transdir not set.
      tp return code Summary:
      TOOLS:Hightest return code of single steps was:0
      ERRORS: Highest tp internal error was:0208
    My environment:
    Win2003 X64
    Oracle 10.2
    SAP ECC 6.0  Basis 700  09
    Kernel patch num:254
    How to solve the issue?
    Thank you very much!

    Hi
    2 possible problems.
    1) tp is using the wrong profile
    2) the profile is not complete
    For 1, specify the profile when using the tp command e.g. tp connect dr1
    pf='/usr/sap/trans/DR1/bin/TPPARAM'
    For 2 you need to edit the TPPARAM file and insert the correct values e.g.
    DR1/sapevtpath = /usr/sap/$(system)/SYS/exe/run/sapevt or you can add
    it into the command line with the -D option
    At the command prompt enter 'tp connect' and the help file will be
    displayed for that command with the available options
    Cheers
    Nirav Kundaria

  • Error while executing a package in ODI

    Hi,
    I am new to Oracle technology and when i am trying to execute one package through Oracle Data Integrator i am getting the below error. Even when i am trying to execute the procedure 'GENERATE_NAT_KEY' i am getting the error
    ODI-1228: Task Generate Natural Key (Procedure) fails on the target ORACLE connection ORACLE_OII.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00904: : invalid identifier
    ORA-06512: at "OII_ST.GENERATE_NAT_KEY", line 65
    ORA-06512: at line 2
    I am not able to figure out the issue. Can any one help me in this regards.

    Hi;
    You have to login https://support.oracle.com/CSP/ui/flash.html and you have to CSI account.
    This site is oracle site for tech. documents for can rise SR etc.. for more details please check Re: Installing Oracle Database 10.2.0.4
    you need to customer support identifier which is called CSI for can login metalink(https://support.oracle.com/CSP/ui/flash.html)
    If you dont have metalink account there is no way to see that doc.
    Pretty simple process:
    1) You purchase a perpetual or term license from Oracle;
    2) At the beginning of the period, during the valid term you purchase
    Support for the period (1 year);
    3) Oracle sends you the CSI.
    Easy to do at http://store.oracle.com armed with a credit card.
    Regard
    Helios

  • Error while executing a Package in Parallel.

    Hi All,
    We are trying to execute a package in parallel. Our execution stopped while when the package is running for the sixth time. The error for that execution is as follows :
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: oracle.odi.runtime.agent.invocation.InvocationException: HTTP/1.1 500 Could not get JDBC Connection; nested exception is java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:271)
    at oracle.odi.runtime.agent.invocation.support.InternalRemoteRuntimeAgentInvoker.invokeStartScenario(InternalRemoteRuntimeAgentInvoker.java:149)
    at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java:266)
    at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java:155)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1414)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1818)
    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:559)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    .....Some more
    Can anyone suggest your pointers on this.?
    Regards.

    It looks like you have exceeded the number of connections available for the datasource. Try checking your connection pool settings.

  • Error while executing SSIS package which contains Script component through SQL Server Agent Job

    Hello All,
    I have written one SSIS 2012 package which is fetching records from CSV and put it into staging DB and from staging DB , using SSIS script component task, I am inserting data into Dynamics CRM. So far it is working fine when
    I manually execute SSIS package.
    but when I run the SSIS package using SQL server agent job, I encounter below error. After seeing below error at step "Insert TLM Headers Script Component " I understand that it is failing at script component which I have used in SSIS package,
    but I am not sure what is the cause behind that? please advise.
    Error:
    Executed as user: domain\user account. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.5556.0 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  1:21:41 PM  Error: 2015-02-25
    13:21:45.94     Code: 0xC0047062     Source: Insert TLM Headers Script Component [205]     Description: System.ServiceModel.FaultException: The server was unable to process the request due to an internal
    error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to
    the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.    Server stack trace:      at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message
    reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown at [0]:      at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception
    e)     at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)     at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100
    wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)  End Error  Error: 2015-02-25 13:21:45.94     Code: 0xC0047022     Source: Insert TLM Headers SSIS.Pipeline    
    Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Script Component" (205) failed with error code 0x80131501 while processing input "Input 0" (215). The identified component returned an error
    from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.  End Error 
    DTExec: The package execution returned DTSER_FAILURE (1).  Started:  1:21:41 PM  Finished: 1:21:45 PM  Elapsed:  4.009 seconds.  The package execution failed.  The step failed.
    Thanks
    Pankaj

    domain\user account has not proper rights
    That being said, often SSIS jobs require a proxy to be runnable and this is how you make one up
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Arthur
    MyBlog
    Twitter

  • Error when executing a package

    Hi Everyone,
    I am executing a package that contains several interfaces, and I am running it in two environments: Development and production.
    On the production environment, i do execute the pkg and it executes quite well, without warning, errors or what so ever.
    in the Developmente one, no i get two errors. Both on the same step, and I have review the SQL on both tables and it is quite "fine" or at least it is the same in both environments.
    Error 1: I do get it when It goes in the "Insert PK errors"
    904 : 42000 : java.sql.SQLException: ORA-00904: "FIELD_X": invalid identifier
    java.sql.SQLException: ORA-00904: "FIELD_X": invalid identifier
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)
    Error 2: I do get it when It goes in the "Insert PK errors"
    904 : 42000 : java.sql.SQLException: ORA-00904: "FIELD_Y": invalid identifier
    java.sql.SQLException: ORA-00904: "FIELD_Y": invalid identifier
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.j(e.java)
         at com.sunopsis.dwg.cmd.h.z(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)
    Any ideas and/or suggestions?
    Please do not hesitate to contact me if any further information is required.
    Best regards,
    J_ORCL
    Edited by: J_ORCL on Apr 23, 2012 8:07 AM

    Check your E$ table. Looks like you may have changed your table structure and the old E$ table is missing the columns from the new structure.
    You can drop the E$ table from the Development environment and it should run fine.

  • Error when execute a package from SQL Server Agent

    We have the next problem:
    When we execute a package from a Job of SQL Server agent, it shows the success messege, but reviewing the results, the package didnt do all the tasks.
    When we run it mannually by MSIS the package, it shows the success message and it works fine.
    The workflow of the package is :
    1) Shrink the databases (executing a sql file)
    2) Backup the databases (Back up Database task of MSIS)
    3) Rename the files to .BAK extension (by the Foreach loop container and fyle system task)
    4) Execute command to compress the it (by a .bat)
    5) Move the compress file to another location  (by another Foreach loop)
    Manually run correct, but when is a a SQL AGent Job that execute the package it does only the first 2 steps.
    we are ussing Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (coffee) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) 
    We are using a user with administrator privilegies
    Cheers 

    Can you check if account running package has proper access. You may need to define a proxy account for that.
    See
    http://www.databasejournal.com/features/mssql/article.php/3789881/Proxy-Accounts-in-SQL-Server.htm
    http://gqbi.wordpress.com/2014/01/30/setting-up-a-proxy-account-to-run-sql-server-integration-services-ssis-2012-packages/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error while running UTL_MAIL package

    SQL> conn system/sys@ORCL;
    Connected.
    SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\utlmail.sql
    Package created.
    Synonym created.
    SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\prvtmail.plb
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY UTL_MAIL:
    LINE/COL ERROR
    319/5 PL/SQL: SQL Statement ignored
    320/10 PL/SQL: ORA-00942: table or view does not exist
    325/7 PL/SQL: SQL Statement ignored
    326/12 PL/SQL: ORA-00942: table or view does not exist
    Can any help on this?

    SQL> conn sys/sys@ORCL as SYSDBA;
    Connected.
    SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\utlmail.sql
    Package created.
    Synonym created.
    SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\prvtmail.plb
    Package body created.
    No errors.
    SQL> GRANT execute ON utl_mail TO NIKHIL;
    Grant succeeded.
    SQL> disc
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn NIKHIL/NIKHIL@ORCL;
    Connected.
    SQL> ALTER SYSTEM SET smtp_out_server='72.167.238.201';
    System altered.
    SQL> DECLARE
    2
    3 vSender VARCHAR2(30) := '[email protected]';
    4
    5 vRecip VARCHAR2(30) := '[email protected]';
    6
    7 vSubj VARCHAR2(50) := 'Enter the subject here';
    8
    9 vMesg VARCHAR2(4000) := 'Enter the body';
    10
    11 vMType VARCHAR2(30) := 'text/plain; charset=us-ascii';
    12
    13 BEGIN
    14
    15 utl_mail.send(vSender, vRecip, NULL, NULL, vSubj, vMesg, vMType, NULL);
    16
    17 END;
    18 /
    DECLARE
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "SYS.UTL_MAIL", line 405
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 15
    mycmpny-- got some value which i have removed.

  • Error in executing UTL_MAIL

    Dear Gurus...I've tried both UTL_SMTP and UTL_MAIL, UTL_SMTP is working well and sending mails but following code of UTL_MAIL is giving the error which I can't guess, why?
    DECLARE
    CRLF CHAR(2) := CHR(10) || CHR(13);
    BEGIN
    UTL_MAIL.SEND(sender => '[email protected]',
    recipients => '[email protected]',
    cc => NULL,
    bcc => NULL,
    subject => 'Test Email',
    message => 'Test line1' || CRLF || CRLF || 'Test line2',
    mime_type => 'text/plain; charset=us-ascii',
    priority => 1);
    END;
    and the error is:
    ORA-29279: SMTP permanent error: 554 Message is not RFC compliant
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 345
    ORA-06512: at "SYS.UTL_MAIL", line 577
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 4
    could u guess why this error is generating???
    P.S...I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production on MS-Windows Server-2003.

    Dear Sybrand...Yes I can read this RFC but not right now, I'll be happy if u can solve this problem without making me a book worm ;) I'ld like to add that I'm executing UTL_SMTP with the following code successfully:
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]; [email protected]';
    v_Subject VARCHAR2(80) := 'test mail with attachment';
    v_Mail_Host VARCHAR2(30) := 'mail.nishatmills.com';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    crlf ||
    'Dear Shahid'||CHR(10)||'This is test mail through UTL_SMTP with attachment'||CHR(10)||'Regards '||CHR(10)||' M.Kamran Khan'|| crlf || -- Message body
    utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    So if UTL_SMTP can run successfully then why not UTL_MAIL as UTL_SMTP is working behid it.
    Does it need any Database configuration like any installation of a package?

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Error while executing SSIS Package after upgrading the Oracle Client

    Hello,
    I am running to the below error after we upgraded the Oracle client to 11g from 10g. The source of the Data is Oracle database . Looked online but each error is pointing towards different route, Confused here any help is very much appreciated. Have to say
    I am not a pro with SSIS.
    SSIS package "Bentek_ISO_Package (2).dtsx" starting.
    Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Warning: 0x80049304 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator,
    or on the system's console.
    Information: 0x40043006 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
    Error: 0xC0202009 at Temp_tbl Injection Data Flow Task, OLE DB Source [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
    An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80040E14  Description: "ORA-12801: error signaled in parallel query server P183, instance *****:qrmgmt2 (2)
    ORA-01861: literal does not match format string".
    An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-12801: error signaled in parallel query server P183, instance ****:qrmgmt2 (2)
    ORA-01861: literal does not match format string".
    Error: 0xC004701A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.
    Information: 0x4004300B at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (52)" wrote 0 rows.
    Information: 0x40043009 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Temp_tbl Injection Data Flow Task
    Warning: 0x80019002 at *******: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "****** (2).dtsx" finished: Failure.

    Do you have any Date conversion functions in your Oracle datetime fields? I did run into a similar issue when we upgraded the oracle client and the provider started to decipher the metadata of the date columns. The SSIS metadata conversion for the date
    columns yielded dates that were not valid. I had to update my queries to use the TO_CHAR conversion to bring it out as a string and then save it to the date field.
    TO_CHAR (DATE, 'MM/DD/YYYY HH24:MI:SS')
    Regards, Dinesh

  • SQL SERVER - Error while executing SSIS package on specific environment : Connection manager - The specified module could not be found

    I have deployed my SSIS packages on SQL 2008 server.
    I have a .bat file which will invoke these packages and also the bat file is placed in the server where the SSIS packages are deployed.
    Scenario 1:
    I double clicked on the bat file to invoke the SSIS packages and ; this executed successfully
    Scenario 2:
    I have used the IBM Tivoli work scheduler(TWS)  to invoke the bat file which in tern will invoke the ssis packges; 
    but when i do this i am getting the below error
     Code: 0x8007007E
       Source: SSIS_Master_Event_Data_Transfer Connection manager "Config DB"
       Description: The specified module could not be found.
    Config BD is a connection manager which will get the connection string from the config file of the SSIS package.
    Please help me to resolve this issue.
    Regards,
    Prakash

    Check you TWS jobmanrc.cmd configuration file.   You may need to add a PATH environment variable in that file that includes your SQL Server file locations.   When TWS jobs are executed, they may not be executing with the same
    PATH variable as when you execute the SSIS outside of TWS.

  • Error in executing PA_PROJECT_PUB package

    HI All,
    The "Create_Project" API of the package PA_PROJECT_PUB is invoked by the BPEL process : CreateProjectListOrderEbiz through "Oracle Applications Adapter", which would initiate the process of projects creation in EBS Projects. The BPEL is initiated by providing the xml source input and executed by "java delivery api"
    The API is erroring out with the following message :
    +com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}+
    +messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}+
    +parts: {{code=1086+
    +,summary=file:/app/oracle/product/soa/bpel/domains/default/tmp/.bpel_CreateProjectListOrderEbiz_2.0_f8b3864fa9480f5334fcd28de33e4f27.tmp/CallSampleAPI.wsdl [ CallSampleAPI_ptt::CallSampleAPI(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'CallSampleAPI' failed due to: Error while trying to prepare and execute an API.+
    An error occurred while preparing and executing the APPS.XX_BPEL_CALLSAMPLEAPI.PA_SAMPLE_API$CREATE_PROJECT API. Cause: java.sql.SQLException: ORA-01086: savepoint 'CREATE_PROJECT_PUB' never established
    ORA-06512: at "APPS.PA_SAMPLE_API", line 5649
    ORA-01086: savepoint 'ADD_KEY_MEMBERS_PVT' never established
    ORA-06512: at "APPS.PA_SAMPLE_PVT", line 500
    ORA-01086: savepoint 'CREATE_PROJECT_PARTY' never established
    ORA-06512: at "APPS.PA_PROJECT_PARTIES_PUB", line 351
    The xml source input for the bpel which is used while calling the API  from bpel is given below:
    +<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPEL_TEST/PA_PROJECT_PUB-24CREATE_PROJECT/">+
    +<P_API_VERSION_NUMBER>1.0</P_API_VERSION_NUMBER>+
    +<P_COMMIT>F</P_COMMIT>+
    +<P_INIT_MSG_LIST>F</P_INIT_MSG_LIST>+
    +<P_PM_PRODUCT_CODE>PJM</P_PM_PRODUCT_CODE>+
    +<P_PROJECT_IN>+
    +     <PM_PROJECT_REFERENCE>Sample_proj7</PM_PROJECT_REFERENCE>+
    +     <PA_PROJECT_ID></PA_PROJECT_ID>+
    +     <PA_PROJECT_NUMBER>Sample_proj7</PA_PROJECT_NUMBER>+
    +     <PROJECT_NAME>Sample_proj7</PROJECT_NAME>+
    +     <LONG_NAME>Sample_proj7</LONG_NAME>+
    +     <CREATED_FROM_PROJECT_ID>2777</CREATED_FROM_PROJECT_ID>+
    +     <CARRYING_OUT_ORGANIZATION_ID>204</CARRYING_OUT_ORGANIZATION_ID>+
    +     <PUBLIC_SECTOR_FLAG>N</PUBLIC_SECTOR_FLAG>+
    +     <PROJECT_STATUS_CODE>UNAPPROVED</PROJECT_STATUS_CODE>+
    +     <DESCRIPTION>Sample_proj3</DESCRIPTION>+
    +     <START_DATE>2012-02-15</START_DATE>+
    +     <COMPLETION_DATE>2012-02-16</COMPLETION_DATE>+
    +     <CUSTOMER_ID>1004</CUSTOMER_ID>+
    +     <PROJECT_RELATIONSHIP_CODE>CLIENT</PROJECT_RELATIONSHIP_CODE>+
    +     <ENABLE_TOP_TASK_INV_MTH_FLAG>Y</ENABLE_TOP_TASK_INV_MTH_FLAG>+
    +     <ENABLE_TOP_TASK_CUSTOMER_FLAG>Y</ENABLE_TOP_TASK_CUSTOMER_FLAG>+
    +</P_PROJECT_IN>+
    +<P_OP_VALIDATE_FLAG>F</P_OP_VALIDATE_FLAG>+
    +<P_CUSTOMERS_IN>+
    +               <P_CUSTOMERS_IN_ITEM>+
    +<CUSTOMER_ID>1004</CUSTOMER_ID>+
    +<PROJECT_RELATIONSHIP_CODE>CLIENT</PROJECT_RELATIONSHIP_CODE>+
    +</P_CUSTOMERS_IN_ITEM>+
    +</P_CUSTOMERS_IN>+
    +<P_KEY_MEMBERS>+
    +<P_KEY_MEMBERS_ITEM>+
    +<PERSON_ID>25</PERSON_ID>+
    +<PROJECT_ROLE_TYPE>PROJECT MANAGER</PROJECT_ROLE_TYPE>+
    +</P_KEY_MEMBERS_ITEM>+
    +</P_KEY_MEMBERS>+
    +<P_CLASS_CATEGORIES>+
    +</P_CLASS_CATEGORIES>+
    +<P_TASKS_IN></P_TASKS_IN>+
    +<P_ORG_ROLES>+
    +<P_KEY_MEMBERS_ITEM>+
    +<PERSON_ID>453866</PERSON_ID>+
    +<PROJECT_ROLE_TYPE>PROJECT MANAGER</PROJECT_ROLE_TYPE>+
    +<PROJECT_ROLE_MEANING></PROJECT_ROLE_MEANING>+
    +<START_DATE>2012-02-20</START_DATE>+
    +<END_DATE>2012-02-21</END_DATE>+
    +</P_KEY_MEMBERS_ITEM>+
    +</P_ORG_ROLES>+
    +<P_STRUCTURE_IN>+
    +</P_STRUCTURE_IN>+
    +<P_EXT_ATTR_TBL_IN></P_EXT_ATTR_TBL_IN>+
    +<P_DELIVERABLES_IN></P_DELIVERABLES_IN>+
    +<P_DELIVERABLE_ACTIONS_IN></P_DELIVERABLE_ACTIONS_IN>+
    +</InputParameters>+
    Any inputs on debugging the api would be really appreciated
    Thanks and Regards
    Pavitra

    Run a level 12 trace. Then execute the call to the API from SQL*Plus. This issue will be much easier to debug in SQL*Plus than from your BPEL process.

  • Error After Execute Info Package

    Experts,
    I got the below errors after i executed the info package.
    I tried RSA3 on the Data Source in ECC, it got extracted successfully.
    Do you have any idea why this happens?
    Thanks.
    Tee
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.

    hi,
    your message has got answers for your question.
    1.what source sytem you are getting data from?
    if it is flat file --->please make sure you have specified file in specified format at specified location and make sure the file is not open at the time of loading.
    2.If it is another source system make sure...the interface is proper to extract data from.
    if everything looks fine..just logoff from the system once and login again and try to repeat the load which will be successful in majority of the cases.
    Regards
    Ramsunder.

Maybe you are looking for