HOW to USE 'LONG RAW' in Bulk Insertion using OCI

Hi,
I need to do bulk insertion of LONG RAW data into a table using the OCI.
To the OCIBindByPos API what should I specify in the field size(value_sz). As different records can have different lenght for this LONG RAW data what value should I provide.
Thanks,
Tuhin
sword OCIBindByPos ( OCIStmt *stmtp,
OCIBind **bindpp,
OCIError *errhp,
ub4 position,
dvoid *valuep,
sb4 value_sz,
ub2 dty,
dvoid *indp,
ub2 *alenp,
ub2 *rcodep,
ub4 maxarr_len,
ub4 *curelep,
ub4 mode );

ORA-00997: illegal use of LONG datatype
Cause: A value of datatype LONG was used in a function or in a DISTINCT, WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can only be used in a SELECT clause.
Action: Remove the LONG value from the function or clause
Are you using the column anywhere else but in the SELECT?

Similar Messages

  • Number of rows inserted is different in bulk insert using select statement

    I am facing a problem in bulk insert using SELECT statement.
    My sql statement is like below.
    strQuery :='INSERT INTO TAB3
    (SELECT t1.c1,t2.c2
    FROM TAB1 t1, TAB2 t2
    WHERE t1.c1 = t2.c1
    AND t1.c3 between 10 and 15 AND)' ....... some other conditions.
    EXECUTE IMMEDIATE strQuery ;
    These SQL statements are inside a procedure. And this procedure is called from C#.
    The number of rows returned by the "SELECT" query is 70.
    On the very first time call of this procedure, the number rows inserted using strQuery is *70*.
    But in the next time call (in the same transaction) of the procedure, the number rows inserted is only *50*.
    And further if we are repeating calling this procedure, it will insert sometimes 70 or 50 etc. It is showing some inconsistency.
    On my initial analysis it is found that, the default optimizer is "ALL_ROWS". When i changed the optimizer mode to "rule", this issue is not coming.
    Anybody faced these kind of issues?
    Can anyone tell what would be the reason of this issue..? any other work around for this...?
    I am using Oracle 10g R2 version.
    Edited by: user13339527 on Jun 29, 2010 3:55 AM
    Edited by: user13339527 on Jun 29, 2010 3:56 AM

    You have very likely concurrent transactions on the database:
    >
    By default, Oracle Database permits concurrently running transactions to modify, add, or delete rows in the same table, and in the same data block. Changes made by one transaction are not seen by another concurrent transaction until the transaction that made the changes commits.
    >
    If you want to make sure that the same query always retrieves the same rows in a given transaction you need to use transaction isolation level serializable instead of read committed which is the default in Oracle.
    Please read http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_sqlproc.htm#ADFNS00204.
    You can try to run your test with:
    set  transaction isolation level  serializable;If the problem is not solved, you need to search possible Oracle bugs on My Oracle Support with keywords
    like:
    wrong results 10.2Edited by: P. Forstmann on 29 juin 2010 13:46

  • How can we do policy updations and insertion using procedures in insurence?

    how can we do policy updations and insertion using procedures in insurence?
    please answer for this post i need faced in interview.how can we write the code for that procedure in policy details using procedures in plsql.

    997995 wrote:
    how can we do policy updations and insertion using procedures in insurence?
    please answer for this post i need faced in interview.how can we write the code for that procedure in policy details using procedures in plsql.You are asking about a specific business area (Insurance) and the nuances of that business (Insurance Policies) and providing no technical details about what is required, on a technical forum. There are many varied businesses in the world and not everyone here is going to be familiar with the area of business you are referring to.
    As a technical forum, people are here to assist with technical issues, not to try and help you answer questions in an interview for something you clearly know nothing about, so that you can get a job that you won't know how to do.
    If you have a specific technical issue, post appropriate details, including database version, table structures and indexes, example data and expected output etc. as detailed in the FAQ: {message:id=9360002}

  • How to read LONG RAW data from one  table and insert into another table

    Hello EVERYBODY
    I have a table called sound with the following attributes. in the music attribute i have stored some messages in the different language like hindi, english etc. i want to concatinate all hindi messages and store in the another table with only one attribute of type LONG RAW.and this attribute is attached with the sound item.
    when i click the play button of sound item the all the messages recorded in hindi will play one by one automatically. for that i'm doing the following.
    i have written the following when button pressed trigger which will concatinate all the messages of any selected language from the sound table, and store in another table called temp.
    and then sound will be played from the temp table.
    declare
         tmp sound.music%type;
         temp1 sound.music%type;
         item_id ITEM;
    cursor c1
    is select music
    from sound
    where lang=:LIST10;
    begin
         open c1;
         loop
              fetch c1 into tmp; //THIS LINE GENERATES THE ERROR
              temp1:=temp1||tmp;
              exit when c1%notfound;
         end loop;
    CLOSE C1;
    insert into temp values(temp1);
    item_id:=Find_Item('Music');
    go_item('music');
    play_sound(item_id);
    end;
    but when i'm clicking the button it generates the following error.
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-06502.
    ORA-06502: PL/SQL: numeric or value error
    SQL> desc sound;
    Name Null? Type
    SL_NO NUMBER(2)
    MUSIC LONG RAW
    LANG CHAR(10)
    IF MY PROCESS TO SOLVE THE ABOVE PROBLEM IS OK THEN PLESE TELL ME THE SOLUTION FOR THE ERROR. OTHER WISE PLEASE SUGGEST ME,IF ANY OTHER WAY IS THERE TO SOLVE THE ABOVE PROBLEM.
    THANKS IN ADVANCE.
    D. Prasad

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • Why use LONG RAW?

    When using database persistence with Oracle, why does the Sun JMS Broker create LONG RAW columns, rather than BLOBs? I believe Oracle does not recommend the use of LONG RAW so it's essentially an obsolete datatype and should not be used.

    Great, thanks for the pointer. Anyone know how far away MQ 4.0 is?

  • Bulk Insert using Script Task in SSIS

    Hi guys,
    Please I have about 300Million rows of data I want to load from a remote SQL server into another SQL server. The problem is that the data takes forever to load and I have a time line.
    I was wondering if there is a way in can do bulk insert for this or maybe if I can get a code that I can use to load the data faster.
    Please I really need your help as my job depends on this.
    me

    CREATE TABLE [dbo].[post_tran](
    [post_tran_id] [bigint] NOT NULL,
    [post_tran_cust_id] [bigint] NOT NULL,
    [settle_entity_id] [dbo].[POST_ID] NULL,
    [batch_nr] [int] NULL,
    [prev_post_tran_id] [bigint] NULL,
    [next_post_tran_id] [bigint] NULL DEFAULT ((0)),
    [sink_node_name] [dbo].[POST_NAME] NULL,
    [tran_postilion_originated] [dbo].[POST_BOOL] NOT NULL,
    [tran_completed] [dbo].[POST_BOOL] NOT NULL,
    [message_type] [char](4) NOT NULL,
    [tran_type] [char](2) NULL,
    [tran_nr] [bigint] NOT NULL,
    [system_trace_audit_nr] [char](6) NULL,
    [rsp_code_req] [char](2) NULL,
    [rsp_code_rsp] [char](2) NULL,
    [abort_rsp_code] [char](2) NULL,
    [auth_id_rsp] [varchar](10) NULL,
    [auth_type] [numeric](1, 0) NULL,
    [auth_reason] [numeric](1, 0) NULL,
    [retention_data] [varchar](999) NULL,
    [acquiring_inst_id_code] [varchar](11) NULL,
    [message_reason_code] [char](4) NULL,
    [sponsor_bank] [char](8) NULL,
    [retrieval_reference_nr] [char](12) NULL,
    [datetime_tran_gmt] [datetime] NULL,
    [datetime_tran_local] [datetime] NOT NULL,
    [datetime_req] [datetime] NOT NULL,
    [datetime_rsp] [datetime] NULL,
    [realtime_business_date] [datetime] NOT NULL,
    [recon_business_date] [datetime] NOT NULL,
    [from_account_type] [char](2) NULL,
    [to_account_type] [char](2) NULL,
    [from_account_id] [varchar](28) NULL,
    [to_account_id] [varchar](28) NULL,
    [tran_amount_req] [dbo].[POST_MONEY] NULL,
    [tran_amount_rsp] [dbo].[POST_MONEY] NULL,
    [settle_amount_impact] [dbo].[POST_MONEY] NULL,
    [tran_cash_req] [dbo].[POST_MONEY] NULL,
    [tran_cash_rsp] [dbo].[POST_MONEY] NULL,
    [tran_currency_code] [dbo].[POST_CURRENCY] NULL,
    [tran_tran_fee_req] [dbo].[POST_MONEY] NULL,
    [tran_tran_fee_rsp] [dbo].[POST_MONEY] NULL,
    [tran_tran_fee_currency_code] [dbo].[POST_CURRENCY] NULL,
    [tran_proc_fee_req] [dbo].[POST_MONEY] NULL,
    [tran_proc_fee_rsp] [dbo].[POST_MONEY] NULL,
    [tran_proc_fee_currency_code] [dbo].[POST_CURRENCY] NULL,
    [settle_amount_req] [dbo].[POST_MONEY] NULL,
    [settle_amount_rsp] [dbo].[POST_MONEY] NULL,
    [settle_cash_req] [dbo].[POST_MONEY] NULL,
    [settle_cash_rsp] [dbo].[POST_MONEY] NULL,
    [settle_tran_fee_req] [dbo].[POST_MONEY] NULL,
    [settle_tran_fee_rsp] [dbo].[POST_MONEY] NULL,
    [settle_proc_fee_req] [dbo].[POST_MONEY] NULL,
    [settle_proc_fee_rsp] [dbo].[POST_MONEY] NULL,
    [settle_currency_code] [dbo].[POST_CURRENCY] NULL,
    [icc_data_req] [text] NULL,
    [icc_data_rsp] [text] NULL,
    [pos_entry_mode] [char](3) NULL,
    [pos_condition_code] [char](2) NULL,
    [additional_rsp_data] [varchar](25) NULL,
    [structured_data_req] [text] NULL,
    [structured_data_rsp] [text] NULL,
    [tran_reversed] [char](1) NULL DEFAULT ((0)),
    [prev_tran_approved] [dbo].[POST_BOOL] NULL,
    [issuer_network_id] [varchar](11) NULL,
    [acquirer_network_id] [varchar](11) NULL,
    [extended_tran_type] [char](4) NULL,
    [ucaf_data] [varchar](33) NULL,
    [from_account_type_qualifier] [char](1) NULL,
    [to_account_type_qualifier] [char](1) NULL,
    [bank_details] [varchar](31) NULL,
    [payee] [char](25) NULL,
    [card_verification_result] [char](1) NULL,
    [online_system_id] [int] NULL,
    [participant_id] [int] NULL,
    [opp_participant_id] [int] NULL,
    [receiving_inst_id_code] [varchar](11) NULL,
    [routing_type] [int] NULL,
    [pt_pos_operating_environment] [char](1) NULL,
    [pt_pos_card_input_mode] [char](1) NULL,
    [pt_pos_cardholder_auth_method] [char](1) NULL,
    [pt_pos_pin_capture_ability] [char](1) NULL,
    [pt_pos_terminal_operator] [char](1) NULL,
    [source_node_key] [varchar](32) NULL,
    [proc_online_system_id] [int] NULL,
    [from_account_id_cs] [int] NULL,
    [to_account_id_cs] [int] NULL,
    [pos_geographic_data] [char](5) NULL,
    [payer_account_id] [char](5) NULL,
    [cvv_available_at_auth] [varchar](30) NULL,
    [cvv2_available_at_auth] [varchar](30) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    me

  • How to show long raw picture  in adf jsp

    Pictures are stored in long raw column in oracle database. I have followed to show picture based on servlet to retrieve image from blob column but to no success. Kindly help.

    Thanks for helping.
    I have  already used following servlet but no picture. I think problem is in specific line because image is in Long Raw instead of Blob..
    Blob blob = rs.getBlob("PLAN_PIC");
    Image Servlet
    public class imageservlet extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            response.setContentType(CONTENT_TYPE);
            String imageId = request.getParameter("id");
           // String imageId="4000";
            OutputStream os = response.getOutputStream();
            Connection conn = null;
            try {
                Context ctx = new InitialContext();
                //Datasource as defined in <res-ref-name> element of weblogic.xml
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/DYEDS");
                conn = ds.getConnection();
                PreparedStatement statement =
                    conn.prepareStatement("SELECT plan_no, plan_pic " +
                                          "FROM tblplanpics " +
                                          "WHERE plan_no = ?");
               // statement.setInt(1, new Integer(imageId));
                statement.setString(1,imageId);
                ResultSet rs = statement.executeQuery();
                if (rs.next()) {
             //       Blob blob = rs.getBlob("PLAN_PIC");
                  Blob blob = rs.getBlob("PLAN_PIC");
                    BufferedInputStream in =
                        new BufferedInputStream(blob.getBinaryStream());
                    int b;
                    byte[] buffer = new byte[10240];
                    while ((b = in.read(buffer, 0, 10240)) != -1) {
                        os.write(buffer, 0, b);
                    os.close();
            } catch (Exception e) {
                System.out.println(e);
            } finally {
                try {
                    if (conn != null) {
                        conn.close();
                } catch (SQLException sqle) {
                    System.out.println("SQLException error");

  • How to transfer long raw between servers

    There is a view in remote server that has included long raw field in which images are stored in tiff format.
    I want to transfer them to a local server. When I searched I found out that one way to do such transfer is copy command in sqlplus.
    When I used this command to transmit the data, long raw field has failed. Given that I can not give a dump, what way I can choose to transfer long raw data.

    Difficult to say if you keep information about your Oracle version secret.

  • How to send long text  in a mail using FM : SO_NEW_DOCUMENT_SEND_API1

    Hi All,
    In my BSp application user can enter long text   ( can be more than 300 char ) in TextEdit.
    problem is as below:
    1) i am getting all the text in oninput processing ...
    2) using the FM READ_TEXT to   get mail template built in SO10.
    3) Replacing all dynamic variables in mail template with user enterd text.
    4) then passing the data to FM SO_NEW_DOCUMENT_SEND_API1.  this FM has table parameter with 255 char ( please check once )
    i am able to send the data  in mail.   But long text more than 256 char is not comming as single paragraph.
    For expamle  ...user enter the following  text in text edit.
    Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource department planning and activities.  Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    in inbox i am getting as below:
    Job Description for    : Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource depa
      Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
    Job Description for is fixed text from SO10 templete.   and  remainning text is user text.
    some data is missing in mail.
    SO10 template  is as below  :
    Job Description for : &INSTRUC1&
    &INSTRUC2&
    help to solve the above issue.
    Regads,
    Kishan
    Edited by: kishanrao.sap on Oct 11, 2010 3:12 PM

    Hi Krishna,
      Please use the object_type parameter of tthe FM as 'HTM'.
    Then divide the text by append them into the lines of the object_content. In the begining and end make sure you have
    <p> --  in the begining
    </p>-- in the end
    if i want to type the text in one para " My name is Imran and i am an ABAP developer".
    CLEAR: WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = '<html>'<body><p> My name is Imran.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    CLEAR WA_OBJECT_CONTENT.
      WA_OBJECT_CONTENT-line = ' and i am an ABAP developer</p></body><html;>'.
      APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
    Hope this helps you.
    Regards
    Imran.

  • How to print long raw text data in report output in single line?

    Hi All,
    I have a requirement where I need to print raw comma separated text data in the report output which end user will open in excel and can sort as required. I can not directly generate excel output.
    Now there is huge set of data and each row from the report query should be get printed on single line, It should not get printed on the next line.
    I tried to extending the report with 240 characters but still there are some text data which is getting printed on the next line.
    Please share your view if someone has any solution on this issue.
    Thanks in Advance.
    Arun

    Make the report even wider. By default a report layout can be 10 pages wide. If you need more, change the "Max. Horizontal Body Pages" property, and extend your layout too.
    IMHO, I wouldn't even use Reports to create a csv file. Utl_file or an sqlplus script that spools to a file are better options I think.

  • How to install sccm client on bulk collections using push installation

    Unfortunately I did something and received the following description:-
    How to know/reproduce the following scenario by installing sccm client on bulk collections in SCCM 2012R2? 
    "User ***** requested that the CCRs will be generated for collection “All Windows Client Systems (P0100015), The SMS Provider did not generate CCRs for all the system resources in this collection.
    Possible cause: some system resources are not assigned to the current site, and you chose to insta
    Il clients only on system resources that are
    assigned to current site. 
    Another possible cause: Some system resources do not have Microsoft Windows NT operating system
    or above installed.
    Message ID: 30110"

    Ok. Some of your clients are not covered under any site assignment boundary, hence you are getting that error. Would recommend you to select "Install the client from a specified site" and select the Primary site. If your boundary groups for content
    are configured fine then the client will be installed from the appropriate site for each machine you are pushing the client to.
    -RG

  • How to save long text for IA01 Transaction using BDC

    Hi All,
    In my requirement I have to create a Task List Equipment and Task List Functional Location using BDC.Here I need to upload the long text for both IA01 and IA11 transactions.I am using SAVE_TEXT function module to save the text and COMMIT_TEXT also after save text.But I am not able to see the text in IA12 and IA02 transactions.But using READ_TEXT I am able to get the text what updated using SAVE_TEXT.
    Please answer for this if any one worked on this requirement <Priority normalized by moderator>
    Thanks,
    Satya.
    Edited by: Vinod Kumar on Jan 2, 2012 9:02 PM

    Hi Satya,
    There is a simple way to update the long text. There is  direct input object in the LSMW for long text.
    Object            : 0001
    Method          : 0001
    Program type : D
    SImply go and create the LSMW with first option and follow the steps. No need to call the function modules separately. This standard program will take care of every thing.
    If you have multiple lines to populate in the equipment master at the header level then you need two set of files. Then key will be equipment number with leading zeros if it will not be alpha numeric.
    1) First file with field EQUNR.
    2) Second file will be
    EQUNR                          C(018)    Technical identification number
    TXPARGRAPH                     C(002)    Tag column
    TXLINE                         C(072)    Text editor text line
    TEXT_MARK                      C(001)    Description Indicator for RIIBIP00 (IBIP) Processing
    Please let me know if you need more in detail.
    Thanks,
    Satheesh

  • How to get auto generated key when inserting  using C#

    I inserted a row in a table in oracle 11g as follows:
    public void add(Admin admin)
    OracleConnection myOracleConnection =
    new OracleConnection(connStr);
    myOracleConnection.Open();
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    myOracleCommand.CommandText = "Insert into Admin values(adminSeq.nextVal,:name) returning admin_id into :adminId";
    myOracleCommand.Parameters.Clear();
    OracleParameter para=new OracleParameter(":adminId",ParameterDirection.Output);
    myOracleCommand.Parameters.Add(para);
    myOracleCommand.Parameters.Add(":name", admin.Name);
    myOracleCommand.ExecuteNonQuery();
    admin.AdminId = int.Parse(myOracleCommand.Parameters[":adminId"].Value.ToString());
    I found a new row a ADMIN, but I can not get the PK when inserting. the value of "myOracleCommand.Parameters[":adminId"].Value" is always "OUTPUT" , any ideas?
    Thank you.
    Edited by: user11228816 on 2010-3-1 上午12:17

    Does not seem to be an Oracle issue itself. Your approach is correct. E.g.
    SQL> create table foo( id number, name varchar2(20) );
    Table created.
    SQL>
    SQL> create sequence foo_id start with 1 increment by 1 nomaxvalue nocycle;
    Sequence created.
    SQL>
    SQL> var id number
    SQL> insert into foo values( foo_id.nextval, 'test1') returning id into :id;
    1 row created.
    SQL>
    SQL> print id
            ID
             1
    SQL>Check your bind calls. Is the bind name index value for example not perhaps +["adminId"]+ (no bind char marker)?
    Also, the binding of the output parameter, i.e.
    para=new OracleParameter(":adminId",ParameterDirection.Output);In OCI, when binding, one needs to specify the data type for the bind. When binding strings for example, the length also needs to be specified. This bind seems to be untyped. Yet, you apply a "+ToString()+" method to it when referencing it.. how would the Parameters class know its data type?
    Can you do explicit data type binding in C#? If so, try and bind the parameter explicitly as an integer and reference it as an integer when getting its value.

  • Bulk insert using stored procedure or trigger

    Hi ,
    I have to insert around 40,000 rows in a table querying other database using database link.
    Please advice whether I do using stored procedure or trigger.
    Thanks.

    Here is a basic benchmark that illustrates the difference between maximising SQL, or doing it in PL/SQL instead.
    Care needs to be taken with such a benchmark in order for physical I/O not to negatively impact a test, and then have no impact in the second test as that data read from disk now sits in the cache.
    So I ran it a couple of times in order to "warm up" the cache. I also put the maximise-SQL test first in order to show that it is still faster, despite any physical I/O it may do (which will likely be faster logical I/O with the second test).
    Run on Oracle XE 10.2.0.1.
    SQL> drop table my_objects_copy purge;
    Table dropped.
    SQL> create table my_objects_copy as select * from all_objects;
    Table created.
    SQL>
    SQL> set timing on
    SQL> begin
    2 delete from my_objects_copy;
    3
    4 insert into my_objects_copy
    5 select * from all_objects;
    6
    7 commit;
    8 end;
    9 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.11
    SQL> set timing off
    SQL>
    SQL> drop table my_objects_copy purge;
    Table dropped.
    SQL> create table my_objects_copy as select * from all_objects;
    Table created.
    SQL>
    SQL> set timing on
    SQL> declare
    2 cursor c is select * from all_objects;
    3 objRow ALL_OBJECTS%ROWTYPE;
    4 begin
    5 delete from my_objects_copy;
    6
    7 open c;
    8 loop
    9 fetch c into objRow;
    10 exit when c%NOTFOUND;
    11
    12 insert into my_objects_copy
    13 values objRow;
    14
    15 end loop;
    16 commit;
    17 end;
    18 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:03.21
    SQL>
    The cursor-fetch-loop is almost 3 times slower. The more rows there are to process, the slower the cursor-fetch-loop will become, as it will create more and more context switching and copying data between the SQL and PL engines and back.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • OdbcDataReader + LONG RAW problem

    Hi,
    I'm trying to get picture data stored in long raw field with odbcdatareader (with CommandBehaviour.SequentialAccess).
    But when i read data, GetBytes function always return 0.
    What can i do ?
    while(dr.Read())
    retval = dr.GetBytes(0,startIndex,buffer,0,bufferSize);
    while(retval == bufferSize)
    startIndex += bufferSize;
    retval = dr.GetBytes(0,startIndex,buffer,0,bufferSize);          
    }

    I haven't worked specifically with long raw and JDBC.
    There is a bug in the Oracle 9i OCI driver that limits the insert size of long raw to 50k. Are you using the OCI driver? Can you try the thin driver?
    Oracle has a 32k limit on the server side internal driver for long raw.
    I have seen documentation on a 32k limit returned when accessing / inserting long raw in PL/SQL. Is it possible that the message is being returned from the SP rather then as an issue with the driver (i.e. maybe you could stream a long raw > 32k directly and not go through an SP)?
    Do you have to use long raw? Can you use one of the LOB types? If you can move to an LOB type you should.
    Not as much help as you probably need. If you have to stay with long raw, perhaps someone with JDBC long raw experience will see your post and help out.

Maybe you are looking for

  • I can't edit in PhotoshopCC 2014; the file won't open.

    Since upgrading to PhotoshopCC 2014, I can't open files to edit from Lightroom in it. Anyone else having this issue, and how do we fix it? http://www.pinterest.com/pin/create/extension/

  • DUAL MONITOR HELP!!!

    System Information: HP P6210Y Win 7 NVIDIA GeForce 9100 Above is my system information. I'm running an HP P6210Y with a GeForce 9100 graphics card. I have two [2] Dell IN2030M monitors. I purchased a VGA Splitter and that worked, but now how I wanted

  • Superdrive Died

    The Superdrive in my iMac (Flat Panel, 800 mhz) will not burn CDs or DVDs anymore. It will read disc just fine, though. Will an external FireWire burner work with iDVD and iTunes? If not, what drives will work as an internal replacement? Thanks for y

  • Is it possible to use Airport Express via ethernet to connect to internet?

    Hi! My MacBook Pros Wifi-antenna has stopped working and tells me there is no hardware installed. As a quick fix I thought I could buy an Airport Express and an ethernet cable, thus connecting the Pro to the AE via ethernet, and then connecting the A

  • Unhiding Files on my memory card

    How do i unhide files and folders on my memory card