From a function table: invalid data type error

Hello

I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.
create or replace package pkg10
as

type tabletype1 is table of table1%rowtype
index by binary_integer;

function func1 return tabletype1;

end pkg10;
create or replace package body pkg10
as

function func1 return tabletype1 
is
    v_tab1 tabletype1;
    idx integer;
begin 

    idx := 1;
    
    for i in (select * from table1)
    loop
        v_tab1(idx).name1 := i.name1;
        v_tab1(idx).key := i.key;
        idx := idx+1;
        
    end loop;

return v_tab1; 

end func1; 

end pkg10;
select * from table(pkg10.func1);
Please point out to me where I'm wrong.

Thank you

Sathya Vamsi says:
Hello

I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.

create or replace package pkg10
as

type tabletype1 is table of table1%rowtype
index by binary_integer;

function func1 return tabletype1;

end pkg10;
create or replace package body pkg10
as

function func1 return tabletype1
is
v_tab1 tabletype1;
idx integer;
begin 

idx := 1;

for i in (select * from table1)
loop
v_tab1(idx).name1 := i.name1;
v_tab1(idx).key := i.key;
idx := idx+1;

end loop;

return v_tab1; 

end func1; 

end pkg10;
select * from table(pkg10.func1);

Please point out to me where I'm wrong.

Thank you

you try to use a data type of PL/SQL as part of an SQL statement. is NOT authorized.

Tags: Database

Similar Questions

  • Creating a table: invalid data type

    Hello

    I want to create two tables, which is why the following script:

    create table wine cellars
    (winecellarname varchar2 (50) primary key,)
    location varchar2 (50).
    owner varchar2 (50).
    Phone varchar2 (50).
    Museum char(1),
    BLOB of logo
    );


    create table wines
    (winetype, varchar2 (50))
    winecathegory varchar2 (50).
    year number 4.
    winecellarname varchar2 (50).
    VARCHAR2 (50) of origin;
    primary key (winetype, winecathegory, year, winecellarname).
    update the foreign key (winecellarname) winecellarname references on Delete on cascade
    );

    But in line 13 of the script, which is the line winetype varchar2 (50), gives the text following error-> invalid data type

    Everyone knows that is the cause? I used Toad as a client to manage the script and Oracle 10 g as a server.

    Thank you. concerning

    Then, when you create tables in Oracle, referencing foreign key, you don t need to use on the update clause to maintain the reference to integrity? This is valid for MySQL Server?

    not sure that your average, but you have to update... use only on the deletion clause.
    read reference to url... I told you

  • table font PL/SQL: ORA-00902: invalid data type

    I m is

    PL/SQL: ORA-00902: invalid data type

    error in


    OPEN FOR PPymtCur
    SELECT *.
    TABLE (CAST (up_gap_tra_reports.myArray AS traArray));

    in my up_gap_tra_reports package.

    CREATE OR REPLACE PACKAGE GAPSDVEL.up_gap_tra_reports
    AS

    TraRecord RECORD TYPE IS
    (
    group1StudEnrol NUMBER (6.1).
    group2StudEnrol NUMBER (6.1).
    pymtAmt gap_payment.NET_AMT%TYPE
    );


    TYPE traArray IS TABLE OF THE traRecord;
    myArray traArray: = traArray();

    END up_gap_tra_reports;

    I have alreay hv declared of type traArray.

    pls help me solve this problem.

    Meghna wrote:
    is it possible to use the collection pl/sql in SQL or refcur without creating it because I'm not able to create the type of database.

    The only way I know is function in pipeline:

    create or replace
      package pkg1
        is
          type traRecord
            is record(
                      ename emp.ename%type,
                      sal   emp.sal%type
                     );
          TYPE traArray IS TABLE OF traRecord;
          function f1
            return traArray
            pipelined;
    end;
    /
    create or replace
      package body pkg1
        is
        function f1
            return traArray
            pipelined
          is
              v_rec traRecord;
          begin
              v_rec.ename := 'Sam';
              v_rec.sal := 1000;
              pipe row(v_rec);
              v_rec.ename := 'John';
              v_rec.sal := 1500;
              pipe row(v_rec);
              v_rec.ename := 'Mary';
              v_rec.sal := 2000;
              pipe row(v_rec);
              return;
        end;
    end;
    /
    

    Now, you can:

    SQL> select * from table(pkg1.f1)
      2  /
    
    ENAME             SAL
    ---------- ----------
    Sam              1000
    John             1500
    Mary             2000
    
    SQL>
    

    Don't forget, it will create the generated system types:

    SQL> select type_name from user_types
      2  /
    
    TYPE_NAME
    ------------------------------
    SYS_PLSQL_73305_9_1
    SYS_PLSQL_73305_DUMMY_1
    SYS_PLSQL_73305_34_1
    
    SQL> desc SYS_PLSQL_73305_9_1
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ENAME                                              VARCHAR2(10)
     SAL                                                NUMBER(7,2)
    
    SQL> desc SYS_PLSQL_73305_DUMMY_1
     SYS_PLSQL_73305_DUMMY_1 TABLE OF NUMBER
    
    SQL> desc SYS_PLSQL_73305_34_1
     SYS_PLSQL_73305_34_1 TABLE OF SYS_PLSQL_73305_9_1
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ENAME                                              VARCHAR2(10)
     SAL                                                NUMBER(7,2)
    
    SQL> 
    

    SY.

  • table (cast - invalid data type problem

    Hi all

    Baseline scenario:

    --------------------------
    PACKAGE
    --------------------------
    create or replace
    PACKAGE C2_PAYMENT_DOC IS

    Bin_array TYPE TABLE IS NUMBER
    INDEX OF DIRECTORY;

    FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array;
    --------------------------
    PACKAGE_BODY
    --------------------------
    create or replace
    package C2_PAYMENT_DOC as body

    Bin_array test_fun (l_doc_id-IN integer) FUNCTION RETURNS IS
    l_gross bin_array;
    Start
    c2_purchase_invoice.get_inv_gross_amount (l_doc_id, l_gross (1));
    Return l_gross;
    end;
    END;
    --------------------------
    QUERY
    --------------------------
    Select * from Table (Cast (c2_payment_doc.test_fun (1) as bin_array));

    The query result is ORA-00902: invalid data type
    How can I make the valid select statement?
    Thanks in advance,
    Bartek

    You cannot use local collection types in SQL. You must create a bin_array of type like nested SQL table type. In addition, depending on the version you will not cast:

    SQL> CREATE OR REPLACE
      2    TYPE bin_array
      3      AS TABLE OF NUMBER
      4  /
    
    Type created.
    
    SQL>  create or replace
      2   PACKAGE C2_PAYMENT_DOC IS
      3  FUNCTION test_fun(l_doc_id IN integer) RETURN bin_array;
      4  end;
      5  /
    
    Package created.
    
    SQL> create or replace
      2  package body C2_PAYMENT_DOC as
      3
      4  FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array IS
      5  l_gross bin_array := bin_array();
      6  begin
      7      l_gross.extend;
      8      l_gross(1) := l_doc_id;
      9  return l_gross;
     10  end;
     11  END;
     12  /
    
    Package body created.
    
    SQL> select * from Table(Cast(c2_payment_doc.test_fun(1) As bin_array));
    
    COLUMN_VALUE
    ------------
               1
    
    SQL> select * from Table(c2_payment_doc.test_fun(1))
      2  /
    
    COLUMN_VALUE
    ------------
               1
    
    SQL> 
    

    SY.

  • I get an error-invalid data type

    DECLARE
    CURSOR med_rec_cur
    IS
    SELECT *.
    OF temp_records_med;

    p_success NUMBER;
    strQuery VARCHAR2 (10000);
    v_count NUMBER;
    v_filename temp_records_med.filename%TYPE;

    TYPE med_rec_tab IS TABLE OF temp_records_med % ROWTYPE;

    ErrNum NUMBER;

    Slno_tab TYPE IS a TABLE OF VARCHAR2 (100);

    v_med_rec_tab med_rec_tab;
    dml_errors EXCEPTION;
    v_slno NUMBER;
    v_all_slno VARCHAR2 (1000);
    v_slno_tab slno_tab;
    tba_slno temp_records_med.slno%type;

    BEGIN
    OPEN med_rec_cur.

    LOOP
    BEGIN
    EXTRACTION med_rec_cur
    LOOSE COLLECTION v_med_rec_tab LIMIT 1000;

    FORALL I IN 1... v_med_rec_tab. COUNT SAVE EXCEPTIONS
    INSERT INTO meddetail
    VALUES v_med_rec_tab (i)
    RETURN slno BULK COLLECT INTO v_slno_tab;

    EXCEPTION
    WHEN dml_errors
    THEN
    v_all_slno: = ', '. To_char (v_all_slno);
    END;

    EXIT WHEN med_rec_cur % NOTFOUND;
    END LOOP;

    CLOSE Med_rec_cur;

    INSERT INTO BOSSDRAGON - INVALID DATA TYPE
    SELECT * FROM TEMP_RECORDS_MED WHERE SLNO NOT IN (SELECT tba_slno FROM)
    (TABLE (CAST (v_slno_tab AS slno_tab) tba_slno))) ;

    END;

    Published by: user8731258 on Sep 6, 2010 23:14

    Casting will not change the fact that you have a local collection type in a SQL statement, which is not allowed. You can create a stand-alone type with CREATE TYPE? Or use something like SYS. DBMS_DEBUG_VC2COLL that is already defined.

    You don't need a CAST explicitly in the TABLE expressions after around Oracle 8i.

  • ORA-00902: invalid data type on xmltable

    Hello

    I learn XMLTABLE but not able to run the following queries,

    with xml11g as
    (
    select '<?xml version="1.0"?>
    <purchaseorder orderdate="1999-10-20">
      <shipto country="us">
        <name>alice smith</name>
        <street>123 maple street</street>
        <city>mill valley</city>
        <state>ca</state>
        <zip>90952</zip>
      </shipto>
      <billto country="us">
        <name>robert smith</name>
        <street>8 oak avenue</street>
        <city>old town</city>
        <state>pa</state>
        <zip>95819</zip>
      </billto>
      <comment>hurry, my lawn is going wild!</comment>
      <items>
        <item partnum="872-aa">
          <productname>lawnmower</productname>
          <quantity>1</quantity>
          <usprice>148.95</usprice>
          <comment>confirm this is electric</comment>
        </item>
        <item partnum="926-aa">
          <productname>baby monitor</productname>
          <quantity>1</quantity>
          <usprice>39.98</usprice>
          <shipdate>1999-05-21</shipdate>
        </item>
      </items>
    </purchaseorder>' myxml from dual
    )
    select s.*, b.*
    from xml11g t,
      xmltable ('/purchaseorder' passing
        xmlparse(document t.myxml)
        columns
          "shipto" xml,
          "billto" xml
        ) x,
        xmltable ('/shipto' passing x."shipto"
          columns
            "name" char(20),
            "street" char(40),
            "city" char(40),
            "state" char(2),
            "zip" number(10)
        ) s,
        xmltable ('/billto' passing x."billto"
          columns
            "name" char(20),
            "street" char(40),
            "city" char(40),
            "state" char(2),
            "zip" number(10)
        ) b;
    
    

    It is showing me special suite

    < zip > 90952 < / zip >

    *

    ERROR on line 10:

    ORA-00902: invalid data type

    Please guide me what I'm missing here.

    Thanks and greetings

    Alexander gelin

    For me the (slightly modified) works:

    [sql]

    with xml11g as
    (
    Select ' 
     
       
        Alice Smith 
        123 maple Street 
        Mill Valley 
        CA 
        90952 
       
       
        Robert Smith 
        8 Oak avenue 
        old town 
        PA 
        95819 
       
      Hurry, my lawn is going wild
    !                 lawn mower        1        148.95        confirm this is electric                    baby monitor        1        39.98        1999-05-21            "double myxml. ) Select *. of xml11g t.   XMLTable ('/ purchaseorder' by the way)     xmlParse (document t.myxml)     columns       "shipto" XMLtype,       "billto" XMLtype     )     x,     XMLTable ("' / shipto' passing x." ShipTo")       columns         'name' char (20)         , 40 "Street."         'city' 40,         'State' (2) tank.         "zip" INTEGER     + 1 ,     XMLTable ("' / billto' passing x." BillTo")       columns         'name' char (20),         40 "Street."         'city' 40,         'State' (2) tank.         "zip" INTEGER    

    ) b ;

    [SQL]

  • Invalid data type

    Hello

    I have the following tables:


    create table wine cellars
    (winecellarname varchar2 (50) primary key,)
    location varchar2 (50).
    owner varchar2 (50).
    Phone varchar2 (50).
    Museum char(1),
    BLOB of logo
    );

    create table wines
    (winetype, varchar2 (50))
    winecathegory varchar2 (50).
    year number 4.
    winecellarname varchar2 (50).
    VARCHAR2 (50) of origin;
    primary key (winetype, winecathegory, year, winecellarname).
    Foreign key (winecellarname) references winecellarname on delete cascade
    );

    But in the line which belongs to the sentence: create vdt TOAD gives me the following error: error on line 13. ORA-00902: invalid data Type

    I don't understand the reason for this error and I can fix it.

    Thank you. Concerning

    Found the problem:

    create table vino
    ( tipovino varchar2(50),
    categoriavino varchar2(50),
    anovendimia number(4),
    nombrebodega varchar2(50),
    denominacionorigen varchar2(50),
    precio/lproduc number(5),
    litrosproduc number(10),
    precio/lpublico number(5),
    primary key (tipovino,categoriavino,anovendimia,nombrebodega),
    foreign key (nombrebodega) references bodega on delete cascade
    )
    /
    

    ' Precio/lproduc' and "price/lproduc" columns contain a ' / ', which is not legal!

    Try this:

    create table vino
    ( tipovino varchar2(50),
    categoriavino varchar2(50),
    anovendimia number(4),
    nombrebodega varchar2(50),
    denominacionorigen varchar2(50),
    precio_lproduc number(5),
    litrosproduc number(10),
    precio_lpublico number(5),
    primary key (tipovino,categoriavino,anovendimia,nombrebodega),
    foreign key (nombrebodega) references bodega on delete cascade
    )
    /
    

    and it works perfectly. (See where I replaced ' / ' by '_' in two of these column names?)

    Hope that helps,

    -Mark

    PS The reminder! Don't forget to close the issue and awarded points accordingly.

  • Error in the Primavera Analytics 3.1 (staretl issuance of long data type error)

    Hello

    When executing ETL for analytics Primavera 3.1 I am faced with long data type error.

    Session detailed log can be found on the below URL.

    http://pastebin.com/Ez0VihGN

    I have following environment.

    Primavera analytics on Win2k8 64-bit with 11g R2 DB.

    EPPM Primavera DB on Sql Server

    Connectivity via Oracle Gateway. (tested)

    Help, please.

    Naeem Akhtar

    Published by: Naeem Akhtar Khan on April 9, 2013 03:58

    Based on your post there is an error in you initdg4msl.ora file... Make sure you the database connection is correct and you add the statement two to the file

    for example

    Should be: HS_FDS_CONNECT_INFO = YOURSQLSERVER / / YOUR DATABASE

    Make sure that you add the following code in the same file (see page 92):
    HS_NLS_LENGTH_SEMANTICS = CHAR
    HS_FDS_CHARACTER_SEMANTICS = TRUE
    HS_KEEP_REMOTE_COLUMN_SIZE = ALL

    Restart the ETL process

  • -Error function of incompatible data types

    Hi all

    I created a function that will take 3 IN parameters and return the result in type. Here's the code.

    Created a table type:

    {code}

    CREATE OR REPLACE TYPE FEATURES_ROW_TYPE

    AS AN OBJECT

    (VARCHAR2 (100) OF THE ENVIRONMENT)

    MNR VARCHAR2 (100),

    GUID VARCHAR2 (100),

    USER_ID VARCHAR2 (1000).

    RGN VARCHAR2 (100),

    RGN_NM VARCHAR2 (5000).

    FEATURE_NAME VARCHAR2 (5000).

    DATE OF LAST_SIGON_DATE

    );

    CREATE OR REPLACE TYPE FEATURES_TABLE_TYPE

    AS THE FEATURES_ROW_TYPE TABLE;

    {code}

    Here's the function:

    {code}

    CREATE OR REPLACE FUNCTION FETCH_FEATURES_FN (P_ENVIRONMENT IN VARCHAR2,

    P_FEATURE_ID NUMBER,

    P_RGN IN VARCHAR2

    )

    RETURN FEATURES_TABLE_TYPE

    IS

    V_ROWS FEATURES_TABLE_TYPE: = FEATURES_TABLE_TYPE ();

    V_CUR_ENV VARCHAR2 (100);

    V_ENV VARCHAR2 (50);

    V_WHERE VARCHAR2 (1000);

    V_SQL VARCHAR2 (10000);

    BEGIN

    V_ENV: = '@DBL_ ' | P_ENVIRONMENT;

    V_CUR_ENV: = P_ENVIRONMENT;

    IF P_RGN = "ALL" THEN

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID;

    ON THE OTHER

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID | "AND FD. RGN = ' | '''' || P_RGN | '''';

    END IF;

    V_SQL: =.

    "WITH USER_DATA ' | ' ' ||

    "ACE" | ' ' ||

    ' (SELECT DISTINCT EB. GUID, AD. USER_ID_ACCT_AFFECTED AS USER_ID, MAX (TRANSACTION_TS) AS LAST_SIGNON_DATE ' | ' ' ||

    "TO WPP_EBIZ_ACCT" | V_ENV | '  EB'                                                                || ' ' ||

    "INNER JOIN WPP_SECURITY_AUDIT_LOG | V_ENV | ' AD'                                                   || ' ' ||

    ' ON EB. GUID = AD. USER_UNIQUE_ID_ACCT_AFFECTED ' | ' ' ||

    ' WHERE AD. APP_NAME = "consumer" AND AD. TRANSACTION_TYPE_CD = "SIGN_ON" AND AD. FEATURE_NAME = "sign" AND AD. TRANSACTION_RESULT_CD = "S" ' | ' ' ||

    ' GROUP BY EB. GUID, AD. USER_ID_ACCT_AFFECTED ' | ' ' ||

    '), ' || ' ' ||

    "FEATURE_DATA" | ' ' ||

    'AS '           || ' ' ||

    "(MY SEPARATE SELECT." MNR, EB. GUID, MY. RGN, RGN. RGN_NM, FTR. WPP_FTR_IK, FTR. NM AS FEATURES_SUPPORTED ' | ' ' ||

    "TO WPP_MBRSHP_ACCT" | V_ENV | "MY" | ' ' ||

    "INNER JOIN WPP_EBIZ_ACCT | V_ENV | ' EB WE MY. WPP_EBIZ_ACCT_IK = EB. WPP_EBIZ_ACCT_IK' | ' ' ||

    "INNER JOIN WPP_RGN | V_ENV | «RGN WE MY.» RGN = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_RGN_APLCTN_STS | V_ENV | ' RGN_ST ON RGN_ST. RGN_ID = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_FTR_APLCTN | V_ENV | ' FTR_APP ON FTR_APP. WPP_FTR_APLCTN_IK = FTR_APP. WPP_FTR_APLCTN_IK ' | ' '||

    "INNER JOIN WPP_FTR | V_ENV | "FTR ON FTR. WPP_FTR_IK = RDFS. WPP_FTR_IK' | ' ' ||

    ') ' || ' ' ||

    "SELECT DISTINCT"HINT1"LIKE ENVIRONMENT, | ' ' ||

    "FD. MNR, FD. GUID, UD. USER_ID, FD. RGN, FD. RGN_NM, FD. FEATURES_SUPPORTED ACE FEATURE_NAME, TO_DATE (TRUNC (UD. LAST_SIGNON_DATE)) AS LAST_SIGNON_DATE' | ' ' ||

    "FROM FEATURE_DATA INNER JOIN USER_DATA UD ON FD FD. GUID = UD. GUID ' | ' ' || V_WHERE;

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    RUN IMMEDIATELY V_SQL

    BULK COLLECT INTO V_ROWS;

    RETURN V_ROWS;

    END FETCH_FEATURES_FN;

    {code}

    When I tried to run as below.

    SELECT * FROM TABLE (FETCH_FEATURES_FN ('HINT1', 2, 'ALL'));

    but I get the error message

    ORA-00932: inconsistent data types: expected - was -.

    ORA-06512: at "KPGCPY. FETCH_FEATURES_FN', line 57

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Please guide to solve this problem.

    Thank you

    So after running actual query:

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    You said the line that will do.

    Firstly - I suggest replace this long, complex query with a VERY SIMPLE one until your code actually works.

    When you do this, you will see that the TYPE that you defined (FEATURES_ROW_TYPE) is NOT mentioned anywhere in your code.

    You need create instances of this TYPE, then a collection of these instances.

    Some EXAMPLES of code that shows what I mean by VERY SIMPLE and shows how interrogate instances of a TYPE in a collection

    -type to match record emp

    create or replace type emp_scalar_type as an object

    (EMPNO NUMBER 4,

    ENAME VARCHAR2 (10),

    USE VARCHAR2 (9).

    MGR NUMBER 4,

    HIREDATE DATE,

    NUMBER OF SAL (7, 2)

    NUMBER OF COMM (7, 2)

    DEPTNO NUMBER (2)

    )

    /

    -records of the emp table

    create or replace type emp_table_type to table of emp_scalar_type

    /

    declare

    TB emp_table_type;

    sys deptnoList. OdciNumberList;

    BEGIN

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    Collect SELECT deptno in bulk

    IN deptnoList

    DEPARTMENT where deptno not in (select deptno table (tb));

    I'm looping 1.deptnoList.count

    dbms_output.put_Line (deptnoList (i));

    end loop;

    END;

    40

    Try this code and work with it until you understand what makes each piece.

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    See how this SIMPLE query creates instances of the EMP_SCALAR_TYPE and then use COLLECT in BULK to put them in the collection?

    Modify your code to use a SIMPLE QUERY like in my example, until you get the code to work.

  • cfgrid / cfgridupdate error with an invalid data type

    I have a problem using cfgrid controls.

    I get the following error message:
    "Error casting an object of type by an incompatible type. This usually indicates an error in programming in Java, although it could also mean that you tried to use a foreign object in a different way, that it was designed. »

    The error occurs when I run this code:

    < IsDefined ("form.gridEntered") cfif >
    < cfgridupdate grid = "FirstGrid" dataSource = "" #dsn # "Keyonly ="true"tableName ="tblManager">"
    < / cfif >

    It connects to a mySQL 4.1 database.

    I think that the problem is to do with a field, I added called 'Active' of the INT data type (1). I use that as a Boolean value as far as I know, is the nearest equivalent in mySQL.

    In my < cfgrid > I've added the next column.

    < cfgridcolumn name = 'Active' type = 'boolean' display = "Yes" width = "40" header = "On" "BOLD" = "true" / >

    That shows a box and that's the look I want to reach on the grid.
    I think that this causes Java error. What should I do to allow the submission to the grid of this type of data, please?

    Thank you for your time and your help.

    To answer my own question on that...
    cfgridupdate wasn't working so I wrote a regular block of code to make the necessary changes when you submit a grid.

  • Invalid column Type error - Jdev 11.1.2.3 on Redhat 5.8

    Hello:

    I created a simple Web ADF application with a single table.

    Test1 uses the HR schema and the db connection is also HR and everything works fine.

    Test2 uses a (partner) schema that is different from the logged-in user (admininn) in about DB. In sqlplus, I can update the table as a logged-in user. For DB grants are ok.

    But in the ADF app, when I try an update, I get an error: exception for invalid column type. See error below.

    When the owner of the schema is different from the db connection, I get this error even if DB subsidies are in place. What Miss me?

    Thank you very much



    Note: the DB connection connects as admininn no PARTNER. But DB subsidies are in place to allow admininn associated schema update.

    [386] built select: "SELECT CLI_KEY, CLI_NAME, CLI_SHORT_NAME, CLI_TYPE, CLI_LAWSON_ID, CLI_ACTIVE, CLI_COUNTRY PARTNER. CLIENTS Clients
    [387] enforcement of LOCKING... SELECT CLI_KEY, CLI_NAME, CLI_SHORT_NAME, CLI_TYPE, CLI_LAWSON_ID, CLI_ACTIVE, CLI_COUNTRY PARTNER. The CUSTOMERS Customers WHERE CLI_KEY =: 1 FOR UPDATE NOWAIT
    [388] where the link param 1:263
    OracleSQLBuilderImpl.doEntitySelect [389] failed...
    [390] java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindWhereAttrValue(OracleSQLBuilderImpl.java:2306)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindWhereClause(BaseSQLBuilderImpl.java:2300)
    at oracle.jbo.server.EntityImpl.bindWhereClause(EntityImpl.java:10784)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindWhereClause(BaseSQLBuilderImpl.java:2283)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:840)
    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:552)
    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8311)
    at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5971)
    at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6491)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6707)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Check the OS type for each attribute. Number should be oracle.jbo.domain.Number.
    VARCHAR must be java.lang.String. Date should be oracle.jbo.domain.Date

  • long data type error

    Hi all

    Hope all are fine, I got stuck in a query, and I need your help, I will be grateful for this.

    I was using the query below to copy all the data of table x to y.

    SQL > insert y select * from x@dblnkname;

    ERROR on line 1:

    ORA-00997: illegal use of the LONG data type

    I m getting the error above, tables x and there does not "long" datatype.your help will be appreciated, thanks in advance.

    DB: 11.2.0.3

    OS: RHEL 6.1

    Thank you

    Kind regards.

    copy of user/password@sid to user1/password@sid add user1.new_table using select * from user.old_table;

  • ORA-00902: invalid data type

    Hello
    What is the problem with my NUMBER data type:
    SQL> create table sale (purchase-no NUMBER (9) CONSTRAINT sale-purchase-no-pk PR
    IMARY KEY , costumer-id NUMBER (9) CONSTRAINT sale-customer-id-nk NOT NULL);
    create table sale (purchase-no NUMBER (9) CONSTRAINT sale-purchase-no-pk PRIMARY
     KEY , costumer-id NUMBER (9) CONSTRAINT sale-customer-id-nk NOT NULL)
                               *
    ERROR at line 1:
    ORA-00902: invalid datatype
    Thank you.

    Your column and constraint names have traits that are not allowed in the names of identifiers.

    Try using instead underscore traits.

  • The unexpected return of the "Data Type" error

    I searched the forum and found only discussions among more than a year, so either I'm a loner, or is raising its ugly head again.

    I have a project that I worked on between two machines, both running 11.0.2.11 with the same AE plug-ins. One is a macbook pro, one is a macpro. The two are running 10.6.8 (I think it's snow leopard). I've saved the project files, and active in the folder dropbox on my machines so that everything is always synchronized between them. It was working perfectly for month. * I recently upgraded to anything, other than the installation of Adobe Acrobat on the desktop a few days ago.

    This morning on my desktop computer, I couldn't project to open without receiving the error "unexpected data type". Now the shift did nothing. Instinctively, I started a new project and imported the .aep I tried to open. No errors! Then I tried to change workspaces and the error came again. I hit caps lock shift and tried again. No go. At one point, the workspace drop-down list were bullets next of * two * of the workspaces, as if they were both active simultaneously.

    My solution for now was to go to my selection on the site and go back to a previously saved version of the same project (thank you * YOU * dropbox) a few days ago. That open fine, but missing a few hours of work.

    My fear is that it will happen again and I'll have to keep going back in time to continue working (two steps forward, one step back) and I have a deadline to meet. I'll try to stay away from custom work spaces, as a poster on this forum says they produce this error in CS6 (no useful answer to this thread).

    Does anyone else know this in 2013? Any ideas? Any help is appreciated.

    CS6 AE 11.0.2.11

    V the Pro Mac OS 10.6.8

    Processor: 2 x 2.66ghz dual core intel xeon

    12 GB 667 mhz DDR2 RAM

    You can try just remove your customized workspaces... Could be as simple as that and not a problem at all with the projects themselves...

    Mylenium

  • VLD-2550 and 2551: CLOB data type errors

    Hi all

    I tried to solve thi sproblem, but have not been able to find a solution.
    Basically I have a Col1 (of A table) of the clob data type that is to be mapped to Col2 (table B).
    But when I validate the card I get the error:

    VLD-2550: BLOB, CLOB or NBLOB of the remote source data cannot be transformations (control Details: If you have any CLOB, BLOB as a remote data source, it must be directly mapped to a target feature)
    and
    VLD-2551: BLOB LCOB or NBLOB remote data source must be set based ON a SET of generation mode.

    My card has a mapping one between the passes of the tables A and B. Col1 is directly related to Col2 (if that is what is meant by any of the transformations of type CLOb)

    Thank you very much

    Hello

    If your source table (which the CLOB) is in the remote computer then you must set the mapping mode basic SET and you need to connect directly the source column of the target column.

    If you still get this kind of validation waring and simple not then ignore them.
    This is a defect of OWB. See Bug 5989066 : card VALIDATION WITH BLOB OBJECTS JETTÉ VLD-2550 AND VLD-2551 WARNINGS, which has yet to be fixed.

    Thank you
    Fati

Maybe you are looking for