DB2 timestamp to oracle timestamp conversion

Does any one know how to convert Db2 timestamp into oracle timestamp.
From DB2 we are getting timestamp in this format (2000-03-06-16.02.19.074474) (26 bytes).
I want to insert this into oracle thru owb into oracle table with column type timestamp.
Does anyone know the procedure for this type of conversion
Thanks in advance..

Hi,
Try a migration tool at www.ispirer.com/chyfo.html
It provides you the fastest, the easiest and the most powerful way to migrate
DB2 database into Oracle.
It works in conjunction with Oracle SQL Loader. The tool creates text files (moving of LOBs are fully supported), generates
CREATE TABLE scripts for Oracle and control files for SQL Loader.
The tool has a lot of other features.
Best regards, Dmitry.
null

Similar Messages

  • Java time to DB2 timestamp conversion

    I want to convert current time to following format "2008-01-12 11:46:55.945000". I tried but I an not able to do. Could you pelase hlep me out or is there any easy way to do
              Calendar calendar = Calendar.getInstance();
              //2008-01-12 11:46:55.945000
              int year = calendar.get(Calendar.YEAR);
              int date = calendar.get(Calendar.DATE);
              int month = calendar.get(Calendar.MONTH);
              int hour = calendar.get(Calendar.HOUR);
              int minite = calendar.get(Calendar.MINUTE);
              int second = calendar.get(Calendar.SECOND);
              int millisecond = calendar.get(Calendar.MILLISECOND);
              String timestamp = year+"-"+date+"-"+month+" "+hour+":"+minite+":"+second+"."+millisecond;

    have you try like:
    java.sql.Timestamp creationdate = new java.sql.Timestamp(new Date().getTime());
    prepStmt.setTimestamp(1, creationdate);or format the date as "yyyy-MM-dd HH:mm:ss" like string by using SimpleDateFormat
    and use
    java.sql.Timestamp creationdate =
                   java.sql.Timestamp.valueOf(creationDate);

  • Help to create Materialized View that has timestamp conversion

    I need help creating materialized view with timestamp conversion between GMT to LocalTime.
    Feel free to make any comments.
    Thanks in advance.
    jon joaquino;)

    Here is one way.
    1. Alter the table hist_table and add a new column pdt_timestamp.
    2. Update the new column using the function 'new_time'
    For example,
    Update hist_table
    set pdt_timestamp = new_time(gmt_timestamp,'GMT','PDT');
    3. create a materialized view log on the table 'hist_table' using the syntax
    create materialized view log on hist_table
    with primary key, rowid, sequence;
    4. create a materialized view now using the syntax:
    (You have to specify your own storage numbers and tablespace name)
    create materialized view mview_hist_table
    pctfree 0 tablespace mymview
    storage (initial 16k next 16k pctincrease 0)
    build immediate
    refresh fast on commit
    as select uid,gmt_timestamp,pdt_timestamp
    from hist_table;
    Please test on your test instance before doing it on production. I have tested this on Oracle 10g for Windows 2000. I assumed that column 'uid' is the primary key on the table. I hope this helps.
    **********************************************************

  • Timestamp conversion problem.

    I work in the development of a LabVIEW program that communicates with a
    server (written in Java). All acquired data is sent via TCP and the
    server can read everything (waveforms and other information). However,
    there is a problem in timestamp conversion. We don't know how to
    convert the milliseconds correctly. The timestamp is inside a waveform,
    so we cannot convert it to formatted string.
    Example:
    Original timestamp:
    13:37:19,639
    11/10/2005
    String generated with "Flatten to String":
    0000 0000 BF71 9ABF A3D7 0800 0000 0000
    Converted value (Java server):
    13:37:19,000
    11/10/2005
    Does anyone know the algorithm to obtain the milliseconds from this value: "A3D7 0800"?
    Thanks for attention.
    My regards,
    Vinicius Falseth
    Solved!
    Go to Solution.

    There is a faster way.  You can extract the timestamp from the waveform using Get Waveform Components. 
    At that point, you can convert it to whatever you want.  Attached
    is a VI which shows a simple conversion to milliseconds, losing a lot
    of resolution (128 bit timestamp goes to 52 bit double) and a more
    complex conversion showing the internal structure of the timestamp (it
    is a 128 bit fixed point number with the decimal in the middle). 
    You can modify the second conversion to do such things as throw away
    the integer portion to get higher resolution on the fraction.  Or
    you could just save to Java using a four-integer structure.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    timestamp.llb ‏48 KB

  • DB2/MVS to Oracle conversion

    Are there any automated tools and/or guides/documentation to assist in a conversion from DB2/MVS to Oracle?
    Thanks.

    Hi,
    Try a migration tool at www.ispirer.com/chyfo.html
    It provides you the fastest, the easiest and the most powerful way to migrate
    DB2 database into Oracle.
    It works in conjunction with Oracle SQL Loader. The tool creates text files (moving of LOBs are fully supported), generates
    CREATE TABLE scripts for Oracle and control files for SQL Loader.
    The tool has a lot of other features.
    Best regards, Dmitry.
    null

  • Download Conversion kids for DB2/MVS to Oracle

    Hi there,
    After I read about the doc about the conversion kid,
    I want to know more about the sample JCL and SQL within the doc listed, grateful if someone could tell me where to download the trial edition(if exists)
    Thanks & regards

    Hi,
    Try a migration tool at www.ispirer.com/chyfo.html
    It provides you the fastest, the easiest and the most powerful way to migrate
    DB2 database into Oracle.
    It works in conjunction with Oracle SQL Loader. The tool creates text files (moving of LOBs are fully supported), generates
    CREATE TABLE scripts for Oracle and control files for SQL Loader.
    The tool has a lot of other features.
    Best regards, Dmitry.
    null

  • How do I connect to a DB2 database from Oracle 10G on linux?

    Hi
    I have tryed to connect to a DB2 database from oracle 10 G on linux.
    I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
    select * from testtable@acc_spc_gr2
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
    Could not find symbol 'SQLAllocConnect' in dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
    '/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
    ORA-02063: preceding 3 lines from ACC_SPC_GR2
    What am I doing wrong? Any one have a guide to do this?
    - Jesper

    this is my complete configuration
    Database_
    -bash-3.2$ export ORACLE_SID=XE
    -bash-3.2$ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Conectado a:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Platform_
    Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
    */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
    #This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    #HS_FDS_CONNECT_INFO = ODBC_DSN
    HS_FDS_CONNECT_INFO = prueba
    HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
    HS_FDS_CONNECT_INFO = DB2DATABASE
    #HS_FDS_TRACE_LEVEL = debug
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    set DB2INSTANCE=is400
    listener.ora_
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = DB2DATABASE)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM =hsodbc)
    (ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    tnsnames.ora_
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    DB2DATABASE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DB2DATABASE)
    (HS=OK)
    odbc.ini_
    [prueba]
    Description = iSeries Access ODBC Driver
    Driver = iSeries Access ODBC Driver
    System = xxx.xx.3.2
    UserID = xxxxxx
    Password = xxxxxx
    Naming = 0
    DefaultLibraries = QGPL
    Database = CHERRYWEB
    ConnectionType = 0
    CommitMode = 2
    ExtendedDynamic = 0
    DefaultPkgLibrary = QGPL
    DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
    AllowDataCompression = 0
    MaxFieldLength = 32
    BlockFetch = 1
    BlockSizeKB = 128
    ExtendedColInfo = 0
    LibraryView = 0
    AllowUnsupportedChar = 0
    ForceTranslation = 0
    Trace = 0
    odbcinst.ini_
    [PostgreSQL]
    Description = ODBC for PostgreSQL
    Driver = /usr/lib/libodbcpsql.so
    Setup = /usr/lib/libodbcpsqlS.so
    FileUsage = 1
    [iSeries Access ODBC Driver]
    Description = iSeries Access for Linux ODBC Driver
    Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
    Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
    Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
    Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
    UsageCount = 1
    CPTimeout =
    CPReuse =
    System = 172.18.3.2
    User = inf5mito
    Password = lonco3pue
    NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
    NOTE2 = the following Driver64/Setup64 keywords will provide that support.
    Threading = 2
    DontDLClose = 1
    ODBC Driver_
    -bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
    -bash-3.2$ ls -ltr
    total 2260
    -r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
    -r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
    -r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
    -r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
    -r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
    and this is my error.
    SQL> /
    select from display@db2database*
    ERROR en línea 1:
    ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
    mensaje:
    *[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
    in dynamic library
    *[C079] Failed to load dynamic library*
    *'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
    ORA-02063: 3 lines precediendo a DB2DATABASE
    Edited by: user6669081 on 07-jul-2010 6:31

  • Query DB2 tables from oracle using normal view

    This is with regard to querying db2 tables using oracle views. The view is created using dblink. The querying is not an one time activity.querying will be done once in a day. Can i use normal view (will it work ) or should i use materialised view. will i be able to view the added records in db2 table using normal view?
    thanks,
    vinodh

    Vinodh2 wrote:
    This is with regard to querying db2 tables using oracle views. The view is created using dblink. The querying is not an one time activity.querying will be done once in a day. Can i use normal view (will it work ) or should i use materialised view. will i be able to view the added records in db2 table using normal view?How can the SQL select statement via a dblink not work for a view, but the same SQL select statement work for a materialised view?
    Do you think the database link or remote database care whether the select SQL that hits it, comes from a PL/SQL procedure, a view, a materialised view, a job or whatever else? It has no idea what/who is behind that select SQL - and nor does it care.
    As for the benefits of a view vs. a materialised view - that depends on the requirements for needing to use that foreign database's data in the local database.

  • Sybase ASE to Oracle 11g conversion

    Hi,
    Can anyone please look at the following Sybase ASE to Oracle 11g conversion - the top remarked code is the original Sybase version and the two UPDATE blocks below are hopefully doing the same task... What I need to know is if there is a more simple (less code change) way of doing the same task, either as a single UPDATE or preferably even more similar to the original Sybase code..?
    -- /* now apply allocations */
    -- update diary_items
    -- set id_user = ia.id_user ,
    -- tx_icon_user = 'urlcats:/user_grey.gif?method:getAllocationInfo'
    -- from diary_items di,
    -- item_allocation ia
    -- where di.id_diary_item = ia.id_object
    -- and ia.id_object_type = 'W'
    -- and ia.id_user != 'autocats'
    -- OK!
    -- ??? Need to check if second UPDATE which is the same as above is required again...
    /* now apply notes */
    UPDATE diary_items
    SET diary_items.tx_icon_user =
    ( SELECT 'urlcats:/user_grey.gif?method:getAllocationInfo'
    FROM item_allocation
    WHERE item_allocation.id_object = diary_items.id_diary_item )
    WHERE EXISTS
    ( SELECT item_allocation.id_object
    FROM item_allocation
    WHERE item_allocation.id_object = diary_items.id_diary_item
    AND item_allocation.id_object_type = 'W'
    AND item_allocation.id_user != 'autocats' )
    UPDATE diary_items
    SET diary_items.id_user =
    ( SELECT item_allocation.id_user
    FROM item_allocation
    WHERE item_allocation.id_object = diary_items.id_diary_item )
    WHERE EXISTS
    ( SELECT item_allocation.id_object
    FROM item_allocation
    WHERE item_allocation.id_object = diary_items.id_diary_item
    AND item_allocation.id_object_type = 'W'
    AND item_allocation.id_user != 'autocats' )
    Many thanks!!!
    Edited by: 881552 on 25-Aug-2011 04:39

    I managed to work it out in the end - here's the solution...
    /* now apply allocations */
    update diary_items
    set ( id_user,
    tx_icon_user ) =
    ( select ia.id_user,
    'urlcats:/user_grey.gif?method:getAllocationInfo'
    from diary_items di,
    item_allocation ia
    where di.id_diary_item = ia.id_object
    and ia.id_object_type = 'W'
    and ia.id_user != 'autocats'
    )

  • Migration map from DB2 MVS to oracle

    Hi there,
    I am looking for more details for OMWB,
    if it could be used to migrate from DB2 MVS to oracle,
    and especially concerned about the mapping procedure,
    also concerned about volume and speed as for about millions of records /rows are involved.
    How much the OMWB can help?
    Please help.......:~
    Thanks
    and regards.

    Hi there,
    Thank you very much for your reply,
    also,
    can the OMWB for DB2/400 also works for DB2/MVS?
    is there utility in OMWB exists for the mapping procedure?
    thanks a lot.

  • Oracle Assets Conversion Release 12

    Hello Experts,
    I am going to develop the conversion program for Oracle Assets Conversion for release 12. I am new to Fixed Assets concepts.
    Could any one guide me what are all the steps to be followed. I understand by studying the user guide that there are 5 different ways to perform this Oracle Assets conversion.
    1.Adjusted current earnings(ACE)information
    2.Budget Data
    3.Mass addtions of Assets
    4.Production Information which is typically related to depreciation. and
    5.Physical Inventory data.
    Since ,as of now I don't have any requirement from my client. They just said to have a process developed to import the data into oracle apps using Oracle asset conversion using SQL loader.
    Any Sample codings will be a great help for me.
    Thanks,
    Ravi.

    Hi;
    Please follow below(and reference) and see its helpful:
    Subject: Suggestions for Converting into the Group Asset Structure in 11i and/or R12
    https://metalink2.oracle.com/metalink/plsql/f?p=200:27:7590783145359143218::::p27_id,p27_show_header,p27_show_help:685244.993,1,1
    Subject: Data Conversion Of Source Lines into Oracle Assets Doc ID: 265835.1
    Regards
    Helios

  • DB2 data guard (oracle)

    SAP : R/3 ECC 6.0
    db : db2
    os : linux suse
    hclsap:db2hcd 52> db2licm -l
    Product name:                     "DB2 Enterprise Server Edition"
    License type:                     "Trial"
    Expiry date:                      "03/21/2010"
    Product identifier:               "db2ese"
    Version information:              "9.1"
    Annotation:                       "-5;(_t)"
    Linux hclsap 2.6.16.60-0.21-smp #1 SMP Tue May 6 12:41:02 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
    Question : Is there any possibility of Data guard (oracle)  mechanism possible possible for db2.
    I was checking concept of HADR not sure whether possible with SAP bundled version.
    How to check whether it is possible with the bundled version of DB2 with SAP 6.0
    Pl. guide me

    Hi,
    Is there any possibility of Data guard (oracle) mechanism possible possible for db2.
    YES..Using DB2 HADR..
    Please refer following Useful links.
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/b9/a961d169c143ecb45262a2b10f149d/frameset.htm|http://help.sap.com/saphelp_nwpi711/helpdata/en/b9/a961d169c143ecb45262a2b10f149d/frameset.htm]
    [DB2 HADR in SAP Environment|http://www3.software.ibm.com/ibmdl/pub/software/dw/dm/db2/dm-0508zeng/HADR.pdf]
    [DB2 9- Data Recovery and High Availability Guide and Reference|ftp://ftp.software.ibm.com/ps/products/db2/info/vr9/pdf/letter/en_US/db2hae90.pdf]
    [Technical Comparison of DB2 HADR and Oracle Data Guard|ftp://ftp.software.ibm.com/software/data/pubs/papers/hadr-comp.pdf]
    I was checking concept of HADR not sure whether possible with SAP bundled version.
    SAP OEM License includes HADR license as a part of DB2 License.
    Please refer [SAP Note 1260217 - DB6: Software components contained in DB2 license from SAP|https://service.sap.com/sap/support/notes/1260217].
    Regards,
    Bhavik G. Shroff

  • Need to find out a way to figure out how DB2 connect to Oracle and data mirroring etc.

    Hi, Gurus,
    I just take over a project which source is ICOMS as400 db2 database. Seems data mirro CDC is used to replicate from DB2 to oracle.
    I am very new to this datamirror CDC , plus I am new to figure out how db2 connect to oracle, is that through db link or what? or is there tnsnames entry?
    I would like anybody in this forum can point me to the right direction.
    Thanks in advance.

    user9233598, if mirroring/replication from DB2 to Oracle already exists then question is what product is being used?  If the product has already been purchased then I do not think it is very likely that management is going to want to purchase another product so I do not see how extra-cost Golden Gate or other Oracle Gateway features apply if those are not currently in use.  If Golden Gate or the Oracle Transparent Gateway are in use then you already have your answer
    Oracle supports ODBC/JODBC and the replication application on the AS400 likely uses these features or a thick Oracle client as the interface to Oracle.
    HTH -- Mark D Powell --

  • IMS to Oracle 9i Conversion

    Has anyone attempted a IMS to Oracle 9i conversion? does anyone know of any tools?

    I would start with the Oracle Access Manager for IMS...
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Migrate DB2 V8 to Oracle

    I want migrate the db2 of Content Manager 8.3 to Oracle, the version exactly of db2 is:
    uxe25104:/herramientas/servers/iplanet/ws61/https-appsintranet/config # db2level
    DB21085I Instance "dbinst" uses "32" bits and DB2 code release "SQL08027" with
    level identifier "03080106".
    Informational tokens are "DB2 v8.1.0.128", "s061108", "U810099", and FixPak
    "14".
    Product is installed at "/opt/IBM/db2/V8.1".
    Oracle tell us, "we currently do not have a tool to migrate DB2 V8 to Oracle; our tool we have Oracle Migration Workbench supported only up to version 7 and the new tool SQL* Developer misses the Db2 plugin so far. It is currently under construction."
    Any have another option ?
    Thank's a lot.
    Carlos

    Not as far as I know. Can you use the tool for V7 to migrate some of the functionality to ease the pain?

Maybe you are looking for

  • Video and audio do not work

    I am unable to get my audio and video to work on ichat. i always get an error message. this is the error details. any thoughts? tia!!! Date/Time: 2009-05-11 20:17:53.523 -0500 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 iChat Connection Log:

  • Ipod 5 touch black screen no service wont charge doesnt show up on computer when usb is plugged up

    ipod 5 touch. I have a  black screen, no service. will not come on.  Will not charge.  Doesnt show up when connected to computer with usb port.  Any help would be greatly appreciated. Thank you

  • [SOLVED]Gnome 3 doesnt ask me for sudo password

    So, I'm a noob. I've installed Arch, everything went relatively well and I have a working Gnome 3 environment. However, when I type "sudo blablabla" (like "sudo pacman -S some_package") Gnome never asks me for a password, it just silently does what I

  • TABLE & FIELDS FOR QA32

    Hi Gurus! Plz can u tell me whats the table for QA32 , field name for Defect code,reject qty. Regards, Rahul. Message was edited by:         rahul deshmukh

  • Version control design for multi department collaboration

    Hi all, I've just implemented my first Hyperion Planning project. As a new commer, my design seem not good for the client. - Requirement (Data flow): Marketing => Sales => Production (Manufacturing) - Design: Each department data has its own version