Problem migrating from Sybase to Oracle timestamp data

I'm trying to migrate data from a table of sybase with a timestamp to Oracle column. After having run the generated SQL script unload developer, I get a string that looks like this: 0001000000937aa9 < EOFD >

The generated SQL Developer loading script however will not process it and I get the following message:


Column Position Len term Encl. Datatype name

STATUS_TIMESTAMP NEXT * CHARACTER
String endpoint of: '< EOFD > '.

Sheet 1: Rejected - error on table DAROS. DR_STATUS, the STATUS_TIMESTAMP column.
ORA-01438: value larger than the precision specified for the column

If you SELECT this field in Sybase you get the same string, except that a number is hexadecimal 0x0001000000937aa9.

Is there a way to overcome this obstacle to which has also had a very smooth migration?

Thank you
Alex

I understand that a "timestamp" in Sybase cannot be mapped to a DATE or TIMESTAMP in Oracle. The Sybase data type is not, contrary to the name, meant to store a date or a time. It is more closely related to a SNA to in Oracle. If you just want to convert the data, you will probably need to store them in a VARCHAR2 column in Oracle. But if you have some code that works on the column, you will probably need to redesign this code by hitting Oracle. If you have code that uses this to optimistic locking / avoid updates that have been lost, according to the version of Oracle, you probably want to watch using the virtual ORA_ROWSCN rather.

Justin

Tags: Database

Similar Questions

  • How transform the trailing spaces &amp; AREAS of data from sybase to oracle

    Helllo,

    We are the migration of data from sybase to Oracle using goldengate... Source Sybase with SPACES (single / Multiple) as data to CHAR/VARCHAR that will be migrated to the VARCHAR2 data type in Oracle. I'm having trouble trying to implement under two conditions to transform the data

    1) Remove SPACES during the IPL for CHAR/VARCHAR

    example: Data Source: "TRAILING SPACE.

    Given target expected - remove the spaces of trailinging: "TRAILING SPACE.

    2) If the data with SPACES like a value (single or Multiple) will be loaded as a single SPACE in Oracle.

    example : Source data                                                  :  "          "

    Expected data from target - unique space:

    Map: dbo. Target TEST_TABLE DEV01. Table_test, COLMAP (USEDEFAULTS, CRE_ID = @IF (@STRRTRIM (CRE_ID) = @NULL AND CRE_ID <>@NULL, ' ', @STRRTRIM (CRE_ID)));

    I tried above mapping in the settings file, but it returns error like below, guidance on the highest implementation requirement will be useful.

    ... RIM (CRE_ID) = @NULL AND CRE_ID...

    ^

    Error in the COLMAP clause. Invalid function or argument.

    Under column mapping is worked :-)

    Map: dbo. Target TEST_TABLE DEV01. TABLE_TEST, COLMAP (USEDEFAULTS, CRE_ID = @IF (@STRLEN (@STRTRIM (CRE_ID)) = 0, ' ', @STRRTRIM (CRE_ID)));

  • Migration from MySQL to Oracle SQL does not

    Hello everyone,

    I am new to Oracle SQL, but since our MySQL database is more and get more slowly, I would like to test the performance of Oracle SQL.

    So, I downloaded the current Oracle Linux distro and installed Oracle Database 11 g Express Edition.

    I connected with Oracle SQL Developer and started to migrate the MySQL database by following each step of this tutorial.

    I had to abandon all the privileges of the user migration (otherwise the creation and the deleteion of the migration repository did not) and I have disabled the migration of constraints to make migration work.

    Then I proceeded through all of the steps of the tutorial and ended with a "successful migration.

    The last step of the tutorial, it was to connect to the db migrated (using a combination of username/password generated name), it was not possible.

    What do I already checked?

    • Logged on as user system, I see that there is no new user created for the migrated db
    • Looking at the overview in the migration repository I see 3 phases, not knowing if the third displays an error or if it is not necessary at all (I got 58 tables in the db of the source)
      • Capture of 58/58
      • Convert 58/58
      • Compile 0/58

    From here, I don't know where to look for additional errors.

    I still can't use the migrated db and so I can't go forward with my tests.

    I missed something?

    I would appreciate your help.

    Astaldo

    Astaldo salvation,

    First, you must use SQL Developer 4.0.2 If you aren't already. It is available for free on OTN

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index-098778.html

    There are two ways to convert tables from MySQL to Oracle.

    1) copy to Oracle

    (2) migration to Oracle.

    Copy to Oracle is the simplest method. It does not imply the creation of a repository of migration.  But it only migrates data without constraints or default values or indexes and tables. The set of data to move should be reasonably low as it is moved on JDBC.

    It may suit your purpose to try to Oracle.

    http://dermotoneill.blogspot.co.UK/2010/11/copy-to-Oracle.html

    Migrate Oracle requires the implementation of a migration repository. But he migrate the default settings, constraints, and indexes and can also provide scripts offline data move that can manage the circulation of large data sets.

    Here is a small script to create a new MIGRATIONREPO user, and grant the correct privileges.

    CREATE USER MIGRATIONREPO IDENTIFIED BY oracle.

    ALTER USER MIGRATIONREPO QUOTA UNLIMITED ON USERS;

    GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW to MIGRATIONREPO;

    Then using SQL Developer, create a connection to MIGRATIONREPO, right-click on the connection and choose "associate the Migration repository.

    I hope you have success best creation of migration with the privileges of theses repository.

    Migration Wizard step 8: target database

    Choose Offline Mode.

    This will present you with a build script that you can inspect before the race.

    The build script must be run using the SQL Developer worksheet and choose free user sufficiently privileged in Oracle generally SYSTEM.

    Note that if you would rather work with the repository you must currently you can browse your browser of Migration.

    Access converted database objects, right-click and select "generate the target".

    This will again open the Migration Wizard in step 8. Allowing you to choose Offline Mode so that you can review the build script.

    Hope this helps,

    Kind regards

    Dermot.

    SQL development team.

  • Migration from db2 to Oracle - different schemas

    Using the Migration Wizard from the SQL Developer, can I migrate from a db2 schema to another Oracle schema?

    I know that I am able to do the following:

    Source: db2Database target: OracleDatabase.userA

    And the db2 schema (say UserA) is recreated in the OracleDatabase as UserA.

    However, I would like to make

    Source: db2Database.userA target: OracleDatabase:userB

    So far I have not much chance.  Any suggestion would be appreciated...

    Thank you

    \k

    I found a solution.

    I kept the privileges of the user in the State for UserB (is that I used the following)

    GRANT CREATE SESSION, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW, CREATE SYNONYM TO UserB.

    I also changed my preferences under Options Migration\Generation and selected the option of least privilege Schema Migration

    Before data movement occurs, manually, I went into the table MD_SCHEMAS in the migration repository and indicated to the schema UserB (by changing the column NAME for UserB)

    Then with the data step moving ==> it works.  Correctly, the data is migrated in the correct schema,

    Thanks for your help!

  • How to migrate from MySQL to Oracle stored procedure

    Hi all

    I've migrated mysql 5.1.42 - enterprise-gpl-advanced DB for oracle sqldeveloper 3.1.07 tool.

    DB objects migrate successfully except stored procedures.

    I checked .sql and files... Capture process not captured SQL stored procedures.

    Could you please suggest where I can check correct error or how to fix this.

    Thanks in advance.

    Hello

    SQL * Developer version you use is an old and you must use the latest version available from this link.

    Oracle SQL Developer

    However, even the v4 version does not support the migration of procedures stored as stated in this link - MySQL

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/supportedmigplatforms-086703.html

    You will need to manually convert the MySQL in Oracle format, stored procedures since even the "Scratch Editor" under "tools - migration '-doesn't have an option for MySQL conversion.

    The documentation includes details of the difference between MySQL and Oracle stored procedures-

    Oracle SQL Developer information for the migration of MySQL®

    in chapter Triggers and procedures stored

    Kind regards

    Mike

  • problems migrating from esx 3.5 to esxi 4.1

    Hello everyone,

    Migrate a virtual machine by host ESX 3.5 to ESX 4.1 host.
    No error message or anything.
    I turn on the virtual machine and it gives error "... the file specified is not a virtual disk' to refer to the vmdk.
    In the control settings and see that the drive is properly configured.
    The control data store and I see that the file is there.
    I move the virtual computer on the old host, to verify that nothing has damaged and magically continues without problems!
    I still move VM on the host 4.1 and gives me the same error.
    Past to comb through the newspaper, join, it seems that there is an inconsistency between the size of the disk and the size declared in descriptor.
    How is the 3.5 function?
    I insist on the fact that all other virtual machines, I moved the host esx 3.5 have absolutely no problem...
    any suggestion is welcome.
    Simon

    You are welcome. Please keep us updated on how it goes.

    Good luck.

    P. S.

    A great advantage to the use of converter is that it leaves the original in place. Assuming that it always works, you have as your backup in the case where it is wrong the first time. If you try power off and things will not try to convert the power on the machine. Install Conveter directly on the machine to duplicate.

  • GROUP BY clause diff in Sybase and Oracle

    Hello

    I am migrating from Sybase to Oracle code and came across a strange problem which is widely known to others :)
    In Sybase, you can use columns or calculations in SELECTION expressions that do not appear
    in the GROUP BY clause from the query. As

    SELECT order.custid, customer.name, MAX (payments)
    -> IN the order, customer
    -> WHERE order.custid = customer.custid
    -> GROUP BY order.custid;
    works fine but for SQL, we must add customer.name to the customer of the GROUP BY clause.

    In the same spirit, here is my SQL query

    INSERT INTO GTT_CTRT_recalc_proc
    (id_fin_rec,
    id_imnt,
    id_instr_opn,
    dt_instr_opn,
    dt_opn,
    dt_cls_loanet,
    dt_prcss,
    am_invst)
    SELECT t1.id_fin_rec,
    T1.id_imnt,
    T1.id_instr_opn,
    T1.dt_instr_opn,
    T1.dt_opn,
    NVL (t1.dt_cls_loanet, l_dt_to),
    T1.dt_prcss,
    Sum (T2.am_invst) + (0.123 * (1 - abs (sign (0 - SUM (t2.am_invst)))))
    OF GTT_CTRT_TEMP_recalc_process t1, GTT_CTRT_TEMP_recalc_process t2
    WHERE t2.id < = t1.id
    AND t2.id_imnt = t1.id_imnt
    AND t2.id_instr_opn = t1.id_instr_opn
    AND t2.dt_instr_opn = t1.dt_instr_opn
    T1.id_imnt GROUP,
    T1.id_instr_opn,
    T1.dt_instr_opn,
    T1.dt_opn,
    T1.dt_cls_loanet,
    T1.dt_prcss;

    Has no t1.id_fin_rec in GROUP BY it fails in SQL.

    I know that if I add this column in GROUP BY, it will work fine, but told me to keep the feature because it is as the result before and after the addition of the column is different, of course.

    If please guide me what we can do in this situation and should work around that?

    Thank you
    Aashish

    Use the PARTITION MORE rtaher than GROUP BY

    INSERT INTO GTT_CTRT_recalc_proc
                (id_fin_rec, id_imnt, id_instr_opn, dt_instr_opn, dt_opn, dt_cls_loanet, dt_prcss, am_invst)
    SELECT t1.id_fin_rec, t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, NVL(t1.dt_cls_loanet, l_dt_to),
           t1.dt_prcss,
             SUM(t2.am_invst) OVER(PARTITION BY t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, t1.dt_cls_loanet, t1.dt_prcss)
           + (0.123 * (1 - ABS(SIGN(
                          0 - SUM(t2.am_invst) OVER(PARTITION BY t1.id_imnt, t1.id_instr_opn, t1.dt_instr_opn, t1.dt_opn, t1.dt_cls_loanet, t1.dt_prcss)))))
      FROM GTT_CTRT_TEMP_recalc_process t1, GTT_CTRT_TEMP_recalc_process t2
     WHERE t2.ID <= t1.ID
       AND t2.id_imnt = t1.id_imnt
       AND t2.id_instr_opn = t1.id_instr_opn
       AND t2.dt_instr_opn = t1.dt_instr_opn
    
  • Migration: Access 2003 to Oracle SQL

    Dear all

    I would like to migrate from Access 2003, to Oracle 10 g. I use SQL Developer to the task and have reached the point to capture the XML file I exported from access. I need to create a repository of migration on the target database, and this causes problems that I have all of the necessary privileges.

    In the process, I have been informed that the migration from Access to Oracle are not easy to reach and in fact requires careful planning before execution. My goal is not really to transfer the data stored in the database file. I only really want to transform the logic of code SQL Oracle access. I was wondering if anyone could advise on the typical sides of success in the realization of this task.

    I migrated the same Access database to MS SQL Server some time ago and the process seems to be going smoothly. Would it not be reasonable then to migrate MS SQL to Oracle SQL, if this is easier?

    Any comments would be much appreciated.

    Thank you.

    M

    Use the option of rapid migration of SQL Developer...

    Here, you specify the mdb file and oracle database connection...

    and then it's just a matter of clicks

    you will be able to transfer your data from access to oracle...

    personally, I have not tried the ODBC option between oracle and access...

    will try that...

  • Datepart (sybase) for oracle conversion

    Hello

    I have problem conversion "datepart' from sybase to oracle.
    Select datepart (dw, getdate ()).
    Could you please help me with this.
    Thank you!

    You can use EXTRACT or TO_CHAR, a few examples below:

    SQL> select extract(year from sysdate), extract(month from sysdate), extract(day from sysdate)
      2  from dual
      3  /
    
    EXTRACT(YEARFROMSYSDATE) EXTRACT(MONTHFROMSYSDATE) EXTRACT(DAYFROMSYSDATE)
    ------------------------ ------------------------- -----------------------
                        2009                         9                       9
    
    SQL> select to_char(sysdate, 'yyyy')
      2  from dual
      3  /
    
    TO_C
    ----
    2009
    
    SQL> select to_char(sysdate, 'dw')
      2  from dual
      3  /
    
    TO
    --
    42
    

    With greetings
    Krystian Zieja
    [Project Envision | http://www.projectenvision.com]

  • Data migration from Oracle to SQL Server

    Hello

    I have the Oracle database in one or several table, I also blob data, i.e. images are stored, now I want to move that data to the sql server database, which is the best way to do this?

    I would like to test for a migration of the table that contains the image data in the Oracle database and invade the SQL Server table.

    How to test for an Oracle table data to SQL Server migration?

    But the first thing I want to confirm is that if the Image from Oracle DB to SQL Server DB data are possible? is there something must be supported during the migration?

    Thanks in advance.

    Kind regards

    Vishal

    Published by: 968331 on October 31, 2012 02:31

    I think that it is supported. The equivalent data type in sql server is IMAGE/varbinary (max)

    See the bottom of the article for the mapping of data types:

    http://weblogs.sqlteam.com/jamesw/archive/2010/07/28/datatypes-translation-between-Oracle-and-SQL-Server-part-1.aspx

  • Sybase 15 Oracle Migration Error

    I worked on our database from Sybase ASE 15 migration to Oracle. I followed all the instructions on the site Web of Oracle using the Migration SQL Developer tool. Once the migration starts, I get this error for any reason that I could not understand. Here's the XML file for my mistake.

    <?xml version="1.0" encoding="windows-1252" standalone="no"?>
    <log>
    <record>
      <date>2014-07-31T12:26:27</date>
      <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
      <level>SEVERE</level>
      <class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
      <message>Capture
    Enterprise Capture
    Capture failed.  Refer to MIGRLOG table in the repository for details</message>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314)</param>
      <param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147)</param>
      <param>oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)</param>
      <param>java.util.concurrent.FutureTask.run(FutureTask.java:262)</param>
      <param>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)</param>
      <param>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)</param>
      <param>java.util.concurrent.FutureTask.run(FutureTask.java:262)</param>
      <param>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)</param>
      <param>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)</param>
      <param>java.lang.Thread.run(Thread.java:745)</param>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@caaa1c7</param>
      <exception>
        <message>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$FullMigrateTaskException: Capture
    Enterprise Capture
    Capture failed.  Refer to MIGRLOG table in the repository for details</message>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>758</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>601</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>400</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>314</line>
        </frame>
        <frame>
          <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
          <line>147</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
          <line>193</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>262</line>
        </frame>
        <frame>
          <class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
          <line>554</line>
        </frame>
        <frame>
          <class>java.util.concurrent.Executors$RunnableAdapter</class>
          <line>471</line>
        </frame>
        <frame>
          <class>java.util.concurrent.FutureTask</class>
          <line>262</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor</class>
          <line>1145</line>
        </frame>
        <frame>
          <class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
          <line>615</line>
        </frame>
        <frame>
          <class>java.lang.Thread</class>
          <line>745</line>
        </frame>
      </exception>
    
    
    </record>
    <record>
      <date>2014-07-31T12:26:27</date>
      <logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
      <level>WARNING</level>
      <class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
      <message>Error:ORA-06550: line 1, column 14:
    PLS-00201: identifier 'SYB12ALLPLATFORM.STAGECAPTURE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    : FAILED : Database Migration : FAILED</message>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@434de9ab</param>
    
    
    </record>
    </log>
    

    Hello

    My guess is the user you tried to install/partner to the migration repository done don't have the appropriate privileges.

    Best to start over if we can enter the question.

    Start by creating a new user in Oracle for the migration repository. Give the correct privileges

    > Connect to SYS or SYSTEM and run the following commands

    Migrep CREATE a USER identified by migrep;

    GRANT connect, resources, create view, create a view on migrep;

    ALTER USER migrep unlimited quota on USERS;

    Now using SQL Developer, create a connection to the MIGREP and associate the migration repository in this regard.

    Check if migration Repository packages have been created and are compiled valid. Worth the package bodies are valid as well.

    I hope it was just a privilege you were missing.

    Kind regards

    Dermot.

    SQL development team.

  • Migration from SQL Server to Oracle during 11.1.2.4 upgrade

    Hi all

    To further expand on the title, wanted to check if it is possible to migrate from SQL Server to Oracle, while improving 11.1.2.1 to 11.1.2.4 on brand-new material. There is a change in all the components (s/w, h/w, RDBMS) so I wanted to run this generic statement by the forum to see what the experts think.

    Where in the equation can count us on LCM?

    I know that John Goodwin had already answered a few questions on the same subject for previous versions, but as 11.1.2.4 is a different game... I would be grateful if someone could share their thoughts.

    Thank you!

    If you are installed on hardware costs and migration then it should be independent of the RDBMS. Not to say there is no problems with passing of 11.1.2.1 to 11.1.2.4 (if you use planning, for example, business rules-> Calc Manager) but they certainly should not be linked to the fact you've changed the underlying database.

  • Sybase to Oracle Migration

    Hello

    all documents or information on this topic:

    Sybase to Oracle Migration

    would be appreciated.

    Thank you.

    Hello

    SQL Develoiper should be your choice.

    http://www.Oracle.com/technetwork/database/migration/Sybase-085571.html

    Salman

  • Impossible to migrate from windows 2008 to the different data store

    Hai

    When I try to migrate the computer to the different data store I get the error

    "[error caused by file hard to]."

    Thank you

    Concerning

    R.Ramji

    Hello

    first move this virtual machine to another host and try to migration of storage. still, the problem you then close restarts the virtual machine host and try storage vmotion.

    It should work. If the problem continues after the error log.

  • Migrating from Oracle stored procedures to MySQL?

    I was told that MySQL Workbench will accomplish this.
    If so, do you have the docs for this?

    I'm sorry, but this forum is only to help in migrations from foreign to an Oracle database databases. When you need assistance for migrating from Oracle to MySQL procedure so if please check MySQL support or visit their web site: http://www.mysql.com/products/workbench/ and their forum.

Maybe you are looking for