Reports URL run through Database Raises Rep - 1247

Hi All,
When a Reports URL is run via Database i.e through utl_http package. Userid and Password is required to be provided through the URL i.e Hardcode the userid and password details of database in URL like what is shown below.
http://ip:port/reports/rwservlet?userid=scott/tiger@cstring&report=test.rdf&destype=file&desformat=pdf&desname=\dumptest\testing.pdf
Above URL runs fine when userid & password is hardcoded
Where as If the userid and password is provided through the key map string in cgicmd.dat file, report doesnt runs and raises Rep -1247 error i.e Uncompiled PlSql Program. i.e For example
http://ip:port/reports/rwservlet?keystring&report=test.rdf&destype=file&desformat=pdf&desname=\dumptest\testing.pdf
Above URL doesn't runs and raises Rep - 1247
Keystring is identified through the string given in cgicmd.dat file available in reports server.
But the same URL runs fine when copy pasted in the browser. Issue simulates only while running the URL through the utl_http package in database.
How to over come this as giving the userid and password in the URL is a threat to our security.
Thanks in advance
Edited by: ramarun on Aug 16, 2011 9:25 PM
Edited by: ramarun on Aug 16, 2011 9:26 PM

Hi Ramarun,
Did you find any issue on this topic ?
I have the same error
Thanks

Similar Messages

  • Report not running through Forms menu

    Hi Gurus,
    In our reports we have used Query PL/SQL to reference cursor. When it is compiled and an executable 'rep' file is created, which when
    called through froms menu generates following error and aborts the report.
    REP-1401:'qr_1refcurds': Fatal PL/SQL error occured.
    ORA-06508: PL/SQL: could not find program unit being called
    The same report when called through forms menu, without the compiled version, executes smoothly. Also it runs through report builder perfectly after compilation and generation of rep file.
    Would appreciate if anyone can provide suitable guidelines to solve this issue.
    null

    hello,
    is the program-unit you are trying to call, in an external plsql-library ? if so, you have to provide the PLX version of this library in order to use it from a REP file.
    however, why are you using the compiled REP version at all ? i would suggest to use the RDF file.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • REP-1247 when running Report

    Hi,
    I am trying to run reports in Application Server 10.1.2.0.2. When I try to run any report using the 'rdf', I get the error " Terminated with error: <br>REP-771: There exist uncompiled program unit(s). REP-1247: Report contains uncompiled PL/SQL "
    The problem occurs if I first try to run a report after rebooting the reports server. But the problem disappears if I run the report again. Running the same reports in Oracle 6i works always fine.
    Could someone help me solve this issue.
    Regards,
    Xosu

    Hi,
    I searched in internal knowledge database but could not find any problem like yours which is very generic.
    There were some specific issues which occurred for specific type of reports, but in your case it happens for all rep files with PUs.
    1) Is it occurring for all reports or some specific types of report ?.
    2) Is there an attached library (.pll file) to your report ? If yes , then its location (.pll file's location) should be in REPORTS_PATH env variable (in registry for windows, env variable for unix)
    3) Silly suggestion, but to make sure, there should be an active DB connection
    Other than this I suggest you to get in touch with oracle support to handle this issue (if you have a support contract)
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • ORACLE 6i-Errors REP-0736 / REP-1247-Report works with a different name

    Hi everybody,
    I have a problem with a Report developed in 6i after I compiled it with Linux.
    When I run report I had errors REP-0736 and REP-1247. But I didn't had any problem during compilation.
    The fact is.............if I changed report name (just the name, without any other modification), compiled and run, it works perfectly. Just changing the name!
    Obviously there is some place where the report name is corrupt, but I don't have the knowledge to find it.
    Please, if somebody can give me a clue to solve this problem, I would appreciate a lot. I'm lost!
    Thanks

    **What do you mean exactly by changing the name? The file name or the Name property in Report Builder?**
    **What are the exact version numbers (Reports and Linux)? Did you make sure the combination is certified?**
    **Did you create the report in Windows and transfer it to Linux? How did you do that? E.g. if you ftp it, make sure you use the binary format.**
    **Are you compiling and running with the same user (Windows/Linux)?**
    **Are the database versions the same (still assuming you develop in Windows development and run it later on Linux production)?**
    Thanks for answer!
    1. I mean by changing the Name property and the file name. Both.
    2. The combination of versiones numbers is certified. This is the first report with this kind of problem. I've been compiling without any trouble until now. And even now, the only report with compilation problems is this.
    Report version is 6.0.8.27.0
    Linux version is Suse 9
    3. I modify the report in Windows and transfer it to Linux. We use to copy the .RDF file to the directory where we always compile the objects to Linux.
    4. Yes, I'm compiling with the same user
    5. The database versiones are the same. You're correct, we develop in Windows and run it on Linux (production).

  • REP-1247 in drill-down report

    Hello, everybody!
    I'll be very thankful to anyone who can help me to solve this problem.
    The environment is Oracle Reports 6.0.8.10.1 on Oracle Server 8.1.7.0.0.
    My report (rdf) in before form trigger takes the value of the first record's field of some view as a value of a parameter that is used in filter of the Q_1 query. Q_1 executes, rwrun60 generates pdf-file with the name depending on the value of that same parameter. Then in after report trigger the report runs through the cursor loop, fetching the rest of the records of that view from before report trigger. In this loop I form the report start string using the value of the cursor record's field. Finally, in that loop I call srw.run_report(report_start_string); for report to run itself with a new set of parameters per every iteration of the loop. That's how it is intended to work. And it perfectly works when I run it from under the user that is the owner of the schema. But when I just run it from under any ordinary user with more restricted access privileges (but, of course, this user has select privileges on views used in report granted to him) it all goes like that: the driver report successfully generates PDF. The runtime enters the loop in after report trigger and exectly once the report runs itself generating PDF successfully. Just the second run_report in the loop fails with error REP-1247: Report contains uncompiled PL/SQL. Do anybody know what is the reason?

    Hello,
    You will have to go for new development /enhancement linking your capital proj /WBS to the new logic of the report.
    Regards,
    Sumanth

  • Encountered REP-1247: Report contains uncompiled PL/SQL

    Hi All,
    I am facing an issue where I have created a formula column inside the invoice RDF report but when I run the report this is errored with the below message ,I do have compile the formula column properly and i have also compiled the complete rdf properly .
    REP-0736: There exist uncompiled program unit(s).
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
    MSG-00100: DEBUG: AfterPForm_Trigger -
    REP-1247: Report contains uncompiled PL/SQL
    When I removed the formula column ,report is running succesfully .Any hint would be very helpfull ,please give your thoughts .Thanks in advance .
    Thanks
    Pratap

    Hi Paul
    This error usually means that the user that is running the report does not have the required privs on tables or packages used in the report. Solution: Open the report in reports builder. Set the runtime properties (Role) that is assigned to the report. Connect as the user running the report on the same database instance as your run environment. Compile the report (Shift-Ctrl-K). This should show you where the error lies.
    Regards
    Logan

  • I am getting report error rep-0736&rep-1247 from concurrent

    Hi,
    I am running inventory report from concurrent is giving error as rep-0736&rep-1247.That report is giving result in report builder.
    Can anybody please tell me.It's urgent.
    Thank You,

    These two errors are just saying that there is uncompiled PL/SQL in the report:
    REP-0736: There exist uncompiled program unit(s)
    REP-1247: Report contains uncompiled PL/SQL
    When you are running your report in Reports Builder are you using the same database connection as when the report is run from the concurrent manager (ie are you logged on as APPS in Reports Builder)?
    If not, I would guess that the user you are connected to in Reports Builder has access to a database object you are referencing in PL/SQL that the APPS user does not have access to or refers to by a different name.
    If you are connected as APPS, then I would suggest that you do a full recompile in Reports Builder (Program -> Compile -> All) and see if that identifies any errors.

  • List of Oracle Reports run through Oracle Portal.

    Hi,
    It's possible that I am posting my message to a wrong Forum. If that's so, please let me know (and the correct forum too).
    I have several Oracle Reports that are run through Oracle Portal (when user clicks a link for a report). I want to get a list of all such Oracle Reports in one go as I need to modify all of them. At the moment, to get the actual report name that I need to modify I am following the steps below.
    When I am at 'Oracle Reports Security' page (in the Portal) where there is a section 'Reports Definition File Access',
    1. I click list icon without entering any value in the box. It shows me a list of all report definitions.
    2. After selecting a report definition, and clicking Edit, it shows me 'Manage Component' page. There are several links available. One of them is 'Edit'.
    3. I click 'Edit' and it shows me the actual 'Oracle Reports File Name'. This is the file I need to work on.
    But instead of following the above steps for each of the several reports I need to modify, is there any way, say by running a SQL query, to find out the actual Oracle Reports file names?
    The 'Manage Component' page shows 'Run Link' and links for 'PL/SQL source'. I tried to search for the schema name and package name in the database (by connecting as SYS user). However, I found neither the Schema not the Package.
    Hope my question is clear. In brief, I want to get a list of Oracle Reports file names that are run through Oracle Portal.
    Any questions, please let me know.
    Thanks and regards,
    Manoj.

    Jim,
    Did you ever try to add Reports portlet as an item, so that user can click on each item to customize/schedule the report? You can have 50 of them, if that is what you really need.
    Any reason why you want to create custom user interface, instead of using this vehicle that Portal provided by default?
    You mentioned "The report Portlet ... does not allow customization." Actually, it does. You can do it by clicking on the Customize link of the Reports portlet.
    Hope this helps,
    -Jeff

  • REP-1247: Report contains uncompiled PL/SQL.

    Hi learned friends
    I have created a batch script that runs rdf generates pdf reports for me at each eod run.
    The report errors out:
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    This is the command i execute:
    /udd001/app/oracle/product/dev60/bin/rwrun60 userid=/ report=/udd001/app/mu_tosd/ci/reports/GT0009R.rdf paramform=no destype=file batch=yes desformat=pdf mode=bitmap desname=/udd001/app/mu_tosd/ci/eodreport/GT0009R.pdf nonblocksql=no
    Now I have compiled all (Ctrl+Shift+K) successfully.
    Thanks a mil guys

    Hi,
    1) did you save the compiled reports?
    2) is the connect string you use to compile the reports with the same as the connect string you use when you run your reports in your batch?
    hope this helps,
    E.

  • REP-1247: Report contains uncompiled PL/SQ

    hi,
    i have a report with a FORMULA COLUMN
    when run my report i get this error REP-1247: Report contains uncompiled PL/SQ
    when i remove FORMULA COLUMN then run with out any problem,
    plz help me.

    1-I create a report emp that use 3 table t1,t2 and in formula t3
    2- i created role emp_role and grant 3 table (t1,t2,3) to this
    3- i assined emp_role to emp report (role name)
    4- i used BeforeReport (DBMS_SESSION.SET_ROLE('EMP_ROLE');
    5- compile all ,compile all ,ctl+shift+k ,ctl+shift+k
    6- create user co20001 and grant EMP_ROLE to this user
    7- when open this report from form with user co20001 i get error (unable to run report)
    and when run on browser as
    http://192.168.0.128:7778/reports/rwservlet?report=c:\erp\emp.jsp+server=rep_formsrv_BI+userid=co20001/co20001@nilper+MIMETYPE=REPORTS+destype=cache+desformat=spreadsheet+desname=hamid.htm
    i get error REP-1247: Report contains uncompiled PL/SQL.
    8- when grant table t3 as directly to co20001 my report run sucsses. why???????
    plz helpppppppppppp

  • REP-1247: There exist uncompiled program unit(s). REP-1247: Report contains

    Hello,
    i have the following problem when i first run this Report i have :
    REP-1247: There exist uncompiled program unit(s). REP-1247: Report contains uncompiled PL/SQL.
    many other reports i have having this problem pls help
    Abdetu..

    Any help pls...?
    i still experience the problem..?
    i found out the forulam that causes the problem as it is :
    ==========================================
    function CF_PREVIOUS RETURN Number is
              V_MATERIAL_HEIGHT1 NUMBER(40);
              V_MAX_SERIAL NUMBER(40);
              V_MAX_DATE DATE;
    BEGIN
              IF :SERIAL > 1 THEN
                   BEGIN
                                       SELECT MAX(SERIAL)-1
                                       INTO V_MAX_SERIAL
                        FROM PLN_TANK_TRANSACTION
                        WHERE TRANSACTION_DATE = :TRANSACTION_DATE
                        AND TANK_CODE = :TANK_CODE
                        AND MATERIAL_CODE = :MATERIAL_CODE;
                             EXCEPTION
                        WHEN NO_DATA_FOUND THEN V_MAX_SERIAL := 0;
                             END;
                        BEGIN
                             SELECT NVL(MATERIAL_HEIGHT,0)
                             INTO V_MATERIAL_HEIGHT1
                        FROM PLN_TANK_TRANSACTION
                        WHERE PLN_TANK_TRANSACTION.TRANSACTION_DATE = :TRANSACTION_DATE
                        AND PLN_TANK_TRANSACTION.TANK_CODE = :TANK_CODE
                        AND PLN_TANK_TRANSACTION.SERIAL = V_MAX_SERIAL
                        AND PLN_TANK_TRANSACTION.MATERIAL_CODE = :MATERIAL_CODE;
                   EXCEPTION
                        WHEN NO_DATA_FOUND THEN
                        V_MATERIAL_HEIGHT1 := 0;
                   END;
              ELSE --IF :SERIAL =  1 THEN
                        BEGIN
                             SELECT MAX(TRANSACTION_DATE)
                             INTO V_MAX_DATE
                   FROM PLN_TANK_TRANSACTION
                   WHERE TRANSACTION_DATE <=:TRANSACTION_DATE
                   AND TANK_CODE = :TANK_CODE
                   AND MATERIAL_CODE = :MATERIAL_CODE;
                        EXCEPTION
                        WHEN NO_DATA_FOUND THEN
                        V_MAX_DATE := NULL;
                        END;
                             BEGIN
                                  SELECT NVL(MATERIAL_HEIGHT,0)
                                  INTO V_MATERIAL_HEIGHT1
                                  FROM PLN_TANK_TRANSACTION
                                  WHERE SERIAL = V_MAX_SERIAL
                                  AND TRANSACTION_DATE = V_MAX_DATE
                                       AND TANK_CODE = :TANK_CODE;
                             EXCEPTION
                        WHEN NO_DATA_FOUND THEN
                        V_MATERIAL_HEIGHT1:= 0;
                             END;
         END IF;
         RETURN (V_MATERIAL_HEIGHT1);
    END;
         ------------------------------------------------------------------------------------------

  • Report "freeze" - while running through Appplication

    Hi folks,
    we have a report that runs fine through report builder and while running it through application except the one institute.
    In that institute, where data amount is even not as large as in testing database (or in any other institute), report freeze after while. When I run that report in this database through report builder then it's quick and without any problem - so I think it's not database problem, but could be some setting on report's server.
    We tried to extend cache size from original value 50. After increasing cache size in config file to 600 (in .../reports/conf folder rep_rerver.conf file <property name="cacheSize" value="600"/> ) report runs fine (there were no change in report on in testing data amount during all testing process) . Normal value that we have in other institutions (config files for other databases is 50 - where this amount is enough)
    We don't want lo leave this value on 600, but at the moment we don't know what other parameters can have something to do with it.
    Any ideas?
    Thanks,
    Tomas

    Hi Sudhir,
    Peoplesoft is an OEM Partner of ours and they support their product. We don't have it here so we can't help you.
    Please contact PS for support and mark this post as answered.
    Don

  • Problemas with reports: REP -1247

    I work with Reports Builder 9.0.4.0.21.
    When I run a report appears the following message:
    REP-1247: report contains uncompiled PL/SQL
    I´ve created the report, compile and run ok. Then I've saved the report and when I open reports builder and try to execute the report appears the error.
    What is the problem? I`ve compiled before saving the report
    May anyone help me?
    thanks in advance
    Beatriz

    I compile in pl/sql editor, and the reports run; but when I open the report again, the report is not compiled, and I go to Program->Compile->Whole, and I save the report. When I open the report again it is not compiled.
    I don´t have compile option in file->administration, is it wrong?
    Thanks
    Beatriz

  • Running reports stored in the database

    Hi guys,
    Is it possible to have Reports 6i produce reports that are
    stored in the database? Looking at the documentation, it would
    appear the report definition files (RDF) must be stored in the
    filesystem. I don't really want to be handing out filesystem
    access (managing and it) to people - is there a way around this?
    Thanks,
    denty.

    user5780461 wrote:
    Hi,
    Would anyone have any recommendations regrading running reports based on the data stored in an oracle database. We will soon go live with a project using an oracle DB. We do not wish to run reports directly from the production DB as it will impact performance. Have you actually measured the impact? If not, you are just making assumptions that -- lacking any other informatin -- appear to be invalid.
    Is there any recommended method/architecture for reporting suggested by oracle for this type of scenario?
    You make it sound like some unusual scenario. What you've described so far (running reports against an OLTP database) is just bread and butter operations for Oracle.
    One idea is too runs some scripts that will write the data to another database and from there we will runs out reporting queries. Are there any other potential solutions?
    And how does reading the data to insert into some other database cause less contention than reading data for a report?
    >
    Many thanks,
    Ro

  • Use same database logon as when report is run

    Is there a way to set the option for "When viewing report" to "Use same database logon as when report is run" for all reports?

    If scheduling we have schedule manager in XIR2 which will do a folder at a time, it's been added to the CMC in 3.x I believe.
    For running the reports I think you would need to use the [SDK|/community [original link is broken]; if if you wanted to modify a bunch of reports at the same time, or use the publishing wizard to publish a bunch of them (no use if the reports are already uploaded)
    Regards,
    Tim

Maybe you are looking for