function not returning object table properly

Rather than return a table, my function returns this:

SCHEMA_OWNER. TBL_SUMS ([SCHEMA_OWNER. SUMS_OBJ])

Did anyone see a syntax error in my function or the DOF of my table and object types?

It is a stripped down, simplified version of my function:

create or replace FUNCTION "F_TEST" (number of p_skey, p_start_date date, p_end_date date)
RETURN tbl_sums

IS

tmp_A NUMBER;
tmp_B NUMBER;

l_tbl tbl_sums: = tbl_sums();

BEGIN

SELECT SUM (FieldA), SUM (FieldB)
in tmpA, tmpB
FROM MaTable where SKEY = p_skey
and DATE_VALUE > = p_start_date
and DATE_VALUE < p_end_date;.

l_tbl.extend;
l_tbl (l_tbl. (Count()): = sums_obj (p_start_date, p_end_date, p_skey, tmpA, tmpB);
Return l_tbl;

END;

My models are:

create or replace type sums_obj is object (DATE start_date, end_date DATE, skey NUMBER, SumA, SumB NUMBER);
create or replace type tbl_sums is table of the sums_obj;


Thank you!

>
RETURN tbl_kpi
>
What is 'tbl_kpi '? Which is not defined anywhere. Your original post said:
>
RETURN tbl_sums
>
We cannot help you if you don't publish what you actually use. Cut & paste is ok, but you have to paste the correct code.

Your function returns a TABLE, but it is NOT in the PIPELINE. For example, if you query the DOUBLE function you will get a DATASET as a result.

If you query the function AS A TABLE, you will get the "content" of the table.

If you make your function a PIPELINED function then you use PIPE ROW to return each line but the function is always declared to return a TABLE. This is perhaps what is confusing you.

Try the following code to see what the difference is.

Here are two SQL types based on the EMP table in the scott schema.

-- type to match emp record
create or replace type emp_scalar_type as object
  (EMPNO NUMBER(4) ,
   ENAME VARCHAR2(10),
   JOB VARCHAR2(9),
   MGR NUMBER(4),
   HIREDATE DATE,
   SAL NUMBER(7, 2),
   COMM NUMBER(7, 2),
   DEPTNO NUMBER(2)
  )
  /

-- table of emp records
create or replace type emp_table_type as table of emp_scalar_type
/

Now - here's a function (similar to yours) that returns him EMP_TABLE_TYPE. NOTE: the function IS NOT PIPELINED

CREATE OR REPLACE function SCOTT.get_emp1( p_deptno in number )
  return emp_table_type
  as
tb emp_table_type;
BEGIN
  select emp_scalar_type(empno, ename, job, mgr, hiredate, sal, comm, deptno)
    bulk collect into tb from emp where deptno = p_deptno;
  return tb;
end;
/

If I simply select the function itself twice I get this:

select get_emp1(20) from dual

GET_EMP1(20)
(DATASET)

I can use TOAD or sql developer to examine this dataset and see the documents.

But I can actually query the records by using the TABLE function:

select * from table(get_emp1(20))

EMPNO     ENAME     JOB     MGR     HIREDATE     SAL     COMM     DEPTNO
7369     SMITH     CLERK     7902     12/17/1980     800          20
7566     JONES     MANAGER     7839     4/2/1981     2975          20
7788     SCOTT     ANALYST     7566     4/19/1987     3000          20
7876     ADAMS     CLERK     7788     5/23/1987     1100          20
7902     FORD     ANALYST     7566     12/3/1981     3000          20

This is a similar function. It returns the same EMP_TABLE_TYPE, but it is a PIPELINED function.

-- pipelined function
create or replace function get_emp( p_deptno in number )
  return emp_table_type
  PIPELINED
  as
   TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
    emp_cv EmpCurTyp;
    l_rec  emp%rowtype;
  begin
    open emp_cv for select * from emp where deptno = p_deptno;
    loop
      fetch emp_cv into l_rec;
      exit when (emp_cv%notfound);
      pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
          l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
    end loop;
    return;
  end;
  /

The ONLY way I can query this function is using the TABLE function:

select * from table(get_emp(20))

EMPNO     ENAME     JOB     MGR     HIREDATE     SAL     COMM     DEPTNO
7369     smith     CLERK     7902     12/17/1980     800          20
7566     jones     MANAGER     7839     4/2/1981     2975          20
7788     scott     ANALYST     7566     4/19/1987     3000          20
7876     adams     CLERK     7788     5/23/1987     1100          20
7902     ford     ANALYST     7566     12/3/1981     3000          20

The query of the PIPELINED function is the same and the result set is the same.

The difference is that the PIPELINED function returns ONE LINE at a time and does NOT need to accumulate a large amount of data in a collection before returning. This collection uses the memory of expensive PGA and the more data you have the more memory it uses.

Your function (and my only similar) return NO data until it has produced ALL of this. And he uses this expensive PGA memory. What is the point to create your collection at a time line and wait until you have everything before send it back you?

You can easily modify your function and add PIPELINED to the declaration. Then, use the PIPE ROW clause to return each row that it is produced. Which will eliminate the need of collecting (and memory) within the service.

You can also then follow up calls to function if you need to.

See 'Use of functions Table in pipeline and parallel' in the data cartridge Developer Guide
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28425/pipe_paral_tbl.htm

There is little use for your function that is not in the pipeline, but returns a type of table, unless you used to store the array type in a column of an object table.

There are many uses for PIPELINED functions.

Tags: Database

Similar Questions

  • call library function to return a table 1 d

    Hi, I want to use Labview to receive a table 1 d from a dll. I can find the 'picture of data pointer' in the input parameters, but in the type of 'return', I could not find the table option. Then, how should I do to return the 1 d array?

    Looks like he has renamed "External Code (DLL) Execution.vi".

    If you browse to it, it's the main topic "Communicate with external Applications" and the sub-heading "with the help of external Code".

    Run it, scroll down to the bottom of the list, double click on '1 D Array.

  • function not returning with precision

    create or replace function xx_conversion (P_EXP_CURR in varchar2, P_EXPENSE_AMT in numbers)
    number is back
    L_EXPENSE_AMT_KWD number (10);
    number of v_rate (5.2): =. 279;
    Begin
    L_EXPENSE_AMT_KWD: = P_EXPENSE_AMT * nvl(v_rate,1);
    Return L_EXPENSE_AMT_KWD;
    Exception
    When no_data_found then
    If P_EXP_CURR = "INR" then
    L_EXPENSE_AMT_KWD: = P_EXPENSE_AMT;
    on the other
    L_EXPENSE_AMT_KWD: = 0;
    end if;
    End;


    Select double xx_conversion('USD',150)
    This value must be 41.85

    but it is truncating at 42

    How to get the number with precision

    Thank you

    Hello

    create or replace function xx_conversion(P_EXP_CURR    in varchar2,
                                             P_EXPENSE_AMT in number)
      return number is
      L_EXPENSE_AMT_KWD number(10, 2);  -- changed precision to 2
      v_rate            number(5, 3) := .279;     -- changed precision to 3. Alternatively you can only specify datatype as "number".
    Begin
      L_EXPENSE_AMT_KWD := P_EXPENSE_AMT * nvl(v_rate, 1);
      return L_EXPENSE_AMT_KWD;
    Exception
      when no_data_found then
        if P_EXP_CURR = 'INR' then
          L_EXPENSE_AMT_KWD := P_EXPENSE_AMT;
        else
          L_EXPENSE_AMT_KWD := 0;
        end if;
    End;
    
    SQL> select xx_conversion('USD',150) from dual;
    
    XX_CONVERSION('USD',150)
    ------------------------
                       41.85
    
    SQL> 
    
  • ORA-22907: invalid CAST to a type that is not a nested table or VARRAY. Typed collection function

    Hello

    I tried to create a function that might return the type that is created on the outside.

    So I wrote script below. until the function created it compiled successfully, but after that, when the data querying, we encountered error,

    "ORA-22907: invalid CAST to a type that is not a nested table or VARRAY.

    SQL> create table emp
      2  (
      3    ename        varchar2(200 byte),
      4    mgr          number,
      5    employee_id  number
      6  );
    
    
    Table created.
    
    
    SQL> insert into emp (ename, mgr, employee_id)
      2       values ('king', 12, 1);
    
    
    1 row created.
    
    
    SQL> insert into emp (ename, mgr, employee_id)
      2       values ('clark', 12, 2);
    
    
    1 row created.
    
    
    SQL> commit;
    
    
    Commit complete.
    
    
    SQL> create or replace type t_emp as object (ename varchar2 (200), mgr number, employee_id number);
      2  /
    
    
    Type created.
    
    
    SQL> create or replace function f_emp return  t_emp
      2   is
      3  type rc_emp is ref cursor;
      4  r_emp rc_emp;
      5  v_emp t_emp;
      6  begin
      7   open r_emp for select * from emp where rownum=1;
      8   fetch r_emp into v_emp;
      9  close r_emp;
     10  return v_emp;
     11  exception
     12      when others then
     13      dbms_output.put_line(dbms_utility.format_error_stack);
     14      dbms_output.put_line(dbms_utility.format_call_stack);
     15      dbms_output.put_line(dbms_utility.format_error_backtrace);
     16      raise_application_error(-20001,sqlerrm);
     17  end;
     18  /
    
    
    Function created.
    
    
    SQL> show errors;
    No errors.
    SQL> select * from f_emp;
    select * from f_emp
                  *
    ERROR at line 1:
    ORA-04044: procedure, function, package, or type is not allowed here
    
    
    
    
    SQL> select * from table(cast (f_emp as t_emp));
    select * from table(cast (f_emp as t_emp))
                              *
    ERROR at line 1:
    ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
    
    
    
    
    SQL>
    

    Like this:

    ...

    CREATE or REPLACE TYPE t_emp_array IS TABLE OF THE t_emp;

    /

    FUNCTION to CREATE or REPLACE f_emp RETURN t_emp_array

    is

    type rc_emp is ref cursor;

    r_emp rc_emp;

    v_emp_array t_emp_array: = t_emp_array();

    BEGIN

    R_emp OPEN for SELECT t_emp(ename,mgr,employee_id) FROM emp WHERE ROWNUM = 1;

    collect the fetch r_emp in bulk in v_emp_array;

    CLOSE R_emp;

    Return v_emp_array;

    exception

    while others then

    dbms_output.put_line (dbms_utility.format_error_stack);

    dbms_output.put_line (dbms_utility.format_call_stack);

    dbms_output.put_line (dbms_utility.format_error_backtrace);

    raise_application_error (-20001, SQLERRM);

    end;

    /

    SELECT *.

    table (f_emp ());

    a table function works with a table (nested table or varray)

    HTH

  • Create the object type with a member function that returns an array of the object type

    Hello

    Is possible to compile code like this in Oracle SQL?

    CREATE OR REPLACE TYPE type_obj IS OBJECT (
      MEMBER FUNCTION f RETURN table_obj
    );
    
    CREATE OR REPLACE TYPE table_obj AS TABLE OF type_obj;
    
    

    In Java, it would be possible.

    Thanks in advance

    Circular dependencies must be resolved by means of REF pointers and incomplete type definition.

    See: Oracle objects management

    CREATE or REPLACE TYPE type_obj;

    /

    CREATE or REPLACE TYPE table_obj AS TABLE OF ref type_obj;

    /

    CREATE or REPLACE TYPE type_obj () IS OBJECT

    fake number

    Table_obj RETURN of the FUNCTION MEMBER f

    );

    /

    Now, it must implement the body of type.

    Note that a table of the REFs is not very useful in the plain of PL/SQL, the underlying data must be stored in a nested table if you want to use.

  • Using the function PLSQL return Record Type Index of Tables in ADF

    I have a PLSQL function, a return type. My ultimate goal is to take this binary integer index Table and print it on the screen...

    CREATE OR REPLACE PACKAGE my_pkg IS
     
    TYPE t_col IS RECORD(
     
    i NUMBER,
     
    n VARCHAR2(30));
     
    TYPE t_nested_table IS TABLE OF t_col;
     
      FUNCTION return_table RETURN t_nested_table ;
    END my_pkg;


    OPTION 1:

    1) has anyone got best practices to accept plsql RECORDS returned by a function?

    Here is an example.

    http://adfpractice-Fedor.blogspot.SG/2013/01/working-with-PLSQL-procedures-in-ADF-BC.html

    But it will be a lot of work... first of all accept the results in a loop... then store in a temporary storage can be a few VO or global temporary table and then display them on the page


    OPTION 2:

    Using the functions PIPLELINED and use in the select statement.  While I can use this select statement in the SQL query to create VO... and drag and drop the VO...

    CREATE OR REPLACE PACKAGE my_pkg IS
     
    TYPE t_col IS RECORD(
     
    i NUMBER,
     
    n VARCHAR2(30));
     
    TYPE t_nested_table IS TABLE OF t_col;
     
      FUNCTION return_table RETURN t_nested_table PIPELINED;
    END my_pkg;


    select * from table(my_pkg.return_table);


    Wow... I'm so smart! .. really possible?  who is the best/possible/recommended option?

    I'm sure that will be the question most read by many who wants to use PLSQL instead of JAVA to the treatment and CHOSEN to use only to display the output of the PLSQL functions or procedures.


    Thank you

    Rahul


    Dario

    Do you mean the scope of the defined Type pkg will be finished?

    I created guy outside the pkg as 'Create Type' if it works in this case?

    Yes, level objects schema (created with "create or replace type...") can be used in java and this can work.

    I think that then the scope of this TYPE will remain until the user session passes.

    Object definitions is not worn, but have their bodies.

    So, if you instantiate the data level object type schema in a plsql function, scope of this object is this function.

    Of course, if you instantiate the object as a variable package, then life of this object is equal to the lifetime of the package (which usually equals life of session db).

    Dario

  • ODDM 4.1.1.888 transform script function getProperty() does not return NOT NULL;

    Hello

    In the 4.0.0.833 version the funcion getProperty() returns NULL when the dynamic propertyare not out,

    e.g. VRFDA = table.getProperty ("Text"); -Returns a null value if the dynamic property 'Text' does not exist. The Variable VRFDA is nothing

    I have version 4.1.1.888 and the GetFilter() function returns DO NOT null when the dynamic property does not exist.

    Could you tell me what value returns the GetFilter() function when the dynamic property does NOT exist?


    Thank you

    In version 4.1 the getProperty function will return an empty string if the dynamic property does not exist.

    David

  • Function in pipeline not return values as expected

    Database Oracle 12 c

    Function Splitstring)

    V_Input Nvarchar2,

    V_Split_Pattern in Nvarchar2)

    Ret_Tbl RETURN pipeline

    Is

    v_string nvarchar2 (32767): = v_input | v_split_pattern;

    v_indexfound NUMBER (5);

    v_Index number (5): = 1;

    v_buff nvarchar2 (32767).

    BEGIN

    LOOP

    v_buff: = null;

    v_indexfound: = REGEXP_INSTR (v_string, v_split_pattern, v_index);

    OUTPUT

    WHEN v_indexfound = 0;

    v_buff: = SUBSTR (v_string, v_index, v_indexfound - v_index);

    IF (v_buff IS NOT NULL) THEN

    pipe ROW (v_buff);

    END IF;

    v_index: = v_indexfound + 1;

    END LOOP;

    RETURN;

    END Splitstring;

    However when I call this function:

    Select * from Table (fun. Splitstring (v_Input = > 1 | s, 3: 4, 5, 6, 7', v_split_pattern = > "[|]"));

    error.PNG

    I'm [ in the 3rd rank. why it is returned, or I spend in wrong setting? ]

    I have to use regexp_instr for template matching.

    There are easier ways to break up the delimited strings only to use slow methods code PL... for example

    SQL > ed
    A written file afiedt.buf

    1 with t as (select 1 | s, 3: 4, 5, 6, 7' as double inp)
    2  --
    3 end of test data
    4  --
    5 Select regexp_substr (inp,'[^ |] +', 1, level) as val
    6 t
    7 * connect regexp_substr (inp,'[^ |] +', 1, level) is not null
    SQL > /.

    VAL
    -------------
    1
    s, 3
    4,5,6,7

  • a function that returns the type with a table joint!

    Good day to all,
    I have a function that returns a type.

    so I select it as:
    Select * from table (function (param1, param2))

    now I want to combine this with a table so that the settings for the service we get from the join table. Is this possible? And how?
    I tried different options without success.

    something like:
    Select *.
    table table (function (b.column1, b.columnb) x), tablea b
    where x.a = b.col

    Is this possible?

    Thanks in advance?

    user564819 wrote:

    something like:
    Select *.
    table table (function (b.column1, b.columnb) x), tablea b
    where x.a = b.col

    Is this possible?

    Somehow...

    SQL> create or replace type TIntegers is table of integer;
      2  /
    
    Type created.
    
    SQL>
    SQL> --// our sample pipeline simply spews 2 numbers for eevry number input - simple
    SQL> --// to use for the testcase below
    SQL> create or replace function FooPipe( n number ) return TIntegers pipelined is
      2  begin
      3          pipe row( trunc(n) );
      4          pipe row( trunc(n)*-1 );
      5          return;
      6  end;
      7  /
    
    Function created.
    
    SQL>
    SQL> with dataset( n ) as(
      2          --// ignore this part as it only builts a base table
      3          --// for us to use to select values for input to
      4          --// to the pipeline - in "real world" use this table
      5          --// will already exist
      6          select
      7                  level
      8          from    dual
      9          connect by level <= 10
     10  ),
     11  pipe_line( n, array ) as(
     12          --// we run the pipeline as a nested table column
     13          --// in the SQL projection - the CAST is important
     14          --// in order to establish the nested table type
     15          select
     16                  d.n,
     17                  cast(
     18                          FooPipe(d.n) as TIntegers
     19                  )
     20          from    dataset d
     21  )
     22  --// we now use a standard query to unnest the nested table column
     23  select
     24          p.n,
     25          pipe_val.*
     26  from       pipe_line p, TABLE(p.array)  pipe_val
     27  /
    
             N COLUMN_VALUE
    ---------- ------------
             1            1
             1           -1
             2            2
             2           -2
             3            3
             3           -3
             4            4
             4           -4
             5            5
             5           -5
             6            6
             6           -6
             7            7
             7           -7
             8            8
             8           -8
             9            9
             9           -9
            10           10
            10          -10
    
    20 rows selected.
    
    SQL>
    

    Not sure I like it. What is the real problem that this method (driving a pipeline with input of a base table rows) is supposed to address? There may be a simpler and more elegant approach...

  • Oracle query of relay and access function call does not return the list

    Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.

    I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?

    The application of relay and looks like this

    Select * from fn_testvalues of the double

    Once that is running in oracle.

    To create the test table and 2 functions below.

    CREATE TABLE t_values (MyValue varchar2 (10));

    Table created
    INSERT INTO t_values)
    SELECT 'Merced' c1 FROM dual UNION ALL
    SELECT "Pixie" dual UNION ALL
    SELECT "452" DOUBLE);

    3 lines inserted
    FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
    n_val NUMBER;
    BEGIN
    n_val: = to_number (p_val);
    RETURN 1;
    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END;
    /

    Feature created

    table test:
    SELECT val, isnum fn_isnum (MyValue)
    OF t_values;

    VAL ISNUM
    ---------- ----------
    Merced 0
    Pixie 0
    1 452

    Now the function that is called in the application of relay:

    create or replace function fn_testvalues
    sys_refcursor is back
    RC sys_refcursor;
    Start
    Open rc for
    Select t_values.*, fn_isnum (MyValue) t_values IsNum;
    Return (RC);

    end fn_testvalues;

    Why not?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>create or replace view bb
      2  as
      3    select *
      4    from emp;
    
    View created.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from bb;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30 SALESMAN
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20 ANALYST
          7839 KING       PRESIDENT            17-NOV-81       7260                    10 PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20 CLERK
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30 CLERK
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10 CLERK
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
             1 boock
    
    12 rows selected.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select *
      2  from bb
      3  where empno = &eno;
    Enter value for eno: 7521
    old   3: where empno = &eno
    new   3: where empno = 7521
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

  • Gauss hypergeometric function does not return a value

    I need evaluate the Gauss hypergeometric function (mathematics > elementary > hypergeometric functions > Function.vi Gauss) for one of the following constants:

    a = 11/6

    b = 1/6

    c = 5/6

    for different values of x, all of which are negative.  A value of x is - 4.  When I run a VI with this function, it returns NAN.  I don't know what is current as the help file says the function is set to leave Neg. infinite to 1.  A condition is placed above being defined more precisely to 1 which I'm not interested.

    We used a script MATLAB Labview node to calculate these values successfully.  I know that some other programs can only calculate the function for | x |< 1,="" but="" the="" help="" file="" in="" labview="" claims="" it="" doesn't="" have="" this="" limitation="" as="" is="" the="" case="" with="" matlab.=""  can="" anyone="" else="" confirms="" this="" problem="" or="" am="" i="" just="" overlooking="">

    Also, it would be useful to check with Mathematica to verify that I did stupid miscalculation...

    Third time is a charm.

  • com.sunopsis.dwg.function.SnpsFunctionBaseException: ORA-00942: table or view does not exist

    Hi all

    I have a problem in the odiwaitfordata component and when I run get the below error

    Code:

    OdiWaitForData "-CONTEXT GLOBAL =" "-GLOBAL_ROWCOUNT = 1" "-LSCHEMA = ORA_LS" "-POLLINT = 1000" '-SQLFILTER = numero_fichier =-1 ""-TIMEOUT = 10000 ""-TIMEOUT_WITH_ROWS_OK = YES ""-INCREMENT_DETECTION = NO ' "-TABLE_NAME = PRACTICE." "" "" "» GENERATION. "

    Error:

    com.sunopsis.dwg.function.SnpsFunctionBaseException: ORA-00942: table or view does not exist

    Thanks in advance

    Kind regards

    Vivek

    Hi 2700773,

    "PRACTICE. GENERATION' is not a valid table name. You must only give the name of the table, not the schema name. You can also give a list of table, separated by a comma, or a table name masks using % and _ like wildcards.

    As for your previous question? Is it resolved? Please give us a feedback or close the message if it's over.

    Kind regards

    JeromeFr

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • MuseSJAssert: error calling function selector: TypeError: object does not support this property or method

    I get this error message with IE, version 8 upwards. The message appears once you navigate to another page on the site and then return to the home page. Can anyone offer advice on how to solve it? As the cursor on the site doesn't seem to work with IE, we wonder if that's where the whole issue.

    The site is hosted in British Colombia and is http://www.improvementservice.org.UK

    Thanks in advance.

    Martin.

    Hi Martin,

    Could you please try some steps here.

    MuseJSAssert: Error calling function of selection: [Object Error]

  • function should return the number of rows in a table

    Hello world

    I wrote an entry function is the name of the table and the function should return how many line in the table.
    the table name can change.

    It is possible

    Published by: Balajiraam on March 18, 2011 05:33

    Hello

    Try this

    CREATE OR REPLACE FUNCTION GETCOUNT(TABLE_NAME IN VARCHAR2) RETURN NUMBER
    IS
        TMPCOUNT NUMBER;
        TMPSQL VARCHAR2(1000);
    BEGIN
        TMPSQL := 'SELECT COUNT(*) FROM ' || TABLE_NAME;
        EXECUTE IMMEDIATE TMPSQL INTO TMPCOUNT;
        RETURN TMPCOUNT;
    END;
    

    see you soon

    VT

Maybe you are looking for