Guest column SQL limit values results filter

I have a prompt Filter column showing values based on sql: SELECT task. "" Saw_0 task name ' OF THE 'Project - Cost' ORDER BY saw_0. This sql works and shows all tasks. However, I would like to have this prompt limits based on the prompt. As the option of limited values.

Example: The user is prompted to select a project. The user has an lov and selects a project (s). Then, I would have the second guest with sql (SELECT task.) ("' Saw_0 name of the task" OF THE 'Project - Cost' ORDER BY saw_0) limit values selected on the first prompt. How do I would change sql to do this?

Thank you

If built correctly, you can check the checkbox 'Coercion' to the line of dashboard (you can not use a guest column for that!) and the task list would be forced by the selection of the prompt project.

Otherwise, you must the guests of dashboard (with 2 'Go' buttons).

The first prompt will have your projects you need to save a variable presentation, say pv_Project

In the second line, you click the drop-down "Show" menu and change to "SQL results. Then, you need to add at the end of the SQL statement, which suite:

WHERE the table. "Project = ' @{pv_Project}"

Tags: Business Intelligence

Similar Questions

  • OBIEE - SQL Expression filter does not at all - shows SQL but no result

    IM at my wits end for this

    I have a report where I use a filter with a simple SQL expression
    cast ( timestampadd(SQL_TSI_YEAR, -1, Cast(Cast(DATE '@{pv_as_of_date}{2013-04-01}' AS CHAR) AS TIMESTAMP) ) as DATE)
    If an end user can enter a date and it is passed into the filter through a variable

    pv_as_of_date

    This is set by default to 2013-04-01

    I want to subtract 1 year to make the final result

    2012-04-01

    When I run the report I see two problems

    (1) for displaying the filter at the bottom, I see the complete SQL code. This should not show that the returned date? In this case the filter should not show 2012-04-01?

    (2) the filter does not yet that is my biggest problem

    I tested the code above in a column and I KNOW the date is returned as expected

    But when I use the same SQL code in the filter then it does not work

    Am I missing some special button somewhere to allow SQL expressions?

    Any help hugely appreciated

    I don't see anything wrong in the expression, but when you might have questions

    Criteria over time. "' Academic year Desc" column-> filter-> Advanced-> convert it to SQL
    and use this expression.

  • Addition of virtual column: ORA-12899: value too large for column

    I am using Oracle 11g, OS Win7, SQL Developer

    I'm trying to add the virtual column to my test table, but get ORA-12899: value too large for column error. Here are the details.
    Can someone help me in this?
    CREATE TABLE test_reg_exp
    (col1 VARCHAR2(100));
    
    INSERT INTO test_reg_exp (col1) VALUES ('ABCD_EFGH');
    INSERT INTO test_reg_exp (col1) VALUES ('ABCDE_ABC');
    INSERT INTO test_reg_exp (col1) VALUES ('WXYZ_ABCD');
    INSERT INTO test_reg_exp (col1) VALUES ('ABCDE_PQRS');
    INSERT INTO test_reg_exp (col1) VALUES ('ABCD_WXYZ');
    ALTER TABLE test_reg_exp
    ADD (col2 VARCHAR2(100) GENERATED ALWAYS AS (REGEXP_REPLACE (col1, '^ABCD[A-Z]*_')));
    
    SQL Error: ORA-12899: value too large for column "COL2" (actual: 100, maximum: 400)
    12899. 00000 -  "value too large for column %s (actual: %s, maximum: %s)"
    *Cause:    An attempt was made to insert or update a column with a value
               which is too wide for the width of the destination column.
               The name of the column is given, along with the actual width
               of the value, and the maximum allowed width of the column.
               Note that widths are reported in characters if character length
               semantics are in effect for the column, otherwise widths are
               reported in bytes.
    *Action:   Examine the SQL statement for correctness.  Check source
               and destination column data types.
               Either make the destination column wider, or use a subset
               of the source column (i.e. use substring).
    When I try to, I get the correct results:
    SELECT col1, (REGEXP_REPLACE (col1, '^ABCD[A-Z]*_'))
    FROM test_reg_exp;
    Thank you.

    Yes, RP, it works if you give col2 size > = 400.

    @Northwest - could you please test the same w/o having a clause of regex in col2?
    I have a doubt about using a REGULAR expression in this case Dynamics col.

    Refer to this (might help) - http://www.oracle-base.com/articles/11g/virtual-columns-11gr1.php
    Below excerpt from above link... see if that helps...
    >
    Notes and restrictions on the virtual columns include:

    The indexes defined on the virtual columns are equivalent to a function-based index.
    Virtual columns can be referenced in the updates and deletions WHERE clause, but they cannot be manipulated by DML.
    The tables containing virtual columns may still be eligible for result caching.
    Functions in expressions must be deterministic when the table is created, but can then be recompiled and non-deterministic without for as much invalidate the virtual column. In such cases, the following steps must be taken after the function is recompiled:
    Constraint on the virtual column must be disabled and re-enabled.
    On the virtual column indexes must be rebuilt.
    Materialized views that access the virtual column must be fully refreshed.
    The result cache must be flushed if the virtual column acceded to the request (s).
    Statistical table must be regathered.
    The virtual columns are not supported for the organized and external object in index, cluster or temporary tables.
    The expression used in the virtual column definition has the following restrictions:
    It cannot refer to another virtual column by name.
    It can refer to the columns defined in the same table.
    If it refers to a deterministic user-defined function, it cannot be used as a partitioning key column.
    The result of the expression must be a scalar value. It cannot return that an Oracle supplied the data type, a type defined by the user, LOB or LONG RAW.
    >

    Published by: Vanessa B on October 16, 2012 23:48

    Published by: Vanessa B on October 16, 2012 23:54

  • have a column that has values separated by commas... and I'm s

    Have a column that has values separated by commas... and I'm trying to separate.
    I am trying to create a stored procedure... The 11g xe version. apex .and version 4...
    Here is the part of the code... I can't do a procedure. causes my intervention consist with the clause...

    create or replace procedure ins_adv_invoice
    (mmagazine_no number, madvtno number, missueno number, varchar2, varchar2, varchar2 msalesman_code mpagenumber msection)
    is

    cursor cx is with testa as
    (select name of the advertiser pagenumber)
    Select regexp_substr (pagenumber, ' [^,] +', 1, rownum) result
    the advertiser
    connect by level < = length (regexp_replace (pagenumber, ' [^,] + "")) + 1
    where advt_no = madvtno;


    Start
    for xxx CX
    loop
    insert into adv_invoice (magazine_no, advtno, adissue, section, opinion, salesman_code)
    values (mmagazine_no, madvtno, missueno, msection, xxx.result, msalesman_code);

    end loop;

    end;


    But when I run the present... it creates no procedure. . I receive he following error...
    LINE/COL ERROR
    -------- ----------------------------------------------------
    5/14 PL/SQL: statement ignored
    9/69 PL/SQL: ORA-00933: SQL not correctly completed command
    SQL >
    Still not able to understand... If anyone can help...
    Thank you

    Change the query to swap the last two lines:

    ...
    cursor cx is with testa as
    (select pagenumber name from advertiser)
    select regexp_substr(pagenumber, '[^,]+', 1, rownum) result
    from advertiser
    where advt_no = madvtno
    connect by level <= length(regexp_replace(pagenumber, '[^,]+')) + 1;
    ...
    
  • How to update columns with the value of other lines in the same table

    Hello

    I use Oracle 11.2, I'd use SQL statements to update a column based on values in other rows in the same table. Here are the details:

    create table TB_test (number 4 myId, crtTs date, date of MDPU);

    insert into tb_test (1, to_date ('20110101', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110201', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110301', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110901', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110902', 'YYYYMMDD'), null);

    After you run the SQL code, I would like to have the following result:

    1, 20110101, 20110201
    1, 20110201, 20110301
    1, 20110301, null
    2, 20110901, 20110902
    2, 20110902, null

    Thanks for your suggestion.

    I guess you need this, otherwise please explain logic correctly:

    SQL> merge into tb_test t
      2  using (
      3    select rowid as rid
      4         , lead(crtts) over(partition by myid order by crtts) as updts
      5    from tb_test
      6  ) v
      7  on (t.rowid = v.rid)
      8  when matched then update
      9   set t.updts = v.updts
     10  ;
    
    5 rows merged.
    
    SQL> select * from tb_test order by 1,2;
    
          MYID CRTTS     UPDTS
    ---------- --------- ---------
             1 01-JAN-11 01-FEB-11
             1 01-FEB-11 01-MAR-11
             1 01-MAR-11
             2 01-SEP-11 02-SEP-11
             2 02-SEP-11
    
  • The coldfusion.sql.QueryTable value cannot be converted to a number

    Hello

    I have two queries, in two different functions, who both return the SUM of a column based on the values of the arguments

    I need to subtract query from a query of 1 2.

    The arguments for the two motions are passed using the CreateObject function

    < cfset qry1 = createObject ("component", "components.adminobjects"). Func1(#argument1#,#argument2#) >

    < cfset qry2 = createObject ("component", "components.adminobjects"). Func1(#argument1#,#argument2#) >

    Queries executed accordingly and returns the results accordingly.

    The problem occurs when I try to calculate by subtracting the 2nd request form 1.

    So, to get the results I need, that's what I do:

    < cfset results = ' #qry1.sum # '-' #qry1.sum2 # ' >

    < cfoutput > #results # < / cfoutput >

    When I do this, it is said:

    The coldfusion.sql.QueryTable value cannot be converted to a number

    I don't understand, it is because when I exit #qry1.sum # or #qry1.sum2 # I get the numbers right and they are numbers, but when I do some math on them, I get the error.

    Any ideas?

    Thank you.

    Assuming that the qry1 object has a column named "sum1" and "sum2" try:

    Also note that the "sum" is a reserved word, try to change the column "sum" "sum1".

    http://help.Adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec173d0-7F ff.html

  • update of NULL in the column with the values of the adjacent column

    Examples of data

    with test_data as
    (select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual
    union all
    select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual)
    select * from test_data;
    

    This is one of those cases, the case may be where any value of a column can be null

    or two similar columns can be null. If the column is null then I want to update the adjacent column

    average value of the column, if the first column is null so I want to take the next non-null column and update, if the last column is null

    so I want to take prev not zero column and to update.

    In this case would be my expected output

    Un Two Three Four Five Six
    11.52566
    123566

    Prospects for the future the suggesion or advice.

    Or, using Analytics:

    SQL> with test_data (id, one, two, three, four, five, six) as (
      2    select 1, 1   , null, 2   , 5, 6, null  from dual union all
      3    select 2, 1   , null, 3   , 5, 6, null  from dual union all
      4    select 3, 1   , null, null, 5, 6, null  from dual union all
      5    select 4, null, null, null, 5, 6, null  from dual
      6  )
      7  select *
      8  from (
      9    select id
     10         , cell
     11         , case when next_nn is not null and prev_nn is not null
     12             then (next_nn + prev_nn)/2
     13             else nvl(next_nn, prev_nn)
     14           end val
     15    from (
     16      select id
     17           , cell
     18           , val
     19           , last_value(val) ignore nulls over(partition by id order by cell) as prev_nn
     20           , first_value(val) ignore nulls over(partition by id order by cell range between current row and unbounded following) as next_nn
     21      from test_data
     22      unpivot include nulls (val for cell in (one as 1, two as 2, three as 3, four as 4, five as 5, six as 6) )
     23    )
     24  )
     25  pivot ( min(val) for cell in (1 as "ONE", 2 as "TWO", 3 as "THREE", 4 as "FOUR", 5 as "FIVE", 6 as "SIX") )
     26  ;
    
            ID        ONE        TWO      THREE       FOUR       FIVE        SIX
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
             1          1        1,5          2          5          6          6
             2          1          2          3          5          6          6
             3          1          3          3          5          6          6
             4          5          5          5          5          6          6
    
  • V$ SQL shows erratic results for extract folder

    Hello

    I came across a scenario where the gathering statistical table checking its value of cursor.

    I have here for the first time (line 02) queries the table V$ SQL I have only one entry of the cursor.

    And then when I again run same sql and checked V$ SQL again what I got is another record (line 27) for the same SQL_ID.

    Yet once I check it twice more, but all I got is only two records.

    I was questioning this table for this kind of scenario for a week.

    But this is the first time I've had two records in the table V$ SQL for same SQL_ID

    Your contribution would be very appreciated.

    SQL> --See first excution, it'll illustrate Hard parse, first load and execution
    SQL>  select count(1) from foo31;
    
    
      COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
            23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    
    
    SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';
    
    
    CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    ------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    
    
    SQL> --Second excution, then showed soft parsing
    SQL> select count(1) from foo31;
    
    
      COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    ----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
            23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    
    
    SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';
    
    
    CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    ------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    
    
    SQL>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    You did not include the sql code in your query. How do we know that you don't see two pieces of identification different sql in your results?

  • How to track a condition physical sql not in the filter

    Hello

    I created a simple analysis based on finance - GL balance sheet with columns like company, fiscal year, Fiscal Quarter and Cash (Fact - check). When I run the analysis, I had these physical conditions of SQL not in the filter at all. How to track where these conditions are defined as TRANSLATED_FLAG = ' not ?

    Thank you

    New kid in bi

    Select T111515.ORG_NUM as c3,

    trim (both ' ' of T146058.) LEDGER_CATEGORY_CODE) as c4.

    T156337. MCAL_PERIOD_NAME like c5,

    T156337. MCAL_PERIOD as c6,

    T156337. MCAL_PERIOD_WID in c7,

    sum (case when T102174.) GROUP_ACCOUNT_NUM = '110' then T134466. End BALANCE_LOC_AMT) as c8.

    sum (case when T102174.) GROUP_ACCOUNT_NUM = '300' so T134466. End BALANCE_LOC_AMT) as c9.

    T156337. ROW_WID in c10

    Of

    W_MCAL_DAY_D T156337 / * Dim_W_MCAL_DAY_D_Fiscal_Day * /,.

    W_LEDGER_D T146058 / * Dim_W_LEDGER_D * /,.

    W_GL_GROUP_ACCOUNT_D T102174 / * Dim_W_GL_GROUP_ACCOUNT_D * /,.

    W_INT_ORG_D T111515 / * Dim_W_INT_ORG_D_Company * /,.

    W_GL_BALANCE_A T134466 / * Fact_Agg_W_GL_BALANCE_A * /.

    where (T102174. ROW_WID = T134466. GROUP_ACCT_WID

    and T111515. ROW_WID = T134466.COMPANY_ORG_WID

    and T134466. BALANCE_DT_WID = T156337. ROW_WID

    and T111515.COMPANY_FLG = 'Y '.

    and T134466. TRANSLATED_FLAG = ' no

    and T134466. LEDGER_WID = T146058. ROW_WID

    and (T102174. GROUP_ACCOUNT_NUM in ('110 ', ' 300')))

    Group

    T111515.ORG_NUM, T156337. ROW_WID,

    T156337. MCAL_PERIOD_WID,

    T156337. MCAL_PERIOD_NAME,

    T156337. MCAL_PERIOD, trim (both ' ' of T146058.) LEDGER_CATEGORY_CODE)

    Check in the layer of MDB, properties of the respective table source.

    Thank you

    Srini vieren

  • For the MONEY and to break on a column SQL query

    Hello

    I have a situation where the data in the table are as below

    AA

    BB

    1

    FG

    1

    FG

    1

    FG

    2

    SS

    1

    FG

    I need to write a sql query that would give output like below. Basically, it must break BB of the column and the value of the sum up to what it breaks.

    AA

    BB

    3

    FG

    2

    SS

    1

    FG

    Please suggest.

    Thank you

    Shankar

    Hello

    770914 wrote:

    Hello

    I have a situation where the data in the table are as below

    AA

    BB

    1

    FG

    1

    FG

    1

    FG

    2

    SS

    1

    FG

    I need to write a sql query that would give output like below. Basically, it must break BB of the column and the value of the sum up to what it breaks.

    AA

    BB

    3

    FG

    2

    SS

    1

    FG

    Please suggest.

    Thank you

    Shankar

    Remember, there is no order integrated to the rows in a table.  The table you have posted is exactly the same as:

    AA bb

    --    --

    1 FG

    1 FG

    2 SS

    1 FG

    1 FG

    and both are exactly the same as:

    AA bb

    --    --

    2 SS

    1 FG

    1 FG

    1 FG

    1 FG

    If you use words like 'first', 'previous' or 'row' when it comes to lines, then we must define what these words mean.  This is usually done by making reference to a column in the table.  For example, if you had a column called r_num, like this:

    AA bb r_num

    --    --    -----

    1 FG 1

    1 FG 2

    1 FG 9

    2 SS 10

    1 FG 10.5

    Then, it would be wise to say things like 'the table starts with 3 lines consecutive "FG", followed by "SS".  After that there is another "FG", which is the last line in the table, WHEN TRIE BY R_NUM.   If the part about "WHEN SORTED BY R_NUM" is not known, the words 'begins '. "consecutive", 'followed', 'after' and 'last' have no meaning.

    If (and only if) you have somehting like r_num in your table. Then you can get the resutls you want like this:

    WITH got_group_num AS

    (

    SELECT aa, bb, r_num

    ROW_NUMBER () OVER (ORDER BY r_num)

    -ROW_NUMBER () OVER (PARTITION BY bb

    ORDER BY r_num

    ) AS group_num

    FROM table_x

    )

    SELECT SUM (aa) AS total_aa

    ,         bb

    OF got_group_num

    GROUP BY bb

    group_num

    ORDER OF MIN (r_num)

    ;

  • return the names of columns which line values are not null.

    Hi I m a new db admin guy, and I need a sql script that should return the names of columns of the given table. and the returned column must be the value (fyi - if the column contains the value null column name would not come to the o/p of sql).
    Exmple:
    name of the table - A
    fresh status s.no name brand
    1 null aa 45P
    paid 2 null bb 30
    3 cc paid 35P

    (FYI - 1) if I give the table name (A) and s. n. (2) o/p should be - name, mark.
    (2) if I give the status of tablename (A) and s. n (1) the o/p should be - name, brand.

    Thank you
    Krishna.

    Published by: user13294228 on June 14, 2010 22:54

    BTW,
    The previous solution is for all values of the column, if you want a specific line, you can add it in where clause.
    I mean in your example, it you look like:

    SET serveroutput on;
    
    DECLARE
       l_cnt          NUMBER;
       l_str          VARCHAR2 (255) := '';
       l_table_name   VARCHAR2 (255) := 'YOUR_TABLE_NAME';
       l_col_cond     VARCHAR2 (255) := 'S_NO';
       l_val          NUMBER         := 1;
    
       CURSOR c_col
       IS
          SELECT column_name
            FROM user_tab_columns
           WHERE table_name = l_table_name;
    BEGIN
       FOR i IN c_col
       LOOP
          EXECUTE IMMEDIATE    'SELECT COUNT ('
                            || i.column_name
                            || ') FROM '
                            || l_table_name
                            || ' WHERE '
                            || l_col_cond
                            || ' = '
                            || l_val
                       INTO l_cnt;
    
          l_str := l_str || CASE
                      WHEN l_cnt = 0
                         THEN ''
                      ELSE i.column_name
                   END || ',';
       END LOOP;
    
       l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
       DBMS_OUTPUT.put_line (l_str);
    END;
    

    Saad,

    Published by: S.Nayef on June 15, 2010 11:54

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • How can I multiply all values of an array of 4 elements, with all its opposite values, resulting in an array with all 16 products?

    I'm quite new to LabVIEW (v.8.0) and I'm trying to understand the best way to have a table of 4 elements multiplied by its inverse values, resulting in an array of 16 elements

    Values of table 1 = 1, 2, 3, 4

    Values of table 1 reverse = 0.5, 0.33, 0.25, 1

    Resulting table = (0.33 0.25, 0.5, 1, 2, 1, 0.66, 0.5, 0.75, 1, 1.5, 3, 1.32, 4, 2, 1)

    Any advice would be appreciated. Thank you!

    You can try something like the following (the last operation is "reshaping table")

  • PXI-6120 HAVE values only show the low limit values

    Hello, I use a PXI-6120 with traditional DAQ driver module screws switch a signal of AI to a PFI channel that allows synchronization of area of OCCUPANCY the AI. In order to measure a single channel of AI with the same set-up, I stopped the criterion VI and tried to see the only measure max. Unfortunately, I opened a task DAQmx, I created for another application, which does not work probably because I have not reset the card after the stop of the VI. Since then, readings of IT are all flat on the lower limit values and the OD has remained at about 0.2 volts any value I write for her. In the meantime, I tried to reset and to recalibrate the device, which worked in DAQ and DAQmx (not the self-calibration in mx). But I have the impression, that the Council has kind of stuck in a State that I can't easily find and/or access. Does anyone have an idea, how can I do a factory reset, or what could be the problem? Greetings! Olli


  • Incorrect SQL % RowCount value

    Hello.

    I created dblink of Oracle 11 g (11.2.0.4.3) for Sybase ASE database (15.5) using gateway of Oracle database for Sybase (11.2.0.4.3) on x 64 OEL (6.5).

    When I make changes to a remote table with triggers and use the variable in the WHERE clause, SQL % RowCount value is miscalculated.
    Found the antidote on the side of Sybase - the use of "set nocount on" within a trigger.
    Is there a solution on the side of Oracle (database or gateway)?

    Detailed description is given below:

    Description table and relaxing 1) (Sybase)
    create table test_TR)
    identity of whole ID,
    oper_id integer not null,
    counter integer not null,
    constraint XPKtest_TR primary key clustered (id))
    go
    insert into test_TR (oper_id, meter) values (1,10)
    insert into test_TR (oper_id, meter) values (2.21)
    insert into test_TR (oper_id, meter) values (2.36)
    go

    create trigger tUtest_TR on test_TR for UPDATE as
    Start
    declare @numrows int
    Select @numrows = @@rowcount
    return
    error:
    RAISERROR 31000 "UPDATE."
    ROLLBACK transaction statement
    end
    go

    (2) description gateway (gateway)
    HS_FDS_CONNECT_INFO=xxx.xxx.xxx.xxx.xxx:XXXX/test
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = *.
    HS_FDS_TRANSACTION_MODEL = COMMIT_CONFIRM
    HS_FDS_TRANSACTION_LOG = HS_TRANSACTION_LOG
    HS_FDS_RESULTSET_SUPPORT = TRUE
    HS_FDS_PROC_IS_FUNC = FALSE

    (3) description Dblink (Oracle)
    CREATE DATABASE LINK PUBLIC 'SYB_TEST' CONNECT TO ' * ' IDENTIFIED by ' * ' using 'SYB_TEST ';

    (4) test query (Oracle)
    declare per_id digital;
    Start
    Update "test_TR"@SYB_TEST "counter" value = "counter" + 1 where 'oper_id' = 0;
    dbms_output.put_line ('0 rows =' |) SQL % number of lines);
    PER_ID: = 0;
    Update "test_TR"@SYB_TEST "counter" value = "counter" + 1 where 'oper_id' = per_id;
    dbms_output.put_line ('0 rows =' |) SQL % number of lines);
    Rollback;
    end;
    /

    0 rows = 0
    0 line = 1

    Thanks in advance for any information!

    filed Bug 19844303 - SQL % ROWCOUN RETURNS a VALUE INCORRECTE

Maybe you are looking for

  • Upgrade to ElCapitan. Can join is no longer docs to e-mail.

    When I try to attach documents (Word or PDF) to an email... it takes a long time when I see "joining documents" on my screen. When that ends, and I try to send the e-mail, told me to wait that the documents have finished loading. There are never any

  • IPP swipe multitasking issues in landscape

    All new IPad Pro (IPP) bought yesterday on February 7, and while in the landscape with the home button on the right, the right slide to activate the split screen or side by side don't not work reliable if at all. It would be the normal position if I

  • ITunes on the iphone (iOS 9.2) 6s move then follow

    When I am listening to music on my iPhone - iTunes continues to play the same song again and again. It does not move to the next track, or it back to another track. This happens for albums, playlists and playing the entire library. Shuffle does nothi

  • Two tasks to trigger a simple analog trigger signal

    I use the 6351 and have two tasks: AnalogInputTask has 3 channels of I AnalogOutputTask has 1 channel AO When I created these two tasks to trigger a single digital channel, I have no problem. But when I want to use an analog trigger, I get error 5010

  • Spectrum 360 HP: HP spectrum 360 clikpad

    I try to remove the use of the option to zoom on my Hp spectrum X 360 clickpad It works but when I close my laptop, the zoom option always come back.  Is this normal? Thank you