Automating Generation of reports and mailing it.

Hi,
How do I automate generation of reports and mail it through the Oracle Server. The messaging system being implemented out here is Lotus Domino Server 4.6
Regards,
Alka Mishra.

Can you tell me more how to create store procedure UTL_HTTP or give me example and why I need to create a DB table with a DB trigger and give example too.
can I send to Internet email (if I have email address) or Unix mail only?
Thank you very much
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by The Oracle Reports team:
Assuming you are using Developer 1.6.1 or later and version 7.3 or later of Oracle database
1. set up the Reports server for web reporting (see whitepaper on configuring reports server available on otn for more info, and of course the doc).
2. Write a set of stored procedures that use UTL_HTTP to send an HTTP request to the Reports server. You can specify all the parameters to run a report on the URL (incl. running and mailling a report).
3. Create a DB table with a DB trigger that call the pacakged procedure you just wrote. Now every time a row is inserted (for example) into the table, a report can be run and the output mailed.
This will be made much easier/simpler in Reports 7 - but that is a way off.
Regards
The Oracle Reports Team http://technet.oracle.com <HR></BLOCKQUOTE>
null

Similar Messages

  • Generating PDF Report and Mailing from APEX through DBMS_SCHEDULER job

    Hi,
    We have a requirement to generate pdf reports and mail them from our apex app through a DBMS_SCHEDULER job. The DBMS_SCHEDULER job calls a PL/SQL procedure which has the logic for calling the APEX_UTIL.GET_PRINT_DOCUMENT API (Function Signature 3) passing the application_id, the report_query_name and the report_layout_name  to generate the pdf report output. The APEX_UTIL.GET_PRINT_DOCUMENT call is returning NULL when called from the DBMS_SCHEDULER job (It doesn't throw any exception as well!). But the same procedure when called from an APEX App Page Process that is invoked on an event like a Button click, the API returns the PDF report output.
    I am also setting the APEX workspace security_group_id at the beginning of the PL/SQL procedure as follows:
    l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MY_WORKSPACE');
    apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
    Any idea on what might be going wrong? Any alternative ways to generate the report output in the PL/SQL procedure?
    Thanks & Regards,
    Sujesh K K

    I was able to do a workaround for this issue by rebooting the DB.
    As per ID 579281.1, this is a bug in 11.1.0.6 and we need to upgrade the version to 11.1.0.7 or apply a one -off patch.
    Thanks,
    Arun

  • Child reports and bind variables

    I'm working on a user defined parent/child report. What I'm having an issue with is using a parents bind variable value in a child. To simpify my example:
    The master query is:
    select count(*), document
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    which returns a count of downloads for each document in the last :DAYS days. I want the child report to then list the person that downloaded a selected document:
    select document, user_id, activity_date from download_audit
    where activity_date > sysdate - :DAYS
    and document=:DOCUMENT
    This does not work because the initial :DAYS bind isn't sent to the child.
    If I add the :DAYS as a selected column to the master sql it works. e.g.
    select count(*), document, :DAYS days
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    My question is, do child bind variables all have to be selected columns in the master query or is there a way to have a "global" bind variable that gets carried from master to child?
    I'm using SQL Developer 3.2.20.09 on OS X Lion
    Edited by: RoboMan on Nov 16, 2012 11:23 AM

    I agree whole heartedly :)
    If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
    http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

  • File system usage report chart generation - automated via reports and email

    Hello,
    I have requirement where I have to generate a monthly file system usage chart (just like a tablespace total_mb, used_mb, free_mb....) and mail it directly to the client.....
    Any ideas or suggestions would be welcome....
    Thanks,
    S.

    It's a pretty open-ended question, because a number of things can be causing slow performance.  You mention needing to look at ODBC connection performance - I found that using ODBC drivers for iSeries was very slow in the past.  You might want to look at using the JDBC driver in the IBM JTOpen Toolkit - it made a big difference for us when we were querying iSeries in the past.
    When you refer to "reports" in this thread's title, do you mean reports from ColdFusion Report Builder?  Or to just ColdFusion .cfm pages?  How complex are these reports?  How much information is displayed, especially in tabular form?  Just rendering huge HTML tables (as in thousands of rows of data) will often cause browsers to become temporarily unresponsive or hang.  If you provide more details, we might better be able to target where the "pain point" really is.
    -Carl V.

  • Converting report to PDF and mailing

    Hi every one,
    I've gone through various threads and i'm aware of the Functional module's used to
    convert the report to pdf and mail it back.Like CONVERT_OTFSPOOLJOB_2_PDF, CONVERT_OTF_2_PDF and for mailing we have SEND_NEW_DOCUMENT_ATT_SEND_API1.
    I've worked with this but my problem is i'm not able to convet the report output to pdf.When i'm doing this i'm getting the output of my functional module converted to pdf like the number of header and item records available for the given data in the selection screen.
    Since all the threads i've gone through is converting the single internal table which has the output to pdf.
    But i've got the REUSE_ALV_HIERSQL_LIST_DISPLAY, hierarchial report which as known has got two internal tables.How to the same to this kind of report....More over is it possible to convert report to pdf in online without transfering it to spool and getting the spool id to convert it to pdf.........
    Any help or suggestions will surely be rewarded......
    Thanks in Advance.....

    Here is the complete code for you;
    It Converts spool request into PDF document and emails it.
    <b>http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm</b>
    Regards,
    Vishal

  • Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. Right now, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. Any suggestions?

    Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. After trashing many docs, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. I'd like to install Lion, but now I'm afraid it will slow down my machine even further. Do I have enough free hard disc space? Is Mail problem related to free hard disc space? Thanks for your help!

    7gb of free disc space is required to install Lion.  Read this about how to free up disc space: http://pondini.org/OSX/DiskSpace.html.  Also, advice on how to speed up your mac: http://www.maclife.com/article/feature/25_ways_speed_your_mac

  • E-Mail Summary Report and Detailed Report Automatically

    Hi, I have just started a new job (1st IT job since leaving college) and I've been told that our Small Business Server 2011 used to email a Summary Report directly to a specified email address, as well as a weekly Detailed Report to the same email address,
    but that has stopped sending reports now. How do i make sure that the reports are automatically generated and sent out via email to the specified address. Any help would be great.

    Hi,
    Based on your description, I understand that there some issue occurred in Report feature in the SBS 2011.
    On current situation, please refer to following steps and troubleshoot this issue. Then check if can help you.
    1. Login the SBS server. Please open Windows SBS Console and select
    Reports tab. In the Reports panel, select a report (Summary or Detailed), then View report properties. In Report Properties page, please select
    E-Mail Options to check if had added the correct user account or e-mail address. Also please select Schedule tab, and check if had configured correctly.
    2. Then manually click
    Generate report option in Tasks. Please check if successfully generated the report. If not, please refer to following TechNet article and repair Monitoring and Reporting features in the SBS server. Then monitor the result.
    Repair Monitoring and Reporting Features
    in Windows Small Business Server 2011 Standard
    3. If generated the report successfully, please manually click
    Generate report and e-mail report option in Tasks. Then check if run successfully. Or any error message occurred?
    4. If this issue still exists, please refer to following path: C:\Program Files\Windows Small Business Server\Logs\MonitoringServiceLogs and check if there has some log files
    which be related to Report (Summary or Detailed). If has, please check if can find some more clues. Meanwhile, please open Event Viewer and check if find some relevant errors. Those may hope us to go further analyze.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Looking for a solution to the consumption of the VM systems in Azure Portal that reports and notified by mail

    Hi
    I am looking for a solution to the consumption
    of the VM systems in Azure Portal that reports and notified me by mail.
    Please suggest.
    Thanks, Kk

    Hi Kk,
    what  notifications are you expecting? like Machine down etc.?
    you can make use of monitoring alerts and notifications in Azure, this will allow you to configure different 
    metric related to your virtual machines and other azure service you use.
    Specifically for VMs you can configure different metric for the VM host OS and you can also configure web end point status metric (will monitor situation like machine down or offline)
    here are two good reads
    Understanding Monitoring Alerts and Notifications in Azure
    Khalid's blog on
    Microsoft Azure Virtual Machine Monitoring with Azure Diagnostics Extension
    Hope this helps,
    Please mark as answered if it helped
    Vishal Narayan Saxena, MVP
    http://twitter.com/vishalishere
    http://www.ogleogle.com/vishal/

  • Information Broadcasting ( Automatically execute a report and e-mail it)

    Hi,
    Can BEx Automatically execute a report and e-mail it. The requirement is to Execute a Report periodically  and send the report in <b>EXCEL SHEET</b> format to the given e-mail ID.
    I have tried configuring it in HTML format.... but I need it EXCEL format.
    Waiting for help from the SDN community...
    Thanks in Advance.....

    Hi,
    You can send the workbook automatically when you schedule thru information broadcaster.
    But you have to install precalculation server for distributing workbook..
    Have a look at OSS note 760775 ..
    Hope it helps..
    Regards,
    Siva.

  • Safari and mail app not working on my iPod Touch 3rd generation.

    I have an iPod touch 3rd generation and my safari and mail app won't work and it's driving me crazy! My safari app keeps crashing when I open it so that's not working, and my mail app opens up but doesnt load then crashes. Can somebody tell what to do?!!!

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • Backup ical, address book, and mail automator action

    It seems very odd to me that there are no automator actions to backup ical, address book and mail. I have looked around to no avail. Am I mistaken, do such actions exist?
    I use super duper to back up my hardrive on an automatic schedule, but I would love to make a workflow that would backup my ical, address book databases and my email. I don't want to have to restore my entire had drive from my SuperDuper image if I lose only my ical database.
    Any help would be appreciated.
    Jake

    I'm guessing the reason might be that Apple want you to use their dotmac account for this purpose.
    The only way around it is to backup the individual folders that are used by those apps. eg:
    Macintosh HD/Users/Your User Name/Library/Application Support/Address Book
    Macintosh HD/Users/Your User Name/Library/Mail
    Macintosh HD/Users/Your User Name/Library/Safari
    Macintosh HD/Users/Your User Name/Library/Application Support/iCal
    If needing to re-build, just drag and drop these folders into place.

  • Error in report generation-Load report failed

    I have installed crystal reports  for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
    This works fine in development and testing but when moved to production we are having issues.
    I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
    But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
    Please help.

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • 9i:Can Page number be obtained before the entire generation of report ?

    Dear all:
    Suppose there is a report, the report is printed on both side of paper
    The page no of report (current logical page no and total logical page no) reset at each customer,
    For each customer,
    i want to print a logo on the front side of the last page (The logo would be read by machine so that it must be printed on the front side of the last page)
    In 6i, As page no/total page no cannot be known in function/triggers until entire report generated.
    so I have to generate the report twice
    First) I have to get the total no of paper for the report of each customer
    Second) Actually generate the report
    so that i know which page the logo should be printed
    (In the format trigger, when the front side of last page reached, return true in "format trigger of the logo" to print the logo)
    However, the method is not effective.
    Heard from others, 9i can solve the problem because in function/trigger, before the entire generation of report,
    the total logical no of page and current page can already be known. (so that the generation
    can be done at one time..no need to do twice)
    any suggestion ?
    Thanks for you help

    Hi,
    So I cannot test from the report builder, I guess?Pl take a look here:
    http://download.oracle.com/docs/html/B10314_01/pbr_cla.htm#640470
    This gives you a list of commands that you can use the keyword with. It says No for rwbuilder. So it may not be possible to test it with Builder.
    Reading the other threads, this seems to be a very complicated thing to do, creating EAR, etc, and I seem to need 9iDS, not AS (I have AS)?One of the main reasons a JSP report is useful is - you can deploy it with your J2EE application, ie, you place the report JSP alongwith other JSP's of your application, and deploy the J2EE application (EAR). So thats why you see so many references to EAR's, packaging etc in the other thread that discuss JSP's.
    Th answer to your Q is - no, you don't need iDS for deploying and running the JSP. You can run it from your iAS installation (thats what the iAS suite is for - deploying and running your reports that you developed using iDS). What you need to do is this:
    Copy your JSP to
    ORACLE_HOME\j2ee\OC4J_BI_Forms\applications\reports\web
    Go to the Enterprise Manager, and make sure that the OC4J instance (OC4J_BI_Forms) is running. Now access your JSP with the following URL:
    http://machine:port/reports/<Report_Name>.jsp?server=<server_name>+userid=<db_conn_string>
    For complete information about deploying and running JSP's in iAS, refer to
    http://download.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
    Navneet.

  • Generate pdf file from 9i reports and save it in C:\oracle_reports\

    i want to generate a file from oracle reports in PDF format and want to save it on already defined path.
    c:\oracle_reports\
    right now pdf generation of report is working fine but before generation of pdf report system prompt me or open a dialogue box to save my pdf file on drive. i dont want to see these dialogue box or prompt me to explicitly save it.
    i want all the work done automatically.
    regards
    ------------ source code--------------
    PROCEDURE PRINT_PROC IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    pl_id ParamList;
    report_path varchar2(100);
    aud_sno varchar2(1000);
    aud_type varchar2(500);
    BEGIN
         pl_id := Get_Parameter_List('report_data');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('report_data');
         User parameters : Customize these to fit your report
         report_path := :GLOBAL.Web_BASE_PATH||:GLOBAL.PATH_SCM||'REPORT\scm_rfq.rep';
    -- Initialize your report parameters here
         Add_Parameter(pl_id, 'p_cmp_code'                     , TEXT_PARAMETER, :global.company_code);
         Add_Parameter(pl_id, 'p_rfq_sno'                     , TEXT_PARAMETER, :document_sno);
         Add_Parameter(pl_id, 'P_PATH'                               , TEXT_PARAMETER, REPORT_PATH);
    Standard parameters: Don't change
         Add_Parameter(pl_id, 'PARAMFORM' , TEXT_PARAMETER, 'NO');
         Add_Parameter(pl_id, 'PAGESTREAM' , TEXT_PARAMETER, 'NO');
         Add_Parameter(pl_id, 'MAXIMIZE' , TEXT_PARAMETER, 'YES');
         -- end standard parameters
         repid := find_report_object('REPORT_OBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oas');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,report_path);
    -- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\ORCLSRV\UTL_MAIL\'||:doc_type||:receiver_sno||'.pdf');
         v_rep := RUN_REPORT_OBJECT(repid,pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
         rep_status := report_object_status(v_rep);
         END LOOP;
    END;

    If you use rwclient you could that easily, from a Form, it requires additional steps.
    Look at this thread Re: save report

  • Error to send a report via mail with BI Publisher

    Hello,
    I am working with BIP 10.1.3.4 over Windows Server 2003 Standard Edition, and I would like to send a report via mail.
    I added one Email server navigation via Admin>Delivery Configuration > Email with the server name and host.
    Then Send report via Email, got error.
    oracle.apps.xdo.service.delivery.DeliveryException: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:228)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1190)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(Unknown Source)
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:222)
         ... 4 more
    Caused by: javax.mail.NoSuchProviderException: smtp
         at javax.mail.Session.getService(Session.java:764)
         at javax.mail.Session.getTransport(Session.java:689)
         at javax.mail.Session.getTransport(Session.java:632)
         at javax.mail.Session.getTransport(Session.java:612)
         ... 7 more
    I have followed this SR, and I applied the solution, but it isn't solved the issue (ID: 1072742.1)
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28from=BOOKMARK&viewingMode=1143&bmDocTitle=BI%20Publisher%20With%20JDE%20Fails%20To%20Send%20Email,%20Error:%20javax.mail.NoSuchProviderException:&bmDocID=1072742.1&bmDocType=PROBLEM&bmDocDsrc=KB%29%29
    Regards,
    Mónica.

    Hi Christian.
    You could put the lines of your list in a table of type SOLISTI1 and then use the function module SO_NEW_DOCUMENT_SEND_API1 to send the content of this table. You have to fill the table RECEIVERS with the address you want to send the report to.
    Hope that helps,
    Timo.

Maybe you are looking for

  • How to specifically sort the data in a database using c#?

    H!, I have a problem in c# that require sorting of names of students in a sql database and i want it to be specific, i used data grid view to view the data of the students as shown below: Students First Name: Ann Antoinette Brenda Judith Lester Santo

  • SOAP Response not return when exception is thrown

    Hi, Wonder if anyone had encountered the same issue as me with SOAP Response. Adobe LiveCycle ES2 (v9.0.0.2) I had a process which is triggered using SOAP Endpoint. Whenever there is exception in the process the SOAP Response will have an error, inst

  • What I've learned about iPhone shipping

    I've seen quite a few posts (and threads) about shipping times so I thought I'd just write down my own experience in case others may find it helpful. Ordered on 7/27 and originally had a 7/20 ship & 7/23 delivery date. I started checking my status up

  • Can I make a photo collage with iphoto

    Trying to find an easy way to make a photo collage.  Can I do this in iPhoto?

  • How to record OS UI actions

    I want to record a tutorial about how to configure a web server in Windows Vista, but when I click on the Start button, the operating system intercepts all calls from the keyboard, like PrtScr or F11, and so I can't seem to be able to capture the ste