Building fault tolerance into Oracle Reports

I have a report that I am working on in Developer 2000 that loads images from a filepath stored within my database. This works great but the report bombs out if the image does not actually exist or the filepath is wrong.
While the obvious solution is to make sure the files are present, it would be nice to trap an error message for this situation as it occured and to simply carry on as if nothing had happened.
Is this a possibility ?? ... I'm new to this and have a learned a lot quickly, if it where not for time constraints I'd be picking through the weak Oracle supplied documentation, with that in mind a good book recomendation would be wonderful

This seems to work for text files. It should work for bitmaps as well:
1) create a function and set it to char, read from file
2) add the code
function cf_rowFormula return Char is
in_file TEXT_IO.FILE_TYPE;
file_nm varchar2(30) := 'c:\myfile.txt';
begin
in_file := TEXT_IO.FOPEN(file_nm, 'r');
text_io.fclose (in_file);
return file_nm;
exception
when others then
text_io.fclose (in_file);
return 'c:\empty.txt';
end;
If the program doesn't find myfile, it will load empty. I'm not positive but it has to load something for it not to get an error. Hope this helps.
null

Similar Messages

  • Load Balancing & Fault tolerance in Oracle Apps

    Hello
    I am pretty new to Oracle Apps and Oracle 9iAS
    We are trying to asked to find out the ways of deplying load balancing and fault tolerance in Oracle Apps
    I have gone thru the following articles of metalink and some more from google
    Configuring Web Cache as a Load Balancer for Application Servers
    Create new middle tier node in existing Apps 11i environment using cloning and then load balance
    Integrating and using Web Cache with Forms 9i for Load Balancing
    Running Multiple OC4J Instances From a Single Install of 9iAS 1.0.2.2
    LOAD BALANCING ORACLE APPLICATIONS ON UNIX
    Load Balancing in 11i
    OC4J Clustering Setup
    OC4J Load Balancing for Forms 9i
    Setting up 11i E-Business suite using a hardware load balancer
    Sharing an APPL_TOP in Oracle Applications 11i
    In Oracle Apps Concepts pdf, found that
    Load balancing occurs when there are multiple installations of web server, forms server, reports server, concurrent manager server etc
    Lets consider forms server component of middle tier
    Can there be multiple INSTANCES of forms server within SINGLE INSTALLATION ???
    If it has to be MULTIPLE INSTALLATIONS, then it will require multiple physical machines
    What is software load balancing then ???
    Also read that
    Oracle 9i AS instance is combition of Oracle HTTP Server (OHS) and one or more instances of Oracle9iAS Container for J2EE (OC4J)
    Thus software load balancing can be implemented for Web server component of middle tier using multiple instances of OC4J ???
    Forms metrix server configuration is hardware load balancing ??
    What about Oracle9iAS Web Cache clustering ??
    Please clarify the doubts and suggest me the way
    Thanks a lot

    dear all can any one help me on the following;
    We want to install Oracle Apps 11.5.9 on 4 IBM AIX 5L boxes, the first node
    will hold the database , concurrent and Admin Tiers. as for the other 3 nodes
    it will hold the Forms/Web Tiers and we need to use forms metrics for load
    balancing taking into consideration that we can't use Shared APPL_TOP. we tried
    to find the way how to install and configure this solution but all the
    documents are talking aboout the concept only and this concept is applicable.
    We need the exact steps on how do the installation either using rapidwiz or any
    thing else
    fadi

  • Facility into Oracle report 9i for Calendar

    Is there any facility into Oracle report builder 9i for Calendar object?

    Hi,
    there is no any opition in oracle report 9i for Calendar if u wanna add Calandar object in ur report 9i then make report parameter form in form9i then add calandar object in forem 9i then call ur report from that parameter form bcoze in form 9i u have opition to add calendar object
    Rizwan

  • How to pass bind variable into oracle reports 6i - Parameter form

    Hello All,
    I want to pass bind variable into Oracle Reports 6I - Parameters.
    I have tried out that but got the below error :-
    rep-0781 : Bind variables are not allowed in the select statement
    Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
    Thanks
    HARSH SHAH

    Hi,
    may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
    but u can full fill user requirement using oracle forms
    create a form as like as report parameter window
    then create parameter list and run report
    PROCEDURE Run_Emp_Report IS
      pl_id ParamList;
    BEGIN
      pl_id := Get_Parameter_List('tmpdata');
      IF NOT Id_Null(pl_id) THEN
        Destroy_Parameter_List( pl_id );
      END IF;
      pl_id := Create_Parameter_List('tmpdata');
      Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
      Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;
    thanks
    mostafiz mitul
    Dhaka Bangladesh

  • Pass a ViewObject as a data parameter into Oracle Reports

    Can I pass a ViewObject as a data parameter in an Oracle Reports jsp Report?

    you can use impliment this script to your query get data from file
    function AfterPForm return boolean is
    infile text_io.file_type;
    linebuf varchar2(3000) := '';
    filename varchar2(100);
    v_employee_id varchar2(2000);
    begin
    filename := :P_file_name; /* you can pass the file name like this c:\temp\test.txt */
    infile := text_io.fopen(filename,'r');
    loop
    text_io.get_line(infile,linebuf);
    v_employee_id := v_employee_id| |linebuf| |' ';
    end loop;
    if text_io.is_open(infile) then
    text_io.fclose(infile);
    end if;
    exception when no_data_found then
    text_io.fclose(infile);
    v_employee_id := replace(rtrim(v_employee_id),' ',',');
    :p_employee_param := 'and employee_id in ('| |v_employee_id| |')';
    /* you can use either 'where employee_id in ('| |v_employee_id| |')' or
    'and employee_id in ('| |v_employee_id| |')' */
    return (TRUE);
    end;
    I think it will help you to solve your problem. Do not forget to put &v_employee_param
    Good Luck
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gvardhan:
    The file will have one EmployeeID per line as follows
    100
    200
    ...<HR></BLOCKQUOTE>
    null

  • Importing an image into oracle report

    hi all,
    I have created an oracle report which has to incorporate an image in it. I have created a link file and gave the image path in the property inspector. It was working fine. but my manager wants me to import the bmp file to the report. Can anybody help me how to do that.
    Thanks in advance,

    I have solved it myself.
    To import an image:
    In the Paper Layout view, choose InsertImage and click the type of object you want to import.
    In the dialog box, specify the name and format of the file. Click OK.
    Move the object to the desired position.
    **************************************************************************

  • Deploying 6i RDF reports into Oracle Reports 10g

    Hi
    We need urgent help on the below requirement,
    We have installed Oracle 10g Standalone Report Server (Oracle 10g Business Intelligence),
    We have some 6i RDF reports which are needed to be deployed into the newly installed 10g Report Server,
    had anybody done this before?
    Appreciate if you could provide steps to achieve this.
    This is a quite urgent requirement and any help will be highly appreciated.
    Thanks & Regards,
    Jeet

    Hello Jeet,
    PITSS can seriously help you with your deployment. Please contact me today to discuss your current environment and we can solve your urgent needs.
    Regards,
    Jason Marra
    +1 248 524 0328
    [email protected]

  • How to get Oracle Form Parameter Value into Oracle Report

    Hi,
    Please guide for the following:
    On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
    I want to get From_Date & To_Date in the report, as per below mentioned heading:
    SALES REPORT
    From: 01-JAN-2009 To: 31-DEC-2009
    Regards,

    You can use ADD_PARAMETER builtin,
    The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
    <pre>
    /** Declare a variable of type ParamList to store ** the parameter List ID */
    DECLARE
    PARAM_ID ParamList;
    BEGIN
    /* ** Create a parameter List named "input_params" */
    PARAM_ID := Create_Parameter_List('input_params');
    /* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
    Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
    Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
    /* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
    END;
    </pre>
    Edited by: Charan on Jul 13, 2011 9:08 AM

  • Oracle reports 6i to Oracle forms 10g migration

    Hi,
    I have .rdf files which were created on Oracle Reports 6i. I would like to migrate the .rdf files into Oracle Reports module which is present as a part of Oracle Forms 10g to generate PDF output.
    Please let me know the detailed steps to be followed as I am a total newbie. Also I need to generate these reports on demand from a java 5 application (JSF 2.0).
    Currently for ORacle reports 6i, I have the following code in my java application
    rwrun60.exe g:\tomcat33\webapps\reports\web-inf\src\null userid=***/*** destype=FILE desformat="pdf" paramform=NO printjob=NO batch=YES desname=temp.pdf
    1. What would be the equivalent for reports in ORacle Forms 10g ? I know there is an Oracle Apps server where ther report services reside. How to I invoke my report from my java application (residing on a weblogic server 10.3.6)?
    2. What ould I do with the 6i .rdf files to upgrade them to 10g ?

    I am trying to call an Oracle report i.e .rdf (which is located on the Oracle  App Server) from my java EE 5 (JSF) application. The Oracle  App server is Oracle Application Server 10g Release 2. I assume Oracle report generation capability is available in this release.  I need to invoke the report from my Java JSF application on demand (whenever the user clicks a button on the web browser page, the report should appear on the browser as PDF) . My java application resides on Linux weblogic server.
    Please let me know how it can be done ? I see rwclient.sh and another method to directly invoke using a URL. How do I do it on java, would a request.redirect() to the URL work ?
    Also for hiding the params in the URL. keys need to be configured on the Oracle server right ?
    Also if we use rwclient.sh or the URL based invocation, would there be any issue in concurrency when multiple users request the same report at the same time ?

  • Oracle report features

    Hello,
    I hope I am posting on the right forum section.
    I am now getting into Oracle Reports. I have read several documents about it in order to get familiar with its features. I have a list of requirements that I am trying to find. I found information for most of them but I would be happy if someone can help me with these ones:
    1) In what languages is the GUI of O.R. Developer supported?
    2) Which Operating systems does the O.R. Developer support?
    3) Does the O.R. Developer support drill-down and drill-through reports? If yes, how could this be achieved?
    4) In what languages is the GUI of OracleAS Reports Server supported?
    5) Does the OracleAS Reports Server support scheduled generation of reports according to a custom business calendar?
    6) Does the OracleAS Reports Server track changes of all reports that are newly deployed or modified?
    7) Does the OracleAS Reports Server have statistical reports about the execution of the reports (including timing, statuses, etc.)? Does it have any KPI indicators about the global overview of the generated reports (number of successfully (or not) dispatched, average timing, etc.)
    Thank you in advance for your answers.
    Best regards,
    Beroetz

    Hello,
    If I have not posted in the right section, please, advice me where to put my question.
    Thank you.
    Best regards,
    Beroetz

  • Values returned from oracle reports

    hello,
    i want to write a program which comunicates with
    oracle report builder. passing arguments to oracle
    reports is no problem but is it possible to get
    return values from oracle reports so that i can
    proceed with them in my java application.
    thank you
    thorsten lorenz

    Hi Stewart,
    thank you for your answer. I think i'll try this
    approach. I will start the runtime-Version of Oracle Reports
    from java with parameters. exec(param 1,param 2). The only
    thing returned is an integer indicating if this call
    to reports was successfull. but with your idea i think
    i got a nice workaround.
    Greetings
    Thorsten Lorenz

  • Oracle Reports and Java

    Can anyone point me to good documentation for incorporating Java
    into Oracle Reports Layouts on the web? We'd like to integrate
    some drop down boxes in the layout so a user can make some data
    choices then execute a drill down report directly from the
    layout.
    Or put another way, if we have a report with 3 parameters,
    rather than have to go back to the param form, we would like to
    integrate a header section to the layout that would have 3 drop
    downs, so as you are looking at the report, if you want to run
    again, you just select your choices in the header and hit a GO
    icon of some sort. Since drop downs are not available directly
    in reports, we were hoping to use Java.
    Thanks in advance for any help!
    Brett

    hello,
    oracle reports 6i does not have any java integration. we have added java APIs to Oracle9i Reports in various places (e.g. datasource, destination, notification, ...)
    see our Getting Started with Oracle9i Reports or the Oracle9i Reports SDK here on OTN for further information.
    regards,
    philipp

  • New to oracle report builder

    Dear all;
    Please pardon me. I am new to oracle report builder and I am trying to accomplish the following. First and foremost please find my pl/sql queries below. Kindly note, all the queries have been tested and I just need to be able to input those queries into the report builder. Thank you.
    create or replace package test1 is
    type r_cursor is ref cursor;
    function report(company_name in varchar2) return r_cursor;
    end test1;
    create or replace package body test1 is
    function report(company_name in varchar2) return r_cursor as
    my_r_cursor r_cursor;
    begin
    if(company_name = 'ALL COMPANIES') THEN
    open my_r_cursor for
    select t.t_id, t.t_description from t1 t;
    return my_r_cursor;
    elsif(company_name != 'ALL COMPANIES') THEN
    open my_r_cursor for
    select t.t_id, t.t_description from t1 t
    where t.t_id = company_name;
    return my_r_cursor;
    end if;
    end;
    end test1;
    create table t1
    t_id varchar2(200) not null,
    t_description varchar2(250),
    primary key(t_id)
    insert into t1
      (t_id, t_description)
    values
      ('CITI', 'PROFIT: 2.2Billion');
    insert into t1
      (t_id, t_description)
    values
      ('GE', 'PROFIT: 1Billion');
    insert into t1
      (t_id, t_description)
    values
      ('JPMORGAN','PROFIT: 0');Now, I am trying to create a simple report in oracle report builder. The interface for generating for this report is basically, there is a dropdownlist where by the user picks a company name from the dropdownlist and clicks on the go button, this should then generate a report with the above query shown in the package. How can this be achieved? All help will greatly be appreciated.

    Hi,
    first of all you need strong typed ref cursor, oracle reports need to detect witch are the columns returned by your cursor.
    so first you create your package
    create or replace package test1
    as
    TYPE t_record IS RECORD ( company_number PLS_INTEGER--TABLE_NAME.COLUMN_NAME%TYPE
    , company_desc VARCHAR2(150)--TABLE_NAME.COLUMN_NAME%TYPE
    TYPE T_REF_CURSOR IS REF CURSOR RETURN t_record;
    procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor) ;
    end test1;
    show errors
    create or replace package body test1
    is
    procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor)
    is
    my_r_cursor T_REF_CURSOR;
    begin
    if(company_name = '1')
    THEN
    open my_r_cursor for
    select 1 as t_id, 'description' ast_description from dual
    else
    open my_r_cursor for
    select 2 as t_id, 'description2' as t_description from dual
    end if;
    end;
    end test1;
    show errors
    then, in your report you create a ref cursor query :
    function QR_1RefCurDS
    return test1.t_ref_cursor
    is
    C_return test1.t_ref_cursor;
    begin
         test1.report(1,C_return);
    RETURN(C_return) ;
    end;
    hope this helps you !
    E

  • Using CLOBs in oracle Report Builder

    I want to select all the data in a CLOB column using SQL Navigator by just doing
    select entry_note
    from chartentries;
    just as you say in your example by it just gives me back a result of (ORACLOB).
    If I do
    select to_char(entry_note)
    from chartentries;
    I get this error.
    If I do
    select dbms_lob.substr(entry_note,4000,1)
    from chartentries
    I get this (there’s more up to 32000 characters in a clob) and these weird squares which I think are CR (carriage returns) or LF (line feeds). I don’t want to see those characters and I would like to retrieve the entire CLOB in one swoop without doing data manipulations of substringing.
    Using the same data in Oracle Report Builder, I want to select all the data in a CLOB column into a field in a Paper report layout but I keep getting errors, ora-6502, and I've found out that I am restricted to 4000 characters and in Report 9i it looks like the largest field you can have is 4000 characters. My CLOB information can be up to 32000 characters long or longer and I do not want to substring out 4000 characters at a time into separate fields. In Crystal reports there is no problem just selecting the clob in a simple query and it is there in one shot. I would have thought by now that Oracle would have changed its development tools to be able to handle Clobs simply without any manipulation. Does anyone know how to do this in Report builder? I just have a simple query:
    select entry_datetime,
    to_char(replace((entry_note),chr(13))) as entry_note
    from chartentries
    where patient_id = 49741
    Another thing I want to do, is call this Oracle report from a PL/SQL block passing several parameters to the report and also call a Crystal report from a PL/SQL block passing several parameters to the report. Does anyone know what the commands are?

    What I had to do is create a query using query builder. This works fine; it's when trying to add the column to an existing query is where the data inconstancy error occurs. One thing you have to keep in mind is it will only work using the query builder in conjunction with the report wizard; I am not sure why. To incorporate the comments into an existing frame you will have to cut the frame created by the wizards and copy it into the existing frame. Otherwise the column name will not show in the source list of the property Inspector.
    Good Luck

  • Error when open Oracle Report Builder 10g (Windows 7 Ultimate 32-bit)

    Hi all,
    I installed Oracle Developer 10g on windows 7 ultimate 32bit.
    Form builder running well, but the report got problem when i opened.
    This is the error message:
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: rwbuilder.exe
    Application Version: 10.1.2.0
    Application Timestamp: 42ea43b7
    Fault Module Name: ROS.dll
    Fault Module Version: 10.1.2.0
    Fault Module Timestamp: 42c3b2b7
    Exception Code: c0000005
    Exception Offset: 0000afaa
    OS Version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Can anyone help?
    Regards,
    eRie

    Hello,
    For installing Developer suite 10gR2 on windows 7 there are some special installation steps.
    Please make sure that i hava followed them as described in the metalink note:
    Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit) (Doc ID 1292919.1)
    Also be aware of the following issue:
    Cannot Open Forms/Reports Within Forms/Reports Builder 10gR2(10.1.2.3) on Windows 7 (Doc ID 1306651.1)
    Regards,
    Alex

Maybe you are looking for