Email Bursting from Oracle BI Publisher

Hi,
I am new to BI Publisher and trying to do Email bursting.
I configured our email server (gave host ip address and port) in admin->email tab.
Enabled bursting in the report and gave the bursting query.
After scheduling,it says success but no email is received.
What could be the reason for the same?
Any inputs will be of great help.
Following is my burst query:
select DISTINCT UNITHOLDERID KEY,
'ZipCodeProcess'TEMPLATE,
'RTF'TEMPLATE_FORMAT,
'en-US' LOCALE,
'PDF' OUTPUT_FORMAT,
'EMAIL' DEL_CHANNEL,
email PARAMETER1,
'[email protected]' PARAMETER2,
'[email protected]' PARAMETER3,
'Statement OF Account' PARAMETER4,
'Hi'||UNITHOLDERID||chr(13)|| 'Please find attached your
SOA.' PARAMETER5,
'true' PARAMETER6,
'[email protected]' PARAMETER7
from sssl_holder_info_tbl where report_type='B'
AND unitholderid='SBBNAA114570'
My XML data
- <BURST_ROW>
<KEY>SBBNAA114570</KEY>
<TEMPLATE>ZipCodeProcess</TEMPLATE>
<TEMPLATE_FORMAT>RTF</TEMPLATE_FORMAT>
<LOCALE>en-US</LOCALE>
<OUTPUT_FORMAT>PDF</OUTPUT_FORMAT>
<DEL_CHANNEL>EMAIL</DEL_CHANNEL>
<PARAMETER1>[email protected]</PARAMETER1>
<PARAMETER2>[email protected]</PARAMETER2>
<PARAMETER3>[email protected]</PARAMETER3>
<PARAMETER4>Statement OF Account</PARAMETER4>
<PARAMETER5>HiSBBNAA114570 Please find attached your SOA.</PARAMETER5>
<PARAMETER6>true</PARAMETER6>
<PARAMETER7>[email protected]</PARAMETER7>
</BURST_ROW>
</burst>
Thanks and Regards,
Tanna

Hi,
Can you please tell me how to access this XML Bursting Definition file? I cant seem to find this. In BI Publisher User Interface bursting section, I see only the Delivery Data Source section which allows me to enter my bursting parameter in SQL Query form. Can you please tell me how to access the XML file directly. Thanks in advance!

Similar Messages

  • How call procedure or package from Oracle BI Publisher 10.1.3.2.1

    Hi Gurus,
    I need to call a procedure or package from Oracle BI Publisher 10.1.3.2.1 by passing parameters, I do it because it would be easier to fill a table as the report that asks for is too complex (8 breaks, 5 dblinks, 20 tables, etc).
    I'm not using the Oracle XML. Review include the following solutions:
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use Stored Procedures in BI Publisher GUI?
    Re: PL/SQL Stored Procedure w/ XML Template?
    But none of them useful for me was the level of complexity.
    Best regards.

    Hi Vetsrini,
    I write the sentence as it showed in the previous thread
    select from whc_kk_v2.whc_p_kk_publisher (pv_msgerror =>: msgerror,*
    pv_pro1 =>: prov_1,
    pv_pro2 =>: prov_2)
    run when I get the error BIP
    ORA-00933: SQL command not properly ended
    Show me I'm doing wrong, or who may be causing the error. I tried everything but does not leave, please your help.
    Best regards

  • Help sending out long email message from ORACLE PL/SQL

    Hello,
    I need help sending out long email message from ORACLE PL/SQL.
    My message(email body) contains about 4000 characters and comes out truncated somewhere on the middle.
    My business requirements do not allow me to send it as attachment.
    I am using oracle utl_smtp package and on oracle 10gR2.
    Is it possible to send out long text message from Oracle?
    Thanks!
    Ia

    Thank you very much for your responses.
    Even if I use email procedure below my message is getting truncated.
    Here is how I am trying to execute the procedure from sql plus:
    DECLARE
    P_SENDER VARCHAR2(32767);
    P_RECIPIENT VARCHAR2(32767);
    P_SUBJECT VARCHAR2(32767);
    P_BODY VARCHAR2(32767);
    BEGIN
    P_SENDER := 'xxxx@yyy';
    P_RECIPIENT := 'xxxx@yyy';
    P_SUBJECT := 'long text message';
    P_BODY :=
    '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    9 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    11 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    12 34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    21 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';
    EMAIL ( P_SENDER, P_RECIPIENT, P_SUBJECT, P_BODY );
    COMMIT;
    END;
    SQL> @long_sp;
    PL/SQL procedure successfully completed.
    The email message is:
    long text message
    xxx@yyyy
    Sent:     Tuesday, May 25, 2010 6:52 AM
    To:     
    xxx@yyyy
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 9 12345678901234567890123456789012345678901234567890123456789012345678901234
    Message is getting truncated around 1000 characters.
    What am I doing wrong?
    Please help!
    Thanks!!

  • How to do bursting on oracle bi publisher

    Hi everyone,
    I am currently learning oracle bi publisher and I am using version 10.1.3.2. I want to use bursting to send emails to different people with attachments. I have prepared a report with xml data, rtf template file and I am able to view it. Now i need help on how to prepare control file and steps required after that to run it.
    Do I need to install some patches as well?
    xml data consist of employees information so i enabled bursting for this report with split by-empname and deliver by-emailid but after that i do not know what to do
    <employee>
    <empname>xyz</empname>
    <job>clerk</job>
    <emailid>[email protected]</emailid>
    </employee>
    Thanks
    Edited by: user10883813 on Feb 2, 2009 10:40 PM

    When I schedule my report with bursting, it fails to run and the oracle bi publisher gives following exceptions. Can anybody help me on these exceptions,that what I am missing in my report?
    [020409_063322234][][EXCEPTION] Succeeded to schedule the job : [ID]=[11]
    2009-02-05 10:22:45.901 WARNING url mismatchjdbc:oraclebi://HOST:PORT/
    2009-02-05 10:22:45.901 WARNING url mismatchjdbc:oraclebi://HOST:PORT/
    [020509_102839482][][ERROR] Font is not configured. Please define font for Verdana.italic.normal
    2009-02-05 10:50:31.635 NOTIFICATION [Job ID]=[12], [Job group name]=[administrator]
    2009-02-05 10:50:31.635 NOTIFICATION [Start time]=[Thu Feb 05 11:00:00 GMT+05:30 2009], [End time]=[null], [Repeat count]=[0], [Repeat interval]=[0]
    [020509_105031870][][EXCEPTION] Succeeded to schedule the job : [ID]=[12]
    [020509_105151919][][EXCEPTION] Succeeded to cancel the job : [ID]=[12]
    2009-02-05 10:54:08.000 NOTIFICATION [Job ID]=[13], [Job group name]=[administrator]
    2009-02-05 10:54:08.000 NOTIFICATION [Start time]=[Thu Feb 05 11:00:00 GMT+05:30 2009], [End time]=[null], [Repeat count]=[0], [Repeat interval]=[0]
    [020509_105408016][][EXCEPTION] Succeeded to schedule the job : [ID]=[13]
    [020509_110000431][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.batch.bursting.ProcessEnterpriseDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1904)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:315)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    [020509_110000447][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.batch.bursting.ProcessEnterpriseDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1904)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:315)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    [020509_110000447][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.batch.bursting.ProcessEnterpriseDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1904)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:315)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    [020509_110000447][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.batch.bursting.ProcessEnterpriseDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1904)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:315)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    [020509_114046572][][ERROR] Report Template Servlet ERROR: An existing connection was forcibly closed by the remote host
    [020509_114046572][][EXCEPTION] com.evermind.server.http.HttpIOException: An existing connection was forcibly closed by the remote host
    at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:210)
    at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:135)
    at oracle.apps.xdo.service.report.ReportTemplateService.generateReportTemplate(ReportTemplateService.java:748)
    at oracle.apps.xdo.service.report.ReportTemplateService.doGet(ReportTemplateService.java:474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at LaunchExcelAnalyzer.jspService(_LaunchExcelAnalyzer.java:73)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:65)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    2009-02-05 11:41:37.526 NOTIFICATION [Job ID]=[14], [Job group name]=[administrator]
    2009-02-05 11:41:37.526 NOTIFICATION [Start time]=[Thu Feb 05 12:00:00 GMT+05:30 2009], [End time]=[null], [Repeat count]=[0], [Repeat interval]=[0]
    [020509_114137823][][EXCEPTION] Succeeded to schedule the job : [ID]=[14]

  • Need to add extra lines in email generating from oracle

    Hi!
    I am using Oracle 9i Enterprise Edition 9.2.0.6
    I am facing a problem while generating the email from Oracle
    Problem is that I want to display the data in following format
    Terminal Statistics From: 30-MAR-2008 15:39:00 To: 06-JUN-2008 16:59:00
    Containers Examined
    Export: 2
    Import: 30
    but email shows data in following format
    Terminal Statistics From: 30-MAR-2008 15:39:00 To: 06-JUN-2008 16:59:00 Containers Examined Export: 2 Import: 30
    System combines the all the data in one line, while I have used following function to add new line when and where needed, but unable to get my desired result.
    1. utl_tcp.CRLF
    2. chr(130) || chr(10)
    3. chr(10)
    I have used following procedure to generate the email.
    PROCEDURE send_html_email(
    p_module_name in varchar2,
    p_subject in varchar2,
    p_text in varchar2 default null,
    p_html in varchar2 default null
    IS
    l_boundary varchar2(32767) default 'a1b2c3d4e3f2g1';
    l_connection utl_smtp.connection;
    l_body_html clob := empty_clob; --This LOB will be the email message
    l_offset number;
    l_ammount number;
    l_temp varchar2(32767) default null;
    l_to varchar2(100);
    l_cc varchar2(100);
    l_bcc varchar2(100);
    t_v_stpt Number:=0;
    t_v_endpt Number:=0;
    c_v_stpt Number:=0;
    c_v_endpt Number:=0;
    b_v_stpt Number:=0;
    b_v_endpt Number:=0;
    l_subject varchar2(255);
    BEGIN
    /*Function to retrieve the E-mail recipients list according to the Module/application*/
    mail_recipient(p_module_name,l_to,l_cc,l_bcc);
    l_connection := utl_smtp.open_connection( pk_parameter.setting('MAILSVR'), 25 );
    utl_smtp.helo( l_connection, pk_parameter.setting('MAILSVR') );
    utl_smtp.mail( l_connection, pk_parameter.setting('MAILFROM') );
    l_temp := l_temp || 'MIME-Version: 1.0' || chr(13) || chr(10);
    LOOP
    t_v_stpt := t_v_stpt + 1;
    t_v_endpt := INSTR (l_to, ',', t_v_stpt, 1);
    IF l_to is null then
    EXIT;
    ELSIF t_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_to, t_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_to, t_v_stpt, t_v_endpt -t_v_stpt));
    END IF;
    t_v_stpt := t_v_endpt;
    END LOOP;
    LOOP
    c_v_stpt := c_v_stpt + 1;
    c_v_endpt := INSTR (l_cc, ',', c_v_stpt, 1);
    IF l_cc is null then
    EXIT;
    ELSIF c_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_cc, c_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_cc, c_v_stpt, c_v_endpt -c_v_stpt));
    END IF;
    c_v_stpt := c_v_endpt;
    END LOOP;
    LOOP
    b_v_stpt := b_v_stpt + 1;
    b_v_endpt := INSTR (l_bcc, ',', b_v_stpt, 1);
    IF l_bcc is null then
    EXIT;
    ELSIF b_v_endpt = 0 THEN
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_bcc, b_v_stpt));
    EXIT;
    ELSE
    UTL_SMTP.rcpt (l_connection, SUBSTR (l_bcc, b_v_stpt, b_v_endpt -b_v_stpt));
    END IF;
    b_v_stpt := b_v_endpt;
    END LOOP;
    /*Header creation for email.*/
    IF l_to is not null or l_cc is not null or l_bcc is not null THEN
    l_temp := l_temp || 'To: ' || l_to || chr(13) || chr(10);
    l_temp := l_temp || 'CC: ' || l_cc || chr(13) || chr(10);
    l_temp := l_temp || 'BCC: ' || l_bcc || chr(13) || chr(10);
    l_temp := l_temp || 'From: ' || pk_parameter.setting('MAILFROM') || chr(13) || chr(10);
    l_temp := l_temp || 'Subject: ' || p_subject || chr(13) || chr(10);
    l_temp := l_temp || 'Reply-To: ' || pk_parameter.setting('MAILFROM') || chr(13) || chr(10);
    l_temp := l_temp || 'Content-Type: multipart/alternative; boundary=' ||
    chr(34) || l_boundary || chr(34) || chr(13) ||
    chr(10);
    -- Write the headers
    dbms_lob.createtemporary( l_body_html, false, 10 );
    dbms_lob.write(l_body_html,length(l_temp),1,l_temp);
    -- Write the text boundary
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    l_temp := '--' || l_boundary || chr(13)||chr(10);
    l_temp := l_temp || 'content-type: text/plain; charset=us-ascii' ||
    chr(13) || chr(10) || chr(13) || chr(10);
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Write the plain text portion of the email
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(p_text),l_offset,p_text);
    -- Write the HTML boundary
    l_temp := chr(13)||chr(10)||chr(13)||chr(10)||'--' || l_boundary ||
    chr(13) || chr(10);
    l_temp := l_temp || 'content-type: text/html;' ||
    chr(13) || chr(10) || chr(13) || chr(10);
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Write the HTML portion of the message
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(p_html),l_offset,p_html);
    -- Write the final html boundary
    l_temp := chr(13) || chr(10) || '--' || l_boundary || '--' || chr(13);
    l_offset := dbms_lob.getlength(l_body_html) + 1;
    dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
    -- Send the email in 1900 byte chunks to UTL_SMTP
    l_offset := 1;
    l_ammount := 32767;
    utl_smtp.open_data(l_connection);
    while l_offset < dbms_lob.getlength(l_body_html) loop
    utl_smtp.write_data(l_connection, dbms_lob.substr(l_body_html,l_ammount,l_offset));
    l_offset := l_offset + l_ammount ;
    l_ammount := least(32767,dbms_lob.getlength(l_body_html) - l_ammount);
    end loop;
    utl_smtp.close_data(l_connection);
    utl_smtp.quit( l_connection );
    dbms_lob.freetemporary(l_body_html);
    END IF;
    END;
    Following procedure calls the above function and generate the email
    PROCEDURE generate_statistics
    IS
    l_minutes NUMBER:=0;
    l_sub_type cg_ref_codes.rv_meaning%type;
    l_gate_text VARCHAR2(5000);
    l_ves_text VARCHAR2(5000);
    l_exm_text VARCHAR2(5000);
    l_email_text VARCHAR2(5000);
    l_gate_tot NUMBER:=0;
    l_load_tot NUMBER:=0;
    l_discharge NUMBER:=0;
    l_exm_tot NUMBER:=0;
    /*Declare Cursor to get Examined Containers Summary*/
    CURSOR cur_examined_ctrs IS
    SELECT decode(eu.category,'I','Import','E','Export') Category, count(*) Total
    FROM service_events se, equipment_uses eu
    WHERE se.performed BETWEEN round(sysdate-l_minutes/1440,'mi')
    AND round(sysdate,'mi')
    AND se.tserv_id IN ('EXM')
    AND eu.gkey = se.equse_gkey
    AND eu.category IN ('I','E')
    GROUP BY eu.category;
    BEGIN
    /*Retrieve parameterized minutes*/
    l_minutes := nvl(pk_parameter.setting('STATSGMI'),0);
    /*Assign Values to generate email*/
    l_email_text := 'Terminal Statistics From: '||
    to_char(round(sysdate-l_minutes/1440,'mi'),'DD-MON-RRRR HH24:MI:SS')||
    ' To: '||to_char(round(sysdate,'mi'),'DD-MON-RRRR HH24:MI:SS')||
    chr(13) || chr(10)||chr(13) || chr(10);
    l_exm_text := 'Containers Examined'||utl_tcp.CRLF;
    FOR rec_examined_ctrs IN cur_examined_ctrs LOOP
    /*Generate Text for email - Vessel Activity Crane Wise Starts*/
    l_exm_text := l_exm_text ||rec_examined_ctrs.category ||': '||
    rec_examined_ctrs.total||utl_tcp.CRLF;
    l_exm_tot := l_exm_tot + rec_examined_ctrs.total;
    END LOOP;
    l_email_text := l_email_text||l_exm_text;
    pk_kictl_email.send_html_email('TERM STATISTICS',
    'Terminal Statistics Report',
    l_email_text,
    l_email_text
    END;
    I have been searching the reason and solution on net since last 2 days but hasn't find it yet.
    would anybody plz help me regarding this.
    Thanks
    Hassan

    I checked your suggestions after week end today and found that
    the suggestion of Nalla did not provide the result in my required format
    rewrite it as l_email_text := l_email_text||CHR(10)||l_exm_text;
    Peter & Krithika:
    I used html tag <BR> when and where needed and its gave me result in my required format
    e.g.: l_exm_text := l_exm_text ||'<br>'||rec_examined_ctrs.category ||': '||
    rec_examined_ctrs.total;
    Now I want to know if there any html tag thru which I can define the column number so that my text will start from there.
    means any html tag replacement of lpad (oracle funtion):
    Thanks
    Hassan

  • Email/Fax from Oracle 8.0.5 on Windows NT

    Hi,
    Is there any tool/dll available that can be used to email and/or fax from within Oracle database? Currently I am using a dll which I got from oracle which will let me email. But this has got limitations on the message size and it cannot email attachments.
    Please email me at [email protected] OR [email protected]
    Thanks in advance.
    Tom

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by tkoshy:
    Hi,
    Is there any tool/dll available that can be used to email and/or fax from within Oracle database? Currently I am using a dll which I got from oracle which will let me email. But this has got limitations on the message size and it cannot email attachments.
    Please email me at [email protected] OR [email protected]
    Thanks in advance.
    Tom<HR></BLOCKQUOTE>
    null

  • Setting Message-ID email header from Oracle B2B backend in 11g

    Hi,
    Is it possible to set the Message-ID from the backend application via JMS header? Is there a JMS header exposed to set this message id in case of email transport? Will the email server able to honor this value that we set and send to Oracle B2B in 11g and send it as the email header (Message-ID)? Is this possible?
    The idea here is if my backend application can set this Message-ID value of the request message, then the response message which would be a reply to the initial message will have the value of the Message-ID in the property in-reply-to. Now if this in-reply-to is also exposed an a JMS header to the backend application, then i will be able to co-relate the request and the response messages.
    Please let me know at the earliest if this would be possible.
    Regards
    Kavitha

    Kavitha,
    Is it possible to set the Message-ID from the backend application via JMS header? Yes, please set the MSG_ID header (jca.jms.JMSProperty.MSG_ID). It will be used as Message-ID in Wire Message.
    , then i will be able to co-relate the request and the response messages.Generic Mail does not support correlation as of now. You may consider logging an enhancement request with support. If you are exchanging XML messages then you may consider using content based correlation at B2B.
    Regards,
    Anuj

  • Email sending from oracle database facing problem

    Hi Gurus,
    Can anybody please help me..
    I am stuck in sending Emails thru oracle server. Previously it was giving some error 421 of smtp transient error.
    But now my complete code is running successfully, it seems that oracle server is sending the mail but
    it is not relayed thru my smtp server as i am not received that test mail in my mail box.
    In the body of the code I have tracked every step which is running smoothly without any error..
    Do it require a static ip address???
    Kindly help me to configure....
    Thanks in advance..!!!
    Regards,
    Swati
    Edited by: Swati Vyas on Jul 10, 2011 8:40 AM

    For more about.. it check
    http://asktom.oracle.com/pls/ask/f?p=4950:8:9516816346482415741::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2118740358226
    --Binny                                                                                                                                                                                                                                                                                                                                   

  • Email event generator - error publishing emails received from browser

    Hi,
    Configured an email event generator that listens on a mailbox. The message type is set to string and no filters. All emails sent from outlook is published successfully to message broker channel and the subscribed by a process. Whereas for emails sent from any browser email like yahoo, gmail gives "Null pointer exception - cannot publish message". Anybody have encountered this error?
    Also is it possible to configure the email event generator to archive the emails to another folder in the mailbox rather than to a physical directory?
    -Manjula.

    access issues..

  • Actionable emails from oracle BPM.

    Hello All ,
    I am trying to use actionable email notifications from oracle BPM .
    Steps i have taken so far
    1) Marked notification on Human Task as "Actionable items "
    2) Mentioned valid email address in - Select SOA Administration > Workflow Task Service Properties - "Actionable email account"
    Result achieved after doing these configurations
    When clicked on Actions received in email like say Approve (using outlook) , one email reply gets created with id in "to" same as what mentioned in Workflow Task Service Properties .
    Content "reply" of email as below -
    ==========================
    Add comments by editing the text between the brackets in 'Comments' section.
    Comments: [your comments]
    You can also add attachments to the task by attaching them to this email.
    -----Do not edit below this line-----
    Approve : [[NID]] : 7kv0yUvSKkmbKbPn0ohu0I9CwHUfBhuTIAmKc3wwEcWCaJhUj9Qolyhu/ul3OttwnJSavULLMytHnsD7dakQAbzLyZS6C4PAgBO%2BsmgVzFwNGn1LevYmcLnRgKVJlevY : [[NID]]
    ==========================
    My question here is how Actionable emails are supposed to work - should they change the status of task directly when clicked on approve/reject (no log in on BPM)
    or should they notify somebody with status and then somebody should log in and do the change ?
    Anybody used actionable email please help us out here ..
    Thanks
    Rupesh

    Hi Rupesh
    1. First in Task Properties you check the box Actionable Email which you already did.
    2. You also need to configure some valid email addresses and set email details like email server name etc. From EM Console, soa-infra -> Right Click -> SOA Adminstration -> Workflow Notification Properties. In this first in drop down box, select Email. Then in 3 fields below give valid email addresses something like:
    From Address: [email protected]
    Actionable Address: [email protected]
    Reply To Address: [email protected]
    These email accounts should be valid and exist in your email exchage server.
    Now in the same screen on the top click on the link named "Go to messaging driver page" and on that screen on right side click the buton under Configure Driver and give email details like outgoingmailserver, incomingmailserver, the incoming mailid, incoming userid etc.
    Only after doing this, you can Approve/Reject (Take actions) directly from Email.
    Refer the online docs for more details.
    Example: http://technology.amis.nl/blog/6019/configure-soa-suite-11g-for-sending-email-notifications-with-google-mail
    Thanks
    Ravi Jegga

  • Automation of email from Oracle

    Hi all,
    Is there any simple Pl/SQL way of sending emails from ORACLE database.Please note that I am using ORACLE 8i Release 8.1.5(and not 8.1.6 where we have utl_smtp package).Actually I want to automate email generation from ORACLE DB so that emails are fired everyday evening depending on some daily changes in Database due to whole days transactions.
    Please suggest any simple and efficient way to do this..
    Thanx in Advance
    anurag
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by anuragj:
    Hi all,
    Is there any simple Pl/SQL way of sending emails from ORACLE database.Please note that I am using ORACLE 8i Release 8.1.5(and not 8.1.6 where we have utl_smtp package).Actually I want to automate email generation from ORACLE DB so that emails are fired everyday evening depending on some daily changes in Database due to whole days transactions.
    Please suggest any simple and efficient way to do this..
    Thanx in Advance
    anurag <HR></BLOCKQUOTE>
    Currently I am trying to do this via java. Having a few problems trying to implement the examples but you might try note: 120994.1 in Metalink. Or send an email to [email protected] and I will send you the full article.

  • HTML Formated Email From Oracle Database

    Hello,
    I am generating email alerts from oracle 11g,10g using utl_mail.send.
    I want to genrate/send email in HTML formated.
    How i can send HTML formated email form Oracle Database (11g,10g)
    Thanks In Advance

    hi,
    inside oracle apex 10g. i am using this.
    please try
    begin
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => 'test',
    P_BODY_HTML => '<table><tr><td>data</td></tr></table>' || SYSDATE,
    P_SUBJ => 'Test Email working '
    wwv_flow_mail.push_queue(
    P_SMTP_HOSTNAME => 'localhost',
    P_SMTP_PORTNO => '25'
    end;
    Thanks
    LOGA
    www.go-websoft.com
    Apex Consulting & Development

  • Sending email through a public folder from Oracle forms 6i

    Hi,
    I have read a lot about this topic but still can't seem to figure out how to send a email from a public folder that I have access to. I am logged on as myself into Outlook and I have access to a public folder. When I send a email with attachments to a client it MUST show the public folder email address as the "FROM'. How can I get outlook to stop defaulting to my email? I have the proper rights and so forth meaing I can send a test email logged onto this folder and user cc,bcc, BUT not the FROM field.
    Here is my code:
    Declare
    objOutlook OLE2.OBJ_TYPE;
    objMail OLE2.OBJ_TYPE;
    objArg OLE2.LIST_TYPE;
    objArg2 OLE2.LIST_TYPE;
    objAttach OLE2.OBJ_TYPE;
    nameSpace OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    BEGIN
    objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
    args:=OLE2.create_arglist;
    OLE2.add_arg(args,'MAPI');
    nameSpace:=ole2.invoke_obj(objOutlook,'getNameSpace',args);
    OLE2.destroy_arglist(args);
    OLE2.invoke(nameSpace,'Logon');
    objarg := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg,0);
    objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
    OLE2.DESTROY_ARGLIST(objarg);
    objAttach := OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');
    objarg := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg,'c:\Jan28.txt');
    objarg2 := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(objarg2,'c:\2011_1.pdf'); -- filename
    OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
    OLE2.SET_PROPERTY(objmail,'To','[email protected]');
    OLE2.SET_PROPERTY(objmail,'Bcc','[email protected]');
    OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 6i');
    OLE2.SET_PROPERTY(objmail,'Body','Testing email FROM');
    OLE2.INVOKE(objattach, 'Add', objarg);
    OLE2.INVOKE(objattach, 'Add', objarg2);
    OLE2.INVOKE(objmail,'Send');
    OLE2.RELEASE_OBJ(objmail);
    OLE2.RELEASE_OBJ(nameSpace);
    OLE2.RELEASE_OBJ(objOutlook);
    OLE2.DESTROY_ARGLIST(objarg);
    END;
    Please let me know why OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
    does not work. And how I can get it to work?
    Any suggestions much appreciated...

    You can send emails using the utl_smtp package. There are many examples in the pl/sql forum, or on http://asktom.oracle.com.

  • FSG Reports in Oracle BI Publisher

    Hi All,
    Can any body tell me, how to run the FSG reports from Oracle BI Publisher without submitting it from Oracle EBS 11i.
    Thanks & Regards,
    Abdul.

    Hi
    i think there is no option to run FSG reports from BI Publsiher, as FSG reports are defined in Oracle EBS Financials suite.
    but you can take xml file and run it from desktop based on rtf file
    Thanks
    Kamalakar

  • How to send BI Publisher reports as email attachments from Apex

    Hi there,
    Before I start working on this new endeavor, I would like to check if it is even possible...
    Here we have Apex 4.0.2 and Oracle BI Publisher Enterprise 10.1.3. We use the Apex integration with BI Publisher to generate PDF reports.
    Now there is a requirement that those reports should be optionally sent by email as attachments (ideally from Apex itself or from a database procedure in the Apex application schema.)
    I am not sure how to do it, as such reports are generated by calls to URLs like this:
    http://server/apex/f?p=123:0:3370070991917144:PRINT_REPORT=reportname:NO::PARAM1:123 => opens a PDF in the browser window
    Is it possible to be done? If so, how?
    Thanks
    Luis

    hello,
    there is no native support for directly faxing a report. you could e.g. use a fax-software that has a printer-driver that supports this.
    regards,
    the oracle reports team

Maybe you are looking for

  • IWeb wont publish updated pages to site using Mobileme

    Tried to publish 2 updated pages to my current iWeb site published on Mobileme. Am directed through a Facebook username and password login. (Don't remember this step from prior publishing.) Then nothing happens. No site update. No option to publish s

  • Input/Output Files

    hey everyone, im knew to this website, so please bare with me. im trying to make an application when ran it will open a finder window and allow me to take that file (which is java code) and compile that file, when its done executing i want to be able

  • System software v 2.0.2 and third party applications

    Finally! got my third party apps working on my ipod touch! I think the temporary solution lies in syncing your apps with iTunes. Thanks to one of the techies (Dwayne, thanks Dwayne!) I downloaded a free 3rd party app through iTunes then synced the ap

  • Settlement backjob

    Hi Guys, My client wants to run CJ8G in a daily scheduled basis. Can any one let me know how this can be done? is there any other SAP program which performs the settlement similar to CJ8G that can be executed in SE38. Regards, Paval.

  • Safari icon doesn't show up on ipod touch???

    6/19/11 i just received a new ipod touch 4th generation today.  neither the safari or app world applications will show up. i can't figure it out from my itunes on my windows either. help!!!!