Loading object type data -- solution required ASAP

Hi
I have the following table
content
(id number primary key,
content contenttype)
where contenttyoe is
(doc blob, mimetype varchar2(100))
In order to load Bulk data I use ths following script but it keeps giving errors
Please can anyone help
LOAD DATA
INFILE *
INTO TABLE content
APPEND
FIELDS TERMINATED BY ','
(ID integer external,
external_fname FILLER CHAR(128),
content LOBFILE (content.doc.external_fname)
BEGINDATA
55,d:/sampledata/html/Kewlminds_com.htm
33,d:/sampledata/html/travel.htm
The error states
"column CONTENT references a non-existant feild"
I have tried variosu other ways
Is there a solution?
PLEASE REPLY ASAP thank you
null

Hi
I have the following table
content
(id number primary key,
content contenttype)
where contenttyoe is
(doc blob, mimetype varchar2(100))
In order to load Bulk data I use ths following script but it keeps giving errors
Please can anyone help
LOAD DATA
INFILE *
INTO TABLE content
APPEND
FIELDS TERMINATED BY ','
(ID integer external,
external_fname FILLER CHAR(128),
content LOBFILE (content.doc.external_fname)
BEGINDATA
55,d:/sampledata/html/Kewlminds_com.htm
33,d:/sampledata/html/travel.htm
The error states
"column CONTENT references a non-existant feild"
I have tried variosu other ways
Is there a solution?
PLEASE REPLY ASAP thank you
null

Similar Messages

  • Dynamically built query on execution How to save the data in Object Type

    Hi,
    In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
    output of the query in it. Here is the Object Type I have
    CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
    pkid NUMBER,
    pkname VARCHAR2(100);
    pkcity VARCHAR2(100);
    pkcounty VARCHAR2(100)
    CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
    --I initialize my Object Type*
    data := new FIRST_RECORDTYPETAB();
    FOR some_cursor IN c_get_ids (username)
    LOOP
    x_context_count := x_context_count + 1;
    -- here I build the query dynamically and the same query generated is
    sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
    -- and now I need to execute the above query but need to store the output
    EXECUTE IMMEDIATE sql_query
    INTO *<I need to save the out put in the Type I defined>*
    END LOOP;
    How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
    Any help is appreciated.
    Thanks

    hai ,
    solution for Dynamically built query on execution How to save the data in Object Type.
    Step 1:(Object creation)
    SQL> ED
    Wrote file afiedt.buf
    1 Create Or Replace Type contract_details As Object(
    2 contract_number Varchar2(15),
    3 contrcat_branch Varchar2(15)
    4* );
    SQL> /
    Type created.
    Step 2:(table creation with object)
    SQL> Create Table contract_dtls(Id Number,contract contract_details)
    2 /
    Table created.
    Step 3:(execution Of procedure to insert the dynamic ouput into object types):
    Declare
    LV_V_SQL_QUERY Varchar2(4000);
    LV_N_CURSOR Integer;
    LV_N_EXECUTE_CURSOR Integer;
    LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
    OV_V_CONTRACT_NUMBER Varchar2(15);
    LV_V_CONTRACT_BRANCH Varchar2(15);
    Begin
    LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
    LV_N_CURSOR := Dbms_Sql.open_Cursor;
    Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
    Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
    Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
    LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
    Loop
    Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
    Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
    Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
    Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
    Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
    INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
    End Loop;
    Dbms_Sql.close_Cursor (LV_N_CURSOR);
    COMMIT;
    Exception
    When Others Then
    Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
    Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
    End;
    step 4:check the values are inseted in the object included table
    SELECT * FROM contract_dtls;
    Regards
    C.karukkuvel

  • Object changed by date,person required for table TADIR

    HI Experts,
        I required this
            the entries in tadir table has belonged to different object types.
      i required the last changed by ,last change date.if u recommended that depending on object type select those changedby ,date from different tables please give for all object types presented in tadir.
    sailaja please explain clearly.
    please reply as early as possible
    i reward all helpfull answers.
    Message was edited by:
            sunil kumar

    The different object types maintained in TADIR are
    CORR MERG Comment: Object List Included
    CORR PERF Perforce Changelist
    CORR RELE Comment Entry: Released
    R3TR  APPL  Application Class
    R3TR  AQBG ABAP Query
    R3TR  ATPL  Transport of Profile
    R3TR  BMFU  Function
    R3TR  BMFV  Global Function Variant
    R3TR  DEVC  Package
    R3TR  DOMA  Domain
    R3TR  DOCT  General Text
    R3TR  DTEL   Data Element
    R3TR  FXID   Text ID's
    R3TR  IDOC   Basic Type
    R3TR  LDBA   Logical Database
    R3TR  MCID   Matchcode ID
    R3TR  NOTE   Sap Note
    R3TR  PROG   Program

  • How to create required object types manually ?

    Hi all,
    I got this XML schema entry:
    <xs:element name="Chapters"
    minOccurs="0"
    maxOccurs="1"
    xdb:SQLName="CHAPTERS"
              xdb:SQLType="XDB_CHAPTERS_TYPE">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Chapter"
              xdb:SQLName="CHAPTER"
    xdb:SQLCollType="XDB_CHAPTERS_COLLECTION"               
                   minOccurs="1"
                   maxOccurs="unbounded"
                   xdb:SQLType="XDB_CHAPTER_DETAILS_TYPE">
         <xs:complexType>
              <xs:simpleContent>
              <xs:extension base="xs:string">
              <xs:attribute name="No"
                        type="xs:positiveInteger"
                        xdb:SQLName="NO"/>
              </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         </xs:element>
         </xs:sequence>
         </xs:complexType>
    </xs:element>
    which results in this entry in a XML file:
    <Chapters>
    <Chapter No="12">The Longest Time</Chapter>
    </Chapters>
    Question: How do I have to create the corresponding object type, which is required for XML schema registration ?
    Any help is appreciated...
    Regards Markus

    Hi Markus
    I don't know why you want to manually creates the types... anyway since it can by quite complex to write all CREATE TYPE statement for a real schema... here my suggestion:
    1) activate a tracing with the following statement
    ALTER SESSION SET EVENTS '31098 TRACE NAME CONTEXT FOREVER'
    2) register the schema with GENTYPES=&gt;TRUE
    3) in a trace file under UDUMP you find all the statements executed, therefore the CREATE TYPE as well
    4) use these statement as basis for your scripts
    Chris

  • Info object as Data type as NUMC, master data doesnot store value as 0

    Hello All,
    I have an Info Object whose data type is NUMC.
    It has only text Master Data.
    Id and its description are the two fields of that Master data.
    Now when below data is feeded in to that infoobject through transformation which has 1 to 1 mapping.
    ID              Description
    0                Submiited
    1                 Approved
    2                  cancelled
    The data gets uploaded in text table but.
    0 ID values turns out to be "       "    blank.
    Which is wrong.
    Result in Text Master table:
    ID                Description
                        Submitted
    1                  Approved
    2                 Cancelled
    if the ID is 0 it should be populated as 0 for "submitted"
    No start routine our end routine is ther in the transformation.
    Kinldy help me to solve this issue.
    Points will be assigned

    Hi,
    When an InfoObject is created it'll have a blank record, in case of Numc it'll be as shown below:
    ID  Description
    0   Blank
    But this 0 gets displayed as blank as well.
    When you post transaction/master data you can post it as
    0 for Submitted
    1 for...
    2 for...
    When you do reporting on this & if you only select text display only it'll display "Submitted", which is required. But if you display ID & text or only ID. It'll display # instead of 0.
    See if you can replace this # with 0.
    Mean while i'll be trying to get this solution. I'll post soon if i get the solution.
    Regards,
    Iliyas

  • In 6.0 get error "END_OF_RECORD" must be a character-type data object .....

    Hi All,
    following piece of code was working fine in 4.6 C   but in ECC 6.0 I get the following error:
    "   "END_OF_RECORD" must be a character-type data object (data type C, N,D, T or STRING) .  " 
    I tried type-casting with field symbols but still not able to remove the error.  Cannot convert end_of_record directly to type C as it may hamper the functionality. Plz advice how to remove the error without converting type x to type C
    In the following code :
    DATA:  DELIMITER   TYPE C VALUE   CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
            end_of_record             TYPE x.
    SPLIT data_file_i AT delimiter INTO it_ekko-rtype
                                              it_ekko-ebeln
                                              it_ekko-bsart
                                              it_ekko-lifnr
                                              it_ekko-bedat
                                              it_ekko-ekorg
                                              it_ekko-ekgrp
                                              it_ekko-bukrs
                                              it_ekko-zterm
                                              it_ekko-zbd1t
                                              it_ekko-zbd1p
                                              it_ekko-zbd2t
                                              it_ekko-zbd2p
                                              it_ekko-zbd3t
                                              it_ekko-inco1
                                              it_ekko-inco2
                                              it_ekko-waers
                                              it_ekko-wkurs
                                              it_ekko-kufix
                                              it_ekko-verkf
                                              it_ekko-telf1
                                              it_ekko-ihrez
                                              it_ekko-unsez
                                              it_ekko-angnr
                                              it_ekko-ihran
                                              it_ekko-submi
                                              it_ekko-loekz
                                              end_of_record.
    where all these fields except  " end_of_record " are of character type and  "data_file_i " is a character type structure as defined below:
    DATA :
      BEGIN OF data_file_i OCCURS 0,
        record(1000),
      END OF data_file_i,

    Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
    Before Unicode
                      CONSTANTS: c_hex TYPE x VALUE '09'.
    Resolution:
    Itu2019s work for any value of x.
    First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
    Example:
    CONSTANTS: c_hex TYPE x VALUE '09'.
    DATA: LV_TEMP TYPE STRING.
    DATA: LV_TMP TYPE C.
    TRY.
    CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
    EXPORTING
    UCCP   = c_hex
    RECEIVING
    CHAR   = LV_TMP   .
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    ENDTRY.
    CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG            
    I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
    SEPARATED BY LV_TMP.                      
    I_BUFFER = LV_TEMP.
    CLEAR LV_TEMP.
    CLEAR LV_TMP.
    OR
    Note: It works only for type x value  09.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: c_hex TYPE c VALUE
                             abap_char_utilities=>HORIZONTAL_TAB.

  • Problem with decimal data visualization in a circular graphic object type

    When we are design a report using Crystal Reports 2008 we found the following problem. When we insert an object of type circle graphic selecting the option in the graphics wizard for view in the legend data both in value and percentage (u2018bothu2019 design) we cant show them in a two decimals format at the same time.
    Using the option u2018number formatu2019 and indicating two decimals only affects the value but not the percentage.
    Show both the value and the percentage with two decimals at same time itu2019s a necessary requirement for our report design.
    Is there any way to show both the value and the percentage in a circle graphic object with two decimals at the same time?
    Thanks.

    hello Jose,
    i am not sure what you mean by "circular graphic object type".
    there's nothing in the standard cr 2008 build that has this that i've ever found that creates a circle other than inserting a box and changing the rounding on the corners. if you're using a 3rd party product or add-on you'll need to contact whoever built it.
    cheers,
    jamie

  • Movement types data not capturing from BW cube data load

    Dear Experts,
    We are supporting BPC 10.0 Netweaver consolidation activities.
    As a part of the monthly consolidation, we are loading the ECC data available in the BW cubes into BPC.
    0FIGL_C10 cube: From this standard cube we are capturing the movement types (i.e, transaction type details) for the balance sheet items. So opening minus closing should be equal to the movement types.
    ZFIGl_CA10  : From this cube the YTD closing balances of the balance sheet items are captured.
    Opening balances are copied from the last period of the previous year through balance carry forward.
    For a balance sheet itens, we are getting the F99 closing balances correctly captures.
    But, the movement types are not getting captured correctly and the difference between the (opening + movements) - closing is sitting the controls.
    I have tried to check ECC data for these accounts in FS10N and 0FIGL_C10. The monthly data is all flowing properly. But when coming into BPC movement type alone has the problem.
    The transformation and conversion has all worked fine time June 2014 but July 2014 it has incorrect figures.
    No modifications are done for both the file.
    Please find the below attached screen shot and kindly help me on the same.
    Regards,
    Shilpa

    Hi Shilpa,
    I had the same problem in mi last consolidation implementation and the solution in this case was
    implement all the data flow for the 0FI_GL_014,
    Regards,
    Mario

  • How to export & import interface type data object to memory

    Hi experts,
    My greetings to all.
    we have came across a situation where we need to pass interface type data object to memory
    and import same from memory.
    DATA context TYPE REF TO if_timecontext.
    its not possible with regular export statement.
    is their any other way to do it?
    Thanks in advanced,
    Sudhir

    Thank you saurabhmani & sandra.
    @ saurabhmani : i tried assigning object context to memory (field-symbol) and exporting it to memory, but got runtime error.
    @sandra : XML serialization & shared object concept sounds intresting but as you already checked that interface IF_TIMECONTEXT is missing the required IF_SERIALIZABLE_OBJECT interface.
    Istead of exporting context data object to memory we tried different approch and it worked out for our requirement
    Regards
    Sudhir

  • Working with Data Loading page type

    All,
    i am creating a page of type="Data Loading" so i can load various data. However i want to bypass the process part where we map the fields/columns(i.e Data/Table mapping) because all data i load are stored in only one column so this mapping part is unnecessary. My requirement is to load the data then when you click next button it should take you to the "Data Validation" part then finally "Data Load Results" part.
    How do i go about this?
    apex 4.1.1

    You might try to mimic a button-press for the [Next] button. Probably just a submit will do after page rendering (so create a Dynamic Action that submits immediately after load)

  • I have the requirment, i have to display the equipment object type.

    Hi,
    i have to display data from the following fields, the equipment object type(EQUI_EQART), materil numb(EQUI-MATNR),asset number(EQUI-ANLNR),  placement date(AFKO-GLTRP),
    QMEL-VBELN, VBAP-NEPR, IHPA-PARNR, KNA1-NAME1, KNA1-STRAS, KNA1-KATR6,
    KNVP-PARVW, KNVV-VKBUR,
    JCDS-STAT.
    how can i map the field(GLTRP) from AFKO  with other tables.
    Kindly send me as soon as possible.

    Hi:
    Declare 2 variables in page attribute like tdate/ydate type d
    in intilization
    assign like
    tdate = sy-datum
    ydate = sy-datum-1.
    in page attribute like
          <tr><td>
          <htmlb:label for       = "ip_doj"
                       labelType = "MEDIUM"
                       text      = "Current Date (DD.MM.YYYY)" />
          </td>
                                  <td>
          <htmlb:inputField id         = "tdate"
                            required   = "TRUE"
                            doValidate = "TRUE"
                            type       = "DATE"
                            showHelp   = "TRUE"
                            size       = "10"
                            maxlength  = "10" />
          </td></tr>
          <tr><td>
          <htmlb:label for       = "ip_doj"
                       labelType = "MEDIUM"
                       text      = "Yesterday Date (DD.MM.YYYY)" />
          </td>
                                  <td>
          <htmlb:inputField id         = "ydate"
                            required   = "TRUE"
                            doValidate = "TRUE"
                            type       = "DATE"
                            showHelp   = "TRUE"
                            size       = "10"
                            maxlength  = "10" />
          </td></tr>
    Regards
    Shashi

  • Bussines object reference into Solution into Solution Data Base

    Hi Experts
    I´m creating Solution Data Base based on the following  landscapes: R3 retail, BW and CRM. Under IMG I found that is possible to Define Business Object types for Simptom and Solution. My doubt is focus on learning how to use  Business Object Repository that exist on satelites sytems (BW, CRM, R3) for link them to the solution.
    I mean, when you create a new solution into SDB is possible to link or reference the Business Object which you opened a support message, i.e: when is not possible to release a Purchase Order (R3 system), then I´d like to "attach" or link the Purchase Order reference by number to the Solution.
    Could you please give hand or explain me how it works?
    Thank a lot

    if you are sure, that your object is a string, u can do this, too:
    String stringObject = (String) getItemAt(combo.getSelectedIndex())

  • Activation of Objects with Type Data Transfer Process

    Hi Experts,
    I am stuck in a problem of activation of DTP. I loaded the data from the Datasource to PSA and there are about 200,000 reocrds.
    Now I wanted to take this load to DSO NEW table ..I have created a DTP and when I try to activate the DTP I get this Error
    Activation of Objects with Type Data Transfer Process
        Internal Activation (Data Transfer Process )
             Post Processing/Checking the Activation for Data Transfer Process DTP_49Z7OSAHFAR9O8335ED6
                  Error when activating Data Transfer Process DTP_49Z7OSAHFAR9O8335ED67X11C.
    I tried to activate the Data source but it still didnt help. Looked in SDN for some related stuff but most of them are talking about going for SP 11 ..we are already on
    *SAP_BW     700     SAPKW70014     *
    Your suggestion will be appreciated with maximum points
    Thanks

    Hello Experts,
    Could you'll please help me out with this ...I
    I deleted the DTP and created back again
    logged out of BW and logged back again
    Infact I found a SAP note 1086877 and i applied it ..but it still didint help
    Whie loading the Master Data from PSA to DTP ..it worked fine.
    While Loading the transactrion data I went to Tcode RSBATCH and in the drop down I selected the DTP activation and gave a 3 Back ground processes....Ever since that it started giving me problem
    Your help will be appreciated...my data loads are stalled ..i mean I cant move forward.
    Thanks

  • Increased Object Type support within Data Modeler

    Hi,
    This is a question mainly for the Data Modeler Development Team as well as the Tools group. First of all, the production version of Data Modeler 3.0 is very nice and the improvements in the DataTypes area over what was in EA1 are great. Thanks for adding the Domain support to the definition of Attributes and Parameters for Methods, that makes life much simpler and opens the door for a much wider range of object type modeling and ease of implementations since consistency can now be maintained much easier via Domains. Also the support for straightening of lines is awesome. This is the best implementation I have seen, even better that what we had in the Design Editor in Oracle Designer, kudos again to the team that built the diagrammer interfaces.
    My question is, Going forward will Data Modeler continued to be enhanced to finally fully support Oracle Objects and the object relational (OR) model? I ask this because as users of Oracle's RDBMS, we do not have a tool that allows us to fully model and implement the features provided by the Server Group in the area of Object-Relational features and functionality. Oracle Designer had some OR modeling capability, but the end of life on product stopped all further development. One of the common excuses is there is no market demand for object - relational modeling. I would argue, that the lack of market demand for object - relational applications is because we have never have had a tool that fully supports Oracle's object - relational model. Nor do have we had a development tool that allows us to implement a fully developed Oracle Object - Relational model. The tools group stopped the development of Oracle Forms support for nested objects and collections. The LOV functionality for REF columns is pretty awesome, but we can't get to nested collections much less a nested collection of REFs.
    So as a member of the end user community, we are stuck in this Catch 22. The Server Group continues to support and enhance the Object - Relational model, but the Tools and Modeling Groups haven't kept up with the tools to model or implement the functionality and features supported by the database. As a result we have a partially built set of tools that allows us to scratch the surface of the Object - Relational model but are not able to take full advantage of the powerful features of inheritance, inherited and extended collections, the ability to inherit and then extend methods, etc...
    The Object - Relational model was introduced with Oracle8, 10g solved the type evolution problem which made production implementation of object types realistic. My question is; Is Data Modeler finally going to fully support Oracle's object - relational model? If we as the end user community finally get a tool that does fully support the OR model, we'll finally be able to model, build and deploy applications that will in turn create that market demand which is lacking for the object relational model.
    Thanks in advance,
    ScottK

    Phil,
    Yes, having the ability to include an attribute from an data type as part of the PK, UK and or index will be very, very nice. Doing that opens a number of doors on the design, modeling and implementation sides. It would allow us to model and then create a data type which has all the common attributes for housekeeping information within each entity -> table. This is something we tried to do with Designer but was pretty involved script wise. By being able to create specialized housekeeping datatypes and then using the 'add attribute' with the scripts provided with DM 3.0, it simplifies the model after the fact. Think about it, we'll be able to have a datatype with all the attributes for created on/by and modified on/by along will all the methods to populate those attributes (formerly columns), then we can include that datatype into the entity as an attribute called say, 'row_audit' with the datatype of 'common_'. Now in one pass we have the place to hold the information of who created and modified the row as well as the date and time along with all the code required to populate and maintain that information. Everything modeled, defined and written in one place. No more have to include or write the pl/sql across several different modules, rather the calls to the method, a constructor, are within the insert or update statements for that table. If we take that train of thought and extend it to include the housekeeping functions for relational primary keys, then we can create one datatype with the attribute and methods to create a single column primary key. Once that is pulled into an entity, defined as the part of the unique identifier and then pushed down as a primary key and resulting foreign keys. We have all the code to enforce and populate primary and foreign keys wrapped up in one datatype with its supporting method as a constructor. Think of the other possibilities that would be available once we can include nested attributes w/i keys and indexes. It makes some models and designs much simpler, more maintainable, more scalable (less code to execute), etc...
    I have been thinking about this. I see ya'll have provided the options for IN, OUT, IN/OUT, COPY and NOCOPY as modifiers for the parameters on methods. We also have the option for COPY / NOCOPY in the constructor method for type. Will that be included?
    Lastly, since the Server Group solved the type evolution problem, that coupled with the ability to include a datatype as a definition for column really opens the design doors. For example, by using a datatype of 'common_', as mentioned above, if the system requirement appears after the system is built for a the name of the source system to be included with the 'row_audit' information, we can modify the datatype 'common_' to include these new attributes and methods and then the ALTER TYPE syntax provided by the Server and Language groups to effectively extend all the tables to include this new system requirement. Till the Server group solved the type evolution problem, this wasn't possible and we had to write several 'alter table add column' scripts. This is all replaced with the ALTER TYPE... cascade data command now. Once DM 3.0 includes the ability to reference embedded attributes, design and modeling life will be great.
    Thanks in advance,
    ScottK

  • 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?

Maybe you are looking for

  • Adding columns in query causes renames of fields

    Hi All, I'm using Oracle Reports Builder 10g. I have a query which has connections to other queries. When I try to add two columns into that query and recompile the RDF it automatically renames other fields adding "1" at the right side. Any ideas why

  • Package in condition

    Hi, I have created a package. and passing statement in conditional section of button. PLSQL FUNCTION RETURNING BOOLEAN return USER_AUTHENTICATION.GET_ADMIN_STATUS_UP(:APP_USER,TO_CHAR(:APP_PAGE_ID));  //--- USER _AUTHENTICATION IS PACKAGE NAME AND GE

  • Make a second copy on import to external drive and copy the file by date

    In earlier versions I made second copies of files imported to an external hard drive.  The files would import and automatically create a capture date file folder in the same manner as importing by date to the primary internal drive.  At some point th

  • [SOLVED]Gummiboot cannot boot arch

    Hello. I've been reading the wiki guide until the end when i got stuck. I have windows 8 installed with a UEFI mobo so i just used the same ESP for arch. Now i try to boot arch but get a "vmlinuz not found" message. What did i do wrong? while still o

  • Problème de mot de passe

    Je me suis inscrit sur adobe avec le mail [email protected] . "terra.es" est devenu il y a quelques mois "terra.com" . Les anciens courrier terra.es ont suivis automatiquement pendant 3 mois sur terra.com mais maintenant ce n'est plus le cas . Or pou