Opposite of PIPE ROW(out_rec) in oracle

when a function is to return large amount of data, can be done by PIPE ROW(out_rec) in oracle to return when the data is ready.
similaly in order to accept large amount of data from the application do we have any process

You should look for sqlloader and use a differentformat. It will be X times faster!
Can you mention about the different format?What he means is that you do not need to have insert statements in an sql file especially if you have large amount of data to insert.
What you need is the values separated by a field delimiter and each record separated by a record delimiter. For these formats, you need to go through the Oracle Documentation for sqlloader.
Loading data into tables via sqlloader is much faster than processing insert statements written in an sql file and then load that into a table.
Regards,
KeshavB

Similar Messages

  • Does use of pipelined/pipe row have a limitation on amount of data returned

    We are using Oracle 9i.
    We have an existing function that pipes data. Select * from table(cast(schema.my_pkg.get_data() as schema.t_my_data_tab))
    Function runs, but only returns around 10,000 records. There are actually about 50,000 records to be returned. I do not believe it is just erroring out one a single and stopping because I sorted my cursor multiple ways to show that in one sort certain records do not show, but when sorted another way they do. It is still possible something is stopping it - I will continue looking. But I would like to know if anyone is aware of any size limitations in the amount of data to be piped? I've looked at the types created & the function and do not see anything that was set for a size. Any ideas?
    I apologize I do not know all the correct terms to use. I am taking this over from someone else - hopefully an example of their code will help. Thank you very much.
    FUNCTION get_data(p_id NUMBER DEFAULT NULL)
    RETURN t_my_data_tab PIPELINED
    AS
    v_temp VARCHAR2(10);
    BEGIN
    PIPE ROW
    (t_links_contracts_rec
    (...data values....)
    RETURN;
    END;

    I'm not sure really, if there was a limitation I believe it would be documented and even would raise an exception. I've only used pipelined table function for smallish sets of data. I can't simulate much as I only have access to 10g and 11g here, so I ran a query with 50,000, but I'm only posting its count for obvious reasons.
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as fsitja
    SQL> create or replace type t_tab is table of number;
      2  /
    Type created
    SQL>
    SQL> create or replace function test_pipe return t_tab pipelined as
      2  begin
      3    for i in 1 .. 50000
      4    loop
      5      pipe row (i);
      6    end loop;
      7  end;
      8  /
    Function created
    SQL> select count(*) from table(test_pipe);
      COUNT(*)
         50000
    SQL> Some docs referencing the subject from 9i:
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/08_subs.htm
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96595/dci12tbl.htm

  • Oracle10g Reports & Pipe row

    I have a function that returns pipelined row, and need to pass parameter to oracle report to call this function, how can i do it in the report query?
    following is a sample:
    function get_info (v1 number, v2 varchar2)
    return my_row pipelined
    pipe row ( ......).
    now in the report query
    select * from table(get_info(????)),
    how to pass these as parameter?

    It was a bug on the PC I worked on.
    Problem solved

  • Entity row with key oracle.jbo.Key is not found in EO

    Hi,
    We are using jDev 11.1.1.5.0.
    I am facing the issue Entity row with key oracle.jbo.Key is not found in my entity object.
    I have EO based VO and I am performing some operations on the VO. Based on user actions on UI, I need delete some records of the entity and I am using stored proc to delete those records and committing the changes in stored proc it self. After invoking stored procedure I am committing the changes performed in UI using ADF bindings.
    While invoking Commit from ADf I getting below error
    {code:java}
    <ADFLogger> <addContextData> Entity read all attributes
    <OracleSQLBuilderImpl> <rollbackToSavepoint> [139913] OracleSQLBuilder: ROLLBACK WORK TO SAVEPOINT 'BO_SP'
    <ADFLogger> <addContextData> Commit transaction
    <DCBindingContainer> <reportException> [139914] DCBindingContainer.reportException :oracle.jbo.RowAlreadyDeletedException
    <DCBindingContainer> <reportException> [139915] oracle.jbo.RowAlreadyDeletedException: JBO-25019: Entity row with key oracle.jbo.Key [204635 124 202810 N ] is not found in EO.
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:878)
      at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8259)
      at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5964)
      at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6484)
      at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6665)
      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3286)
      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3089)
      at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2093)
      at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2374)
      at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1608)
      at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1416)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2149)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
    {code}
    Please let me know if you have any pointers to resolve this.
    Thanks,
    Satya

    Where you are calling stored procedure which deletes records in the DB ?
    Try to override doDML() i your entity impl, as follows:
    protected void doDML(int operation, TransactionEvent e) {
         if(operation == DML_DELETE)    
              call_your_storedProc_here();
         else
             super.doDML(operation, e);
    Also, ensure that the procedure deletes the same set of records as well you in the middle tier.

  • Entity row with key oracle.jbo.

    hi am having this error when updating a record,am in Jdeveloper 11.1.1.6.0
    Entity row with key oracle.jbo.Key[707 ] is not found in Userdetail

    Isn't this the same problem than in (oracle.jbo.RowAlreadyDeletedException) JBO-25019: which seems to be solved?
    regards
    Peter

  • Error in pipe row function.

    Hi,
    I wrote the below function,if i select the functions,it returns below error
    create or replace
    FUNCTION FUN_CHR_SEP(P_FLAG IN VARCHAR2)
    RETURN COLS_VAL PIPELINED
    AS
    cursor C_CHR_SEP is
    select text from
    (SELECT SUBSTR(
    txt,
    INSTR(',' || txt,',',1,LEVEL),
    INSTR(txt || ',',',',1,LEVEL) - INSTR(',' || txt,',',1,LEVEL)
    ) TEXT
    from (select P_FLAG TXT from DUAL) T
    connect by level <= length(TXT)-length(replace(TXT,',')) + 1);
    BEGIN
    for REC in C_CHR_SEP LOOP
    PIPE ROW (CHR_COLS_VAL(REC.text));
    END LOOP;
    END;
    select * from table(cast(FUN_CHR_SEP('A,C,V,B') as COLS_VAL));
    Error:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SHIPLUS.FUN_CHR_SEP", line 18
    Note : CHR_COLS_VAL and COLS_VAL are Type.
    Regards,
    Fame

    This is the forum for SQL Developer (Not for general SQL/PLSQL questions), you should ask your question in the SQL and PL/SQL forum.
    Having said that, your function has no return statement.

  • How to insert more than one row in an Oracle table in one go

    Hi All,
    I am working on a file-XI(BPM)-Oracle scenario.
    I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
    The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
    How can i insert all the other recordsets in the database at the same time.
    Pls guide
    Thanks in advance.
    Regards
    Neetu

    Hi,
    As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
    As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
    Can there be some other problem.
    The transformation is being dane in the BPM.
    As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
    The two formats are given below
    <b>Input:</b>     
            <?xml version="1.0" encoding="utf-8"?>
         <ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
         <EmpGenRecord>
              <APPLICANT_NO>20</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
         <EmpGenRecord>
              <APPLICANT_NO>14</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
    </ns:MT_Test_File>
    <b>Output</b>
            <?xml version="1.0" encoding="UTF-8"?>
         <ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
         <Statement>
              <SAP_EMPGEN action="INSERT">
                   <access>
                   <APPLICANT_NO>20</APPLICANT_NO>
                   <FIRST_NAME>abc</FIRST_NAME>
                   <LAST_NAME>xyz</LAST_NAME>
                   <FUNCTION>ADMIN</FUNCTION>
                   <DESIGNATION>ZA</DESIGNATION>
                   <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
                   <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
                   <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
                   <STATUS>A</STATUS>
                   <***>M</***>
                   </access>
              </SAP_EMPGEN>
         </Statement>
         </ns0:MT_Emp_No_Generation>
    This is a bit urgent.
    Pls help
    Regards
    Neetu

  • Row chaining and row migration in Oracle 10g R2/11g R2

    Hi,
    Due to the business rule changes, one of the numeric column in a large table (20 millions rows) will be expanded from number(8) to number(10). Also, the values of this column of each row will be updated from 6 digits to 10 digits. All the indexes that use this column will be dropped and recreated after update. I would like to know if there is any row chaining or row migration issue in Oracle 10g R2 /11g R2.
    Thanks for your help

    neemin wrote:
    Hi,
    Due to the business rule changes, one of the numeric column in a large table (20 millions rows) will be expanded from number(8) to number(10). Also, the values of this column of each row will be updated from 6 digits to 10 digits. All the indexes that use this column will be dropped and recreated after update. I would like to know if there is any row chaining or row migration issue in Oracle 10g R2 /11g R2.
    Thanks for your helpIt depends.
    what you do observe after TESTING against the Development DB?

  • Need to know how to limit the number of rows returned on Oracle

    MS SQL Server has a command called 'set row count'.
    We are trying to find similar one on Oracle.
    What we are trying to do is that instead of using rownum in the query statement, we would like to find way to limit the number of rows returned. I understand that we can use JDBC resultSet object, but that's not what we want.
    I know Oracle has one called arraysize, but this would not limit the number of rows returned either.
    Pease help.
    Thanks

    I understand that we can use JDBC resultSet object, but that's not what we want.I'm not sure which feature of ResultSet you use and which not.
    But if this question has anything to do with JDBC (that's the forum where you put it), I'd recommend to use Statement.setMaxRows(). This will limit the count of rows which your statement will fetch into it's ResultSet.

  • Migrating informix row type to Oracle 8i

    I have ascii files of an informix database and was using the SQL
    Loader to import these files into Oracle8i. Everything works
    fine except for tables with row types.
    In the Informix ascii files, I have columns containing a set of
    values. eg {x,y,z}. How do I get the Oracle SQL loader to import
    these row type columns into corresponding object types in my
    Oracle 8i database?
    Any information or case studies on this would be desired as
    well. I already looked and the Oracle 8i Utilities documentation
    doesn't have a case study for loading object types.

    you may want to look into using Oracle's Migration Workbench that will take your Access database and then translate it to an XML file from which it then generates the DDL and SQL*Loader scripts for you (which you can always modify before running).
    Hope this helps.

  • Error - Update Row Count in Oracle BI Administraton Tool

    Hi Everyone,
    I am running XE on the same machine that BI Administrator is running on. I them imported the HR scheme on the Physical Layer. As I try to update row count, I am getting errors:
    NQSError : - 10058 , A general error occurred
    An error occurred while executing the Physical Statement
    Oracle Error 3114 - Not connected to oracle OCI CALL OCIstmtexecute
    SQL statement preparation failed.
    I am connecting via odbc, but as my connection pool in the physical layer, I have tried all the available type of connection pool, and it does not work. I still get the same error.
    Does anyone have any ideas?
    Thanks,

    Well, could it then be that you are using a different user to connect to through the connection pool? If so, then you have to set the connection pool to prefix the tables with the schema name. I don't have access to the admin tool at the moment to point out exactly how that is done, but at least you right-click on the connection pool, choose properties and there you check a check box that suggests prefixing tables.
    The reason here is that the connection pool connects to the database using some username, and all queries are executed as this user. This user then has to have SELECT privileges on all the tables you have imported (which the user does of course if the tables can be found in the same schema), but if some tables have been imported from other schema then the server has to prefix the tables with the correct schema name.
    Hope this helps!
    Borkur

  • Purpose of Updating Row Counts in Oracle 11g RPD

    Hello all,
    I'm relatively new to RPD development, and have a relatively simple question. I have searched through the oracle community site and did several google searches for the answer. What is the purpose of Updating Row Counts on the Physical layer of the RPD? I know how to do it for a single table and for all tables. Does it help the planner build better optimized queries?

    Hi,
    Honestly I don't think OBIEE use that info at all (or it would be mandatory).
    It's more an info for the developer, to see if the DB connection works, if the table is the good one without looking at the data itself. It can also inform you if your ETL run or not (data or no data). So for me it's really only a developer helper, nothing OBIEE uses.

  • Individual Checkboxes save in multiple rows in an oracle Database table

    I'm using C# .NET and an oracle db table tab1
    create table tab1(col1 number primary key);
    insert into tab1 values (1);
    commit;
    In Web forms tab use CheckBox to create three individual CheckBoxes (don't use CheckBoxList):
    <asp:CheckBox id="CheckBox1" style="Z-INDEX: 101; LEFT: 40px; POSITION: absolute; TOP: 24px" runat="server"
    Text="aaa"></asp:CheckBox>
    <asp:CheckBox id="CheckBox2" style="Z-INDEX: 102; LEFT: 40px; POSITION: absolute; TOP: 56px" runat="server"
    Text="bbb"></asp:CheckBox>
    <asp:CheckBox id="CheckBox3" style="Z-INDEX: 104; LEFT: 40px; POSITION: absolute; TOP: 88px" runat="server"
    Text="ccc"></asp:CheckBox>
    And one Button and a Label:
    <asp:Button id="Button1" style="Z-INDEX: 103; LEFT: 40px; POSITION: absolute; TOP: 128px" runat="server"
    Text="Button"></asp:Button>
    <asp:Label id="Label1" style="Z-INDEX: 105; LEFT: 328px; POSITION: absolute; TOP: 56px" runat="server"></asp:Label><INPUT style="Z-INDEX: 106; LEFT: 24px; POSITION: absolute; TOP: 184px" type="text" id="Text1" name="Text1" runat="server">
    Using
    oracleDataAdapter1.Fill(dataSet11);
    oracleDataAdapter1.Update(dataSet11);
    When a user selects a checkbox and presses Button1
    a new row is created in the table TAB1 under COL1
    and when the user reopens the web app the selected checkbox is still displayed because of the number value stored under COL1.
    Can anyone help me on how to save the selected checkbox into COL1 so that when user closes and opens the web app the same selected checkbox is displayed.
    I also am wondering if the user unchecks a checkbox and selects a different checkbox, submits the new change
    to the COL1
    Is there a way to delete the old rows of TAB1 prior to inserting the new row of the new selected checkbox?
    any suggestions would be appreciated.
    Thanks.
    bebop

    I tried looking for a forum to post this Individual Checkboxes question.
    Which forum should I go to for this?
    Any suggestions?
    bebop

  • No rows returns through Oracle, but lots through MS SQL with same SQL.

    Help. I am running the following statement on the Oracle 9i Database. The db link @scala references a MS SQL database running on a Windows 2003 machine connecting using the hsodbc.exe with HS.
    SELECT
    'Scala' "System"
    ,"A"."Emission Period" "EP"
    ,"A"."Client Contact Num" "Contract"
    ,sum("A"."Amount") "Scala_VIC"
    FROM
    "_GL030106_CC"@scala "CC"
    INNER JOIN ("_GL030106_VT"@scala "VT"
    INNER JOIN "_GL060106"@scala "A"
    ON "VT"."Acc Dim" = "A"."Product")
    ON "CC"."Acc Dim" = "A"."Client Contact Num"
    where
         not "A"."Account" in (N'80000000',N'70500000',N'46110001')
    and "A"."Client Contact Num" <> N'100000'
    and "A"."Emission Period" <> ''
    and "A"."Product" in (N'080',N'088')
    and "A"."Emission Period" >= N'0444'
    GROUP BY
    "A"."Emission Period", "A"."Client Contact Num"
    HAVING
    sum("A"."Amount") <> 0
    ORDER BY
    "A"."Emission Period"
    ,"A"."Client Contact Num"
    This runs and returns 0 rows. I can select data from the tables and get lots of data back, so the connection is working fine. If I run the following command on MS SQL I get 115 rows.
    SELECT
    'Scala' "System"
    ,"A."Emission Period" "EP"
    ,"A"."Client Contact Num" "Contract"
    ,sum("A"."Amount") "Scala_VIC"
    FROM
    "iScalaDB"."dbo"."_GL030106_CC" "CC"
         INNER JOIN ("iScalaDB"."dbo"."_GL030106_VT" "VT"
         INNER JOIN "iScalaDB"."dbo"."_GL060106" "_GL060103"
              ON "VT"."Acc Dim"="A"."Product")
         ON "CC"."Acc Dim"="A"."Client Contact Num"
    WHERE
    not "A"."Account" in (N'80000000',N'70500000',N'46110001') /* Take out Stats, Income and Old accounts */
    and "A"."Client Contact Num" <> N'100000' /*Ignore NASS Accounts */
    and "A"."Emission Period" <> '' /*Ignore blank EPs */
    and "A"."Product" in (N'080',N'088') /* Select Scala CCC & CCP Voucher products */
    and "A"."Emission Period" >= N'0444'
    GROUP BY
    "A"."Emission Period"
    ,"A"."Client Contact Num"
    HAVING
    sum("A"."Amount") <> 0
    ORDER BY
    "A"."Emission Period"
    ,"A"."Client Contact Num"
    Is there anything in the SQL that is wrong or is it the HS connectivity that is causing the problem?

    I have been trawling around this forum for similar issues and may have posted the original isue in the wrong post.
    I have deducted that there is not a solution for this, using MSSQL2005 64bit you cannot get the msdaora to work( cos its 32 bit)
    There is an issue with oracle oledb provider (OraOLEDB.Oracle) and ref cursors come on ORACLE get it bleeding sorted
    If anyone else out there has been thwarted by the same problem then all I can suggest is that they utilise a production 32bit SQL2005 box and use it as a proxy to oracle with the msdaora if they can.

  • Dynamic rows to columns oracle 10g

    Hi,
    I'm using oracle 10g. I have a requiriement where I need to show rows to columns. I have read through many posts but I couldn't find what I wanted to solve. Lots of them are using decode, since they know the values in one column.
    My table has name, value and date. I need to get values for each name at certain date (each distinct date needs to become column). I don't know the name beforehand.
    Name, Value, Date
    T1 100 06-27-2011 09:00:00
    T2 100 06-27-2011 09:00:00
    T1 200 06-27-2011 09:15:00
    T2 150 06-27-2011 09:15:00
    I would also need to use a date range. Someone can request date between 09:00:00 and 09:05:00 or 09:00:00 and 09:30:00 etc.
    I need to print
    Name, 06-27-2011 09:00:00, 06-27-2011 09:15:00
    T1 100 200
    T2 100 150
    Appreciate any advice on this.
    Edited by: user8801143 on 28-Jun-2011 08:23

    With 10g
    see http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766825833740#2989343200346664698
    search for post on February 11, 2011 and reply on February 14, 2011
    with 11g see the pivot clause

Maybe you are looking for

  • Mixed XP and Windows 7 Environment

    I installed a J4680 as a wireless device using my XP machine.  It works fine.  I then directly accessed the printer through the network on my Windows 7 machine and it prints oddly (e.g., the same image displayed twice on a page prints correctly the f

  • Purchased TV show doesn't appear on iPod

    I purchased an episode of Friends, and downloaded it to iTunes AND my iPod, and I even watched it one time! but the next day, I go to watch it again, and not only has the "TV Show" option disappeared from my Video menu, but so has my purchased episod

  • Aperture 3.3.1 crashes after startup

    My problem: Aperture 3.3.1 has been crashing consistently after application startup for about four days, It launches to the point where I can start to open projects, but crashes soon thereafter. I've done the following based on what I've read in this

  • CIFing the data from APO to ECC

    Hi - I know how to CIFing the data from ECC to APO. But i would like to know how  to transfer the data from APO to ECC.I also would like to know how to debug the code...I see some of the questions in this forum on CIF debugging, but they are all CIFi

  • How to uninstall lion

    Is there anything official from APPLE on how to uninstall LION ?  My Macbook shuts down if I try startup from a Snow Leapard disc.  Can I just drag the entire image from my iMAC to an erased Macbook ?