Oracle Reports -  GROUPING_ID

Hello,
I'm creating a procedure in Oracle Reports.
The procedure has a query, which uses the in built function GROUPING_ID, with GROUP BY ROLLUP.
But the code does not compile.
Its says 'identifier 'GROUPING_ID' must be declared.
Where as the same query runs fine in TOAD.
Any ideas on this?
Thanks,
ARR

I don't believe Oracle Portal reports supports sql functions, how about creating a view of the query including your function and then basing the report on that?
Cheers,
Mick.

Similar Messages

  • Oracle Reports - PDF report

    I have a PDF report designed using oracle report builder 6i. This report has a margin that prints the total of all the quantities to be ordered via a QUOTE. If this report prints beyond one page, then the total will print on all the pages. Users do not want to see the total on all the pages but only on the last page. I really need to keep these total fields on the MARGIN section of the layout. Is there any way, i can still keep these fields on the margin and print them only on the last page of the report? The report builder do not let me set the 'print condition' as the 'last page' because it is in the margin section. Any idea on this issue??

    I would create a trigger for your MARGIN totals so they print only on the last page.
    Have the trigger return TRUE if current page = total pages, else return FALSE.
    This will make sure your margin totals are only visible on the last page.

  • XML Publisher Report in EBS without Standard Oracle Report

    Hi folks ,
    i have some questions.
    Can I create a XML Publisher Report for the EBS without a Standard Oracle Report in EBS.
    So that I can build up the files with the Desktop Publisher, create Data Definition / Template with Upload / Create the executable und concurrent and than only start the new program in EBS ?
    I have the situation that I can start my program with the template in the background but ít is searching for the report on the file system.
    Thanks in advance for the feedback.
    regards
    Kay

    Hi Ravi ,
    can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
    regards
    Kay

  • Unable to integrate Oracle Reports with Express--(To oracle Team also)

    Hi
    Unable to integrate Oracle Reports with Express. While defining
    the Express database connection using the olap connection editor
    iam getting the following error "Error locating the XCONEDIT.INI
    file. Try re-installing the software".
    what should be done?
    Atleat,If anybody has successfully connected to Express via
    Reports6i. Kindly give the details like what softwares to be
    installed in what HOME? and also other steps involved in the
    process.
    YOur help !!!
    kindly respond...(Oracle Team do respond with something)
    with rgds

    hello,
    check out the notes
    Note:112542.1
    Note:167049.1
    on oracle metalink for further information.
    if you still have issues, please contact oracle support services
    for furhter assistence.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Help needed for MySQL 5 database DSN less connection with Oracle reports

    Hi,
    I am using Oracle Develper Suite and java (J2EE) for my application. I am using MySql 5 as database tool. I want to use Oracle reports of Oracle Develper suite. I have created some reports by first creating system DSN for MySql database and then connect Oracle reports to that DSN by "jdbc:odbc" connection string provided in Oracle Report developer wizard. This is working fine.
    I want to generate reports without creating system DSN (DSN less) so that i can use my application on any computer without creating DSN for Oracle Reports. I am deploying my application on OC4j as "EAR" file.
    Help in this regard will be highly appreciated.
    Regards.

    Using an 8i client, you will need to configure the tnsnames.ora file with appropriate connection information if you are using local naming. If you are using host naming or something like an Oracle Names server to resolve TNS aliases, you can skip the tnsnames.ora configuration. A default installation of the Oracle client, though, will probably be using local naming.
    If the tnsnames.ora file is configured, or you have configured an alternate way of resolving TNS aliases, you should be able to use the connection string
    DRIVER={Oracle ODBC Driver};DBQ=<<TNS alias>>;UID=system;PWD=managerIf you wanted to move to the 10g client (the 10g Instant Client could be useful here), there are some streamlined naming methods that could be used instead of configuring the tnsnames.ora file.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Grouping in rtf template like oracle reports - a newbie question

    Hello all
    I am new to BI Publisher and have probablly a silly question to ask.
    I have a basic query that returns a flat xml file which looks something like this. it will have multiple rows.
    <ROWSET>
    <ROW num="1">
    <DATE>01-DEC-2007</DATE>
    <PACKAGE>XXX </PACKAGE>
    <DROP_OFF>Hotel1</DROP_OFF>
    <ROOM>1</ROOM>
    <NAME>Test Customer</NAME>
    <PROBLEM_RECORDED>N</PROBLEM_RECORDED>
    <EXCEPTION>1</EXCEPTION>
    </ROW>
    </ROWSET>
    Because i am fairly new to xml i am at a loss trying to work out how i can form a template that will effectively allow grouping at say
    1. Date Level
    2. Package Level
    3.Drop Off level
    4. put all other data in here
    In reports i would just do groups and alter the layout accordingly. Obviously if i had an oracle report version of the sql that generates the xml then i could just generate the xml from the report and i would get the xml i am looking for .
    But I am working with basic sql not reports and am wondering What do I have to do with my xml to get it looking live the grouping I mention above, given all i have to play with is the example xml I included. I am really bamboozled and think i am missing something simple.
    I dont want to have to write multiple queries with different groupings using cast , multiset as I thought one of the benefits of BI Publisher was one query multiple layouts.
    Thanks
    Lisa

    If you haev word plugin installed,
    please follow the documentation and try using that,
    load the xml in the word plugin
    and then select insert table/form and then you can do the drag and drop,
    and group by each fields.
    http://blogs.oracle.com/xmlpublisher/2006/10/30
    http://blogs.oracle.com/xmlpublisher/2007/10/30

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • ORACLE reports Build 10g - Data Model - query - If statement in Alias ?

    I have the following select statement. It has the alias Survivors, Deaths and "All
    With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
    Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
    SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
    T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
    FROM T_NTR_MULTIBAR
    WHERE INSTANCE_NUM = :P_INSTANCENUM
    order by ORDERS

    It is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.

  • 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 Reports 6i with Oracle 8.1.7?

    Solaris 7 (sparc)
    Oracle RDBMS 8.1.7
    Reports 6i (release 2)
    I am trying to install Reports 6i on a machine that has Oracle RDBMS 8.1.7 installed already. The last time I tried installing to the same ORACLE_HOME it corrupted all my executables. After reading the docs again, I noticed the Reports docs say Reports requires Orcle 8.0.6. I thought it might be better to install to a new ORACLE_HOME (/u01/app/oracle/product/8.0.6), however, there is no RDBMS installed there and the installer complains.
    Could someone offer some suggestions on how it should be installed in this type of environment. What steps should be followed to allow Oracle Reports 6i to co-exist peacefully on the same machine/ORACLE_HOME as the Oracle 8.1.7 instance.
    Thanks
    Phil Bolduc
    Sierra Systems Group Inc
    Vancouver, BC Canada http://www.SierraSystems.com/
    null

    I found the answer myself in an earlier post.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by The Oracle Reports Team:
    Reports 6i will connect to Oracle8i, however you need to connect over Net8 - i.e. on the database side, you need to set up the TNS listener to accept connections, and on the Reports side (which, incidentally, needs to be installed in a separate Oracle_home) you need to configure the tnsnames.ora file to connect to the 'remote' database (since it is in a different oracle_home, to all intents and purposes it may as well be on another machine - it's all considered 'remote').
    Regards
    The Oracle Reports Team http://technet.oracle.com <HR></BLOCKQUOTE>
    null

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • Oracle Reports 11.1.2 junk Arabic characters in PDF

    Hi guys,
    When I generate a report with Arabic characters, they appear as junk characters.
    I did the following:
    Set NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256
    Include C:\WINDOWS\Fonts in REPORTS_PATH (in the Registry: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OH258674538 )
    Open uifont.ali and set the font alias:
       [PDF:Subset]
       "Arabic Transparent"...Bold.. ="arialbd.ttf"
       "Arabic Transparent"="arialbd.ttf"
    Installed Arabic keyboard in Windows server that hosts Reports server
    Changed the location to United Arab Emirates in Windows
    Run the report with DESTYPE=FILE and DESFORMAT=PDF
    I also tried to change the font name of the field that contains the Arabic data in the report to things like: Tahoma, Arial, Courier New, but with no luck.
    Environment Specs:
    OS: Windows 2008 R2
    Oracle Reports 11.1.2 (installed on the top of Weblogic 10.3.6.0)
    Thanks in advance.

    hi,
    you have to touch following files.
    $ORACLE_HOME/guicommon/tk/admin/AFM
    $ORACLE_HOME/guicommon/tk/admin/AFM/Symbol.afm
    $ORACLE_HOME/guicommon/tk/admin/TTF
    $ORACLE_HOME/guicommon/tk/admin/uiprint.txt
    $ORACLE_HOME/guicommon/tk/admin/uifont.ali
    $ORACLE_HOME/guicommon/tk/admin/PPD/datap462.ppd
    $ORACLE_HOME/guicommon/tk/admin/PPD/screenprinter.ppd
    $ORACLE_HOME/bin/reports.sh
    convert your true type font to afm and copy ttf/afm files to respective directory
    regards

  • Open URL in Oracle Reports

    Hello Every one,
    I am using Oracle Reports 10G and would like to open a URL via Oracle reports. Basically, I am trying to open a weblink that is a pdf. Is this possible in Oracle reports?
    any documentation or help would be really appreciated.
    Regards

    Yes. You should be able to create a link on basically any field or text.
    You can create the somthing similiar in a program unit (property inspector >Advanced Layout>format triggers)
    BEGIN
    IF UPPER(xxx_xxx) = 'XXXXXX'THEN
    return('http://www.google.com')     
    END IF;
    END;
    OR
    You can just set the hyperlink to the appropriate url within the property inspector >Web Settings>Hyperlink

  • Perfomance of oracle report

    Hi,
    I am working on a oracle report. the report performance is very slow.
    Based on the requirement i have designed my data model in such a way that
    i used many formula columns & summary columns...
    Can some let me know how to tune the report. and increase its performance...
    Plz let me know if you guys need any more details.
    thnkq

    Hi,
    Formula columns are like subprogram, being called at the run time of the main query. They always degrade the report performance.
    following link shows the various ways to tune reports in detail:
    http://oracleapps4u.blogspot.com/2011/03/tuning-oracle-reports-6i-i.html
    http://oracleapps4u.blogspot.com/2011/03/tuning-oracle-reports-6i-ii.html
    Regards
    Edited by: 843698 on Mar 15, 2011 4:32 PM
    Edited by: 843698 on Mar 15, 2011 4:33 PM

  • Pl/sql vs oracle reports 6i

    Hi I am new to oracle development.
    My requirement is to create a text file periodically reading data from oracle tables.
    the client wants me to use oracle reports 6i and create a text file. they actually do not have a requirement for a report or this report will not be used in nay other way.
    the final output should be text file.
    i feel using utl_file package creating the text file on the server is a much better option. for this i thought writing a stored procedure and scheduling this procedure.
    please suggest me how i should convince. please give me suggestions in this. thanks in advance..mohan

    A while back all reports were just text files, what is the difference between a text report and a text file? If Oracle reports can do it go ahead. If you think it is overhead spool it from SQL*Plus, which as well as being an ad hoc query tool is actually designed as a text only report writer. If you want to you can still use a stored procedure that returns a ref cursor and just print and format the output in SQL*Plus however its wanted.
    Don't use util_file, its more code, slower, complicated, you can't just use SQL, you have to loop (though for some reason many programmers seem to see this as an advantage), it can only access the server, Its more suitable for diagnostics, tracing and logging, things the DBA would be interested in, not for the end user or external system interfaces.

Maybe you are looking for

  • Able to install Acrobat 9.1 over the pre-release build

    I am able to install Acrobat 9.1 over the pre-release build, however, the release notes say otherwise i.e. to un-install the pre-release build before installing the 9.1 release. Let me know whether to log a bug for the same.

  • Two questions regarding versions 1.5 and 2.0

    I am going back a few years I know, but can any subject matter expert coach me on two questions related to version 1.5 or 2.0? First, may I use these versions to place subtitles/captions into videos? Second, may I also either import prerecorded voice

  • More burning trouble

    Ok, so I redid my project in SD instead of HD but I'm still having trouble burning my DVD project. It says that the Video_TS folder was not included in the final disc. Any ideas? thanks

  • Sun Communications Services Resource

    Can anyone tell me what version of the Comm Suite does Sun Communications Services 1.1 in Sun Java System Identity Manager 7.1 support?

  • Missing Server Application?

    I went to make changes to my server, and the Server Application is misssing? Hows this possible? Any shortcut way to bring it back, or perhaps launch from terminal? Services still appear to be running correctly, everything else is fine, just cant fin