Running a reports against different databases

I have written a report that uses a ref cur in a database package to derive the main query. I've compiled the report and it runs fine.
The problem is when I try to run it against a database other than the one it was compiled against (i.e. compile against DEV DB, test against TEST DB, finally migrate to PROD DB). Each of these databases are identical in terms of their objects but if I run the report against an environment it wasn't compiled against I get the following messages:
REP-1437 Run time error in the PL/SQL development environment (DE).
PDE-PSD001 Could not resolve reference to <Unknown Program Unit> while loading <unknown> <unknown>
I noticed initially that the report and the database package had the same name, I though this may be confusing things so I renamed the stored proc but I still get the same results.
I can get around the problem by either re-compiling it against each database or by getting the form to call the .rdf (rather than the .rep) so it is recompiled as and when required but this doesn't seem right.
Anyone have any ideas?

Hi Steve,
You can try using the RECURSIVE_LOAD parameter. By default, it is set to YES. If you are running with the .rep, set it to NO on your command line. What this means, is that it will not try to recompile the plsql in your report.
Hope that helps,
Toby

Similar Messages

  • Web-Intelligence Reports against Access Database

    We are unable to run Web-Intelligence reports against Microsoft Access Database which resides on a network drive
    Able to create Unvierse, and Universe Connection to the Access Database through ODBC, but unable to run Web-I reports, when tried we get the following error
    A database error occured. The database error text is: [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path.  Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.. (WIS 10901)
    Did anyone tried to develop Web-I reports from Access database on a network drive, if so I request you to provide us details and your findings
    Thank you

    We run the designer on the same machine where BOBJ runs and also on other client machines, from disigner it works fine,
    The service account which is used to run BO Application Services has full control access to the network location and folder where the database resides
    We can run / refresh Desk-I and Web-I rich client but cannot run web-i reports against access database
    Thanks
    Sreekanth Pinnam
    Edited by: Sreekanth Pinnam on Jul 9, 2009 2:07 PM

  • How to run a select against multiple databases

    Dear experts,
    I need to run a select against all our databases, which are running on a separate server each.
    I found this:
    Looping between multiple servers for SQL*Plus
    which seemed to be doing the trick, but it relies on /etc/oratab, but in our environment this file
    is not in use, i.e.
    /var/opt/oracle/oratab - this file has comments only and does not contain any real entries
    /oracle/<SID>/11203/install/oratab - this file has 0 size
    Thank you!

    Hello
    Database link is a good technique for running a query against multiple database, but you will need to statically define the DB you want to access.
    Best regards
    CREATE DATABASE LINK dev_link CONNECT TO system IDENTIFIED BY password
    USING '(DESCRIPTION =  (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =sapdev)(PORT = 1527)) ) (CONNECT_DATA = (SID = DEV) ) )';
    select * from sapsr3.REORGJOBS@dev_link;
    drop database link  dev_link;
    25383 - Database links, synonyms, remote DB

  • Questions on OBIEE reporting against transactional Database

    Hello guys
    I have a situation where I have to bring in 5 tables from transactional database to do reporting on.. I looked at the tables, there are not typically dimension or fact tables. Each table contains information very specifically, at the same time all tables have numeric values that needed to be aggregated at the lowest level of that table..
    I can join all these 5 tables together knowing the key columns. However, this is basically joining 5 tables with fact measures... Since this is transactional database which we don't own, so I can't create views nor changing the table structures..
    I wonder how would I be able to configure such model in OBIEE?
    Any thoughts?

    Thank you for the reply..
    The specific situation I have here is:
    I have 4 tables that I am polling directly from the4 store's cash register (Oh yea, real real time), they are customer, receipt line, receipt header, inventory,
    The physical join is: they are customer-----> receipt line<-----receipt header <------------inventory...
    In the BMM layer, each of these 4 tables have columns that should be measures, such as customer.customer credit limit, receipt line. quantity, receipt header. reciept tendered, inventory.quantity on hand... They are more measure columns from each table, but I am just listing one from each..
    In this case if i set the aggregation rule on each column, then the BMM model won't a star schema anymore because every table can be fact..
    I thought about adding all the measure columns into 1 logical fact table, which then the logical fact will have 4 LTS: customer, Re Line, Re Header, Inv.. This will be fine if I am only dealing with 1 store... However, in reality there will be 50 stores with the same exact tables/structures but on different servesr. Therefore, the logical fact will end up with 4*50 = 200 LTS each has fragmentation defined "store number = NYC or something else"..
    Just wondering if combining all the measures in one logical table is the only way to model this design or not? What would be the best thing to do if in this situation I have to report against multiple data source of the same tables in 1 subject area?
    Please let me know your thoughts..
    Thank you

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • Need to run the report in different languages

    Hi All,
    i need to run the Bex report in different languages (SAP-BI). to maintain the Language plase give me the tables name.
    To maintain Query Description :Table?
    To maintain Desription of Key fig and CKF and RKF : Tables
    Regards
    Srinu

    thanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
    also please share the SR number, so i can also check the same.
    can there be any other work around to this?
    thanks,
    ronny

  • Maintaining formats(layouts) on Crystal report with different database

    I was just needing some help maintaining the layout of a report but using a different database. The databases are very similar for example, a field for the database in use is line1xxxx what I wish to do is keep all the formating & point it line2xxxx database. Where line1 is the original Database & Line2 is the new database I wish to use. Both of these databases reside in the same folder its just that I need identical reports for both Line 1 & Line 2 & am trying to get away from duplicating all the work I did on the Line 1 report.
    Hopefully not too trivial for this forum.
    Thanks in advance.

    If you have same tables in both the databases then open the report and go to menu option in the report database-->set data source location and create new connection in the bottom window and select both existing connection from top window and new from bottom and click on update. Now the report points to the new database, so now use save as option to save the report with some other name so that you can have the old report with old connection and the new one with new connection.
    regards,
    Raghavendra.G

  • Attempting to run Service report with different parameters- No data

    User wants to run a report to display all of the Service Calls(different parameters have been entered to test) and no data is brought back. There is an error in the status bar Message 131-85 No data. But if another user runs the same report there is data.
    Have checked Authorisations and all is OK.

    I worked through this issue and found that one of the parameters had a blank selection but this incorrect. Once we changed the selection that data came through.

  • Hyperion Reports Error when running a report against HFM application

    Hi,
    Trying to run a report that the source is a HFM app and get this error:
    5200: Error executing query: ALE syntax error near: line number 1 position 137 token Period
    Anyone know what might be the cause.. I have no idea as to what it could be. I'm not a Reports expert, mainly an Essbase person...
    sam

    Did you ever determine a solution for this issue? We're encountering the same error.

  • Run a report with a different login

    We have an application that must run reports against different databases.
    Is there a way to change the connect string when running reports with the run_report_object built-in, or do I have to use web.show_document for that purpose?
    Cheers
    Christian

    Hello,
    Two solutions :
    1)
    repid := FIND_REPORT_OBJECT('reportname');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'LOGON=NO USERID=un/pw@db');
    st := run_report_object (repid);
    2)
    declare
    pl_id paramlist;
    repid report_object;
    st varchar2(100);
    begin
    destroy_Parameter_List('tmpdata');
    pl_id := create_parameter_list ('tmpdata');
    add_parameter (pl_id, 'logon', text_parameter, 'NO');
    add_parameter (pl_id, 'userid', text_parameter, 'un/pw@db');
    repid := FIND_REPORT_OBJECT('reportname');
    st := run_report_object (repid, pl_id);
    end;
    Regards

  • Is there any SAP tool to run reports on different report server versions

    Hi,
    I have to run crystal reports on different report server versions. This is a repetition of the tasks as it requires installation of report servers and executing reports on both. Is there any SAP reporting tool which simplifies all these tasks , runs the report at the same time on different report servers and gives output for both executions?
    Thanks.

    Hi,
    I have to run a single CR report on different versions of CR report server for validating if the report runs correctly.
    So can be it done like a scheduler which then generates report result files.
    Thanks.

  • View running slowly on different database

    Hi,
    I have an issue where a view which runs quickly on two different databases runs slowly on a 3rd database. The database schema is the same on all 3 machines. The two databases that run the view quickly are v.9.2.0.1.0, and v.10.2.0.2.0, the 3rd database that runs the view slowly is v.9.2.0.7.0. The physical machine that the 3rd database runs on is the fastest machine.
    On the poorly performing database, if I set autotrace on, then I get this:
    Statistics
    36 recursive calls
    0 db block gets
    618169 consistent gets
    10 physical reads
    0 redo size
    406 bytes sent via SQL*Net to client
    499 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    obviously, the sheer number of consistent get's has to be the source of the problem.
    explain plan doesn't reveal anything obvious.
    I'm struggling to resolve the issue. Any help or pointers would be appreciated.

    The indexes are the same. I've also tried rebuilding the indexes.
    Auto traces for the other 2 boxes
    Statistics
    0 recursive calls
    0 db block gets
    221 consistent gets
    0 physical reads
    0 redo size
    379 bytes sent via SQL*Net to client
    499 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    Statistics
    0 recursive calls
    0 db block gets
    2 consistent gets
    0 physical reads
    0 redo size
    255 bytes sent via SQL*Net to client
    369 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed

  • How to run report from other database

    hi,
    i have an application running on oracle 10g forms (many forms & reports),i want to run a report from other database using a form,it should be run on this application & same report server. so if it is possible so tell me how can i do this ?
    thxs

    If you have another Oracle database you can use the following command to create a link to it from the one you are currently logged into
    CREATE PUBLIC DATABASE LINK my_db_link
    CONNECT TO other_oracledb_usernane IDENTIFIED BY other_oracledb_password
    USING 'remote_oracledb_name';
    When you issue this command the 'remote_oracledb_name' must exist in your TNSNAMES.ORA file so that the remote database can be 'found'
    If this is still not enough info I would suggest that you talk to someone on your DBA team to help set up the link.
    Mark

  • Report using incorrect database

    I am using Crystal Reports XI R2
    The database for running my reports against recently got moved to different database e.g. from FOO to FOO_new However the report insists on using FOO even after Set Datasource Location in the designer
    Please help!
    Regards
    Lawrence

    Hi,
    With above suggestion i would add that make sure database is up and running and able to access from your machine.
    Do a small test to test your connection.
    -Right Click on desktop ->
    Create new text document->
    Save as test.UDL->
    double click and test connection by selecting driver name,datasource name,user id and password.
    Click on Test Connection.
    It should be succeed.
    Regards,
    Shweta

  • Rep-52005 error when running a report from form with parameter form

    I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
    I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
    PROCEDURE call_report (
    p_report_name VARCHAR2,
    p_reportobj_name VARCHAR2 DEFAULT NULL,
    p_parameter_list paramlist DEFAULT NULL,
    p_parameter_string VARCHAR2 DEFAULT NULL
    IS
    repid report_object;
    v_rep VARCHAR2 (100);
    rep_status VARCHAR2 (100);
    v_report_url VARCHAR2 (240);
    v_interface VARCHAR2 (50);
    v_report_parameter VARCHAR2 (1);
    vc_user_name VARCHAR2 (100);
    vc_user_password VARCHAR2 (100);
    vc_user_connect VARCHAR2 (100);
    vc_connect VARCHAR2 (300);
    v_reportserv VARCHAR2 (30);
    v_job_number number;
    BEGIN
    /* Get the database to run the report against and
    find out if the report has any parameters */
    SELECT report_parameter_flag
    INTO v_report_parameter
    FROM program_list
    WHERE program_type = 'REPORTS'
    AND UPPER (screen_id) = UPPER (p_report_name);
    vc_user_name := get_application_property (username);
    vc_user_password := get_application_property (password);
    vc_user_connect := get_application_property (connect_string);
    v_reportserv := 'rep_xxxx_ias10g_home';
    v_report_url := 'http://xxxx.state.il.us';
    v_job_number := length(v_reportserv) +2;
    vc_connect :=
    vc_user_name
    || '/'
    || vc_user_password
    || '@'
    || vc_user_connect;
    v_interface := get_application_property (user_interface);
    IF ( v_interface = 'WEB'
    AND v_report_parameter = 'N'
    THEN
    repid := find_report_object(p_reportobj_name);
    set_report_object_property (repid, report_comm_mode, synchronous);
    set_report_object_property (repid, report_destype, cache);
    set_report_object_property (repid, report_desformat, 'pdf');
    -- v_reportserv := get_report_object_property (repid,report_server);
    set_report_object_property (repid, report_server, v_reportserv);
    set_report_object_property (repid, report_other, p_parameter_string);
    v_rep := run_report_object (repid);
    rep_status := report_object_status (v_rep);
    IF rep_status = 'FINISHED'
    THEN
    web.show_document (
    v_report_url
    || '/reports/rwservlet/getjobid='
    || substr(v_rep,v_job_number)
    || '?server='
    || v_reportserv
    ,'_blank'
    ELSE
    message ( rep_status
    || 'Report output aborted');
    END IF;
    ELSIF ( v_interface = 'WEB'
    AND v_report_parameter = 'Y'
    THEN
    repid := find_report_object (p_reportobj_name);
    set_report_object_property (repid, report_comm_mode, synchronous);
    set_report_object_property (repid, report_destype, cache);
    set_report_object_property (repid, report_desformat, 'pdf');
    set_report_object_property (repid, report_server, v_reportserv);
    set_report_object_property (
    repid,
    report_other,
    'paramform=yes P_USER_CONNECT='
    || vc_connect
    || ' P_SERVERNAME='
    || v_reportserv
    || ' P_ACTION='
    || v_report_url
    || '/reports/rwservlet'
    v_rep := run_report_object (repid);
    rep_status := report_object_status (v_rep);
    IF rep_status = 'FINISHED'
    THEN
    web.show_document (
    v_report_url
    || '/reports/rwservlet/getjobid='
    || substr(v_rep,v_job_number)
    || '?server='
    || v_reportserv
    ,'_blank'
    ELSE
    message ( rep_status
    || 'Report output aborted');
    END IF;
    ELSE
    run_product (
    reports,
    p_report_name,
    synchronous,
    runtime,
    filesystem,
    p_parameter_list,
    NULL
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    message (SQLERRM);
    END;
    My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
    Any help will be greatly appreciated!!
    Shellie Bricker

    Your code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
    For what I can see, the P_ACTION parameter should end in ?...
    i.e.
    P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
    set_report_object_property (
    repid,
    report_other,
    'paramform=yes P_USER_CONNECT='
    || vc_connect
    || ' P_SERVERNAME='
    || v_reportserv
    || ' P_ACTION='
    || v_report_url
    || '/reports/rwservlet?'
    );If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
    Hope this helps,
    UPDATE:
    If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
    i.e.
    http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
    The above code will throw error REP-52005: The specified key report does not exist in key map file.
    Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM

Maybe you are looking for