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.

Tags: Database

Similar Questions

  • 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

  • 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...

  • SQL does not recharge after analysis of the table

    I run DBMS_STATS.gather_table_stats to scan the table but linked SQL does not charge, it still make a bad sql plan.
    When I do a grant on the table, the reloading SQL and make a good plan sql.
    Why not recharge after table SQL analyze?

    If you specify AUTO_INVALIDATE, you tell Oracle expire over time sliders (I think 30 minutes is the default window, but that might just be dependent on version). If you want the sliders to expire immediately, you will need to pass the FALSE value.

    Justin

  • How to import the selected tables from MySQL to Oracle

    Hello world:

    How can I import tables from MySQL to Oracle? I have more than 180 tables in my DB (MySQL), but I copy only 12 of them to ORACLE... rigth now I do it manually, using SQL Developer (rigth clicking on the picture icon and copy to Oracle) but now I need to do this automatically every 4 hours...

    I read on the dblink option, but I don't know if this is the best for this case...

    I appreciate all help.

    Best regards
    Jack

    Hi Jack,

    I think that with a db-link you can define an automated task (PL/SQL + programmer).
    We use a db-link to Oracle's RDBMS to MySQL. So we have no experience.
    We have created the db-link like http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/

    Heike cordially

  • Can generate the file TKPROF without the SQL does not finished?

    Hi all:
    I want to generate the TKPROF to the trace file file, can generate the file TKPROF without the SQL does not finished? The file TKPROF can be used? because the report is too large. My environment is ORACLE 11.5.9





    Concerning
    Terry

    Yes, you can run a tkprof on one incomplete (or currently being created) trace file.

    HTH
    Srini

  • I downloaded a video from my camcorder, but it does not play because the video is MP4.

    I download the video from the camcorder, but it does not play because the video is MP4. How can I play download MP4 player

    The free version of Apple's QuickTime might be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Apple QuickTime:
    http://www.Apple.com/QuickTime/Download/thankyou/index.html

  • service Oracle script does not...

    a newbie question...
    I installed oracle 11g R2 on Suse 11 and I created /etc/init.d/oracle script:
    ORA_HOME=/opt/oracle/product/11.2.0/dbhome
    ORA_OWNER=oracle
    
    if [ ! -f $ORA_HOME/bin/dbstart ]
    then
            echo "Oracle startup: cannot start"
            exit
    fi
    
    case "$1" in
            'start')
            #start oracle database
            su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl LISTENER11 start"
            su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
            ;;
            'stop')
            # Stop the Oracle databases:
            su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
            su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl LISTENER11 stop"
            ;;
            'Required-Stop')
            #aaa
            ;;
    esac
    also, I changed the permission chmod 750 on this
    When I type chkconfig--add oracle, I received a message:
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: warning: script 'S12oracle' missing LSB tags and overrides
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: warning: script 'oracle' missing LSB tags and overrides
    insserv: script oracle: service oracle already provided!
    insserv: script jexec is broken: incomplete LSB comment.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: warning: script 'catalina.sh' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `catalina.sh'
    insserv: warning: script 'setclasspath.sh' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `setclasspath.sh'
    insserv: warning: script 'tomcat' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `tomcat'
    insserv: exiting now!
    /sbin/insserv failed, exit code 1
    oracle                    0:off  1:off  2:off  3:on   4:off  5:off  6:off
    What did I miss?

    Salvation;

    Please close this thread as answered and update your other post which is available at:
    service Oracle script does not...

    Respect of
    HELIOS

  • Golden Gate 11 g replicate from MySQL to Oracle

    Golden Gate 11 g for MySQL can read mysql binlog. I have a question, can I use GG11g for MySQL to replicate from MySQL to Oracle?

    Thank and regard

    OK, here's the official word from Oracle on it.

    Oracle GoldenGate now supports MySQL 5.1.15 and later capture and oracle can be a target. Therefore, if you use MySQL 5.1.15 or later, you can indeed use Golden Gate to replicate from MySQL to Oracle when you use GoldenGate 11 g.

  • UNIX_TIMESTAMP and FROM_UNIXTIME from MySQL to ORACLE functions

    Hi all

    I'm migrating some functions and stored procedures in MySQL to ORACLE, and I the next instruction

    Set valuedat = FROM_UNIXTIME (valor + UNIX_TIMESTAMP ('2000-1-01 00:00:00 '));

    Since MySQL.

    Look, I found that:

    UNIX_TIMESTAMP ('2000-1-01 00:00:00 ')

    can be equivalent to the following query:

    SELECT (to_date (January 1, 2000 "," MON-DD-YYYY')-to_date('01-jan-1970','DD-MON-YYYY')) * (86400) as dt FROM dual;

    but testing the numbers is not the same

    Please can someone help me!

    Specifically, I need to know how to build the equivalent in oracle for FROM_UNIXTIME and UNIX_TIMESTAMP functions

    Thank you and best regards!

    CRGM

    Hello

    These are functions that I built to solve the original requirement, thanks for all your comments.

    ************************************************************************************************************************************

    CREATE OR REPLACE FUNCTION FROM_UNIXTIME

    (

    TIMESTAMP_ NUMBER

    ) AS OF DATE OF RETURN

    NUMBER OF SECONDS_PER_DAY: = 86400;

    MASK (50 CHAR) VARCHAR2: = 'DD-Mon-YYYY HH24:MI:SS ";

    DATE OF REF_DATE;

    BEGIN

    REF_DATE: = TO_DATE ('01 - ENE - 1970 00:00:00 ', MASK);

    RETURN REF_DATE + (TIMESTAMP_/SECONDS_PER_DAY);

    END FROM_UNIXTIME;

    **********************************************************************************************************************************

    CREATE OR REPLACE FUNCTION UNIX_TIMESTAMP

    (

    DATE_ IN DATE

    ) RETURN AS NUMBER

    NUMBER OF SECONDS_PER_DAY: = 86400;

    NUMBER OF DIFF_BETWEEN_DATES;

    MASK (50 CHAR) VARCHAR2: = 'DD-Mon-YYYY HH24:MI:SS ";

    DATE OF REF_DATE;

    BEGIN

    REF_DATE: = TO_DATE ('01 - ENE - 1970 00:00:00 ', MASK);

    DIFF_BETWEEN_DATES: = TO_DATE (TO_CHAR (SYS_EXTRACT_UTC (DATE_), MASK), MASK)

    -REF_DATE;

    RETURN DIFF_BETWEEN_DATES * SECONDS_PER_DAY;

    END UNIX_TIMESTAMP;

    ******************************************************************************************************************************

    Concerning

  • Developer SQL does not

    Hello

    I use SQL Developer Version 4.0.2.15 Build 15.21.

    When I change some developer packages SQL freezes and get of does not.

    At the same time, he starts using 25% of the CPU and about 500 MB of RAM.

    From what I can tell, the issue seems to occur when you double-click a word in the package editor or after pasting a word at random.

    It seems to be random and I can't find a reason for this except what happens inside packages with more than 1000 lines of code.

    Please find some information of log files:

    SEVERE  4449    0   oracle.ide.controller.IdeAction Error during handleEvent on action 'Thumbnail' (id=150). None of the attached controllers handled the action..
    SEVERE  4449    0   oracle.ide.controller.IdeAction Error during handleEvent on action 'Thumbnail' (id=150). None of the attached controllers handled the action..
    
    SEVERE  24085   0   oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    49
    SEVERE  24086   1246    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    49
    SEVERE  24087   10838   oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    null
    
    SEVERE  4590    94562849    oracle.ide.controller.IdeAction Error during handleEvent on action 'Compile' (id=374).None of the attached controllers handled the action.
     - oracle.ide.controller.IdeAction$ControllerDelegatingController@abb730a4[oracle.ideimpl.controller.MetaClassController@abb730a4[oracle.dbtools.raptor.plsql.PLSQLController]].
    
    
    SEVERE  4648    3908208 null  
    

    Please help to solve this problem, because it's really frustrating to compile the package all 2-3 rows of written code because you don't know when it's going to crash.

    Currently, I have the sqldeveloper64W.exe process that freezes user 50% of my proc and the only way to close is to kill them from the Task Manager.

    Thank you

    Alex.

    Hi Alex,

    There is a known issue when you use copy/paste via the shortcut keys.  Don't know if this is quite fixed yet - here is the link to more complete discussion I could find:

    copy/paste 4.01 freezes

    Kind regards

    Gary

    SQL development team

  • After migration from Solaris to Linux reports do not work properly

    Oracle e-Business 11.5.10.2 - seeds pdf reports

    Some do not run giving error:

    EMSG: led by Signal 11

    Others work but are formatted incorrectly.

    Background:

    Migrated from solaris to linux. -11.2.0.4 database.  Upgrade from Solaris to dev 6i group patch 28 - everything works.

    On linux, install techstack then switch to dev 6i patchset28 also.


    I checked the support and apply a hotfix that was a possible fix-

    Bugs: 5232832 - APPS6: BLANKS INSERTED IN the CHARACTER MODE OUTPUT

    subsequently found out that it's just for the report of the bitmap.


    Check all the notes I've found, but nothing seems to apply.


    My character set is the same on Solaris and Linux-

    US7ASCII NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    Anyone have any ideas? Thank you!

    11 signal problem is resolved as follows:

    The reporting engine, on the Linux server upgraded, is not able to parse an sql validation using a table via dblink only at a specific location in the report. There are several other places in the report where it is able to analyze the same sql, it is so inconsistent and there is no error message relevant to this effect. The solution has been applied through rewriting of these validations to validate within the EBS itself and therefore, the functionality remains unchanged.

    Formatting problem was solved by re copy the rdf from the source in binary mode.  Something must have happened to the file to archive original, OR a nobody messed with the report on the target of unknown to me!

    Also, I set up printing blocks and drivers for the system and styles, so maybe it was a combination of the two actions.

    Thank you for all your help.

  • 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!

  • reset_image_prefix. SQL does not work

    Hello

    My DB has two instances with two different versions of the top charge. One is the version 4.1.1 (works well) and I decided to upgrade the other 4.1.1 to 4.2. I created a new location in the httpd.conf file entry in my case of OSH to point to the new instance 4.2 referencing a new Alias image on the server. When I installed APEX 4.2 I showed the images the New Alias directory setting "i42' but it does not work. Applications always refer to is

    I ran the script reset_image_prefix.sql with /i42/ as an input parameter, but the applications are always reference/i /.

    There was a similar discussion in October 2012 and Patrick Wolf wrote on bug # 14785456.

    But the BUG seems to be fixed?

    After executeing the script Iget:

    SQL > select text from dba_source where owner = 'APEX_040200' and lower (name) = "wwv_flow_image_prefix";

    TEXT

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    package wwv_flow_image_prefix

    is

    constant g_image_prefix VARCHAR2 (255): = ' / i42 / ";

    end wwv_flow_image_prefix;

    4 selected lines.

    Is there a solution?

    Kind regards

    Carola

    Hi Carola,

    What exact version of APEX 4.2 do you use? Are you using the latest 4.2.2? Because it includes the hotfix that you referenced. After installation of this version or the patch installed, it will automatically erase all the prefixes image-level asks if they are identical to the current instance image prefix. So in your case, you should set the prefix image back to / i /, install the hotfix and then reset_image_prefix again to set the parameter instance/i42.

    Joel has some useful information on this blog (YABAOAE) yet another Blog about Oracle Application Express: prefix of Image Exchange in Oracle Application Express 4.2.2

    Some background info on reset_image_prefix.sql. Who has never changed the image prefix used in applications, only the prefix of image for our application Builder.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

    Post edited by: PatrickWolf

  • Connect to the Oracle database - does not connect

    I am new to JAVA and for the first time that I am trying to connect to an Oracle using JAVA data. Well, I get an error when you try to connect to the database. I can see that the error doesn't that make strings passed to make the databases of connection are NULL. Thus, an error (see error below).

    Question
    How is the 'connection' varriable is NULL?
    It seems that the hold 'try' session was not executed. This session is broken?

    ERROR

    The database connection is not found: null
    Database connection before call: null
    Exception in thread "main" java.lang.NullPointerException
    at TestOCIApp.main (TestOCIApp.java:39)


    = JAVA START program =.

    import java.sql. *;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;

    public class TestOCIApp {}

    Public Shared Sub main (string args []) throws ClassNotFoundException,
    SQLException {}

    Fitting out = null;
    try {}
    Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName (driverName);

    Create a connection to the CCM PROD database
    String serverName = "192.168.2.144";
    String portNumber = "1521;
    String sid = "op01ccdb01";
    String url = "JDBC: thin: @" + serverName + ":" + portNumber + ":" + sid;
    String username = 'user id ';
    String password = "password";
    connection = DriverManager.getConnection (url, username, password);
    System.out.println ("connection value:" + connection);

    } catch (ClassNotFoundException e) {}
    The database driver is not found
    System.out.println ("could not find the connection to database:" + connection);
    } catch (SQLException e) {}
    Could not connect to the database
    System.out.println ("could not connect to the database connection:" + connection);
    }

    System.out.println ("connection to the base before the call:" + connection);
    Statement stmt = connection.createStatement ();
    ResultSet rset = stmt.executeQuery ("select" driver Tester Hello OIC ' |) THE USER: '! ("' result from double ');
    While (rset.next ())
    System.out.println (RSet.GetString (1));
    RSet.Close ();
    stmt. Close();
    Connection.Close;
    }
    }


    = END of JAVA program =.

    The try section runs very well but only partially because you get the exception "ClassNotFoundException", which means that it is impossible to load the Oracle driver class (so it does not reach the line where it says):

    Class.forName(driverName);
    

    You intercept this exception and then simply print a line "could not find the database connection: null". Then you let the code continue, obviously without you still initialize your variables.

    I would recommend rewriting those catch blocks throw new RuntimeException so that the code will not continue any further when an error is detected in the try or don't catch not all of them if you donot want to manage them appropriately.

    As for your problem, you probably have not added the ojdbc14.jar is to your project, and this is why it cannot find the class OracleDriver.

    Finally, try adding {noformat}

    {noformat} around your code when you post code.  It makes it a lot more readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    

Maybe you are looking for

  • Re: Satellite P200 - error recovery

    No sound has take me the opportunity to use the Toshiba recovery disks.After that the 1st disk it has little at the end, the error message is displayed Preinst6.swmType: stormwater managementFile size: 644 MegUpdated: 27/06/2007 20:06 Three options a

  • Problem of abrupt closure Z580

    Hi, I bought a brand-new Z580 of Lenovo Ideapad 2 months and now I feel sudden stop. I work for a while and all of a sudden it shutsdown automatically (it does not show th closing advances in instead turns the laptop turns off at this point). Can som

  • ProBook 450 G2: Slow WiFi

    Hello I have quite annoying problem on my Probook 450 2 Win7 64 bit authentic. WiFi speed is terrible slow and sometimes unstable, however original driver from Realtek RTL8723BE 802.11b/g/n has been installed since the HP Web site. Have an idea to so

  • Concatenate the strings from VISA

    Hello people, I'm still fairly new to LabView, please bear with me. I'm interested in doing a Subvi, which will receive bytes on a VISA from serial port and write each line to a greater (concatenated) string, so it can later be stored in a file. In s

  • Games for Windows Live Setup error: "an error occurred during the installation XLiveRedist.msi.

    Original title: Games for Windows Live installation problems. I am trying to install Games for Windows Live, but there is a problem. The installation program downloads very well, but when I try to install the program, I get an error stating that: "an