How to close the report background engine programatically in developer 6.0?

Friends,
We have developed our application using Oracle Developer 6.0 as front end and Oracle 9iR2 as a back end.
whenever the user is opening the application one session is creating after that if he runs any report the report background engine is started and that engine also creating one session. So, unnecessarily two sessions are opening for a single application.
So, how can we close the report background engine programatically after the report displays all the records?
Moreover, when the user close the application, the report background engine is still open. the user has to close the report background engine manually.
so how can we solve this issue?
Thanks
Sathyguy

i got this while searching but its not working.....
Problem Description
Starting reports using a RUN_PRODUCT on Windows platforms starts a
Reports Background Engine (RBE). After leaving the forms application the
background engine is still running and must be terminated by the user.
Solution Description
This is intendet behaviour.
To close the Background Engine programmatically use the Reports Runtime parameter
ORACLE_SHUTDOWN. E.g.
Perform the following actions to stop the RBE when closing the Forms
application:
1) Create a dummy report which only does e.g. a SELECT * FROM DUAL
This report has a DESTYPE=FILE and a DESNAME to e.g. C:\TEMP\DUMMY.OUT
2) In the POST-FORMS trigger add the following code:
DECLARE
pl_id ParamList;
BEGIN
pl_id := Create_Parameter_List('dummy');
Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Run_product(REPORTS,'<<name dummy rapport>>',SYNCHRONOUS, RUNTIME,
FILESYSTEM,pl_id,NULL);
END;
Explanation
The Report Background Engine runs separately from the Forms application and
there is no direct relation between these processes. The Forms should signal
the RBE that is being closed.
When the Form is closed the POST-FORM triggers sends a dummy report to
the RBE. Since the ORACLE_SHUTDOWN=Yes parameter is used after running the
report the RBE is terminated.
A small side-effect of the solution is that a small file (5Kb) is created on
the file-system contaning the output of the dummy report.

Similar Messages

  • Specifying the report server, disabling the reports background engine.

    When calling a report from a form, where the desname, destype, deformat is chosen, how do i specify the report server? Also when i run the form and call the report from a button how do I disable the report background engine?
    Many Thanks
    Richard

    hello,
    the server is defined by the SERVER parameter in the parameter list.
    regards,
    philipp

  • To close the Reports backgorund engine

    Hi All,
    I am calling report from form and it works fine.
    But reports background engine is open all time
    could anyone check the following code and help me whats wrong in this
    DECLARE
    rg_id RecordGroup := find_group('RG_PROJ_ID_IN');
    rpt_id REPORT_OBJECT := find_report_object('GENERIC');
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    errcode number;
    REP_PROP VARCHAR2(20);
    BEGIN
    --if :TB.DISPLAY = 'm2rpt015'
    if :tb.display is not null
         then
    alertme('caution','run report '||:tb.display||' ?');
    -- SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_FILENAME,:tb.display||'.rep');
    SET_REPORT_OBJECT_PROPERTY(rpt_id, REPORT_OTHER, 'p_project_id=M');
    SET_REPORT_OBJECT_PROPERTY(rpt_id, REPORT_OTHER, 'ORACLE_SHUTDOWN=YES');
    SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_FILENAME,'c:/module6.rep');
    v_rep := RUN_REPORT_OBJECT(rpt_id);
    do_key('clear_form');
    end if;
    EXCEPTION
    when form_trigger_failure then null;
    END;
    Thanks

    from Note:1019164.6 on metalink :
    NOTE: The argument 'Yes' is case sensitive and must be upper case 'Y' followed by lower case 'es'.
    NOTE: The Oracle_Shutdown parameter must be passed as the FIRST parameter in the list.
    regards,
    philipp

  • How to turn OFF Reports Background Engine?

    I know how to programatically invoke the RBE [win_api_shell.winexec('c:\orant6.0\bin\rwrbe60',WIN_API.SW_SHOWMINIMIZED);]
    But the RBE stays out there after the report runs. Does anyone know a way to TERMINATE it programmatically?
    Same question for the Oracle Graphics Background Engine.

    Add this parameter:
    ADD_PARAMETER ( pl_id, 'ORACLE_SHUTDOWN',
    TEXT_PARAMETER, 'YES' );
    null

  • Closing the report background engine

    hi friends,
    i have tried using add_parameter function with ORACLE_SHUTDOWN=YES
    BUT THE Engine doesn't close in fact it shows the first report as in prview and the another report which I am trying to run in forms as waiting.
    is there any particular sequence for this syntax?
    manoj

    Manoj,
    you didn't mention a release version. ORACLE_SHUTDOWN=YES was filed as a bug for Forms 6.0 and was fixed for Forms 6i (6.0.8). Using Run_Reports_Object() instead of Run_Product and passing ORACLE_SHUTDOWN=YES as an argument of REPORT_OTHER will work even before.
    Frank

  • Reports Background Engine - How To Automatically Close?

    I use Developer 6. When I run a Reports, using RUN_PRODUCT built-in from a menu, a REPORTS BACKGROUND ENGINE starts up automatically, and it opens a session with the server, and runs reports. Since it is in another session, I cannot use uncommitted records created in my Forms Runtime session in any of the reports.
    Further, when I exit out of my application, this REPORTS BACKGROUND ENGINE stays put. The user is expected to physically go and close this window, and consequently the Oracle session at the server end.
    I've been unsuccessful in figuring out how to close this window and exit from my Application.
    Could any one enlighten me on how to close this REPORTS BACKGROUND ENGINE while exiting out of my application programatically please?
    Regards,
    Ram

    hello,
    you can use the ORACLE_SHUTDOWN parameter to shutdown the RBE.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                       

  • Automatically close report background engine

    After running a report with a graph in it from Forms using run_product, how can you automatically close the reports background engine and the graphics engine that get left open.
    Thanks!

    Hi,
    If you add another parameter to the parameter list as shown below, it will shutdown the background engine when you close the report.
    ADD_PARAMETER(PL_ID,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
    Hope this helps,
    Haritha

  • Reports Background Engine Automatic Shutdown

    Hi There!
    Is there any command to automatically close the Reports Background Engine when Reports are run from Forms....
    Thanks!
    Vidu

    hello,
    if you submit a job to the reports server and the first parameter in the parameterlist is
    add_parameter(var,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    then the RBE will shut down.
    regards,
    the oracle reports team

  • How to close "Reports Background Engine" automatically

    Dear Sir,
    I wanna close "Report Background Engine" automatically after closing the report.
    I tried to add the following parameter to close it in the caller form, but it didn't work:
    add_parameter(p1, 'oracle_shutdown', TEXT_PARAMETER, 'Yes') ;
    Waitting for Help!

    Hi,
    I think the problem might be with oracle_shutdown being in small case letters or you are using a version of forms6 or 6i that this line doesn't work due to a bug via Oracle in the engine ..
    Here is my line to shut down the report background engine.
    Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    Thanks
    Mary Santry

  • How to display the output of report(9i) using Report Background Engine

    Hi,
    We are converting the forms and reports from 6i to 9i.
    we could run the report in the browser from form using WEB.SHOW_DOCUMENT built-in, but we are not able to display the report output from form using the Report Background Engine.Let us know if you have any solution for this.
    Regards,
    Pramila.

    Pramila,
    you have to use Reports Server called from RUN_REPORT_OBJECT(). Please see the Reports Integration whitepaper on otn.oracle.com/products/forms. You can either look it up in the Forms 10g collateral seciton or the Forms 9i collateral section.
    Frank

  • Get rig of Reports Background Engine at the bottom of screen

    The Reports Background Engine is automatically placed at the bottom when a report is called from Form Builder. It remains there even if closing the report or exiting out of the application. Is there a way to close it automatically on exiting the application?
    Any solutions?
    Thanks.
    null

    Hi,
    The answer is to use HOST calls:
    host('runrep user/password ...');
    See the details for the runrep command.
    This should do.

  • How avoid multi reports background engine (D2K6I + patch7  C/S)

    after Developer tools migrate from D2K60 to D2k6i (with patch7), if call multi reports with ASYNCHRONOUS comm mode from forms, these will have multi reports background engine will startup, so need more session will connect to database, this is my need.
    So I need have method to avoid startup multi reports background engine.
    Not suggest me with SYNCHRONOUS comm mode or automatic close report background engine. the above two methods are difficulty to carry through for me.
    Thanks & test regards!

    Before developer tools migration, When run a set of reports with ASYNCHRONOUS comm mode, only one reports background engine startup, and all report as queue requests in the reports background engine, this is my need. I don't want any change because developer tools migration
    Please give me your idea, Thanks again.

  • What is "Report Background engine"and How to use it ?

    Hi
    I see this window shows up when I run Report each time, what dose it do?
    "Report Background engine"

    The Reports Background Engine waits for any command lines to run reports. When it receives a command line,
    it places that report in its queue. Typically, the Reports Background Engine receives command lines from a form or
    graphic using the RUN_PRODUCT packaged procedure, or from a report using SRW.RUN_REPORT.
    On Windows, you can use RWISV60 to submit a report to the Reports Background Engine for execution.
    This is a more efficient method because it incurs less performance overhead than Reports Runtime. The command
    line arguments for RWISV60 are the same those for RWRUN60. RWRBE60 is only used to run reports locally.
    Thanks,
    Siva

  • How to Hide Report Background Engine

    Hi, can you help me on my problem. What should I do, to hide the Report Background Engine when the report is running.
    Thanks in advance!
    Eric
    null

    Hi,
    call report using this code
    begin
         srw.run_report('report='||path_forms('R')||'SUB_LEDGER_BALANCE.rep
    L=' || :control
    || ' cdate=' || to_char(:cdate));
    EXCEPTION
    when srw.run_report_failure then
    srw.message(30, 'Error runing reports.');
    raise srw.program_abort;
    end;
    if u use this code for calling report then report background engine window not open also u can open multipul report in same time
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • Closing the report generating engine automatically

    how can i close the report generating engine after displaying a report automatically ie when closing the report window the report generating engine also need to be closed. now i have to manually close the report background window also and it becomes annoying to users . i am using the rdf files and not rep files.

    There is a parameter ORACLE_SHUTDOWN. Set it to YES.
    When you have large, complex reports, the Reports Background engine sometimes eats lots of memory and leads to GPF. If you have lots of GPF when running a report, you should use this parameter.
    null

Maybe you are looking for

  • Excise amount is not picking up in j1in

    we are using taxinn when we do the billing excise amount is picked up and accounting entry is passed accordingly while doing excise invoice creation (j1in) bed amount is not upading? where we have committed the mistake thanks in advance joseph

  • How can i see my contacts on the itunes?

    Hi I have damaged my phone screen and cannot see anything on the phone. Just Synch my phone. How can i view my contacts in windows?

  • All ok for 64 bit apps, printer INVISIBLE to 32 bit apps

    Hello, I'm running Win7Pro64SP1 on a Z800 workstation, and recently had a partial disk crash in which a few sectors went into oblivion - after disk repair etc. and a few reinstalls, most everything came back ok, but here and there I still do stumble

  • Installion problem with Adobe Photoshop Elements 10

    The setup first wants to de-install, instead of installing Adobe Photoshop Elements 10. I confirm to de-install, but then I get the message : Specified path is empty and then no installation.  A prior Adobe photoshop emelents version was deleted manu

  • Only desktop appears

    Time Machine is backing up properly on my PowerBook, but when I check it only the desktop appears. By looking into the files I can tell that the whole external hard drive is being backed up, but there's no way to actually use it if needed. Also, Spot