Cursor in discoverer

I've searched this forum and have seen few people claiming to sucessfuly use curors in a select statement using TABLE function type.Can anyone provide the solution with a simple example.
Thanks In Advance

Hi Raj
Cursors are a PL/SQL technique and Discoverer cannot work with PL/SQL, only SQL. Anyway, cursors are like embedded parameters which are definite no-nos when it comes to creating functions for Discoverer to work with.
I hope this helps
Best wishes
Michael Armstrong-Smith
URL: http://learndiscoverer.com
Blog: http://learndiscoverer.blogspot.com

Similar Messages

  • Can we register a cursor type as a folder in discoverer....

    Hi,
    I have a function that returns a cursor type variable.
    It is possible in oracle reports to make a function call and capture the "return type" of cursor type as the input to the "datamodel" using "plsql query" option, instead of a table or a query.
    Do we have any option in discoverer to get a similar effect???
    I need to call a function which returns a cursor type variable as the input to the discoverer report. How can I achieve that in discoverer???
    Any input is appreciated.
    Thanks in advance,
    Kiran

    Hi,
    Cursor types are not supported by Discoverer or Reports. This is because Discoverer needs to know the number and format of the columns that are to be displayed in the report before the report is run.
    You can work around this by defining your own type and view where the function is called from within the view. Then import the view into Discoverer and use this view in your reports.
    Rod West

  • Having in proper cursor movement when view the discoverer output

    Hi all,
    When I try to view the discoverer output in the discovere desktop by using the keyboard tab key to move from one column to another column, the data was not displayed properly. It is just like not enough memory, but if I used the mouse to scroll then it was ok. What is the problem then ??
    I am using discoverer 9i.
    Thanks
    Lim

    Hi,
    This forum is for the Designer tool. You would be better off using the "Business Intelligence" Forum under the "Modules" heading.
    Regards,
    Steve

  • Discoverer - Report Scheduling

    Hi Friends,
    I have scheduled discoverer report. Now the status is "Running Query". Can we unschedule this report or need to kill oracle session.
    Even if i will kill the session will it take up the next scheduled report automatically.
    Pankaj

    Hi
    Your Discoverer Administrator can unschedule any future schedule so this will stop it being scheduled again.
    I appreciate that you may well know how to kill an Oracle session so I include the following for anyone who does not.
    To kill a current job, you or your DBA will need access to V$ views, V$SESSION, V$PROCESSS, V$SQLAREA. Also, V$OPEN_CURSOR will have all currently opened cursors.
    From V$SESSION you can get the SID and SERIAL#.
    SELECT
    SESS.SID,
    SESS.SERIAL#,
    SESS.OS_USER,
    SESS.PROGRAM
    FROM V$SESSION SESS;
    As a DBA, you can kill the session using the following command.
    ALTER SYSTEM KILL SESSION 'SID, SERIAL#'
    Note: SID and SERIAL# values are separated by a comma and are within single quotes.
    In some situations the Oracle.exe is not able to kill the session immediately. In these cases the session will be "marked for kill". It will then be killed as soon as possible.
    Issuing the ALTER SYSTEM KILL SESSION command is the only safe way to kill an Oracle session. If the marked session persists for some time you may consider killing the process at the operating system level. Killing OS processes is dangerous and can lead to instance failures, so do this at your own peril.
    It is possible to force the kill by adding the IMMEDIATE keyword:
    ALTER SYSTEM KILL SESSION 'SID,SERIAL#' IMMEDIATE;
    If you're interested in killing sessions at the operating system levele, here's a good link: http://www.dba-oracle.com/tips_killing_oracle_sessions.htm
    Best wishes
    Michael

  • Oracle Discoverer report shows drilldown icon in Web version

    Hi ,
    I am trying to create a new CROSS TAB Discoverer report. I made all my development done using the Discoverer desktop edition and is fine. When I saved in the database and showed the same report the User, in the Web Version, the report shows ' >' icon in all the cross tab headings and when the cursor is moved there, it gives an option to Drill down.
    We have 3 fields which are selected but not shown in the report. It shows the drill down to those 3 fields.
    My questions is:
    1. I should not allow users to drill down. It should not show that option.
    How to disable that option in the Web Version.
    Any help in this regard is highly appreciated.
    Thanks & Regards,
    Kiran Kesari

    Yogini is correct, but the solution provided will remove drill capability for all users under all circumstances. This is a "shortcoming" of Disco. If you set up a hierarchy for the users to use for drilling, the users must have the drill out privilege. This has the additional effect of adding the "Drill to related..." feature to most (and I believe all) columns.

  • How to install Discoverer 11g on Web Logic Server with Forms and Reports 11g Rel2

    Hello,
    We finally started to migrate from Oracle iAs 10g Release 2 to Oracle Forms and Reports 11g Release 2 using Web Logic. I don't see an option to install Discoverer on the server.
    My OS: windows 2008 R2
    Installed Web Logic 10.3.6
    Forms & Reports: 11.1.2.2.0_64 (64 Bit Forms)
    How do I install Discoverer Plus in 11g? All I can find is Discoverer 11g Desktop/Administrator to run on User work Station. We were using discoverer Plus in 10g iAS.
    Thanks
    Rao

    907485 wrote:
    Hi:
    I need to install oracle 11g from VNC viewer. The VNC is stalled on linux. I managed login. Now I have a screen that has some icons on the top like, Connection Options, "i", refresh, CTRl, ...
    under that I have
    Accept clipboard from viewers
    Send clipboard to viewers
    Send primary selection to viewers
    From the Connection Options window, I checked Hextile for Use encoding and Let remote server deal with mouse cursor.
    What is next? How do I connect to the server. (When I login I used hostname:1)
    Thankyou.we only know what you post.
    where does linux reside?
    where is VNC installed?

  • Discoverer Viewer Issue - IE7 - Parameter Popup Fails (Oracle JS issue?)

    OracleBI Discoverer Version 10.1.2.55.26
    I have created a report that has several parameters, each of which can be entered directly or by clicking a button to bring up a parameter selection popup. Each parameter popup displays an associated LOV.
    This works great in Discoverer Plus. It also works well in the HTML-based Discoverer Viewer using IE6. It does not, however, work in IE7.
    What happens:
    When using IE7 with Discoverer Viewer, I access a report with parameters and then click on the "flashlight" icon to the right of a parameter field to bring up the parameter popup. IE7 then:
    - Changes the cursor to an hourglass
    - Displays the following in the status bar: "Done, but with errors on page."
    - Stops doing anything else, leaving the cursor as an hourglass
    - Popup never shows up
    I assume that the cursor is stuck as an hourglass since the flashlight button must have a JavaScript "onClick" handler that executes a function to change the cursor prior to opening the new child window with the parameter LOV...and the cursor gets stuck when the JavaScript routine encounters an error. The cursor isn't my issue, but it is also annoying since my users will assume that the browser is doing something...and it is not.
    Regardless, if you click the status bar message, it displays the following JavaScript error:
    Line: 3609
    Char: 1
    Error: Object doesn't support this property or method
    Code: 0
    Oddly enough, if you then ignore the situation and click the "Go" button to run the report (using the cursor stuck as an hourglass), the report runs and as soon as it completes, the popup for the parameter THEN appears.
    As I said, the issue is with IE7 only. It works fine in IE6...and I don't have the popup blocker enabled in IE7.
    Any ideas? Thanks!
    Steve

    Hi
    Yes' you're right, the compatibility is for IE8 to IE7 and it does work very well - which I know is a red herring.
    I'll keep looking through my notes.
    From all of my notes, IE7 is supposed to work just fine with 10.1.2.3 (your version). I've been using IE7 for quote some time and I've never seen a JS error coming up in Viewer - Plus yes and many times.
    Some things I would try at this stage are:
    1. Delete your Java cache
    2. Make sure no popups are blocked
    3. Make sure cookies are enabled
    4. Try Mozilla and see if you get the same issue - will indicate if a machine issue or browser issue
    Best wishes
    Michael
    Edited by: [email protected] on Sep 13, 2010 3:54 PM

  • Sql representation for cursors

    I want to combine 3 complex sql statements parelely (column wise). All of them may have related fields or not.
    This can be implemented very easily with cursors.
    But I want that to be done by a sql statement to run on a tool like discoverer?
    If U want I can provide more details ... CONTACT ME ... soon

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Realy Need ([email protected]):
    I want to combine 3 complex sql statements parelely (column wise). All of them may have related fields or not.
    This can be implemented very easily with cursors.
    But I want that to be done by a sql statement to run on a tool like discoverer?
    If U want I can provide more details ... CONTACT ME ... soon<HR></BLOCKQUOTE>
    pl send the query if u can. u can use inline query to do it. but it entirly depends on the query. in inline query u can write a select statement in from cluse and access the mention column in your parent query. u can see this type of query in ocp dba sql-plsql book.
    null

  • Discoverer Plus hangs

    When working in Discoverer Plus, the cursor will hang and I won't be able to do anything else except for exit and save. Has anyone else had this problem?
    Thanks.

    We are on 4.1.40.2 We had a hang up problem.We did the following:
    1) In Options\General we have "run query automatically"
    2) In Options\Advanced uncheck "disable automatic querying"
    3) We also removed any background colour in page items.
    Our problem seemed to go away. Maybe we were just lucky.
    Good luck.

  • Window Sizing for Discoverer Desktop   -- version 10.1.2.45.46c

    I have something weird happening now with Discoverer desktop. I can only use it in Maximized screen mode. This just happened a few days ago.
    Any suggestions

    Did actually figure this out. These are the basic steps :
    Minimized the screen
    Clicked Alt and spacebar (this pops up a menu).
    Selected Move.
    Using cursor keys I arrowed down and right a couple of times (cursor starts in top left)
    Then I clicked on screen and the Desktop window showed up. I resized to where I wanted it.
    Did this process a couple of times until when I opened up a new window it came up to the size I wanted.

  • Killing Discoverer Session

    I need to kill discoverer sessions that are in the process of running queries. If I use the alter system kill session ' sid, serial#' immediate; , the session gets "marked for kill" and continues. I don't understand why it's getting marked for kill as it's simple select statements. Is there a way to immediately kill these sessions from the database?

    Hi
    You should be ok. In order to kill sessions you will need to have access to V$ views, V$SESSION, V$PROCESSS, V$SQLAREA. Also, V$OPEN_CURSOR will have all currently opened cursors.
    From V$SESSION you can then get the SID and SERIAL#.
    As a DBA, you can kill the session using the following command. The SID and SERIAL# values of the relevant session can then be substituted into the following statement:
    ALTER SYSTEM KILL SESSION 'SID, SERIAL#';
    Note: SID and SERIAL# values are separated by a comma and are within single quotes.
    In some situations the Oracle.exe is not able to kill the session immediately. In these cases the session will be "marked for kill". It will then be killed as soon as possible.
    Issuing the ALTER SYSTEM KILL SESSION command is the only safe way to kill an Oracle session. If the marked session persists for some time you may consider killing the process at the operating system level. Killing OS processes is dangerous and can lead to instance failures, so do this at your own peril.
    It is possible to force the kill by adding the IMMEDIATE keyword:
    ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;
    This should prevent you ever needing to use the orakill.exe in Windows, or the kill command in UNIX and Linux.
    This statement:
    SELECT
    S.SID, P.SPID, S.OSUSER, S.PROGRAM
    FROM
    V$PROCESS P, V$SESSION S
    WHERE
    P.ADDR = S.PADDR;
    will show you the sessions.
    The SID and SPID values of the relevant session can then be substituted into the following command issued from the Windows command line:
    orakill ORACLE_SID spid
    The session thread should be killed immediately and all resources released.
    To kill a session using UNIX / LINUX, first identify the session as shown above, then substitute the relevant SPID into the following command:
    % kill -9 spid
    If in doubt check that the SPID matches the UNIX PROCESSID shown using:
    % ps -ef | grep ora
    The session thread should be killed immediately and all resources released
    For more information, click here: http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
    Best wishes
    Michael

  • BIB-9010 Index Out-Of-range Discoverer Plus OLAP

    In dialog 'Edit Worksheet', clicked 'Dimensions', expanded 'Available' members and moved all items to 'Selected' members.
    Applied and save changes - no error.
    When trying to select a member from the dimension, keep getting error:
    oracle.dss.d4o.common.D4OException: BIB-9010 Index out of range in metadata cursor for edge, dimension, and index: 2, 2, and -1127087488.
    oracle.dss.util.SliceOutOfRangeException: BIB-9010 Index out of range in metadata cursor for edge, dimension, and index: 2, 2, and -1127087488.
    What is causing this error since generating it does error out, but vieweing does?

    There is a Discoverer patch for this issue - 5613003. You can download it from Metalink. I would check the bug listed matches the issue you are experiencing with your system.
    Hope this helps.
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog : http://oraclebi.blogspot.com
    DM Blog : http://oracledmt.blogspot.com

  • Determining the parameters passed in a Discoverer Report through SQL query

    Hi,
    I want to know the parameters passed in a Discoverer Report through a SQL query.
    i.e if we pass the Report name (Workbook Name) then we get the paramaters used .
    Is there any way we can do this.
    Any help will be really appreciated.
    Thanx in advance
    Ankur

    Hi
    You can indeed get the parameters from the EUL5_QPP_STATS table, although they are extremely difficult to get at.
    Look at this script:
    SELECT
    QS.QS_DOC_OWNER    USER_NAME,
    QS.QS_DOC_NAME     WORKBOOK,
    QS.QS_DOC_DETAILS  WORKSHEET,
    TRUNC(QS.QS_CREATED_DATE) DOC_DATE,
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,*
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1,  6)) ITEM1,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
    FROM
    EUL5_QPP_STATS QS--,
    --   APPS.FND_USER          USR
    WHERE
    --   QS.QS_DOC_OWNER = '#' || USR.USER_ID AND
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21*
    AND QS.QS_CREATED_DATE > '01-JAN-2007'
    What this does is return the first 20 items used in a worksheet. It does this by passing 6 characters at a time out of a cusror made up by concatenating QS_DBMP0 to QS_DBMP7 to get the Dimensions and then again by concatenating QS_MBMP0 to QS_MBMP7 to get the Measures. Having got that cursor it then takes each 6 characters and passes them to a nibble algorithm to decode the actual item. The code is extremely difficult to follow.
    I mention this because other fields in the same table are QS_JBMP0 to QS_JBMP7 which I believe are Joins, and QS_FBMP0 to QS_FBMP7 which look like Filters (aka parameters) being used. I think the QS stands for Query Statistics and BMP for bitmap. Somewhere in the EUL5.SQL script is the key to unlocking this.
    Good luck. The reason I say this will become apparent when you look inside EUL5.SQL.
    Best wsihes
    Mcihael

  • Open Pages from Discoverer Report

    Hi,
    Is there a way to invoke a webpage or even better, an oracle function (that links to forms or self-service) from a discoverer report row ?
    for example, I want a report for employees where the person looking at the report will click on the employee name and is taken straight to the person details page for that employee.
    Regards.

    Hi,
    You can create a link to a form function using fnd_run_function.get_run_function_url. You can create a calculation either in a view or using a calculated item in the EUL (you will have to map the get_run_function_url in the EUL to do this). You then set the content type property of the EUL item to FILE so that when the item is selected in the workbook it appears as a hyperlink.
    Most forms in apps except parameters so that you can pass the employee id to the form and the form will open up with the employee record. For example, if you are using a seed HR person form you create a calculation,
    fnd_run_function.get_run_function_url(3494      -- PERWSHRG-404
                                         ,800       -- HR
                                         ,fnd_global.RESP_ID     -- caller's responsibility
                                         ,0        -- Business Group
                                         ,         -- Parameters
         'P_PERSON_ID='||TO_CHAR(person_id, 'fm9999999999999')||
         ' P_EFFECTIVE_DATE='||TO_CHAR(SYSDATE, 'YYYY/MM/DD'))Rod West

  • Windows 7 displays error message when exiting +cursor issue

    Two issues here. CS5 Phoshop on Wind 7 64 bit.
    Physical processor count: 8
    Processor speed: 3073 MHz
    Built-in memory: 12279 MB
    Free memory: 9577 MB
    Memory available to Photoshop: 10934 MB
    Memory used by Photoshop: 80 %
    Image tile size: 128K
    First issue is since the latest automatic Adobe update (why fix what isn't broken?) Every time I now exit Photoshop I get the message "Adobe QT Server has stoped working" and occasionally it happens when I exit bridge. Indesign is also behaving badly. I can no longer start a previous document from file manager without ID crashing out.
    The other is the cursors in Clone and erase lose their edge (become invisable) for no reason - well not quite. Noise Ninja crashed Photoshop when I tried to use it. I reinstalled it and all is well. The cursor issue seems to be intermittant but came back (for no reason) after I reinstalled NN. I can't seem to change the cursor, no matter what I do. The problem is now seriously affecting how I work. Almost enough to go back to Win XP which ran CS5 Photoshop flawlessly.
    Any help will be gratefully accepted.
    Doug

    function(){return A.apply(null,[this].concat($A(arguments)))}
    doug87510 wrote:
    The recent problem is the entire outline of the cursor (including the crosshair in the middle) was missing at any size of cursor. All I had was exactly what I'd get if I used a real spraygun.
    Well, that issue is simply a matter of hitting the Caps Lock key.  When Caps Lock is on, you'll see the cursor outline, and when it is off you'll see a crosshair.  That's a feature, not a bug.
    Glad to hear the 11.1 drivers are out.  I will download them and try them now myself.
    Regarding "Adobe QT" crashing...  QT brings to mind QuickTime, though that is Apple, not Adobe.  Do you have Apple QuickTime installed?
    Regarding memory usage, with 12 GB of installed RAM, you should be able to set Photoshop to use 90% or more in Edit - Preferences - Performance.
    -Noel

Maybe you are looking for

  • How to get some of the records but not all of them in a query

    Hi there I have a query which returns the events that do not have the mrreceived as 'Y'. Am trying to find a way how we can rewrite the query that gives the events without mrreceived as 'Y" or mrreceived as null but the events with both of the combin

  • Site to site VPN re-connection issue

    Hi I done site -to -site VPN between two UC 560 and I am able to make call too. Both site I am using DDNS FQDN. Now I am facing these problems, 1. When ever any of the site gone down , it is taking around 45 minute to get reconnect the VPN.  2. With

  • Recovery from external hard disk

    Dear Hp representative, I have copied recovery file from recovery partition to external hard disk.  After that, I have deleted recovery partition and now I can't restore computer to factory settings. I have tried to make new recovery media but it say

  • BDC for MM02 - MRP area

    Hello everyone! I have developed a BDC program to batch input data into MM02 / MRP area. It's working perfectly fine when I use mode 'A' in CALL TRANSACTION statement, but when I change it to 'N', so I can give this for the customer to test, it stops

  • How can I copy and paste a local variable into a custom type?

    I have a container variable that I want to copy and paste into a custom data type. So I open TestStand's Type window, expand Custom Data Types then right click on <Right click to insert Type> and the Paste option in my popup menu is disabled. How do