Use the results of ore RQTableEval in a PL/SQL module

Documentation of ore RQTableEval show how to display the results in the form of a query using the syntax "SELECT * FROM TABLE (RQTableEval ( blah, blah ". "))"    I use the option 'select' for the third parameter of RQTableEval.

But how can I access this result within a PL/SQL module?  This syntax raises a compile error of

  • Error (76,32): PL/SQL: ORA-22905: cannot access the rows of a table not nested element

Open the speed for select * from table (rqTableEval ( blah, blah ))

where speed is a weakly typed SYS_REFCURSOR

I'm out of ideas/knowledge to solve this problem.

You might want to try display in space R Oracle here: R Technologies

John

Tags: Database

Similar Questions

  • iPhone 6s - while trying to search using the result of Safari a padlock before and nothing will be open

    using the iPhone 6 s last updated - when trying to search using the result of Safari a padlock in front of him and nothing does not open in the list below!

    Please wait until a fix is available at Apple.

    Best.

  • Using the result of the Action as input for one other Action - is not possible?

    Hello

    I have something I call the presentation. According to our phases of deployment, it will return the fields it is possible to select.

    Domain-> GetAction("com.companyxyz.presentation","getDomainsForDeploymentStage").call (#deploymentStage)

    Then I want to take a vlan backup according to the field

    VLAN-> GetAction("com.__companyxyz__.presentation","getBackupVlan").call (#deploymentStage, #Domain)

    However, the '#Domain' value is always zero in action script.

    If I use GetAction("com.__companyxyz__.presentation","getBackupVlan").call (#deploymentStage, "server.local"), it returns the expected value.

    Is there a limitation that I can't use the results as input for another action action?


    I use vRO 7.0

    Hello

    It's certainly doable.

    I guess deploymentStage, domain and vlan are the input parameters for the workflow, right? There are two things to check carefully:

    • First of all, make sure your actions getDomainsForDeploymentStage and getBackupVlan handle code values no entry script gracefully.
    • Then, it depends on what property of presentation you linked calls from these actions. It is by default? If so, please change it to data binding, default values are calculated only once, at the beginning of the presentation run, and it is possible that, currently, the deploymentStage value is always set to null. On the other hand, the data bindings are calculated on every time the fields that they depend on, so your actions can be called with null deploymentStage first, but then, when deploymentStage gets its real value, the data bindings will be calculated with the non null deploymentStage.
  • SQL how to use a variable and use the result as a reference for the name of the table

    Hi all

    I have new in the declaration of Oracle, sorry in advance if something is easy for you all. BTW, I have this scenario:

    I have a table OL structured in this way:

    Date - it contains dates, for example 11/01/2015

    TableName - it contains strings, for example, OL1, OL2, OL3 and so on...

    Then I have a different table, the name of these tables are of the same name in the table of the OL, so I have table table, OL1, OL2, OL3 table and so on. The structure of these tables is the same. And Yes.

    table OL1

    ---------------------------------------------------------------

    ID LAST NAME FIRST NAME PHONE

    ---------------------------------------------------------------

    1 JOHN DOE 12345679

    2 PAUL 111111122 TIBBS

    table OL2

    ---------------------------------------------------------------

    ID LAST NAME FIRST NAME PHONE

    ---------------------------------------------------------------

    1 ANNA KRAIG (NULL)

    NATHAN FRESHMANN 111111133 2

    If the scenario is clear, I would like to retrieve the value (null), research in all the OL * tables by using the value of the OL table (tablename) max.

    If I'm going to do these simple steps, I got the result:

    Select max (TableName) OL

    the result will be OL2

    # I know not how to use the option set to avoid changing the table name in the sql statement all the time.

    set mytable = 'OL2.

    Select Name, family name

    of & mytable

    When the phone is null

    Any idea?

    Thank you very much in advance.

    Hello

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    bulk collect into v_result_set

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null';

    dbms_output.put_line (v_ol);

    end;

    Correct the code such as:

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null' bulk collect into v_result_set;


    for i in v_result_set.first ... v_result_set. Last

    loop

    dbms_output.put_line ('LOG ID: ' | ) ( v_result_set.log_id (i)) ;

    dbms_output.put_line (' NAME CLOSELY: ' |) v_result_set.presentation_name (i));

    dbms_output.put_line (' START TIME: ' |) ( v_result_set.begin_time (i)) ;

    end loop;

    end;

    Kind regards.

  • How to use the result of widget radio selection to 'show' a text box?

    Hello again,

    I have a question about widgets.

    What I want to do is to take the result of radio button widgets (in this case 1 2 rather long sentences that were available) and which will display a text box on another screen.

    Background: I have a series of slides where I ask the questions of the learner through Radio button widgets and so I get a number of variables (= penalty) they choose.

    The question I have is that I want to display all the choices they made on 1 page. Because the possible answers are relatively long I have run out of space if I simply inserts

    variables to shown as such and/or the police gets too small.

    So my idea is to use the answer that they choose to make a text box with a shorter version of the same appearo of sentence on this slide 'results '.

    So my idea is to have the learner to make their selection, then use a tip action to check what answer (= the option button), they clicked on.

    What I would do through "If XYZ variable ' 'contains (a keyword of the long sentence)' then 'show textbox YZ' etc.

    Question 1: Is this the most simple/more convenient way or I can save me time somwhow?

    2 "contain" a medium of action adv. the exact text or it may be just one of the words (out of the long sentence that could be selected)? I ask because then I have to use the same long exact phrase in the NOA that seems awkward.

    3. I need to create a separate fast action for each radio widget, I've used. Is this correct?

    4 if I then say 5 adv. actions for different questions, I asked what should trigger these advanc. action? The goal is just to shorten the long sentences in the selections made?

    If I use ' enter' for all the screen I just started one, I haven´t?

    Many probably incorrect assumptions, on my part, I guess...

    Any help is greatly appreciated!

    In my example the var who will get the short sentence is v_class. It's always the variable associated with the interaction of radio buttons. You have as much of these variables to be inserted on the last slide you have interactions button radio please never enter the variable to insert, but use the X button in the role of composition of the properties panel for the text container. Variables are case sensitive, in this way, you will avoid typos.

  • Using the result of string_to_table in SQL

    Hello

    My apologies if this has already been answered - I couldn't get the right combination of search terms to find what I was looking for.

    I would like to know if there is a way to use the exit or APEX_UTIL.string_to_table directly in SQL without additional programming (I know I could create table type VARCHAR2 and CAST at a table - basically I wonder if this has already been done for you or not with the APEX).

    If the end query would be something like:
    UPDATE my_table
       SET column_a = 12345
     WHERE my_id_column IN (SELECT column_value FROM TABLE(APEX_UTIL.string_to_table(:P1_MY_MULTISELECTLIST)));
    Kind regards

    Gareth.

    Hi Dan/Gareth,

    You don't need to create a function to handle this (although it is usually best if you have large lists of conversion of a table).

    Take a look on: Re: report filters using lists Multi Select region

    Andy

  • How to use the Pivot function for range group in oracle SQL

    Hello

    Hello!!!

    I need to display the data in the format below. There are 2 columns 1 is State and another is rate.

    State < 100 100-199, 200-299 300-399 400-499, 500-599 600-699 700-799 800-899 900-999 > = 1000 Total
    AK 1 2 0 4 1 4 4 35 35 4 1 25
    AL 0 0 2 27 10 17 35 2 2 35 0 103
    AR 0 0 1 0 0 2 2 13 13 2 0 6
    AZ 0 1 2 14 2 14 13 3 3 13 0 57
    CA     0     0     1     6     2     7     3     4     4     3     0     34

    Developed the sub query but unable to use the beach on the pivot function. Please help on this.

    (select (SELECT short_description
    OF CODE_VALUES
    WHERE CODE_TYPE_CODE = ad. STATE_TYPE_IND_CODE
    AND VALUE = ad. STATE_CODE
    ) STATE,
    Nr.rate
    N-NEUTRAL
    c contacts,
    announcement of addresses,
    xref_contacts_addresses xca,
    neutral_rates nr
    where n.contact_id = c.contact_id
    and n.address_id = ad.address_id
    and xca.address_id = ad.address_id
    and xca.contact_id = c.contact_id
    and nr.contact_id = n.contact_id
    and nr.rate_frequency = 'HOUR')

    Like this

    with t
    as
    (
    select 'AL' state, 12 value from dual union all
    select 'AL' state, 67 value from dual union all
    select 'AL' state, 23 value from dual union all
    select 'AL' state, 12 value from dual union all
    select 'AL' state, 12 value from dual union all
    select 'AL' state, 78 value from dual union all
    select 'AL' state, 34 value from dual union all
    select 'AL' state, 4 value from dual union all
    select 'AL' state, 12 value from dual union all
    select 'AL' state, 15 value from dual union all
    select 'AZ' state, 6 value from dual union all
    select 'AZ' state, 123 value from dual union all
    select 'AZ' state, 123 value from dual union all
    select 'MA' state, 23 value from dual union all
    select 'MA' state, 120 value from dual union all
    select 'MA' state, 456 value from dual union all
    select 'MA' state, 11 value from dual union all
    select 'MA' state, 24 value from dual union all
    select 'MA' state, 34 value from dual union all
    select 'MA' state, 87 value from dual union all
    select 'MA' state, 23 value from dual union all
    select 'MA' state, 234 value from dual union all
    select 'MA' state, 789 value from dual union all
    select 'MH' state, 54321 value from dual
    )
    -- End of test data
    select state,
           nvl(count(decode(value, 0, 0)), 0) "<100",
           nvl(count(decode(value, 1, 1)), 0) "100-199",
           nvl(count(decode(value, 2, 2)), 0) "200-299",
           nvl(count(decode(value, 3, 3)), 0) "300-399",
           nvl(count(decode(value, 4, 4)), 0) "400-499",
           nvl(count(decode(value, 5, 5)), 0) "500-599",
           nvl(count(decode(value, 6, 6)), 0) "600-699",
           nvl(count(decode(value, 7, 7)), 0) "700-799",
           nvl(count(decode(value, 8, 8)), 0) "800-899",
           nvl(count(decode(value, 9, 9)), 0) "900-999",
           nvl(count(decode(value, 10, 10)), 0) ">=1000"
      from (
              select state, case when value < 100 then 0
                                 when value between 100 and 199 then 1
                                 when value between 200 and 299 then 2
                                 when value between 300 and 399 then 3
                                 when value between 400 and 499 then 4
                                 when value between 500 and 599 then 5
                                 when value between 600 and 699 then 6
                                 when value between 700 and 799 then 7
                                 when value between 800 and 899 then 8
                                 when value between 900 and 999 then 9
                                 when value >= 1000 then 10
                            end value
                from t
           )
     group
        by state
    
  • Equium M50: using the results of scan an error

    When I scan with all-in-one Officejet 6210, I often get an error when you try to use HP Image Zone to edit the scanned image.
    The scanner works OK, but when I accept the scanned image, it goes to the area of the Image and then I get this message to HP Image zone

    -Error message ' the program has encountered an unexpected error.:
    Object reference not set to an instance of object. "and then the area of the picture ends.

    I spent the weeks of work with the help of HP is trying to solve the problem and they even changed the printer/scanner now. It seems to be a problem on my EQUIUM M50 and I uninstalled and reinstalled the HP software several times. Is this a known problem and if so is there a workaround or some magical fix that I can download.

    Hello

    Sorry, but this is a foreign application and I can't think that there is something wrong with the laptop.
    The scanner works fine and it seems there is only the area of the Image that are some disorders.
    I assume you are using this application with digital images.
    What about other programs? You can try to search for freeware applications that do the same job. I sure that you will find enough of m.

    As mentioned this is not a program to my knowledge and Toshiba Toshiba doesn't support all the programs that are not designed by Toshiba or are not pre-installed on the image of Toshiba.

  • Almost all attempts to use the results of the internet in the TLS message, that all of these sites cannot be updated

    Mozilla will not let me connect to my own account. Cannot prevent all websites that they are more up-to-date. I see this as a problem of Mozilla.

    Just downloaded Ten Windows and it seemed OK with Firefox and Thunderbird until this problem. Mozilla - call me NOW
    +++ +++ ++++

    If you do not call I give up Firefox and go with Explorer...

    Edit: removed phone # public and robots to spammers. Sorry, but someone here or Mozilla does a on the support of a phone.

    Hi greyfox73plus, the error page usually shows a code in parentheses (separated_with_underscore_characters). Sometimes, you need to develop a technical Details section to find the code. Could you put one you get?

    Here is an example:

    The most common reason for many sites (sec_error_bad_signature) seems to be the shield of Web of Avast. Web Shield intercepts your navigation and filter, but to filter sites secure, it has "fake" certificates for Firefox.

    To test this theory, try disabling scanning of encrypted sites. I saw these steps in another post:

    1. Open the Avast dashboard on an affected system.
    2. Select settings in the left side menu.
    3. Adopt a Protection Active.
    4. Click on customize next to the Web Shield.
    5. Uncheck the option "Enable HTTPS analysis", and then click ok

    If that solves the problem, but you want to filter encrypted communication, you need to import the Avast! signature in Firefox Certificate Manager of certificates, References tab.

  • Using the results of the various reports to another

    Hello

    I have two reports including two different areas
    SA1 and SA2

    I have a report R1 in SA1 giving productid and stocklevel under certain conditions
    I have a report R2 in SA2 giving productid and stocklevel based on different conditions for the same productid which serves to R1

    Now I need remove the stocklevel for products

    That's I have to correspond to the R1.productid with the R2.productid and find the R1.stocklevel - R2.stocklevel.

    Is it possible to find them in the answers...


    Thank you
    Akila Mathon.

    Hello
    Go through this... will help you... http://gerardnico.com/wiki/dat/obiee/multiple_subject_area

    Kind regards
    Srikanth

  • Using the vs do-it-all formula in a sql

    As a beginner, I worked on some reports, and very often I need to decide whether to put the code in CF (formulas) vs in the main query.

    Using CF, the code is cleaner since the function is dedicated to a task, as do all the tasks in a single big sql will make it harder to read and maintain on the road.

    However, I am concerned about the degradation of performance regarding CF.
    First he CF is PL/SQL and SQL and PL/SQL execution at the same time involves the change of context.
    In addition, according to my colleagues, SEE run in report server, while SQL runs in the DB server. The IO involved between the two servers is also another penalty (or is it a kind of load balancing, which reduces the workload on the DB server)?

    Right now I'm trying to add CF as little as possible, as it is difficult to tighten requirements in the main SQL. I have made the right choice?

    Thank you very much.

    Hello

    You do think it rigth...

    http://download-UK.Oracle.com/docs/CD/B14099_17/bi.1012/b14048/pbr_tune.htm

    20.4.3 calculations
    In a report (either by summary columns or formulas), to ensure that most of the calculations is performed by the data source. In the case of SQL queries, the calculations are performed on the database rather than the data retrieved by the report. User-defined functions and stored procedures in the database can also be included in the select list of the query to a database Oracle or a JDBC query. It is more efficient to use a local function, since the calculated data is returned as part of the database of results.

    Concerning

  • How to use the record type as a parameter IN PL/SQL procedure or package

    Hi people,

    I need help on the record as the OUT parameter type. I am able to get out a single line as a parameter, but not getting do not idea how to get a multi ranks as output parameter.

    I have the code that works very well for a single line. Please see CODE1.

    But when I try to get several lines, I'm failing to do. Please see the CODE2. I get the error of compilation as


    Error report:

    ORA-06550: line 11, column 35:

    PLS-00487: Invalid reference to the variable "P_NAME.

    ORA-06550: line 11, column 1:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    Any help or a sample execution of script would be really useful.

    Thanks in advance.

    YZ

    --------------------------CODE1------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp

    WHERE ename = 'SMITH ';.

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    dbms_output.put_line ('YZ' | l_rec_type.p_name |') '|| l_rec_type.p_emp_id);

    END;

    ---------------------------------------------------------------

    -------------------------CODE2-------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp;

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    for l_rec in 1.l_rec_type.p_name.count

    loop

    dbms_output.put_line ('YZ' | l_rec_type.p_name (l_rec) |) » '|| l_rec_type.p_emp_id (l_rec));

    end loop;

    end;

    ---------------------------------------------------------------

    bb8c573a-6ca3-4d7c-90ed-e55c2df67201 wrote:

    But now, my question would be why the record type could not be used? My understanding is missing some concept between use of type type array collection record vs. Please specify.

    Do not confuse the folder with the collection.

    SY.

  • I used the inverse function for a palindrome bulk pl/Sql program, but it is said to declare the inverse function and my code is below! Please suggest me some friends of ideas and thanks in advance

    declare

    i_var varchar2 (30): = '& enter_string';

    Vout varchar2 (20);

    Start

    :=Lower(Reverse(i_var)) Vout;

    If lower (i_var) = vout can

    dbms_output.put_line ('this is a palindrome');

    on the other

    dbms_output.put_line ('this is not a palindrome');

    end if;

    end;

    I agree completely

    SQL > declare

    2 i_var varchar2 (30): = "& enter_string;

    3 vout varchar2 (20);

    4 start

    5 Select lower (reverse (i_var))

    6 in vout

    7 double;

    8 lower (i_var) = vout

    9. can

    10 dbms_output.put_line (i_var |) 'is a palindrome');

    11 other

    12 dbms_output.put_line (i_var |) (' ' is not a palindrome ");

    13 end if;

    14 end;

    15.

    Enter the value of enter_string: Bolton

    2 old: i_var varchar2 (30): = "& enter_string;

    2 new: i_var varchar2 (30): = 'Bolton ';

    Bolton is not a palindrome

    PL/SQL procedure successfully completed.

  • Using the research of CF &amp; quot; AS &amp; quot; Operator SQL

    I did search by keyword limited fields selected in MS Access and SQL Server for several years now. My research has always been in this format: "WHERE Title LIKE ' %#sKeyword #%". " They always seem to work. The only downside to this method is that any word that contains the sKeyword is returned because there is a % on both ends.

    What I discovered today, it was that this form also works: WHERE title LIKE ' %#sKeyword #'; that is, return any word that ends with the keyword. But the other Variant (WHERE title LIKE "#sKeyword #%"), where the % is on the end, will not work.

    Anyone has an idea why version will not work with the % on the end?

    As a related article, someone has an idea how you would search a long text for the sKeyword field; for example, it would be like doing a WHERE title LIKE "#sKeyword # I know that a search LIKE without any % will not return anything and I already do Verity searches and so I know about this method. I am looking for a simple way to find a whole word within a group of words in a single field.

    I have the same case here too and all cases seem to work exactly as I expected to do.

    Thanks again.

  • Using the Client result Cache

    Hi all

    I have a question about the use of the result of the client cache but first of all, here is the information on my database:

    SQL> SELECT * FROM v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    

    I installed the Oracle Client Tools on my clientmachine. There a tnsnames.ora like this:

    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = FEA11-119SRV)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl.local)
        )
      )
    
    

    The result of the Client Cache is configured in the sqlnet.ora.

    ADR_BASE = /u01/app/oracle
    OCI_RESULT_CACHE_MAX_SIZE= 2048000
    OCI_RESULT_CACHE_MAX_RSET_SIZE = 1024000
    NAMES.DIRECTORY_PATH = (EZCONNECT, TNSNAMES, HOSTNAME)
    
    

    The Databaseserver is configured like this:

    
    SQL> col name format a30
    SQL> col value format a30
    SQL> SELECT name, value
      2  FROM   v$system_parameter
      3  WHERE  name LIKE '%result_cache%';
    
    NAME                   VALUE
    ------------------------------ ------------------------------
    result_cache_mode           MANUAL
    result_cache_max_size           0
    result_cache_max_result        5
    result_cache_remote_expiration 0
    client_result_cache_size       1073741824
    client_result_cache_lag        3000
    
    

    After you set up a client's server, I try the SQL query on the clientmachine followign:

    sqlplus oracle/password@orcl
    
    set autotrace traceonly explain
    
    SELECT /*+ result_cache */ *
    FROM testtable;
    

    You cannot enable the customer with SQL result cache * more, no matter what you do with parameters. If you install the CD examples, you will find examples of code in cdemoqc.c and cdemoqc2.c that shows how with the OCI calls.

    You probably want to use the result of the server cache, there is a full demo of this here,

    Using the SQL Oracle 11g result Cache

    --

    John Watson

    Oracle Certified Master s/n

Maybe you are looking for

  • Satellite L300 - 20 d - recovery system disk backup is missing

    I have Norton Protection against viruses and when I backed up my laptop I saved the backup in the D drive which is partition backup drive...I want to factory reset the laptop but I can't do t it says can t find disk backup Is there a CD I can clean t

  • Why don't I see all the music on my mac on my apple tv?

    The only albums that appear on my apple tv are those purchased on iTunes, none of my old CDs are available that I have in my mac iTunes library is there a setting that would make available?

  • Problems with the HP Deskjet 3845 in Windows 7 installation

    I could not well my HP model on the list and Windows Update was unable to get a list of devices in Windows Update, when I tried to install the HP Deskjet 3845 manually in Windows 7.

  • Mini 311 does not start if the usb device is connected

    Hey, I just bought a HP Mini 311 and everything has been great so far except for this issue. Whenever I try to start the Mini 311 with my receiver Logitech wireless mouse connected by USB, the netbook will just freeze on the HP Logo.  When I unplug t

  • How to get system recovery disks

    original title: need to erase my hard drive to get rid of a virus, but the laptop did not come with disks in the system, because they were already installed on the laptop. What should I do? I bought a laptop computer three years ago and I had very li