MySQL-Migration

Hello,
I´ve just migrated a small MySQL-DB on Oracle 9i via the "Migration Workbench".
It worked well but the columns, which contain time. Somehow the datatype "time" can not be indetificated.
"TIME" was translated as "DATE" (so far okay), but the time is treated as date. Oracle made for example the value "14:25:58" to a date " 01.01.70".
Do you have an idea?
Thanks
F.

hi,
thanks for your Answer.
i tried it that way:
CREATE TABLE test (
DATE DATE DEFAULT to_date('01-JAN-70 00:00:00', 'dd-MON-yy hh24:mi:ss') NOT NULL,
TO_CHAR(TIME, 'HH24:MI:SS') NOT NULL,
and I got the following Error: "ORA-00902: invalid datatype"
Any idea?
Thanks
F.

Similar Messages

  • SQL Developer 1.5.4 MySQL migration bug

    Trying to use SQL Developer 1.5.4 to "Capture" MySQL schema. Getting this Java exception:
    java.lang.Exception: java.lang.NullPointerException
         at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:141)
         at oracle.dbtools.migration.workbench.core.CaptureInitiator.launch(CaptureInitiator.java:94)
    Caused by: java.lang.NullPointerException
         at oracle.dbtools.migration.workbench.plugin.MySQL5Capturer.captureColumnDetails(MySQL5Capturer.java:405)
         at oracle.dbtools.migration.workbench.plugin.MySQLCapturer.captureObjects(MySQLCapturer.java:195)
    Please advise.

    ok, here is one table that results in the Java exception:
    CREATE TABLE user_locations (
    user_id int unsigned NOT NULL,
    location point not null,
    location_source enum ("aaa", "bbb", "ccc") DEFAULT "aaa" NOT NULL,
    address varchar(255),
    last_update datetime,
    UNIQUE (user_id, location(32)),
    INDEX (user_id),
    INDEX (last_update),
    FOREIGN KEY (user_id) REFERENCES users (user_id) on delete cascade on update cascade
    )ENGINE=InnoDB DEFAULT CHARSET=utf8;

  • Sql LOader- Mysql Migration to Oracle

    Hai all,
    I am using Sql loader to migrate Mysql Database to Oracle 10g.
    Almost all the migration is succesfully done but i have got stuck at one point. Since We know that in Mysql there is Null Date format is 0000:00:00 00:00 and when i am trying to load this date in oracle it says that cannot insert 0 in date.
    Since In my mysql there is date combination of both regular dates and 0000:00:00 ..... so i want that what shoud i use in Sql*Loader that .When it seen the 0000:00:00 in date column it insert the date 1900:01:01 and when it sees the reglular date ..it simply insert in date .
    Thanks and Regards!!
    Pankaj

    Hi,
    The decode command I mwntioned means
    if :date = 0000:00:00 00:00
    then
    to_date('1900:01:01','YYYY:MM:DD')
    else
    to_date( <give your date format> )
    end
    Change your command to
    publishtodate "decode(:publishtodate, '0000:00:00 00:00', to_date('1900:01:01','YYYY:MM:DD'), to_date(:publishtodate,'YYYY/MM/DD' ) )"
    The last bit (i.e. to_date(:publishtodate,'YYYY/MM/DD' ) ) is the else part, which will load the actual date data.
    Here you have to give the format of dates of your MySql generated data.
    Whats the format of date data? I guess, its not just YYYY/MM/DD, there must be time component (as the error text says).
    If the dates are like "2007/05/21 23:45", then give the format "YYYY/MM/DD HH24:MI" or else follow your format.
    Cheers

  • As400/db2 to mysql migration

    Hi There,
    I'd like to migrate as400/db2 to MYSQL using MYSQL WORKBENCH. The as400 database has more than 40 GB and version is AS400 - db2vyr1.
    Will this tool be useful to migrate? or suggest any other tool which suit for migration.
    Thanks with anticipation
    Guru

    You're using an Oracle forum to ask about MySQL tools. Please use the MySQL forum MySQL :: MySQL Forums instead and close this thread.
    - Klaus

  • Open source tool for oracle to mysql migration

    Hi,
    Is there any open source tools available for the database migration from Oracle to MySQL.
    Please advice.

    Hi,
    This forum is for migrating to Oracle from non-Oracle databases. It would be better if you tried an Internet search or the MySQL forum -
    http://forums.mysql.com/
    for information about moving from Oracle to MySQL.
    Regards,
    Mike

  • Migrating Stored procedure from Oracle to Mysql

    Dear All,
    Please suggest, is ther any tool of stored procedure migration from oracle to mysql.
    I tried some tool like
    1. Intelligent Converter.
    2. Sql way
    3. Mysql Migration Toolkit.
    But procedure cannot migrate properly.
    hb venki

    Venki,
    I think you are in the wrong place, try finding a MySQL forum ;0)

  • Migrating from MySql to Oracle

    Hi,
    I have installed latest version of SQL Developer with new Extensions (added mysql-connector-java-3.1.14-bin.jar under third-party database extension tab) , also installed latest updates from Help Menu. I have created a database in Mysql and now migrating it to Oracle, while I click on Capture MySQL / Quick MySql migrate... i get error "Error ocurred during capture: ORA-01400: cannot insert NULL into ("ASHISH"."MD_PROJECTS"."ID") ".
    Thanks,
    Ashish Sohane.
    OracleDirect.

    I am having the same problem. I have deleted and recreated the repository many times. I'm getting:
    "SQL Error on Script Execution. Try deleting repository before Creating Repository."
    then
    "The Repository installtaion has failed. Please check the user you are registering and make sure that objects of the same name do not already exist"
    I have closed the connection and reopened, closed SQL Developer and reopened. When I expand Tables, there are NO md_ tables. So it seems the repository deletion is working. But when I try to recreate it, oracle somehow thinks the repository I deleted is still there.... even tho it doesn't show it in the ui.
    Although this thread began w/ someone converting from MySQL i think that is probably irrelevant. We are getting the same errors with the oracle repository. I am converting from MSAccess2003 using SqlDeveloper 1.2.1. I have successfully created the XML and SQL exports from MSAccess using SqlDeveloper\Migration\MicrosoftAccess Exporter\2003

  • Migrating MySQL Windows to Mac

    Using the MySQL Migration Tool, I converted my MS SQL data to
    MySQL on Windows. Now I need to move the data to MySQL on my Mac
    (10.3.9).
    Any idea how to do this?
    Thanks.

    quote:
    Originally posted by:
    Newsgroup User
    do a data dump/backup into a .sql file on the Windoze box
    with MySQL
    Administrator or PHPMyAdmin...import it into the Mac. MySQL
    Administrator makes it pretty easy.
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]
    cool. many thanks tim. the less time that I have to spend on
    Windows XPlode the better.

  • How to migrate MySQL stored procedure to Oracle

    Hi All,
    I migrated mysql 5.1.42-enterprise-gpl-advanced DB to oracle using sqldeveloper 3.1.07 tool.
    DB objects migrated successfully except Stored Procedures.
    I verified .sql and Out files.. Capture process not captured stored procedures SQL.
    Could you please suggest, where I can verify exact error or how to fix this issue.
    Thanks in advance.

    Hi,
      The SQL*Developer version you are using is an old one and you should use the latest version available from this link -
    Oracle SQL Developer
    However, even the v4 version does not support the migration of MySQL stored procedures as shown in this link -
    http://www.oracle.com/technetwork/developer-tools/sql-developer/supportedmigplatforms-086703.html
    You will have to manually convert the MySQL stored procedures to an Oracle format, as even the 'Scratch Editor' under 'Tools - Migration' - does not have an option for MySQL conversion.
    The documentation has details of the difference between MySQL and Oracle stored procedures -
    Oracle® SQL Developer Supplementary Information for MySQL Migrations
    in the chapter Triggers and Stored Procedures
    Regards,
    Mike

  • How to migrate multiple ACS database into one ACS database ?

    Hey All,
    we just purchased several companies and as IT/network department, we need to consolidate all the ACS from the HQ and the purchased company into one ACS,  I read the cisco docs. mentioned, I can export the migration file from the old acs and upload it into the new acs serve.
    but my concern is we have multiple acs server, will the the muliple acs migration files overwrite each other during the upload into the new server.
    thanks

    Raghavender -
    I am not an expert on MySQL migration, but you would look to migrate the database to a local Oracle Database and then move that to your Database Cloud Service.  However, keep in mind that at this time you can only access the Database Cloud Service from outside the Cloud via RESTful Web Services, so you might have to modify the application that accesses the database.  Hope this helps.
    - Rick Greenwald

  • Very difficult migration from MS Access to Oracle with SQL Developer

    Dear Developers
    I have tried to used for one Project Oracle Sql Developer Migration from Access to Oracle (Application Express). Was about an evaluation if Oracle Express (with Application Express) or Mysql (with PHP) as target database.
    I am working with Oracle for 14 years and i earn my money in projects related with Oracle. Of course i am sentimental and i push every time when an opportunity comes to have as an option Oracle.
    This time beside my sentimental approach the decision was different.
    I will tell you why and i hope that someone there will listen and make something for a better Product.
    I was trying yesterday the whole day to migrate an Microsoft Access database. A nightmare....
    1. Microsoft Access Exporter 2000 was too slow. For a 25 MB Access database, running time was 15 Minutes. And 15 minutes to obtain an undocumented error. I followed your instruction and eliminate all references etc... as you described in HELP. a lot of time necessary to read and do..... After that i obtained an Error #..16. Sorry that i don't provide you with an exact number error. i don't have it right know and personally i am not interested anymore. For this error i don't find nothing in forums about it.... Search again and again..... Every time after waiting 15 Minutes in which you don't know exactly what application does or if really does something. I decided to delete sequentially macros, modules, forms, querys from Access database and see where Exporter stops... Time and time lost for trying and searching.... Finally i obtained my XML file only by keeping my Access tables. The file was produced even if i obtained at the end Error #5:..... Because was an error i am not really sure if the file was completly consistent with my database.
    2. I followed the next steps and with some errors (enabling, disabling constraints, objects couldn't be created because of different reasons) i had my Model and Oracle Schema. I have tried to export the data from Access and import it in Oracle. data exported was in UTF8 and SQL Loader Control file doesn't have
    LOAD DATA
    character set utf8
    So i tried to add the string "character set utf8" in my dozens of CTL files - with a freeware of course.....
    Maybe you can say that if i knew that from the beginning i would have set my character set in SQL Developer. I don't know and i will not ever try with this product!
    So finally after hours of working and trying and playing with my nerves, reading a lot of forums and documentation, i had an Oracle schema, maybe incomplete because of different errors at so much migration stages.
    And now i have tried for the first time in my life MySQL Migration Toolkit. I read that for migration to MYSQL this tool is what i needed.
    I recommend you to try the product and see something about the quality required for a piece of software. Is not enough if your product runs OK with Nortwind DEMO Access database. It should run OK with all ACCESS databases.
    With the tool i have done the job in 5 MINUTES. Simple, efficiently and without errors. At the end i had the SQL Scripts and the DATA imported in the database.
    Difficult to say something now. I am sentimental but i asked mysef if you can do something to improve the quality of the product.
    What arguments can we provide for a client in Migration from Access to Oracle ???? Can you honestly answer at that?
    Please try this MYSQL Migration Toolkit.....Maybe this give you some ideas about simple tasks and about what we really need...
    Best regards
    Adrian

    Dear Barry and Kgronau
    Thank you very much for your response. My Post was after a long day of trying to import an MDB file.
    Maybe you can understand why i was so angry...
    Yes i understand that your tool try to do more than other even if actually you don't really convert too much.
    From Modules to make some procedures where the whole code is commented! .....
    For other MDB which i tried to import in APEX the forms where really not usable. Queries are full of errors requires most of the time manual corrections.
    I am sorry that i can not provide you with this MDB which cause these problems.
    Data and software doesn't belong to me and the company which own it can not provide to you.
    What i hope from your product is, even when errors come, to show a better error explanation. At what object in Access error ocures ? This is very important because i can correct my MDB or just delete the module,form,query in cause if SQL Developer doesn't like it....
    Just showing an error Error #.... doesn't help me too much. And if an error occurs i don't know if program continues to work or is dead. No information about this. Maybe you can show that your application is alive and does something (working status etc...) ! Anyway we wait long minutes in front of dead screen....
    Again, thank you very much for your attention
    Adrian

  • Have  a MYSql dump file in *.sql extension

    Hi
    I have a MySql dumped file in *.sql extension.
    I have been reviewing ( maybe cannot see) SQL dev to see if I can use it to migrate the mysql file.
    Is this possible?  I looked at the snippet of the sql file and it has indications to create tables using specific MySQl engines...
    Is connecting to the source db ( MySQL) the only way to do this?
    thanks

    The supported methods of migrating from MySQL to Oracle RDBMS via the SQL Developer tool are discussed in ...
    Getting Started: SQL Developer Migrations
    MySQL Migration
    Even very old versions of SQL Developer (say, version 1.5.5) support migration, but the steps may vary depending on version so it is best to use the latest 4.0.3production release. If your migration is small, then using the Copy to Oracle feature may suffice:
    Getting Started: SQL Developer Migrations

  • DW, MSAccess w/o PHP or MySQL

    I'm thinking about building a database driven web-site.
    Vendors w/post info about their products and customers will
    purchase or post requests for special orders. I'm contemplating
    buying the latest version of Dreamweaver. I want to integrate
    MSAccess databases.
    I have written HTML for my photography web-site now inop. Can
    this be done fairly quickly or will there be a steep cliff to
    climb?
    Any guidance will be gratefully accepted.

    StrangerReno wrote:
    > How tough will it be to turn my MSAccess Data Base
    (14,000+/-
    entries) into
    > MySQL?
    Very easy with the MySQL Migration Toolkit, which is part of
    the MySQL
    GUI Tools (a free download):
    http://dev.mysql.com/downloads/gui-tools/5.0.html
    I converted a small Access database with it yesterday in less
    than 5
    minutes. Everything is done through a series of dialog boxes.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • SQL Developer migration tool

    Does anyone have any experience migrating just one schema from MySQL to Oracle?
    I've specified my database that I want the migration tool to use when I do the migration, but it goes ahead and tries to grab every single function, procedure, table for every single user in the database.
    I'm basically trying to migrate a customers' mysql dataset to our oracle db.
    Any thoughts?
    Thanks in advance all!
    ---Patrick

    Patrick,
    did you already read the Oracle® Database SQL Developer Supplementary Information for MySQL Migrations manual, available at:
    http://download.oracle.com/docs/cd/E12151_01/doc.150/e12155/toc.htm
    The chapter 2.2 is dealing with schema migrations. Perhaps that is useful for you. If there is going something wrong for you and different as described in that manual then please let me know more details.
    Best regards
    Wolfgang

  • Error after update Oracle SQL Developer Migration Tools

    Hi,
    I'm receiving a error after the update of Oracle SQL Developer (v.1.1.3.27.66) to work with mySQL migration tool.
    This error appear when it´s restarting:
    Exception Stack Trace:
    java.lang.IllegalAccessError: tried to access class oracle.ide.net.IdeURLStreamHandler from class oracle.ide.net.URLFileSystem$1
         at oracle.ide.net.URLFileSystem$1.createURLStreamHandler(URLFileSystem.java:87)
         at oracle.ide.boot.URLStreamHandlerFactoryQueue.createURLStreamHandler(URLStreamHandlerFactoryQueue.java:119)
         at java.net.URL.getURLStreamHandler(URL.java:1106)
         at java.net.URL.<init>(URL.java:393)
         at java.net.URL.<init>(URL.java:283)
         at oracle.ide.net.URLFactory.newURL(URLFactory.java:636)
         at oracle.ide.layout.URL2String.toURL(URL2String.java:104)
         at oracle.ideimpl.editor.EditorUtil.getURL(EditorUtil.java:150)
         at oracle.ideimpl.editor.EditorUtil.getNode(EditorUtil.java:122)
         at oracle.ideimpl.editor.EditorUtil.loadContext(EditorUtil.java:91)
         at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:950)
         at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1751)
         at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
         at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
         at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
         at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:356)
         at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:1879)
         at oracle.ide.layout.Layouts.activate(Layouts.java:784)
         at oracle.ide.layout.Layouts.activateLayout(Layouts.java:186)
         at oracle.ideimpl.MainWindowImpl$6.runImpl(MainWindowImpl.java:734)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Anyone knows why that is happining?
    Thanks in advance,
    Felipe.
    Message was edited by:
    felipe.b

    Hello,
    I get the same error after updating through Help->Check for Updates. I am at version 1.1.2.25 and the update does not change the version number of Oracle SQL Developer (Help->About), it remains at 1.1.2.25 (although if I look in extensions tab, it says: oracle.sqldeveloper 1.1.3.27.66 Loaded, possible bug in displaying version number?). These are the updates applied:
    Upgraded Extensions
    Oracle Microsoft Access Browser version 1.1.3.27.66
    Oracle SQL Developer - Snippet version 10.1.3.27.66
    Oracle SQL Developer version 1.1.3.27.66
    Oracle SQL Developer - Reports version 10.1.3.27.66
    Oracle SQL Server Browser version 1.1.3.27.66
    Oracle MySQL Browser version 1.1.3.27.66
    Oracle SQL Developer - Worksheet version 10.1.3.27.66
    Oracle SQL Developer - Extras version 1.1.3.27.66
    Oracle SQL Developer - SearchBar version 10.1.3.27.66
    Oracle SQL Developer - Object Viewer version 10.1.3.27.66
    I ran the update several times and was able to reproduce the error under a specific condition. If I am connected to a database at the time of the update I get the error. If I am not conneceted at the time of the update I do not get the error.
    As stated, by Donal, sql developer seems to get over the problem after restarting itself twice.
    Mark

Maybe you are looking for