Import object type table problem

After import database i didn't find (User define object type)
or tables based on object
PS. i create another user on the same server and import DMP to it
Thanks
Khalil Sakr

Hi,
I do not know what you exaclty mean but are you just want to create a internal table or an table type?
DATA: ta_mara type standard table of mara.
TYPE: tt_mara type standard table mara.
Again, I have difficulties to understand what you need.
Best regards,
Guido Koopmann

Similar Messages

  • Working with oracle object type tables

    Hi,
    I've created a table which only contains Oracle object types (e.g. CREATE TABLE x OF <...>). When I create an Entity for this table using the Entity wizard, I end up with an entity with the attributes of the base object type and two special attributes REF$ (reference to the object type instance) and SYS_NC_OID$ (unique object identifier). The REF$ attribute is on the Java side of type oracle.jbo.domain.Ref and the other attribute is on the Java side a simple String.
    It seems this only allows me to save objects of the base type in this table. First of all in my situation this is also impossible because the base type is not instantiable. What I do want is to save several different subtypes into this table using the BC4J custom domain mechanism. Is there any way to make this possible? I first thought I could maybe do something with the special REF$ attribute, but this doesn't seem te case. So I might need to override most of the EntityImpl methods, like doUML, remove etc. Am I right? And does anyone have any hints on how to do this?
    Regards,
    Peter

    Peter:
    Hi,
    I've created a table which only contains Oracle
    object types (e.g. CREATE TABLE x OF <...>).
    When I create an Entity for this table using the
    Entity wizard, I end up with an entity with the
    attributes of the base object type and two special
    attributes REF$ (reference to the object type
    instance) and SYS_NC_OID$ (unique object identifier).
    The REF$ attribute is on the Java side of type
    oracle.jbo.domain.Ref and the other attribute is on
    the Java side a simple String.
    It seems this only allows me to save objects of the
    base type in this table. First of all in my situation
    this is also impossible because the base type is not
    instantiable. What I do want is to save several
    different subtypes into this table using the BC4J
    custom domain mechanism. Is there any way to make
    this possible? Sorry, but this is not supported out of the box.
    Since you have an object table, you wouldn't use domains to achieve this. Instead, you would have a superclass and subclass entity objects, e.g., PersonEO subclassed into StudentEO and EmployeeEO.
    I first thought I could maybe do
    something with the special REF$ attribute, but this
    doesn't seem te case. So I might need to override
    most of the EntityImpl methods, like doUML, remove
    etc. Am I right? And does anyone have any hints on
    how to do this?
    If you want, you can try this by overridding EntityImpl's:
       protected StringBuffer buildDMLStatement(int operation,
          AttributeDefImpl[] allAttrs,
          AttributeDefImpl[] retCols,
          AttributeDefImpl[] retKeys,
          boolean batchMode)
    and
       protected int bindDMLStatement(int operation,
          PreparedStatement stmt,
          AttributeDefImpl[] allAttrs,
          AttributeDefImpl[] retCols,
          AttributeDefImpl[] retKeys,
          HashMap retrList,
          boolean batchMode) throws SQLException
    Handle the case when operation == DML_INSERT.
    There, build an insert statement with substitutable row, e.g.:
    INSERT INTO persons VALUES (person_t('Bob', 1234));
    INSERT INTO persons VALUES (employee_t('Joe', 32456, 12, 100000));
    where person_t and employee_t are database types and you are invoking the respective constructor.
    Thanks.
    Sung

  • Type table problem

    Dear Friends,
    We are currently working with Sap R/3 4.7 Enterprise System.
    Obviously is the below line not allowed since I am receiving always an error message. Do you know a workaround for
    data et_sublist type table.
    Thansk in advance
    Alexander

    Hi,
    I do not know what you exaclty mean but are you just want to create a internal table or an table type?
    DATA: ta_mara type standard table of mara.
    TYPE: tt_mara type standard table mara.
    Again, I have difficulties to understand what you need.
    Best regards,
    Guido Koopmann

  • Importing CSV into table - problem with tab-deliminated files

    Hi All,
    I have written an application based on well-known Uploading excel sheet using Oracle Application Express (APEX) example from the following site:
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    All works as expected...
    However the code in the example assumes that the CSV file is really comma-delimited file:
    v_line := REPLACE (v_line, ',', ':');
    Now, I have noticed that when different people use "Save as CSV" function in Excel they sometimes get different results. For example sometimes you get a file which is semicolon delimited (';').
    However, I need to process a file which is tab-delimited file. Thinking is was quite simple task I simply change the above line of code to:
    v_line := REPLACE (v_line, chr(9), ':');
    where chr(9) is the ASCII code for horizontal TAB
    I was very surprised however to see that if I process the tab-delimited file with the above line I receive an extra character between EVERY CHARACTER. To give you an example:
    1) When processing a normal comma or semicolon delimited file using v_line := REPLACE (v_line, *','*, ':'); or v_line := REPLACE (v_line, *';'*, ':'); I receive correct results:
    SQL> select contract_value,dump(CONTRACT_VALUE) from sdpr_upload;
    CONTRACT_VALUE DUMP(CONTRACT_VALUE)
    354000 Typ=1 Len=6: 51,53,52,48,48,48
    555569 Typ=1 Len=6: 53,53,53,53,54,57
    2) When processing a TAB-DELIMITED file using v_line := REPLACE (v_line, chr(9), ':'); I get this:
    SQL> select contract_value,dump(CONTRACT_VALUE) from sdpr_upload;
    CONTRACT_VALUE DUMP(CONTRACT_VALUE)
    3 5 4 0 0 0 Typ=1 Len=13: 0,51,0,53,0,52,0,48,0,48,0,48,0
    5 5 5 5 6 9 Typ=1 Len=13: 0,53,0,53,0,53,0,53,0,54,0,57,0
    Now the BIG QUESTION ARE:
    Where do these 0's come from? How to get rid of them?
    Many thanks for any pointers!
    Pawel.

    Thanks for the tip, however the problem is to actually load the tabbed file.
    I think the issue lies somewhere else. I see some weird characters in the export file when viewing it in Linux vi. So I am guessing this could be some unnicode conversion problem rather than any issue with the application or script.
    Is there anyway one could upload a UNICODE text file into Apex?

  • Full import/export from 10gR2 to 11gR1 / ORA-39083: Object type PROCACT_SYS

    Hi,
    I did a full db export/import (data pump - skipped existing objects) from 10gR2 to 11gR1 (win2003 server). it looks like everything went fine except with this error:
    is this a serious error? what should I do to fix this error?
    ORA-39083: Object type PROCACT_SYSTEM failed to create with error:
    ORA-20000: Incompatible version of Workspace Manager Installed
    Failing sql is:
    BEGIN
    declare ver varchar2(100) ; dummy integer; compile_exception EXCEPTION; PRAGMA EXCEPTION_INIT(compile_exception, -06550); invalid_table EXCEPTION; PRAGMA EXCEPTION_INIT(invalid_table, -00942); procedure createErrorProc is begin execute immediate 'create or replace function system.wm$_check_install return boolean is begin return true ; end;' ; end ; begin
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-29357: object AUTO_TASK_CONSUMER_GROUP already exists
    Failing sql is:
    BEGIN
    dbms_resource_manager.create_consumer_group('AUTO_TASK_CONSUMER_GROUP','System maintenance task consumer group','ROUND-ROBIN');COMMIT; END;
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'BMS_SCHEDULER.DISABLE' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Failing sql is:
    BEGIN
    bms_scheduler.disable( 'SYS."WEEKNIGHT_WINDOW"',force=>TRUE);
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','SCHEDULE_NAME');
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','START_DATE');
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','END_
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    ORA-39083: Object type TABLE failed to create with error:
    ORA-00439: feature not enabled: Partitioning
    Failing sql is:
    CREATE TABLE "SYSTEM"."LOGSTDBY$APPLY_PROGRESS" ("XIDUSN" NUMBER, "XIDSLT" NUMBER, "XIDSQN" NUMBER, "COMMIT_SCN" NUMBER, "COMMIT_TIME" DATE, "SPARE1" NUMBER, "SPARE2" NUMBER, "SPARE3" VARCHAR2(2000)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE( BUFFER_POOL DEFAULT) TABLESPACE "SYSAUX" PARTITION BY RANGE ("COMMIT_SCN") (PARTITION "P0" VALUES LESS THAN (0) PCTFREE 10 PCTUSED 4
    ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_T" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_H" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    Edited by: Odeh on Jul 29, 2009 12:49 PM
    Edited by: Odeh on Jul 29, 2009 1:12 PM

    Pl see if these MOS Docs help
    730373.1 - ORA-39083 ORA-20000 Incompatible Version of Workspace Manager Installed
    743097.1 - IMP-00017 ORA-20000 Importing older version of OWM into a higher version
    HTH
    Srini

  • ORA-39112: Dependent object type OBJECT_GRANT - using Datapump

    Hi, all.
    I am importing full database from 10g to 11g, using datapump:
    impdp system/aroeira directory=DATA_PUMP_DIR full=y dumpfile=saodlx_full.dmp logfile=saodlx_full_imp.log PARALLEL=6
    I got error message below with partitioned table:
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    Please, anybody can help me?
    Thanks in advance.
    Leonardo.

    Which exact versions are you dealing with?
    There are a couple of MOS notes about this topic: *Compatibility Matrix for Export And Import Between Different Oracle Versions [ID 132904.1]* and *Export/Import DataPump Parameter VERSION - Compatibility of Data Pump Between Different Oracle Versions [ID 553337.1]*
    It is recommended that both databases have the latest patchset installed.
    Also, you can troubleshoot the issue generating an SQL file with tables creation for the original dump (SQLFILE parameter to impdp), and extract and create those tables alone to see if there is something wrong there.
    Regards.
    Nelson

  • Domains for Oracle object types

    When I create a domain for a certain Oracle object type there is no way to create some kind of inheritance tree (and there is no discriminator support it seems). On the database level I have several object types that extend a certain base object type. I want to do the same at the BC4J level. But unfortunately this doesn't seem possible. Is there a work-around for it? I don't mind to write a little extra code, any hints or help are appreciated.
    Regards,
    Peter
    P.S.
    It seems the object type / domain support in JDeveloper 9.0.3(.1) isn't quite up there with entities and view objects. It's not even possible to change an attribute name at the Java side using the domain dialog (it's only possible by manually editing the XML and Java files). Will JDeveloper 9.0.4 have broader support for object types / domains?

    I've found a way to implement the inheritance myself, at least a start. I've noticed all custom domains for oracle object types have the static method "getCustomerDatumFactory". In this method (in the base domain class) normally an instance of the base type is returned. I've modified this method so that it returns instances of the different subtypes depending on the value of a certain column. To make this work I first have to edit the Java files of the subtypes and let them extend the base type instead of the Struct class. The factory method looks like this:
    public static CustomDatumFactory getCustomDatumFactory()
        if (fac == null)
          class facClass implements CustomDatumFactory
            public CustomDatum create(Datum d, int sql_type_code) throws SQLException
              if (d != null)
                BaseType b = new BaseType(d);
                if ("subtype1".equals(b.getType())) b = new SubType1(d);
                else if ("subtype2".equals(p.getType())) b = new SubType2(d);
                else System.err.println("Unknown subtype: " + b.getType());
                return b;
              return null;
          fac = new facClass();
        return fac;
      }I also tried to save several of the subtypes in the database in the attribute field (which is of the base type) using setAttribute, this seems to work out-of-the-box. It seems for now I only get this to work if the object type is saved in a column of a certain table, I can't get it to work (yet) for object type tables (see the other recent topic of mine).
    Is this the correct way to implement what I want? Or is there a better way?
    Regards,
    Peter

  • Oracle Object Types

    Gurus,
    Please review the below code and let me know where am i not doing correct.
    ---1) Object Type
    CREATE OR REPLACE TYPE MBS_OBJECT_TYPE AS
    OBJECT (PROJECT_NUM VARCHAR2(25),
    PROJECT_NAME VARCHAR2(555),
    DEV_PROG_TYPE VARCHAR2(555),
    ADDRESS VARCHAR2(555),
    CITY VARCHAR2(55));
    ---2) Object Type Table
    CREATE OR REPLACE TYPE MBS_OBJECT_TYPE_TAB as TABLE OF MBS_OBJECT_TYPE;
    ---3) Implementation Program and resultant error
    DECLARE
    cursor c1 is select project_num, PROJ_NAME, DEV_PRG_TYPE, ADDRESS_LINE1, CITY
    from mbs_proj_masters where dev_prg_type = 'LOAN ACQUISITION';
    V_INT NUMBER := 0 ;
    v_tab mbs_object_type_tab;
    BEGIN
    select project_num, PROJ_NAME, DEV_PRG_TYPE, ADDRESS_LINE1, CITY
    bulk collect into v_tab
    from mbs_proj_masters where dev_prg_type = 'LOAN ACQUISITION';
    END;
    Error :
    Error at line 1
    ORA-06550: line 10, column 17:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 8, column 4:
    PL/SQL: SQL Statement ignored

    Karthik Dhinakaran wrote:
    Can I append or add up rows by running the above query multiple times. Not with BULK COLLECT which overrides nested table content. Use COLLECT + MULTISET UNION ALL:
    CREATE OR REPLACE TYPE EMP_OBJ
      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)
    CREATE OR REPLACE TYPE EMP_TBL
      AS TABLE OF EMP_OBJ
    DECLARE
        v_emp_tbl emp_tbl;
    BEGIN
        SELECT  cast(
                     collect(
                             emp_obj(
                                     empno,
                                     ename,
                                     job,
                                     mgr,
                                     hiredate,
                                     sal,
                                     comm,
                                     deptno
                     as emp_tbl
          INTO v_emp_tbl
          FROM emp
          WHERE deptno = 10;
        DBMS_OUTPUT.PUT_LINE('NESTED TABLE HAS ' || v_emp_tbl.count || ' ELEMENTS.');
        SELECT  v_emp_tbl MULTISET UNION ALL
                cast(
                     collect(
                             emp_obj(
                                     empno,
                                     ename,
                                     job,
                                     mgr,
                                     hiredate,
                                     sal,
                                     comm,
                                     deptno
                     as emp_tbl
          INTO v_emp_tbl
          FROM emp
          WHERE deptno = 20;
        DBMS_OUTPUT.PUT_LINE('NESTED TABLE HAS ' || v_emp_tbl.count || ' ELEMENTS.');
        SELECT  v_emp_tbl MULTISET UNION ALL
                cast(
                     collect(
                             emp_obj(
                                     empno,
                                     ename,
                                     job,
                                     mgr,
                                     hiredate,
                                     sal,
                                     comm,
                                     deptno
                     as emp_tbl
          INTO v_emp_tbl
          FROM emp
          WHERE deptno = 30;
        DBMS_OUTPUT.PUT_LINE('NESTED TABLE HAS ' || v_emp_tbl.count || ' ELEMENTS.');
    END;
    NESTED TABLE HAS 3 ELEMENTS.
    NESTED TABLE HAS 8 ELEMENTS.
    NESTED TABLE HAS 14 ELEMENTS.
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Require help on Array of Nested tables and Oracle Object type

    Hi All,
    I have a scenario where I have some millions of records received from a flat file and the record is stored in Table as below:
    Tablename: FILE_RECORD
    Rows:
    FILE_REG_ID = 1
    RECORD_NBR = 1     
    PROCESSED_IND = U
    RECORD= 00120130326006A
    FILE_REG_ID = 1
    RECORD_NBR = 2     
    PROCESSED_IND = U
    RECORD= 00120130326003
    1) I have to read these records at once and
    a) Split the RECORD column to get various other data Eg: Fld1=001, Fld2=20130326, Fld3 = 003
    b) send as an Array to Java.
    2) Java will format this into XML and sent to other application.
    3) The other application returns a response as Successful or Failure to Java in XML
    4) Java will send RECORD_NBR and the corresponding response as Success or Failure back to PLSQL
    5) PLSQL should match the RECORD_NBR and update the PROCESSED_IND = P.
    I 'm able to achieve this using SQL Table type by creating a TYPE for Each of the fields (Flds) however the problem is Java cannot Access the parameters as the TYPE are of COLUMN Types
    Eg: For RECORD_NBR
    SUBTYPE t_record_nbr IS FILE_RECORD.T010_RECORD_NBR%TYPE;
    Can you please let me know how I can achieve this to support Java, I know one way that is by creating an OBJECT TYPE and a TABLE of the OBJECT TYPE.
    Eg: T_FILE_RECORD_REC IS OBJECT
    FILE_REG_ID number(8), RECORD_NBR number (10), PROCESSED_IND varchar2(1), RECORD varchar(20)
    Create type T_FILE_RECORD_TAB IS TABLE OF T_FILE_RECORD_REC
    However I'm facing a problem to populate an Array of records, I know I'm missing something important. Hence please help.
    It would be helpful to provide some guidelines and suggestions or Pseudo or a Code to achieve this. Rest all I can take up further.
    Thanks in advance,

    I know once way that is creating a OBJECT TYPE and a TABLE of OBJECT TYPE, howeve I feel I'm missing something to achieve this.You're right, you need SQL object types created at the database level. Java doesn't know about locally defined PL/SQL types
    However you can do without all this by creating the XML directly in PL/SQL (steps 1+2) and passing the document to Java as XMLType or CLOB.
    Are you processing the records one at a time?

  • Object Type Problem

    Hi
    I faced some problems with O8(Release 8.0.5.0.0) object types.
    Look at the following definition:
    CREATE TYPE T_JMJX AS OBJECT( LBNO NUMBER(3),...);
    CREATE TYPE LIST_JMJX AS TABLE of T_JMJX;
    CREATE TABLE JXGC.JMJXJL
    (JMJX LIST_JMJX,...)
    NESTED TABLE JMJX STORE AS N_JMJXJL;
    One day when I opened Schema Manager,I got a shock: TABLE JXGC.JMJXJL
    has four colunms with the same name !!
    name     schema datatype
    JMJX     none LIST_JMJX
    JMJX     none LIST_JMJX
    JMJX     none LIST_JMJX
    JMJX     JXGC LIST_JMJX
    And I query USER_TAB_COLUMNS, it do have 4 records.
    But in SQL*Plus I type 'decs JMJXJL',the column JMJX appears only once.
    Other tables that has object type columns face the same problem.
    This doesn't has any infection on my applications.
    The real problem comes when one day I want to move the user JXGC to an
    other server.
    Export was done successfully but has a curious phenomenon:
    Exporting NJMJXJL(the Nested Table)......19678 Exported
    The number of rows Exported is about four times than the rows it
    should has.
    When Impport goes to the tables that have object type columns ,I got
    the following errors:
    Importing Table JMJXJL ........
    IMP-00009: abnormal end of export file
    Import terminated successfully with warnings.
    Please help me to solve this problem.Thanks a lot!

    Stone,
    You need to go to metalink.oracle.com to file an iTAR on this.
    Regards,
    Geoff
    Hi
    I faced some problems with O8(Release 8.0.5.0.0) object types.
    Look at the following definition:
    CREATE TYPE T_JMJX AS OBJECT( LBNO NUMBER(3),...);
    CREATE TYPE LIST_JMJX AS TABLE of T_JMJX;
    CREATE TABLE JXGC.JMJXJL
    (JMJX LIST_JMJX,...)
    NESTED TABLE JMJX STORE AS N_JMJXJL;
    One day when I opened Schema Manager,I got a shock: TABLE JXGC.JMJXJL
    has four colunms with the same name !!
    name     schema datatype
    JMJX     none LIST_JMJX
    JMJX     none LIST_JMJX
    JMJX     none LIST_JMJX
    JMJX     JXGC LIST_JMJX
    And I query USER_TAB_COLUMNS, it do have 4 records.
    But in SQL*Plus I type 'decs JMJXJL',the column JMJX appears only once.
    Other tables that has object type columns face the same problem.
    This doesn't has any infection on my applications.
    The real problem comes when one day I want to move the user JXGC to an
    other server.
    Export was done successfully but has a curious phenomenon:
    Exporting NJMJXJL(the Nested Table)......19678 Exported
    The number of rows Exported is about four times than the rows it
    should has.
    When Impport goes to the tables that have object type columns ,I got
    the following errors:
    Importing Table JMJXJL ........
    IMP-00009: abnormal end of export file
    Import terminated successfully with warnings.
    Please help me to solve this problem.Thanks a lot!

  • Problems on Object types

    Hi
    I faced some problems with O8(Release 8.0.5.0.0) object types.
    Look at the following definition:
    CREATE TYPE T_JMJX AS OBJECT( LBNO NUMBER(3),...);
    CREATE TYPE LIST_JMJX AS TABLE of T_JMJX;
    CREATE TABLE JXGC.JMJXJL
    (JMJX LIST_JMJX,...)
    NESTED TABLE JMJX STORE AS N_JMJXJL;
    One day when I opened Schema Manager,I got a shock: TABLE JXGC.JMJXJL has four colunms with the same name !!
    name schema datatype
    JMJX none LIST_JMJX
    JMJX none LIST_JMJX
    JMJX none LIST_JMJX
    JMJX JXGC LIST_JMJX
    But in SQL*Plus I type 'decs JMJXJL',the column JMJX appears only once.
    Other tables that has object type columns has the same problem.
    This doesn't has any infection on my applications.
    The real problem comes when one day I want to move the user JXGC to an other server.
    Export was done successfully but has curious phenomenon:
    Exporting NJMJXJL(the Nested Table)......19678 Exported
    The number of rows Exported is about four times than the rows it should has.
    When Imp80 goes to the tables that have object type columns ,I got the following errors:
    Importing Table JMJXJL ........
    IMP-00009: abnormal end of export file
    Import terminated successfully with warnings.
    Please help me to solve this problem.Thanks a lot!

    Hi Alberto/Herald,
    Thanks for your response.
    p_serial_prod_in is a variable of table type srl_prd_type, and there are two elements in the table, serial number and product number.
    My procedure has to handle all the serials and the products that it will receive as an input, (Both Forms and Java application will use this procedure)
    I have used l_serial_num because after all the special characters are filtered i will use the value that i have captured in the l_serial_num.
    I wish to put the validation in a loop for all the serials and products that i receive as an input. Please advise.
    Thanks and Regards
    Srinivas

  • S/A bridge problem: No object type found for the message

    Hi all,
    I've been spending days looking into the following problem. I have a RFCXIFile scenario. The R3 system sends data via an RFC to XI and XI post the data as a flat file on a certain server using FTP.
    This scenario worked just fine for 1 exception. I could only run this scenario once. The second time I got timeouts when checking the data sent to my RFC destination using SM58. When I reactivated my RFC communcation channel I could again send 1 RFC to the system. All subsequent tries would fail.
    I guess this is due to the fact that I use a synchonous call (RFC) to an asynchronous one. Thus the adapter is still waiting for the response from the XI system and will not accept any further new calls from R3.
    So I figure let's use this pattern called the S/A bridge. So I designed everything according to guides and examples and I'm quite certain everything is configured right but when I run the scenario I get the following message:
    <i> <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">UNKNOWN_MESSAGE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No object type found for the message. Check that the corresponding process is activated</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error></i>
    It seems that the adapter cannot find any integration process to send the message into!?
    I've looked at numerous threads on sdn and tried all kinds of stuff (looked at the cache==> code 0 = OK , tried to reactivate my integration process, checked the interface determination,...), but to no avail. Does anybody has an idea what could be wrong ?
    Any help would be greatly appreciated for I'm all out of clues....
    Bob

    First of all, Thank you for trying to help me out here.
    Some answer to your suggestions/questions:
    The IP has return code 0 in SXI_CACHE. so that doesn't seem to be the problem.
    I've checked the BPM for syntax errors. I doesn't have any.
    I've reimported the BPM into the integration directory.
    And did a full cache refresh in SXI_CACHE. Return code is (stays) zero, so that's OK.
    I've already included the error message from SXI_MONI. It is in the last step ("Call Adater") that the error occurs.
    The other steps execute just fine...
    The RFC communcation channel accepts the incoming RFC call and puts into the pipeline, so no problems with the communication channel either. the problem is actually when the pipeline is trying to forward the message into an IP trhough the BPE_ADAPTER (according to SXMB_MONI).
    Therefore I'm not able to go to into PE, because the workflow is never started. the BPE_ADAPTER does not find any active process for the interface determination i've entered.
    So i can not debug the IP in the PE and check container variables, like some of you mentioned.
    Maybe some more information about the scenario:
    The RFC is called from an R3 system to XI over the interface "CONTROL_RECIPE_DOWNLOAD", which is an imported RFC, with a request and response message type.
    Then I got a receiver and interface determination with lead the incoming RFC message to the IP, into interface "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI".
    This is an abstract synchronous interface based on the request and response types of the "CONTROL_RECIPE_DOWNLOAD" imported RFC.
    This interface is used the first step (receive) of my BPM as the synchronous interface to open the S/A bridge.
    The message (container var)  used in this step is
    name: CORREQ
    Category: Abstract interface
    type: "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI"
    The interface "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI" is an abstract, asynchronous interface based on the request type of the "CONTROL_RECIPE_DOWNLOAD".
    Then there are 2 send steps for putting the flat files into place and finally i close the the S/A bridge using message:
    name: CORRES
    Category: Abstract interface
    type: "XI_ERP_MF_MD_CONTROL_RECIPE_RES_AI_MI"
    The interface "XI_ERP_MF_MD_CONTROL_RECIPE_RES_AI_MI" is an abstract, asynchronous interface based on the response type of the "CONTROL_RECIPE_DOWNLOAD".
    I hope this information gives you guys a better understanding of hte problem.
    Really looking forward to see more suggestions and to solve this nasty problem ...
    Regards,
    Bob

  • Oracle Object Types vs. Table Fields

    Hello, all.
    I`m totally new to Oracle, and I am facing a very hard problem for me, and I would like to ask your help.
    I've been working on a project which uses Oracle Object Types, from a database of a legacy system.
    I did not know Oracle Objects until 5 minutes ago, so sorry If I say something stupid:
    Per my understanding, a Oracle Object Type can be formed by fields like myField varchar(200)... and fields from an existing table or view.
    I have a lot of objects on my system and I need to map each field and its respective table or view that compose each object.
    Does anyone have a query for that? I think it should be common, but I could not find anything at google (maybe I don`t which terms use to find...)
    I would be very thankful if somebody could help (save) me.
    Thanks in advance.
    Paulo

    First, it would help if you post what you object types look like.
    I'm assuming they may look something like this:
    SQL> create TYPE emp_type AS OBJECT
      2    (emp_id   NUMBER,
      3     name VARCHAR2(20));
      4  /
    Type created.
    SQL> create TYPE emp_tab IS TABLE OF emp_type;
      2  /
    Type created.
    SQL> create or replace package emp_test as
      2  procedure get_emps;
      3  end emp_test ;
      4  /
    Package created.
    SQL> create or replace package body emp_test as
      2    employees emp_tab := emp_tab();
      3    procedure get_emps as
      4      g_rc sys_refcursor;
      5  BEGIN
      6    employees.EXTEND(2);
      7    employees(1) := emp_type (1, 'John Smith');
      8    employees(2) := emp_type (2, 'William Jones');
      9    OPEN g_rc FOR
    10    SELECT * FROM TABLE (CAST (employees AS emp_tab));
    11  END get_emps ;
    12  end emp_test ;
    13  /
    Package body created.

  • Varray, Nested Table and Object types in OWB r2

    Requirement:
    Flat file with repeating groups of nested content need to move into Object Relational ORACLE table (using varray or nested tables - no preference). The data will be loaded, then mapped/transformed into a richer O-R output to directly produce XML outputs.
    Problem:
    Generated PL/SQL "seems" to do the correct thing, but deployment errors show failures on mapping of collections (varrays, NTs or OTs) and in sqlplus recompiling the PKB still gives the errors. Is this a PL/SQL generator error, or is there a more meaningful example of using CONSTRUCT OBJECT operator than the embedded odcumentation - it is a simple type (single instance) and not a variable repeating group of nested data.
    Anyone had any success with these, or know of any collateral to assist in the process. Thanks.

    The process we are following is very simple. We are talking 10 columns from a source flat file table and wish to map this into a Varray/Nested table, with one column of Varchar2(10).
    When you create your map in OWB, select the construct object, you have to choose an object type - it does not allow you to select a VARAAY or NESTED table.
    I have then created an object defined in the same structure as the VARRAY/NESTED table - I have then made the VARRAY/NESTED table of this TYPE.
    Example:
    CREATE OR REPLACE TYPE "O_REL_PUB_INDEX" AS OBJECT (
    X_REL_PUB_INDEX_1 VARCHAR2(10))
    CREATE OR REPLACE TYPE "V_REL_PUB_INDEX" AS VARRAY(15) OF O_REL_PUB_INDEX
    In OWB you can then select O_REL_PUB_INDEX when creating the 'Contruct Object'.
    The problem I have is that when I map to my target column of type V_REL_PUB_INDEX and DEPLOY my map I get the following errors taken from OWB control centre
    Name
    Action
    Status
    Log
    TEST
    Create
    Warning
    ORA-06550: line 2931, column 9:
    PL/SQL: SQL Statement ignored
    TEST
    Create
    Warning
    ORA-06550: line 3174, column 11:
    PL/SQL: ORA-00932: inconsistent datatypes: expected OWB_USER.O_REL_PUB_INDEX got OWB_USER.V_REL_PUB_INDEX
    TEST
    Create
    Warning
    ORA-06550: line 401, column 7:
    PL/SQL: SQL Statement ignored
    TEST
    Create
    Warning
    ORA-06550: line 643, column 13:
    PL/SQL: ORA-00932: inconsistent datatypes: expected OWB_USER.O_REL_PUB_INDEX got OWB_USER.V_REL_PUB_INDEX
    TEST
    Create
    Warning
    ORA-06550: line 7221, column 9:
    PL/SQL: SQL Statement ignored
    TEST
    Create
    Warning
    ORA-06550: line 7464, column 11:
    PL/SQL: ORA-00932: inconsistent datatypes: expected OWB_USER.O_REL_PUB_INDEX got OWB_USER.V_REL_PUB_INDEX
    Any ideas? anyone succesfully mapped to either a VARRAY or an NESTED TABLE target column?

  • Define Object type(s) to transform relational tables to xml

    I have the Object type and query defined below and output. My problem is that I want to add an attribute to the CLM_MNGT_PROC_STEP_TYPE_NAME node in the XML. The samples I am using from OTN only show either an attribute or a nodevalue, not both.
    CREATE OR REPLACE TYPE CONTEXTSTATECLAIM_TYPE AS OBJECT
    "@error" VARCHAR2(1),
    "CONTEXT_STATE_ID" VARCHAR2(36),
    "CONTEXT_TYPE_CODE" VARCHAR2(10),
    "CLM_MNGT_PROC_STEP_TYPE_NAME" VARCHAR2(50),
    "BATCH_NAME" VARCHAR2(30),
    "DATE_OF_SERVICE" DATE,
    "PATMRN" VARCHAR2(20),
    "PROVIDER_NAME" VARCHAR2(50),
    "MEMBER_NAME" VARCHAR2(50),
    "ASSIGNEDTO_NAME" VARCHAR2(50),
    "LOCKED" VARCHAR2(1)
    SELECT sys_xmlagg(
    sys_xmlgen(
    CONTEXTSTATECLAIM_TYPE(
    DECODE(context_state.xerror_id,NULL,'N','Y'),
    context_state.context_state_id,
    context_state.context_type_code,
    clm_mngt_proc_step_type.priority_indicator || clm_mngt_proc_step_type.clm_mngt_proc_step_type_name,
    --                         clm_mngt_proc_step_type.color,
    context_state.batch_name,
    context_state.date_of_service ,
    context_state.patmrn,
    context_state.provider_name,
    context_state.member_name,
    office_user.user_name,
    DECODE(context_state.lockedby_id,NULL,'N','Y')
    ),sys.xmlgenformattype.createFormat('CLAIM')
    ), sys.xmlgenformattype.createFormat('CLAIMS')
    ).GETCLOBVAL() "XML"
    FROM context_state,
    office_user,
    clm_mngt_proc_step_type
    WHERE context_state.assignedto_id = office_user.user_id (+)
    AND context_state.clm_mngt_proc_step_type_code = clm_mngt_proc_step_type.clm_mngt_proc_step_type_code
    AND context_state.office_id = '99'
    <?xml version="1.0"?>
    <CLAIMS>
    <CLAIM error="N">
    <CONTEXT_STATE_ID>34A5ED94-569E-49C0-904E-7483BFF566CE</CONTEXT_STATE_ID>
    <CONTEXT_TYPE_CODE>SAVECLAIM</CONTEXT_TYPE_CODE>
    <CLM_MNGT_PROC_STEP_TYPE_NAME>Phys.Not Found</CLM_MNGT_PROC_STEP_TYPE_NAME>
    <BATCH_NAME>20020122-1049</BATCH_NAME>
    <DATE_OF_SERVICE>22-JAN-02</DATE_OF_SERVICE>
    <PATMRN>03NMF87661234</PATMRN>
    <PROVIDER_NAME>Hamilton, D.R.</PROVIDER_NAME>
    <MEMBER_NAME>Collins, Jane</MEMBER_NAME>
    <LOCKED>N</LOCKED>
    </CLAIM>
    <CLAIM error="N">
    <CONTEXT_STATE_ID>D8C484E7-D413-43CF-B2F4-796B4778C00E</CONTEXT_STATE_ID>
    <CONTEXT_TYPE_CODE>SAVECLAIM</CONTEXT_TYPE_CODE>
    <CLM_MNGT_PROC_STEP_TYPE_NAME>Phys.Not Found</CLM_MNGT_PROC_STEP_TYPE_NAME>
    <BATCH_NAME>20020122-1049</BATCH_NAME>
    <DATE_OF_SERVICE>22-JAN-02</DATE_OF_SERVICE>
    <PATMRN>03NMF45385225</PATMRN>
    <PROVIDER_NAME>Willford, M.</PROVIDER_NAME>
    <MEMBER_NAME>Thomas, Lisa</MEMBER_NAME>
    <LOCKED>N</LOCKED>
    </CLAIM>
    </CLAIMS>

    Please follow the discussion in the following thread
    How does XML DB transform a Schema into object-relationals tables?

Maybe you are looking for

  • Exe giving error for report generation and LV 8.6.1

    I have created and installed a labview application in a PC(windows XP) where labview is not installed.  (already included NI_Excel.lvclass) I have used a report(excel) generation to display the results. I am getting following error: Error Code: -2147

  • Query on Strings in point of memory..?

    Can any one explain the below code clearly in point of memory? String A = new String("abc"); // 1. How many objects are created here? String B = "def"; //2. How many objects here? A = A + B; // Here Value of A is 'abcdef'. As we know String objects a

  • Adding photos to slideshow.

    I'm trying to add photos to my slideshow.  They currently reside in a folder under Folders and my slideshow is in the Collections category.  No luck combining the two.  I know I'm missing something totally obvious here.

  • Upgrade FCE from 2.0 to 3.5

    When I try to upgrade my FCE 2.0 to 3.5, the installation does not allow me to upgrade the app. It will upgrade the "helper" apps but not the FCE. Version 2.0 runs well, no problem. And I'm using an AGP card (ATI Radeon 9600 Pro) on a dual G5, with p

  • HT201210 showing code 3014,what is the problem?

    showing code 3014,what is the problem..i cant use my phione...because ur stupid maxis send me to update my version...pls respon me soon..tq