Load BLOB column in Oracle to Image column in MS SQL Server

Hi there,
I have an Oracle table as the source and a MS SQL Server table as the target. A blob(4000) column in source is mapped with a Image(2147483647) column in target.
The execution will give me error message "*java.lang.NumberFormatException: For input string: "4294967295"* " when it comes to step "load data into staging table"
The LKM that I am using is LKM SQL to MSSQL.
I also tried LKM SQL to MSSQL(BULK), LKM SQL to SQL(jython), LKM SQL to SQL. None of them is helpful.
Coudl anyone tell me how to solve this 4294967295 problem? Thanks a lot

Hi Yang,
Oracle recommends the setting of the 'get_lob_precision' flag to FALSE to avoid this error.
To do that,
1. Take a backup of your ODIPARAM.BAT file.
2. Open ODIPARAM.BAT file and add the following line,
set ODI_ADDITIONAL_JAVA_OPTIONS=%ODI_ADDITIONAL_JAVA_OPTIONS% " -Doracledatabasemetadata.get_lob_precision=false"
next to,
set ODI_ADDITIONAL_JAVA_OPTIONS="-Djava.security.policy=server.policy"
PS:If the parameter is set, the resulting "ODI_ADDITIONAL_JAVA_OPTIONS" ("SNP_ADDITIONAL_JAVA_OPTIONS" or "SNP_JAVA_OPTIONS") should be similar to the above.
Restart ODI and try.
Thanks,
G

Similar Messages

  • Does Oracle have Extended Stored Procedure like SQL Server and Sybase?

    Hi, i am new to Oracle. I want to know if...
    Does Oracle have Extended Stored Procedure like SQL Server and Sybase?
    If it does not have, then how can i call outside program written in C or JAVA from the Database stored procedure or trigger?

    refer to this link on external procedures
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/manproc.htm#11064

  • How to combine multiple columns into one column and delete value the row (NULL) in sql server for my example ?

    My Example :
    Before:              
    Columns
    name               
    address          
                   jon                      DFG
                   has                     NULL
                   adil                      DER
    After:                  
    Column 
                                    Total   
                      name : jon , address : DFG
                      name : has
                      name : adil , address : DER

    Why not doing such reports on the client site?
    create table #t (name varchar(10),address varchar(20))
    insert into #t values ('jon','dfg'),('has',null),('adil','der')
    select n,case when right(n,1)=':' then replace(n,'address:','') else n end
    from
    select concat('name:',name, ' address:',address  ) n from #t
    ) as der
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Can Oracle view refer a table in Sql Server Database

    Can a view created in Oracle database refer a table created in SQL Server database. If yes, how do we do it. Code will be very help full.
    Again, if yes does it require any special software and what would be price of that software.
    Thanks for your response in advance.
    Venkat Sathiamurthy

    You would need to configure Oracle Heterogeneous Connectivity to create a database link to the SQL Server system. This can either be done via the Oracle Transparent Gateway for Microsoft SQL Server, which retails for $15,000 per server at http://store.oracle.com or by configuring Oracle Generic Connectivity and using ODBC to go after the SQL Server data. Depending on the operating system you run Oracle on, there may be a free (or cheap) ODBC driver for SQL Server that could be used.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Attunity connectors for Oracle in Import Export Wizard in SQL Server 2008 R2

    Is there a way we can see the Attunity connectors drivers in the Import/Export Wizard (64 bit) for SQL Server 2008 R2?
    Although I made it work for SSIS, I would need these drivers in the Import/Export wizard so as to automate it for numerous number of tables which I want to migrate.
    Can the Attunity connectors for Oracle be used in the Import/Export wizard? If so please let me know.
    Regards,
    Ashutosh.
    Ashutosh.

    I have 100 tables to migrate. Creating a data flow for each table is tedious and that's why I was looking out for a way to do it through import export wizard so that I don't have to create a separate data source and destination for each table in the Data
    flow Task.
    Is there a way to loop through all tables and transfer data in SSIS without having multiple sources and destinations created for each table? This also involves a bit of transformation as well.
    Regards,
    Ashutosh.

  • How to Select from Oracle 8i database and insert into Sql Server 2005 datab

    Hi how to Select from Oracle 8i and insert into Sql Server 2005.
    Source db as Oracle 8i
    Target db as Sql Server 2005.
    I need to select one table data from Oracle 8i & insert into Sql Server 2005
    Thanks

    Thanks Khan..
    Is there is any query (OPENQUERY) available for that?
    Regards..

  • AIX (Oracle 8.1.6) to MS/SQL Server (ODBC)

    Hi,
    The company I am working for is about to evaluate the Oracle Transparent Gateway to connect 8.1.6 (on AIX) to MS/SQL Server (on NT). I have heard that you can do this via ODBC (on AIX) to ODBC (on NT).
    Does anyone have a step-by-step guide on how to do this? The Oracle documentation
    "Managing Heterogeneous Services Using Generic Connectivity" just gives you concepts and does not tell you how to just
    "do it" or where to get the ODBC driver manager (for AIX) or ODBC driver manager (for AIX).
    Anyone set this up before?

    Hi,
    Good that you are exploreing lot many things. As you are already working on 8.1.6, I guess you know much about that. To get more on 9i features read this link
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96531/toc.htm
    and 9.2.0.4 that 0.4 is a patch which you need to download from metalink site (metalink.oracle.com) for which you needs oracle licence.
    Hope this meets your basic requirement.
    Kamalesh JK

  • Connecting Oracle to MS SqlServer using Microsoft SQL Server ODBC Driver

    Hello,
    I have just downloaded the newly released Microsoft® SQL Server® ODBC Driver for Linux and trying to configure it to connect to SqlServer Database from Oracle using DG4ODBC
    Below are my config files:
    # odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    FILE DATA SOURCES..: /etc/ODBCDataSources
    USER DATA SOURCES..: /usr/oracle/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    cat /etc/odbcinst.ini
    [SQL Server Native Client 11.0]
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
    #UsageCount = 1
    Fileusage = 1
    Dontdlclose = 1
    [ODBC]
    Trace = ON
    Tracefile = /tmp/mstestodbc.log
    cat /usr/oracle/.odbc.ini
    [DEFAULT]
    Driver = SQL Server Native Client 11.0
    [MSTEST]
    Driver = SQL Server Native Client 11.0
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    Servername = ret2axxx
    Database = testdb
    Port = xxxx
    And when I am trying to do an ODBC test using isql I am getting the below error.
    # iusql -v MSTEST username password
    [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
    [ISQL]ERROR: Could not SQLDriverConnect
    Any help is much appreciated!!
    Thanks,
    Steve.

    Thanks Kgronau for your response.
    I have made changes to the ODBC.ini file still getting the same error
    [MSTEST]
    Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
    #Driver = SQL Server Native Client 11.0
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    #Address = ret2axxx
    Server = ret2axxx, <port>
    Database = testdb
    and when I am trying to export odbcinst.ini export ODBCINSTINI=/etc/odbcinst.ini
    in odbcinst -j output it shows the wrong information.
    :~ $ odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc//etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    FILE DATA SOURCES..: /etc/ODBCDataSources
    USER DATA SOURCES..: /usr/oracle/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    And when export odbcinst.ini as export ODBCINSTINI=odbcinst.ini it shows the correct path.
    :~ $ odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc/odbcinst.ini
    isql -v mstest username password
    [IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
    [ISQL]ERROR: Could not SQLConnect
    Thanks,
    Steve.

  • Conversion of code in oracle into code compatible with MS-SQL server-2005

    Hello ,
    i am trying to execute this oracle query in MS -SQL server-2005 and it gives syntax errors. After correcting few i am not able to bug out this error for FOREIGN KEY.
    Here's the code :
    create table saving_deposit
    (ac_no varchar(11)constraint fk_saving_deposit references account_master(ac_no)on delete cascade,
    deposit_amt int,
    deposit_date Date,
    mode_of_deposit varchar(10),
    cheque_no varchar(15),
    draft_no varchar(15 ),
    bank_name varchar(20),
    status_update varchar(15),
    remarks varchar(10));
    And the error Msg 1767, Level 16, State 0, Line 1
    Foreign key 'fk_saving_deposit' references invalid table 'account_master'.
    Msg 1750, Level 16, State 0, Line 1
    Could not create constraint. See previous errors.
    Anyone please help me correct this.
    Thanks in advance .

    >
    i am trying to execute this oracle query in MS -SQL server-2005 and it gives syntax errors.
    After correcting few i am not able to bug out this error for FOREIGN KEY.
    Here's the code :
    create table saving_deposit
    (ac_no varchar(11)constraint fk_saving_deposit references account_master(ac_no)on delete cascade,
    deposit_amt int,
    deposit_date Date,
    mode_of_deposit varchar(10),
    cheque_no varchar(15),
    draft_no varchar(15 ),
    bank_name varchar(20),
    status_update varchar(15),
    remarks varchar(10));Can't test this - don't run Windows - but maybe (it's just a thought really)
    CREATE TABLE Saving_deposit
    ac_no VARCHAR2(11),
    ALTER TABLE ADD CONSTRAINT... <SQL Server syntax>
    I know it shouldn't matter - but who knows?
    Paul...

  • CDC for Oracle Continually goes to Aborted State - SQL Server 2012

    I am setting up a test environment for CDC with an Oracle system.  I have everything set up to the point where logs are being read and data appears to be getting added to the CDC tables in SQL Server.  However, at different times during the day,
    the status of the service goes to Aborted and the service is completely stopped.  The first time I start the service, it will run for about 1 hour, before it aborts.  After that, it only takes 2 or 3 minutes, sometimes less, before this happens again.
    Below are the last entries in the log when the instance aborted.  Whenever the instance aborts, the last message is always "Reading Complementary records for large log miner SQL_REDO/SQL_UNDO".  I'm guessing there's a permission or setting
    in Oracle that I'm missing, but I don't know what it is.
    Version information:
    Oracle: 10.2.0.5.0
    CDC Service: SQL Server 2012 SP 1
    SQL Server Database Engine: 11.0.3128
    record","source","","0xDD070A00170012001C0004000043073800000000000000000626001100F8DD3A00000000061474B6B30100000100012B190000CC8E01340000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C0004004085163800000000000000000626002F00E2DD3A00000000061474B6B40100000100012B190000CCA201C40000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400C009353800000000000000000026002F00E2DD3A00000000061474B6B50100000100012B190000CCA500A00000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400408E533800000000000000000026001100F8DD3A00000000061474B6B70100000100012B190000CCAF00440000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C00040080D0623800000000000000000626002D00DBDD3A00000000061474B8780100000100012B19000108B500280000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C0004000055813800000000000000000626001500E0DD3A00000000061474B8790100000100012B19000108C7003C0000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C00040080D99F3800000000000000000026001500E0DD3A00000000061474B87A0100000100012B19000108C901140000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Enqueue transaction record","source","","0xDD070A00170012001C000400C01BAF3800000000000000000026002D00DBDD3A00000000061474B87C0100000100012B19000108D301540000000000"
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading next record","source","",""
    "10/23/2013 6:28:04 PM","TRACE","ETL-BI12-01-T","RUNNING","IDLE","ORACDC000T:Reading Complementary records for large log miner SQL_REDO/SQL_UNDO","source","",""

    Here are the permissions we have set up on the Oracle side: (Please forgive the poor formatting.  The editor wants to remove all of the spaces and add extra carriage returns.)
    GRANT
    EXECUTE
    ON 
    "SYS"."DBMS_LOGMNR"
    TO
    "LOGREADER";
    GRANT
    EXECUTE
    ON 
    "SYS"."DBMS_LOGMNR_D"
    TO
    "LOGREADER";
    grant
    select
    any
    transaction
    to
    logreader;
    GRANT
    "CONNECT"
    TO
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$database
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$logmnr_contents
    to
    "LOGREADER";
    GRANT
    select ON
    sys.v_$logmnr_dictionary
    to
    "LOGREADER";
    GRANT
    selectONsys.v_$logmnr_logfileto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_logsto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_parametersto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_sessionto"LOGREADER";
    GRANT
    selectONsys.v_$logmnr_transactionto"LOGREADER";
    GRANT
    selectONsys.v_$logto"LOGREADER";
    GRANT
    selectONsys.v_$logfileto"LOGREADER";
    GRANT
    selectONsys.v_$archived_logto"LOGREADER";
    GRANT
    select
    ON
    sys.dba_registry
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$instance
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$thread
    to
    "LOGREADER";
    GRANT
    select
    ON
    sys.v_$parameter
    to
    "LOGREADER";
    For each table we want to capture changes on, select rights have been granted to this user, as well.

  • HS between Oracle 8.1.7 and MS-SQL Server

    Hi all,
    I'm using one Oracle database 8.1.7 in Linux, and in another server MS-SQL Server 2000.
    This Ora817 i'm using only for source. My procedure select data from ora817 to insert in sql server 2000, using HSODBC, and the system frezee.
    But, when i do the same insert manually, it works.
    Sorry my fair english. Can one help me?
    Regards,
    Gustavo

    Hi all,
    I'm using one Oracle database 8.1.7 in Linux, and in another server MS-SQL Server 2000.
    This Ora817 i'm using only for source. My procedure select data from ora817 to insert in sql server 2000, using HSODBC, and the system frezee.
    But, when i do the same insert manually, it works.
    Sorry my fair english. Can one help me?
    Regards,
    Gustavo

  • Can Oracle 10g EM manage DB2 or SQL Server

    Need to know if Oracle 10g EM do have the capability to manage DB2 and SQL Server, as ct has this requirement. If so ct will manage all DB`s using Oracle 10g EM and use it for his enterprise.

    Manage, no. Monitor, yes, so long as you don't mind a bit of work.
    Now, for SQL Server, I expect you'll see the capability as a result of the Peoplesoft acquisition in a future release.
    DB2, well that's a bit of work if you care that much about it. Grid R2 has a lovely SDK for developing your own plugins to monitor whatever the heck you like. It's alot easier to do in R2 than R1...

  • Cube or Group By columns with Case Expressions with a total row (SQL Server 2008)

    I am trying to create a summary tabe of some data. I think that I can use Cube(my heart is not set on it though), but I cant figure a way to define new columns via a case expression and sum the new column.  Lastly, I need to create a total row at the
    bottom and I have no idea of how to do that except percent run the query and then run it again without the travel_city and union all the two tables
    group by travaled_city, [COL1] =sum(expense) when dept = 1, [COL2]=sum(expense) when dept = 2, [COL3] = sum(expense) when group = 3, =[COL4]=sum(expense) when group = 1 and  expense code = 0100,[COL5]= sum(expense) when group = 2 and  expense code
    = 0100, [COL6]sum(expense) when group = 3 and  expense code = 0100, [COL7]=sum(expense) when (exp_paid)<30, [COL8] = sum(expense) when dept in ('4','5','6')
    and have a grand total of each column
    any help is greatly appreciated

    Would this work?
    select travaled_city,
    sum(case dept when 1 then expense else 0 end) as [COL1],
    sum(case dept when 2 then expense else 0 end) as [COL2], ...

  • Retrieving Image Data Type from SQL Server 2000

    I'm trying to retrieve an Image using getBinaryStream() like descripbed in below code and encounter an error :
    java.lang.ClassCastException: com.microsoft.jdbc.base.BaseInputStreamWrapper
    What've I done wrong? Please help
    if(rs.next()){
                        fisAssyChart = (FileInputStream)rs.getBinaryStream("file_assembly_chat");
                        fisPPO = (FileInputStream)rs.getBinaryStream("file_ppo");
                        filePPO = new File(rs.getString("nama_file_ppo"));                    
                        fileAssyChart = new File(rs.getString("nama_file_assembly_chat"));                                                            
                   }Thx in advance
    David

    Oracle Migration Workbench:
    http://www.oracle.com/technology/tech/migration/workbench/index.html
    Cheers, OTN

  • How to migrate SQL Server image data type to Oracle 8 BLOB data type?

    Hi,
    I have to migrate data from sql server to Oracle 10 g.
    I am unable to migrate image data type from sql server to blob data type in oracle.
    Iam using Oracle Heterogenous Services to migrate the data,Using Merge statement and database link.
    I am getting the following error-
    ERROR at line 7:
    ORA-00932: inconsistent datatypes: expected BLOB got LONG BINARY
    Can any one suggest me how to migrate Image datatype to BLOB???

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

Maybe you are looking for