Query for report generation and email alert

Hi,
I do have a requirement in my project like the following.
1. We do have multiple interfaces sending request to one of the target Webservices
2. Receiving response back from Webservices
3. Also logging the same using log4J
My requirement is to filter out response messages based on particular interface(Lets say Order status) using name/ timestamp for particular day, save/append all responses in to a file and should send an email report at a given point of time.
Report has to generate once in a day E.g Time: 00:00 AM every day.
Is that possible to achieve the same through ALSB(Aqua Logic Service Bus). Please help us in implementing this requirement.
Thanks in advance,
Krishna

You probably concentrate too much on OSB. I see two issues:
1. Appending everything into a single file. I have never tried file transport, so I don't know if this is possible or not, but looking at documentation I don't think its possible:
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/httppollertransport/transports.html#wp1081043
2. As far as I know there is no support for scheduling in OSB.
I don't know your situation and requirements, but you should rather implement your reporting logic outside of OSB. For example you can filter response messages in OSB and "log" them through a logging web service (service callout in alsb). That service could accumulate your report in a file and send it with the first request each day. This approach could eliminate usage of any scheduling component.
Personally, if I were you I would thing about my infrastructure logging capabilities on proxy server, http server or whatever is in use. Combined with unix cron daemon, the solution could be very easy and straight-forward.

Similar Messages

  • Exe giving error for report generation and LV 8.6.1

    I have created and installed a labview application in a PC(windows XP) where labview is not installed.  (already included NI_Excel.lvclass)
    I have used a report(excel) generation to display the results.
    I am getting following error:
    Error Code: -2147352573
    Member not found in NI_Excel.lvclass:
    I am using MS office Excel 2007 SP1
    NI LabVIEW Run-Time Engine:8.6.1.
    Report generation toolkit version:1.1.3
    phani srikanth
    Solved!
    Go to Solution.
    Attachments:
    Error.JPG ‏10 KB

    search the ni website and a 30 day eval copy can be found. For use beyond this period you would have to buy a license (unless you have one of course)
    compatibility can be found on the following link
    http://digital.ni.com/public.nsf/allkb/C9408B9F08D711E786256F3300701D01 
    hope it helps
    TD 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • Fully automated report generation and email

    I am trying to get a report (from a query) to run automatically every Tuesday morning.
    This is my job
    BEGIN
         dbms_scheduler.create_job (
              job_name          => 'GEN_XLS_RPT_AND_EMAIL',
              job_type          => 'STORED_PROCEDURE',
              job_action          => 'gen_bomreport_proc',
              start_date          => to_timestamp('05-12-2009 07:00','DD/MM/YYYY HH24:MI'),
              repeat_interval     => 'FREQ=DAILY; BYDAY=TUE; BYHOUR=7',
              enabled               => true,
              comments          => 'Weekly CSV Reports Output at 7:00AM'
    END;Then I have a procedure
    PROCEDURE gen_bomreport_proc IS
    DECLARE
        l_id number;
        l_document BLOB;
    BEGIN
         l_document := APEX_UTIL.GET_PRINT_DOCUMENT (
              p_application_id          => 109,
              p_report_query_name          => 'qry_Report_1week',
              p_report_layout_name     => 'qry_Report_1week',
              p_report_layout_type     => 'application/excel',
              p_document_format          => 'xls'
         l_id := APEX_MAIL.SEND (
              p_to        => 'to@me',
              p_from      => 'from@you',
              p_subj      => 'Weekly Report',
              p_body      => 'Please review the attachment.',
              p_body_html => 'Please review the attachment'
       APEX_MAIL.ADD_ATTACHMENT (
           p_mail_id    => l_id,
           p_attachment => l_document,
           p_filename   => 'report_' || to_char(sysdate-8, 'YYYY') || '_' || to_char(sysdate-8, 'DD-MM') || '-' || to_char(sysdate-1, 'DD-MM') || '.csv',
           p_mime_type  => 'application/excel');
    END;And the query that is supposed to get ran to generate the report saved as 'qry_Report_1week'
    SELECT organization_name, quote_description, quote_name, quote_pwd, user_id, contact_last_name || ', ' || contact_first_name contact_name,
      email, create_date, qty, unit_price, ext_price, discount_percent, company_name, item_no, supplier_name, product_category, mfg_part_no,
      quote_id, customer_id, exalt_user_id
    FROM bom_detail_cdw2
    where create_date BETWEEN sysdate-8 and sysdate-1 order by create_date;I tried running the job
    begin
    DBMS_SCHEDULER.RUN_JOB (
       job_name => 'GEN_XLS_RPT_AND_EMAIL',
       use_current_session => false);
    end;I read a lot about scheduler, APEX_UTIL.GET_PRINT_DOCUMENT and APEX_MAIL.ADD_ATTACHMENT, but I'm sure I missed something. Any help would be appreciated... Thanks

    Thanks Vorlon, your link was a bit helpful.
    Alright, I am making progress, but have had to come up with an alternative to the Report Query as found out that you need BI and we don't (and won't) have that.
    Option 1: dump the query result in a csv file
    Problem: I can't attach the csv to the email
    CREATE OR REPLACE PROCEDURE gen_bomreport_proc
    AS
         l_report  BLOB;
         f_report  UTL_FILE.file_type;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(512);
         l_id number;
         CURSOR bomdata_cur IS
              SELECT * FROM BOM_DETAIL_CDW2
              where create_date BETWEEN (sysdate-8) and (sysdate-2) order by create_date;
    BEGIN
         -- Create and populate file
         f_report := UTL_FILE.fopen ('TESTDIR','bom_output.csv', 'W');
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created,QTY,Unit Price,Ext Price'||
              ',Disc. %,Address,' || 'Item No,Mfg Part No,Contact Name,Supplier Name,Product Category,Quote ID,Customer ID,Exalt User Id' || chr(10);
         UTL_FILE.PUT_LINE(f_report, bomdata_header);
         FOR bomdata_rec IN bomdata_cur LOOP
              bomdata_buf := bomdata_rec.organization_name || ',' || REPLACE(bomdata_rec.quote_description,',','') || ','
              || bomdata_rec.quote_name || ',' || bomdata_rec.quote_pwd || ',' || bomdata_rec.user_id || ','
              || bomdata_rec.contact_first_name || ' ' || bomdata_rec.contact_last_name || ',' || bomdata_rec.email || ','
              || bomdata_rec.create_date || ',' || bomdata_rec.qty || ',' || bomdata_rec.unit_price || ',' || bomdata_rec.ext_price
              || ',' || bomdata_rec.discount_percent || ',' || bomdata_rec.company_name || ',' || bomdata_rec.item_no || ','
              || bomdata_rec.supplier_name || ',' || bomdata_rec.product_category || ',' || bomdata_rec.mfg_part_no || ','
              || bomdata_rec.quote_id || ',' || bomdata_rec.customer_id || ',' || bomdata_rec.exalt_user_id;
          UTL_FILE.PUT_LINE(f_report, bomdata_buf);
        END LOOP;
         -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? --
         UTL_FILE.FCLOSE(f_report);
         -- End
         -- email part - I'm ok here
    END;ok, so there's a line:      -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? -- which I have searched for, to no avail
    Option 2: dump the query result in a BLOB
    Problem: I need to write strings/literals into the BLOB, but it keeps throwing the error PLS-00382: expression is of wrong type, when I write something like:
    DECLARE
         l_report BLOB;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(24000);
    BEGIN
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created' || chr(10);
         l_report := bomdata_header;
    END;

  • PDF Report generation and email it from a DB trigger

    Dear all
    Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. For example whenever a client makes an entry into order entry table (through entry form), a trigger should execute on Orders table, this trigger should execute or generate a PDF formatted report and finally mail it to Sales team?
    I'm using Oracle Database 10g. Rel.2 on Windows-XP.

    kamranpathan wrote:
    Is it possible to run a report in PDF format ad email it to some clients after a specific envent through Database Trigger. No. Not the way you imagine.
    A trigger is fired when? During the transaction. The transaction still is not committed and can be rolled back. So if you start doing notifications and what not in the trigger, and the transaction is rolled back, then that transaction never happened. But your notification code did. And the users have been informed incorrectly - about something that did not happen.
    The same trigger can also be fired in the same transaction for the same row - more than once. This can happen in specific circumstances in Oracle, where basically Oracle itself does an undo of the transaction (trigger already fired) and then redo that transaction (trigger fire again).
    So in such a case, your trigger will generate two notifications from the same trigger for the same event. Inside a transaction that still could be rolled back by the session owner.
    The correct approach is not to perform the action in the trigger. It is to queue the action to be executed when the transaction is committed.
    For example, the trigger is on the PRODUCTS table. When a new product is added, a notification needs to be send to customers that have selected to be informed of new product releases.
    The first step is to write a package that performs this notification. The procedure that drives the notification processing, gets a product identifier as input and does the checks and notification.
    After this package has been tested, it is implemented indirectly via a trigger on the PRODUCTS table. Instead of the trigger directly calling this package, the trigger needs to queue an action that will execute the notification package when the transaction is committed.
    This can be done using DBMS_JOB. In the trigger, a job is submitted to execute that notification package for the current product ID. The job submission is part of the existing transaction. If the transaction is rolled back, so is the job and it is removed from the job queue. If the transaction is committed, the job is also committed to the job queue and executed.

  • Query for the FULL AND FINAL SETTLEMENT REPORT

    Hi,  any one  has the query for the FULL AND FINAL SETTLEMENT REPORT in oracle hrms??

    Hi,
    I go through that .class file and find that they have used below package in that.
    PAY_IN_TERM_RPRT_GEN_PKG
    Hope this will help you.

  • Recently the sound on my Iphone 4 for texts, and email alerts started working intermittently.  I have upgraded to the latest software and the Apple store even replaced the phone but safe issues

    Recently the sound on my Iphone 4 for texts, and email alerts started working intermittently.  I have upgraded to the latest software and the Apple store even replaced the phone but safe issues

    For each mail account, along with designating a primary SMTP server, you should be able to just turn off any and all other SMTP servers you have listed.  In that case, if there is a problem with comcast, the message send should just fail.
    Also make sure your comcast smtp settings are correct (port, likely 587 but might be something else for comcast, whether you should be suing SSL or not, do you need authentication or not).
    You might find the comcast forums useful for getting the settings right - I found this:
    http://forums.comcast.com/t5/E-Mail-and-Xfinity-Connect-Help/iphone-email/m-p/66 1151?view=by_date_ascending#M131151
    The second poster notes, SSL should be on, authentication should be "password" and you should be using port 995

  • LabView Exe Applicatio​n file not launch Excel applicatio​n for report generation

    Dear All,
    I created one LabVIEW application file for report generation (using Excel Template).
    While I run the program in programming mode it works well and create the report file in the specified path.
    After creation of the application file(exe), it gives the correct path of where the excel template is placed. The same path is given to New Report.vi, but it gives the error 'File Not Found'.
    Tell me, is any other configuration required for generating Excel reports? (During exe application mode)
    Give me the solution.
    Thank You
    Jegan.

    Hello,
    Most likely you are encountering a problem of stripping and/or building paths.  Probably the easiest thing to do is put a couple indicators on your front panel for the path or paths you care about, build your exe, and make sure you are really using the path you'd like.  If you always put the report at some deterministic place relative to the exe (that is, even it the exe is moved, it will go with the exe and remain in the same relative path location, then you can use the Current VIs Path funtion found in the ... File I/O -> File Constants palette as a start path (where you will want to strip at least the exe name off of course).
    I think this will bring some clarity to the issue!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How to set alert threshold and email alerts?

    Hi!
    I have configured Solution manager 3.2 to monitor
    our R/3 systems.
    I want to be able to set the threshold for  tablespace
    usage and be able to send an email if the usage
    of the tablespace is 80% full.
    Could anybody tell how to implement it?
    Thanks!

    Hi Christy:
    There are different approaches to configure alerts, if you are using Solution Manager; I think you can benefit if you choose SolMan and the Central System (CEN) to handle all the monitoring and email alerting.
    If this is the case, you will need to install the CCMS Agents on every satellite system in order to trigger remote alerts.
    Let me know what is your idea and I can follow with you with the required steps.
    Best Regards,
    Federico G. Babelis
    NetWeaver Certified Consultant
    GAZUM Technologies S.A.
    Consulting Services and Software Solutions
    http://www.gazum.com
    ...download FREE Marketplace Manager at: http://www.gazum.com/products

  • IPhone 5 iOS 8.1.  Message and email alerts don't work.  Help!

    Message and email alerts are not working.  Vibration working fine.  Alerts also produce vibration.  I've seen a number of similar posts.  Thanks!

    OK. Called my service provider today. Apparently razmee209 was right. Bell/Virgin network is experiencing LTE problems since September and it affects random people all LTE phones. They said they are working on it. And the solution for now is to turn LTE off and keep the phone on 3G network.
    Hopefully it will be fixed soon.

  • Why have my purchased text and email alerts vanished?

    II'm not connected to I tunes and have purchased 2text alerts and email alerts. After assigning them, they disappear. Where are they?

    Thanks for the reply. It was after the upgrade. I brought the same alerts again afterwards (it knew I had already purchased them and asked me if I wanted to buy them again). I did but within a day, they had vanished again! Be careful not to buy them again until Apple sort this costly issue out!! They now owe me money!!!!

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • BI Publisher 10.1.4.3 - To connect to AD for report generation

    Hi,
    I need to generate a report against an LDAP(Active directory) . I'm using  BIP 10.1.4.3. When i try to configure a datasource, the options present are
    1. JDBC
    2.JNDI
    3. File
    3.OLAP.
    Can any one guide on how to connect  to Active Directory in BI Publisher for report generation.
    Thanks in Advance.

    You have posted your question in the Oracle Portal forum. Please submit your question in the [url https://forums.oracle.com/forums/forum.jspa?forumID=47]Identity Management forum.
    Thanks,
    EJ

  • How to create documentation for report programs and how to use it

    how to create documentation for report programs and how to use it in the selection screen by placing an icon in the Applicatin Tool bar. If i click this icon the help documentation has to display.
      Note: Exaple <b>RSTXSCRP</b> programs selection screen

    Hi
    1 goto SE38 transaction, give the program name
    2 Click on documentation radiobutton & then press change
    3 Write your PURPOSE, PREREQUISITES etc details
    4 Save the same & Activae it.
    The icon will come automatically on selection screen
    Thanks
    Sandeep
    Reward if useful

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • Media query for iPhone 4s and iPhone 5

    What is the Media Query for iPhone 4s and iPhone 5 in landscape and portrait mode

    This is a tech support forum.  For developer and coding questions, post in the Dev forums

Maybe you are looking for

  • OHD description change in other language limited to few characters

    I created a OHD , given description in Englis logon language But the description of my OHD is not displayed when i logged in NL ( Dutch language ). So i tried to maintain the same english texts in Dutch ( as per the requirement ). Next to the technic

  • Header condition positive but item condition negative

    Hi, We use a customised Statistical Condition type in the Sales Order. It is observed that often, whilst the Header Condition value is correct and positive, when the value is getting distributed to the line items, one of the Line item is getting a ne

  • Do not open Camera Raw?

    Whenever I send a DNG pic from Lightroom4 to CS6, they only will open directly in CS6, not in Camera Raw. Everything is updated. They use to, until I had a blue screen and had to reinstall everthing.

  • N95 - Won't Recognise Incoming Calls

    Just got the N95 so this might be finger problems or I might have missed a setting somewhere .... When I get an incoming call it doesn't seem to tie it up with existing contacts. It simply shows the incoming number rather than contact name. When I tr

  • What is a good Contacts Manager for OS X 10.8.2?

    Hello, I am looking for a contacts manager software that runs on Mountain Lion. Aside from features typically found in most databses, I am looking for a product that has the following features: - Can import/export existing data from external sources