Error in Loading a BLOB Column in Oracle Database from 1 to diff  schema

Hi ALL,
I am in a POC where in I have to load a BLOB data from 1 schema to a different schema ie from Staging to Target.
I load my staging(Oracle Schema ) through Oracle PLSQL. Now I have to load to my ODS.
I am using the LKM (LKM SQL to Oracle) and IKM (IKM Oracle Incremental Update PLSQL).
It errors out in the 3rd step 3-Loading-SS_0 Load Data
The script used and the error message is in the attachment. However if I run the script manually it runs and the Load happens successfully. Also I was able to load the same BLOB objects it the tables were in the same schema(In this case LKM is bypassed).
Any Thoughts on this?
The Error I receive is:
java.lang.NumberFormatException: For input string: "4294967295"
     at java.lang.NumberFormatException.forInputString(Unknown Source)
     at java.lang.Integer.parseInt(Unknown Source)
     at java.lang.Integer.parseInt(Unknown Source)
     at oracle.jdbc.driver.OracleResultSetMetaData.getPrecision(OracleResultSetMetaData.java:303)
     at com.sunopsis.sql.SnpsQuery.getResultSetParams(SnpsQuery.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.i(e.java)
     at com.sunopsis.dwg.cmd.g.y(g.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Unknown Source)
Thanks & Regards,
Krishna

Hi,
Are you at the same database? If yes is better to grant select, at the schemas where is the source, to your Staging Area user.
Then, at topology, define all physical schemas under the same Data Server.
If you are at distinct database a good solution is to use a DBLink (KM) because when a SQL to SQL KM is used, the data go thru agent, making a conversion to Java.
I'm not sure if it can handle LOB's fields... Every time that I needed to use it was in the ways that I described.
Does it make any sense to you?
Cezar

Similar Messages

  • How to insert and retreive zip files in to blob column in oracle database?

    This is the code to retrieve               
    while (rs.next() ) {
                        Blob fileBlobContent = rs.getBlob(1);
                        String fileName = rs.getString(2);                    
                        String value = rs.getString(3);
                        long fileNum = new Long(value).longValue();
                        java.io.InputStream is =
                             ((oracle.sql.BLOB) fileBlobContent).getBinaryStream();
                        FileOutputStream fos =
                             new FileOutputStream("c:\\temp\\"+fileName);
                        int c = -1;
                        while ((c = is.read()) != -1) {
                             fos.write(c);
    This is the code to insert into the row aftre inserting empty blob
                   // step 3 - now put the contents of the file
                   int length = 0;
                   int buff_size = 1024;
                   //Writer out_clob = ((oracle.sql.CLOB)fileCobContent).getCharacterOutputStream();
                   OutputStream outstream = ((oracle.sql.BLOB) fileBlobContent).getBinaryOutputStream();
                   long chars_read = data.length();
                   byte[] buffer = new byte[buff_size];
                   while ((length+buff_size) < chars_read) {
                        outstream.write(buffer, length, buff_size);
                        length += buff_size;
                        //outstream.flush();
                   // write remaining data
                   int remaining = (int)(chars_read-length);
                   outstream.write(buffer, length, remaining);
                   // steps 4-5:
                   outstream.flush();
    Any help is greatly appreciated. Thanks!

    String localStrFile = importFormFileArg.getFileName();
    try
    localStrFileExt = localStrFile                    .substring(localStrFile.indexOf(".") + 1);
         localInputStream = importFormFileArg.getInputStream();
         localBr = new BufferedReader(
         new InputStreamReader(                         localInputStream));
              /** Read line by line and count the tokens present */
         while ((localStrReadLine = localBr.readLine()) != null)
         localIntRecords++;
                        /* parse the file contents with the delimiter comma */
                        if ("xls".equalsIgnoreCase(localStrFileExt))
                             localIsMandatoryPresent = isMandatoryFieldsPresent(
                                  localStrReadLine, ',');*/
                             System.out.println(localStrReadLine+" first \n\n\n ");
                             localStk = new StringTokenizer(
                                  localStrReadLine, "\t");
                             StringTokenizer localStk1 = new StringTokenizer(
                                  localStrReadLine, ",");
    // here i am unable to getting the records pls any body helpme                                             }
    Edited by: mulamahi on Oct 26, 2007 12:32 AM

  • How to insert and retrieve zip files in to blob column in oracle database?

    Hi All,
    I have a requirement where i need to insert zip files to BLOB and retrieve them.
    Please suggest me any good example or redirect me to them.

    You already have a post on this subject here: read and write compressed data from blob in ADF
    Please do not post duplicate questions.

  • Loading xml data to a oracle database problem in style sheet

    Hi,
    I Have one small Problem While loading xml data to a oracle database.
    In the XML i have the Columns and Data Like this.
    <Data>
    <TRAN>
    <Type_Trs>A</Type_Trs>
    <T1>2</T1>
    <T2>3</T2>
    </TRAN>
    <TRAN>
    <Type_Trs>B</Type_Trs>
    <T1>2</T1>
    <T2>3</T2>
    </TRAN>
    </Data>
    I have TRAN Table having Field Like this.
    TRAN(Type_Trs,T1,F)
    Note:- The XML Column T2 is Not matching with TRAN Table Column F
    I want to fetch T2 data into F column.
    When I am fetching the xml data into oracle table only
    one row is fetching.
    Can You help me
    To load the the all the record of XML data into the Oracle Table
    What will be my XLS Style Sheet File Please
    suggest me.
    Regards
    MBR
    Thnks in Advance

    Hi MBR
    You would be better posting your question to the general XML forums:
    http://forums.oracle.com/forums/category.jspa?categoryID=51
    This is purely for XML/BI Publisher where we get the data back out of the db :o)
    Tim

  • How to load a java script in oracle database

    Is it possible to load d java script in Oracle database. while the object type is
    java resource ..

    RENUJP wrote:
    I meant to load a javascript to oracle database not to oracle appliocation.
    like loadjava....
    I can load a javascript to oracle database.. but i can't call it...Please re-read the comments above, especially the part about this not being a javascript nor oracle forum. Exactly what part about this information don't you understand?

  • Regarding loading of excel data  into oracle database

    hello,
    Can someone help me in knowing that how can we load excel sheets data into oracle database.
    I will be really thankful to you.
    Gursimran

    Hi,
    There is tool given by oracle "Oracle Bulk Loader "
    you can use this.
    But in order use this you need a control file, which specifies how data should be loaded into the database; and a data file, which specifies what data should be loaded.
    Example :- this is the control file which has information how the data is processed.
    LOAD DATA
    INFILE test.dat
    INTO TABLE test
    FIELDS TERMINATED BY '|'
    (i, s)
    Example :- test.dat which is the data file or say your excel sheet or document
    (1, 'foo')
    (2, 'bar')
    (3, ' baz')
    example of Loading :-
    sqlldr <yourName> control=<ctlFile> log=<logFile> bad=<badFile>
    sqlldr testing control=test.ctl log=test.log
    Thanks
    Pavan Kumar N

  • How to load text file data to Oracle Database table?

    By using Oracle Forms, how to load text file data to Oracle Database table?

    Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • Create a new oracle database from OCI or OCCI client

    Hi,
    How can we create a new oracle database from OCI or OCCI client?
    i am using the oracle 11gR2
    Thanks in Advance,
    Sreekanth Polaka

    Though I have not tried creating a database, try if its doable.
    You can use OCI to perform SYSDBA operations.
    So connect as OCI_SYSDBA and try executing the entire create database command.

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • Moving oracle database from Solaris 10 to 9

    Hi all,
    Good day,
    I am looknig for perfect steps on moving an oracle database from one server to another server.
    Below are the details,
    From:
    SunOS sacsun134 5.10 Generic_142909-17 sun4u sparc SUNW,SPARC-Enterprise [Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit]
    To:
    SunOS sacsun120 5.9 Generic_122300-54 sun4u sparc SUNW,Sun-Fire-V890 [Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit]
    Any metalink ID would also be helpful.
    Many Thanks...

    To clone your ORACLE_HOME binaries, see 300062.1 (How To Clone An Existing RDBMS Installation Using OUI).
    To clone your database, see 458450.1 (Steps to Manually Clone a Database)
    To re-link the ORACLE_HOME binaries (because of the OS change), see 444595.1 (Is It Necessary To Relink Oracle Following OS Upgrade?)
    HTH
    Srini

  • How to connect oracle database from tuxedo

    Hi,
    How to connect oracle database from tuxedo.
    If any one can help me.
    Regards,

    it depends on configuration your going to choose, there are two ways--
    - Using X/Open standards, for this
    you have to make an entry of Resource manager in $TUXDIR/udataobj/RM file.
    Then in UBBConfig file in GROUPS section u have to set Openinfo.
    It also depend on which database you are going to use.
    In your service now you need to call tpopen() API from tpsvrinit() function.
    - Other possibility is, take an implicit connection using Pro*C or Pro*Cobol whatever platform you are using.
    EXEC SQL Connect ...

  • Connect on an oracle database from another computer

    hi all,
    i installed oracle database 10g express as well as sql developer on one of my laptop. Everything is ok as of the moment.
    Now, i want to access that oracle database from my another laptop. Is this possible? let me know what should i do in order to achieve this.
    thanks.

    user13169035 wrote:
    thanks for the help. basically here is the setup.
    i have 2 laptops. the first one has oracle 10g database express install and sql developer. i can query my database from here using sql developer.
    now, on my second one, i want to access the data from the database that i created from the first laptop. i want to access the data from the database from the first laptop using sql developer which i also installed on the 2nd laptop.
    i already tried the link from http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm but didnt work (or maybe i missed something important).
    What from the link did you try to follow? Did you try to follow the information in the link i posted, specifically ...
    "4.4 Making Oracle Database XE Server Available to Remote Clients"
    Once you have done that. You will need to know the IP or possible computer name of the computer on the network which is hosting the database (it would be easiest if the laptop with the database had a static IP assigned by your router, assuming this is a home setup, and you use that for your connection). You will need that information to create a new connection in SQLDeveloper on the laptop without the database installed.
    Aside from that you may have to deal with windoze firewall issues and the like, but that removes this from being an Oracle question, you should be able to use google to deal with any issues you encounter in that.

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

Maybe you are looking for