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!

Tags: Database

Similar Questions

  • LiveCycle DB from DB2 to Oracle Migration

    We try to migrate an existing installation of the CA (8.2) of a setup of DB2/WebSphere in an Oracle/JBoss environment.  I looked into some migration of oracle tools (http://www.oracle.com/technetwork/database/migration/db2-084087.html), but to realize that there are several issues using a migration tool, especially since the underlying schemas differ between databases.

    Anyone doing a similar migration?  Could you describe the steps preformed?

    Thanks for any help.

    Unfortunately, Adobe does not support migration from one database to another in a given instance of LiveCycle.

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

  • 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

  • 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

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

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

  • Issue authorizations of appeal procedure dynamically, from a different scheme,

    Hello

    I have a "master_user" scheme that you run the DDL on a scheme of 'secondary_user '.

    There seems to be a kind of subtlety of permissions that I'm missing. Here are easy steps to create, test, and troubleshoot:

    Secondary schema has a defined procedure:

    -Run as a SYSTEM (at the time of construction)

    CREATE OR REPLACE PROCEDURE secondary_user.execute_immediate (p_sql_statement IN VARCHAR2)

    IS

    BEGIN

    EXECUTE IMMEDIATE p_sql_statement;

    END;

    GRANT EXECUTE ON secondary_user.execute_immediate TO master_user;

    I then want to call this procedure of master_user executing DDL dynamically in secondary_user.

    -Run as master_user

    BEGIN

    EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

    END;

    /

    ERROR on line 1:

    ORA-00942: table or view does not exist

    ORA-06512: AT SECONDARY_USER. EXECUTE_IMMEDIATE', line 5

    ORA-06512: at line 1

    ORA-06512: at line 2

    RESOLUTION OF THE PROBLEMS SO FAR:

    Now I can call this procedure directly:

    - As master_user

    Secondary_user.execute_immediate EXEC ('drop table test1')

    PL/SQL procedure successfully completed.

    I can call the procedure wrapped as different users:

    - As secondary_user

    BEGIN

    EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

    END;

    /

    PL/SQL procedure successfully completed.

    - Like SYSTEM

    BEGIN

    EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

    END;

    /

    PL/SQL procedure successfully completed.

    Can you shed some light on this behavior? The master_user clearly has permission to execute the procedure, but he can't go in an anonymous block. But the SYSTEM can so what permission is SYSTEM who master_user does not work?

    Much appreciated,

    If

    Oddly, the problem was that the secondary_user, who possessed the procedure, had not CREATE PROCEDURE private.

    This means that the procedure cannot be called by another user in an anonymous block, but could still be called directly from sqlplus by these different users.

    Looks like a 'characteristic' oracle to me!

  • Migration of Db2, teradata to Oracle database

    Hello

    Can someone guide me the procedure of migration of DB2, teradata to oracle database.some data you suggest me the docs on the subject.

    Thank you
    SAI

    GoldenGate extracts are of same format extracted from any type of database. Best thing is to look at the documentation. Incase you are interested in a configuration quick glance at

    http://gurpartapblog.blogspot.com/

    but its good for oracle for oracle

  • How to join two tables of different schemas of Oracle by using a subquery

    I'm trying to join two different schemas of Oracle tables using a subquery. I can extract data from each of the tables without problem. However, when I combine select statements it by using a subquery I get Oracle error *'ORA-00936: lack of expression ' *. Given that each SELECT statement runs on its own without error I don't understand what's missing. I'm trying to get the result set is matching the LINE_ID of PDTABLE_12_1 in the schema with the table PDTABLE_201 MAT_DESCRIPTION DD_12809 in the RA_12809 schema.

    The query is as follows:

    SQL = "SELECT [DD_12809]. [PDTABLE_12_1]. LINE_ID OF [DD_12809]. [PDTABLE_12_1] JOIN "_".
    + "(SELECT [RA_12809]. [PDTABLE_201]. MAT_DESCRIPTION "_".
    "FROM [RA_12809]. [PDTABLE_201]) AS FAB "_".
    + 'ON [DD_12809]. [PDTABLE_12_1]. PIPING_MATER_CLASS = FAB. PIPING_MATER_CLASS ".

    The format of the request is copied from a manual of programming SQL.

    I also tried running the query uses a right JOIN on the two tables, but got the same results. Any ideas would be useful. Thank you!

    Published by: user11338343 on October 19, 2009 06:55

    The format for the join of two tables in Oracle feels like any other database:

    SELECT a.col1, a.col2, ..., b.col1, b.col2, ...
    FROM   schema1.table1 a,
           JOIN schema2.table2 b ON a.col = b.col and ...
    WHERE  a.other_col = 'FRED'
    AND    ....;
    

    Do not place bracketed identifiers in Oracle. The account that connects to the database must have select privileges on the two tables.

  • How to use references from web third party service with service Cloud Computing to Oracle database schema

    APEX 5.0

    Cloud Computing service for the Oracle database schema


    I'm in the middle of do a proof of concept.  Basically, I need an application with security of the stored data, UI, user, data loading, and able to post data via an external web service said.  It seems that with the database schema Oracle cloud service, it is not possible to use web service references that are not in the field.

    If I try to use a service via http reference, I get:

    ORA-20987: APEX - the requested URL was forbidden. Contact your administrator. -Contact your administrator of the application.

    If I try to use the same reference service via https, I get:

    ORA-29273: HTTP request failed

    ORA-06512: at & quot; SYS. UTL_HTTP & quot; line 1130

    ORA-29259: end-of-input reached

    I read somewhere that cloud services only https can be used.  Is this true?

    And then I read somewhere to use the protocol https, the portfolio must be configured to store certificates, etc.  However, I read somewhere else that the portfolio cannot be configured because there is no access to the instance database with the Oracle Cloud Computing database schema service.  Is this true?

    If both are true, how can I make a call to post data to an external web service?  Or do I need to use a different Cloud Computing service?  Or do I need my own instance of Oracle DB?

    Any help would be great.  Thank you!

    It turns out there was a problem with the remote rest service.  After successfully calling a rest service that was created using SQL Workshop, I tried different remote rest services and they all work.  Sorry for the confusion.  I thought it was very strange that the schema of database service wouldn't be able to do it easily.

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

  • Migration from SQL Server to Oracle

    Dear friends,

    I used several different tools as SQL Developer but couldn't really even migrate due to various errors.

    In addition to these tools, there is another way to migrate. I use Oracle 10 g and SQL Server 2005.

    Please advice.

    Thanks in advance.

    With respect,

    Nith

    I tried to follow the procedure in MS SQL Server 2005 to Oracle 11 g Migration using this guide:
    http://www.Oracle.com/technology/OBE/hol08/sqldev_migration/MSSQLServer/migrate_microsoft_sqlserver_otn.htm

    I found that a lot of tables was empty in the target database. Anyone can guide me please the ideal way to migrate data intact of the MSS to Oracle? How about full Convert 5.5 Enterprise and SwisSQL 6.0?

    Concerning
    Jimmy

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

  • Migration from the old to the new storage box

    O/s - AIX
    Present Storage - storage IBM XIV
    New storage - HP EVA 8400

    We intend to migrate from old storage to the new storage box. Here's the oracle servers.
    storage team and AIX o/s teams will migrate data from the old to the new storage box storage box. (step of migration include - backup of volumes of the o/s and even restore in new storage box).

    WHAT SHOULD DO ORACLE DBA, RECOMMEND SO THAT OUR ORACLE DATABASE SHOULD WORK JUST FINE ON THE NEW STORAGE SYSTEM? Please share your entries?

    My hypothesis: The o/s team as AIX will be due work migration preferred to be a s/n, we need not do binary oracle / oracle data files will be the same migrate to new storage box as it is. We being ORACLE DBA should simply ensure that we should have our oracle databases registered with us architecture.

    All Suggestions, questions are welcome, thank you friends.

    Yet once if administrators can make the local hard drive appear identical to the operating system when the contents of the disc is moved to the new storage unit you should not have to do anything. If the local drive cannot make it appear exactly the same that I would probably want to re - install Oracle and patch then just start my database to the newly built House. The note of Oracle on cloning Oracle Home can present a different option.

    It would be nice if this process has been run on a test server before production, because according to your window, you don't want to build a new House of Oracle after the migration to disk. I would like the House to be brought as part of the file movement or I would create before it is tested and ready.

    HTH - Mark D Powell.

Maybe you are looking for

  • change my phone number and cannot change the keychain

    Dear, gently, I changed my phone number and cannot change the keychain

  • Is there any software available to limit the interference on speakers?

    Original title: scrambling over the speakers. I have windows vista and I'm running it on a wireless network that I am picking up a strong radio signal and pretty clearly on my speakers I know not for this kind of interference that I wondered about is

  • Fast charge does not

    Hi, my Xperia Z2takes nearly 1.5 hours to charge up to 60%, I use the same charger came in the box with my Z2 please help how can I charge my phone quickly

  • BlackBerry Smartphones Mobile AIM

    I have a question about the TARGET mobile and Blackberry Messenger. I understand that data services must be turned on in order for these to work, but does that mean if I don't have a data plan for my Blackberry, I can't use these applications without

  • How can we ADFFaceMessage behave like Modal = true?

    JDEV 11.1.1.7We add ADFFacesMessage in backing bean that is displayed as a pop-up, but the user is able to do the operation on the Parent screen.How can we make the FaceMessage behave like pop-up windows with the dialogue with the attribute set as mo