MySql to Oracle DB Migration, creating schema problem

Hello
Im a beginner, try to migrate a mysql database in oracle. The mysql db contains a few tables, if im trying to migrate everything manually.
When filling out the tables a problem im. It's as follows:

Table 1 has a Key (t1_col1, t1_col2, t1_col3) primary Composite.
Table2 contains a column (t2_col1), which is a reference to Table1 t1_col1 (to make t1_col1 a repository key in the other table must be UNIQUE or PRIMARY, but as we know table can have a unique primary key and the t1_col1 contains redundant data, so cant make UNIQUE either).
So I tried indexing of the t1_col1 column but it dint seem to work as well, creating table2 it gives "no unique match or primary key for this list of columns.
".

I think that MySql is not so strict a lot compared to Oracle, please guide me through this, any workaround (s)?
This is the MySql schema:

CREATE TABLE "temp". "table1")
't1_col1' varchar (50) NOT NULL,
't1_col2' varchar (50) NOT NULL,
't1_col3' varchar (50) NOT NULL,
"t1_col4" integer NOT NULL,
PRIMARY KEY ('t1_col1', 't1_col2', 't1_col3')
)
ENGINE type = InnoDB
CHARACTER SET utf8 COLLATE utf8_general_ci;



CREATE TABLE "temp". "table2")
't2_col1' varchar (50) NOT NULL,
't2_col2' varchar (50) NOT NULL,
FOREIGN KEY CONSTRAINT 'table2_fk1' 'table2_fk1' ('t2_col1')
REFERENCES, 'table1' ('t1_col1')
ON DELETE CASCADE
ON UPDATE CASCADE
)
ENGINE type = InnoDB
CHARACTER SET utf8 COLLATE utf8_general_ci;


Looking forward to the answer.

Kind regards
Peter

_______________
The system configuration:
CentOS 5 (linux kernel 2.6.18 - 8).
MySQl 5.0.
Oracle 10g Enterprise edition

Published by: user10707566 on December 12, 2008 04:28

If I didn't know that MySQL allows you to declare FK constraints that are non-profit information only and does not apply, I would find this surprisiing really, since the essence of a FK relationship is that the child is identified by the parent.

In Oracle, you must create a primary key for the substitution on the table1 based on the unique combination of col1, col2 and col3. I would certainly use a sequence for it. Next, you create a unique constraint on col1, col2 and col3 to apply your natural primary key. FK in table2 would be the key to substitution from table1. Something like:

CREATE TABLE table1 (
   t1_surr_key NUMBER NOT NULL,
   t1_col1 Varchar2(50) NOT NULL,
   t1_col2 Varchar2(50) NOT NULL,
   t1_col3 Varchar2(50) NOT NULL,
   t1_col4 integer NOT NULL)

ALTER TABLE table1 ADD CONSTRAINT table1_pk
   PRIMARY KEY (t1_surr_key);

ALTER TABLE table1 ADD CONSTRAINT table1_uk
   UNIQUE (t1_col1, t1_col2, t1_col3);

CREATE TABLE table2 (
   t2_col1 varchar2(50) NOT NULL,
   t2_col2 varchar2(50) NOT NULL,
   t1_surr_key NUMBER NOT NULL,
CONSTRAINT table2_fk1 FOREIGN KEY (t1_surr_key)
   REFERENCES table1 (t1_surr_key)
   ON DELETE CASCADE
   ON UPDATE CASCADE)

John

Tags: Database

Similar Questions

  • MySQL for Oracle Database Migration

    I'm migrating 75 Tables of MySQL (5.0.18) to Oracle (10.2.0.1.0) using SQL-Developer (2.1.1.64)

    Below are the steps to follow to a State where I'm stuck:

    1: opens a connection with MySQL (5.0.18) which has * 86 * databases.
    2: open another connection with Oracle (10.2.0.1.0); a new installation.
    3: just clicked one of the MySQL database and selected ' + * Capture schema * + ".
    After the capture, this particular database appeared on ' + * models Captured * + ".
    4: right-click on this model converted, that says "* [email protected]:3306 (MySQL), etc. * ' and selected ' + convert model Oracle +".
    5: nothing appeared on the "* Converted models."

    ~~~~~~~~~~~ Stuck ~~~~~~~~~~~

    Another thing:
    -If I select different tables of the database under "* models Captured *" and then convert them then ' * SQL Developer * "generate converted models.
    -If I repeat anyone else of tables "* Converted model *" are generated.

    Am I suppose to repeat this step for each Table, the trigger, view etc.?

    Thank you


    Edited by: user13397582 on August 26, 2010 06:08_

    Also the * 'Script' * output even * "name of the constraint *; Viz

    + Cdr5 ALTER TABLE ADD CONSTRAINT PRIMARY PRIMARY KEY (table_id) ENABLE; +

    Constraint must have derived the name of the table. Otherwise, you will have repeated migrations:

    Error report:*.
    SQL error: ORA-02264: name already used by an existing constraint
    + 02264. 00000 - 'name already used by an existing constraint ' +.
    * Cause: The specified constraint name must be unique. +
    * Action: Specify a name for the constraint unique constraint. +

    Published by: user13397582 on August 26, 2010 06:08

    Which JDK version do you use?

    There is a problem with SQL Developer 2.1.1 with JDK1.6 less than 18 years of age and older, during the conversion of a migration phase, with exactly the symptoms you describe.

    If you use one of these JDK could you try to install JDK1.6 U17?

    Concerning
    Wolfgang

  • Migration - MySQL to Oracle - do not generate data files

    Hello

    I have been using the SQL Developer migration Assistant to move data from a MySQL 5 database to an Oracle 11 g server.
    I used it successfully a couple of times and its has all worked.

    However, I am currently having a problem whereby there is no offline data file generated. Control files and all other scripts generated don't... just no data file.
    It worked before, so I'm a bit puzzled as to why no logner work.

    I looked at newspapers of migration information and there is no errors shown - datamove is marked as success.
    I tried deleting and recreating rhe repository migration and checked all grants and privs.

    Is there an error message then it would be something to continue but have tried several times and checked everything I can think.

    I also tried the approach of migration command-line... same thing. Everything works fine... no errors... but only the table creation and control script files are generated.
    The schema of the source is very simple and there is only the tables to migrate... no procedure or anything else.

    Can anyone suggest anything?

    Thank you very much
    Mike

    Hi Mike,.

    I'm so clear.
    You use SQL Developer 3.0?
    You walked through the migration wizard and choose Move Offline mode data.
    The generation of DDL files are created as are the scripts to move data.
    But no data (DAT) file is created and no data has been entered in the Oracle target tables.

    With offline data move, Developer SQL generates (saved in your project, under the DataMove dir directory) 2 sets of scripts.
    (a) a set of scripts to unload data from MySQL to DAT files.
    (b) a set of scripts to load data from the DAT files in the Oracle target tables.
    These scripts must be run by hand, specifying the details for the source databases MySQL and Oracle target.

    "no offline data file generated. Control files and all other scripts generated don't... just no data file. »
    «.. . but only the creation and control file table scripts are generated. »

    What you mean
    (1) the DAT files are not generated automatically. This should, if we need to run the scripts yourself
    (2) after manually running the scripts that the DAT are not present, or that the DAT files are present, but the data does not load in Oracle tables.
    (3) the scripts to move data in offline mode does not get generated

    Kind regards
    Dermot
    SQL development team.

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

  • MySQL to Oracle Migration offline: scripts incorrectly generated for tables

    Hello

    I used SQL Developer 3.0.4 to migrate Mysql to Oracle databases.

    I have the following errors on the charger (oracle_ctl.sh) scripts to run:

    SQL * Loader-2026: the charge was dropped because SQL Loader cannot continue.
    SQL * Loader-500: could not open the file (data / framework_perdadepacotes_diari.txt)


    The "framework_perdadepacotes_horario.txt" dump file is generated by mysqlsdump with the original mysql table name and ".txt" sufix:
    -excerpt from unload_script.sh
    mysqldump-u $username - p $server h $ t socket=/u01/mysqlmulti/mysql2/mysqld2.sock port password data = 3312 fields terminated by = "< EOFD >" fields escaped by = ""-lines terminated by = "< EORD >" "dxdb" "framework_perdadepacotes_horario" "

    but sql loader controlfile makes reference to the file by using the new name of the oracle table (in this case, that the new name is truncated to 30 characters):
    --
    load data
    INFILE ' data / framework_perdadepacotes_diari.txt ".
    "str"< EORD >"
    in the dxdb.framework_perdadepacotes_diari table


    Another instance of the same problem, but in this case the table name starts wth "_":
    -of unload_script.sh
    mysqldump-h $server u $username - p$ password t data fields terminated by = "< EOFD >" fields escaped by = ""-lines terminated by = "< EORD >" "netdb" "_Clientes" "

    file name generated by mysqldump: "_Clientes.txt."
    CTL file:
    load data
    INFILE ' data / CLIENTES_1.txt ".
    "str"< EORD >"
    in the CLIENTES_1 table

    Is this a bug, or are we supposed to manually fix the scripts for these cases?

    Thank you

    Edited by: user12099785 11/10/2011 06:11

    Currently, you have to fix manually because there was no bug recorded for this question. I have now filed the bug and it will be if all goes well fixed in one of the next versions to come.

  • Choose between MySQL and Oracle - problem with MySQL text columns?

    Hello.

    New to this forum and Oracle please go easy on me.

    I'm selecting data in a MySQL database.

    This SQL works very well: -.
    Select 'Device_Label' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Label column is of type varchar (255).

    This SQL fails with the error - ORA-00904: "Device_Tag": invalid identifier
    Select 'Device_Tag' Device"@ed_link «»
    where "Device_ID" = 6665;
    Here, the MySQL Device_Tag column is of type text.
    Column Device_Tag certainly exists and is populated.

    Is the problem related to the MySQL type text column, and is there a solution?

    Thank you.

    Hello
    The ora-997 because of the entry door is not a restriction of the Oracle. You cannot use a table defined as a long in the create table... as select statement..., you would see the problem even if it was a copy of Oracle for Oracle.
    If one of the columns of MySQL are translated as a long in Oracle you will hit this problem.
    The bypass alone is to avoid columns long or you can try to create a view in MySQL by using the cast function, which converts the columns that translate to long something and then use it in the create statement.

    Kind regards
    Mike

  • 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

  • Create schemas for data warehouse for Reporting with Oracle XE

    It is possible to import home charger with the Oracle XE database and dw?

    I get this error ORA-00439: feature not enabled not: progress of replication in the log of the CIM.

    I saw that the database, we do not have have the feature "advanced replication."

    SQL> select * from v $ option where parameter = 'Advanced replication';
    
    
    PARAMETER
    -------------------------------------------------- --------------
    VALUE
    -------------------------------------------------- --------------
    advanced replication
    FALSE
    
    
    

    Journal of the CIM:

    Mon Feb 23 14:16 BRT 2015 1424711760686 atg.cim.database.dbsetup.CimDBJobManager module of high level of information for Reporting data warehouse Datasource list page: domain controllers. DW, ARF. DW.base, ARF. DW. InternalUsers, Store.Storefront

    Info my Feb 23 14:16:05 BRT 2015 1424711765012 atg.cim.database.dbsetup.CimDBJobManager 0 0 imports has not been executed.

    Info my Feb 23 14:16:05 BRT 2015 1424711765192 atg.cim.database.dbsetup.CimDBJobManager list of module level for Datasource Reporting charger: DafEar.Admin, DCS. DW, DCS. PublishingAgent, ARF.base, Store.EStore, Store.EStore.International

    Info my Feb 23 14:16:05 BRT 2015 1424711765733 atg.cim.database.dbsetup.CimDBJobManager 1 1 imports has not been executed.

    Info my Feb 23 14:16:05 BRT 2015 1424711765953 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Publishing module: DCS - UI. Versioned, BIZUI, PubPortlet, DafEar.admin, DCS - UI. SiteAdmin.Versioned, SiteAdmin.Versioned, DCS. Versioned, DCS - UI, Store.EStore.Versioned, Store.Storefront, DAF. Endeca.Index.Versioned, DCS. Endeca.Index.Versioned, ARF.base, DCS. Endeca.Index.SKUIndexing, Store.EStore.International.Versioned, Store.Mobile, Store.Mobile.Versioned, Store.Endeca.International, Store.KnowledgeBase.International, Portal.paf, Store.Storefront

    Info my Feb 23 14:16:11 BRT 2015 1424711771561 atg.cim.database.dbsetup.CimDBJobManager 65 65 imports has not been executed.

    Info my Feb 23 14:16:11 BRT 2015 1424711771722 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Production Core module: Store.EStore.International, DafEar.Admin, DPS, DSS, DCS. PublishingAgent, DCS. AbandonedOrderServices, DAF. Endeca.Index, DCS. Endeca.Index, Store.Endeca.Index, DAF. Endeca.Assembler, ARF.base, PublishingAgent, DCS. Endeca.Index.SKUIndexing,Store.Storefront,Store.EStore.International,Store.Recommendations,Store.Mobile,Store.Endeca.International,Store.Fluoroscope,Store.KnowledgeBase.International,Store.Mobile.Recommendations,Store.Mobile.International,Store.EStore,Store.Recommendations.International

    Info my Feb 23 14:16:12 1424711772473 2015 BRT atg.cim.database.dbsetup.CimDBJobManager 30 30 imports has not been executed.

    Info my Feb 23 14:16:19 BRT 2015 1424711779573 atg.cim.database.dbsetup.CimDBJobManager creating schema to the Reporting data warehouse data source

    Info my Feb 23 14:16:19 BRT 2015 1424711779653 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Reporting data warehouse module: domain controllers. DW, ARF. DW.base, ARF. DW. InternalUsers, Store.Storefront

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_view_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_init.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_view_ddl.sql * info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_init.sql

    Info my Feb 23 14:16:21 atg.cim.database.dbsetup.CimDBJobManager BRT 2015 1424711781085 found 2 of the 6 unrun previously of tasks for Datasource Reporting data warehouse

    Info my Feb 23 14:16:21 BRT 2015 1424711781085 atg.cim.database.dbsetup.CimDBJobManager 1 ARF. DW.base: sql/db_components/oracle/arf_view_ddl.sql

    Info my Feb 23 14:16:21 atg.cim.database.dbsetup.CimDBJobManager 1424711781085 2015 BRT 2 domain controllers. DW: sql/db_components/oracle/arf_dcs_view_ddl.sql

    Info my Feb 23 14:16:21 BRT 2015 1424711781085/atg/dynamo/dbsetup/job/DatabaseJobManager starting work of setting up data 1424711781085.

    Error my Feb 23 14:16:21 BRT 2015 1424711781516 /atg/dynamo/dbsetup/database/DatabaseOperationManager---java.sql.SQLException: ORA-00439: feature not enabled not: Advanced replication

    is there a solution?

    Hello

    We have not tested and certified with Oracle XE internally

    You must use an Oracle Enterprise Edition for Advanced Replication

    What version of Oracle trade you install, I can't say extract of newspaper, you've posted

    ++++

    Thank you

    Gareth

    Please indicate any update as "Good response" or "Useful answer" If this update help and answers your question, so that others can identify the correct/good update between the many updates.

  • Oracle Identity Federation - OID RCU failed to create schema

    Hello
    I try to install OIF - Oracle Identity federation according to the OBE http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oif/11g/r1/oif_install/oif_install.htm

    1. I installed the Oracle 11 g 2 11.2.0.3 with the charset = AL32UTF8 and db_block needed a staff of 8 K and nls_length_semantics = character creation database and listener.
    2 install weblogic 10.3.6
    3. start installation of IOM - Oracle, chosen identity management install and configure the option and the schema creation options.
    4 installation goes fine, but when setting up, he fails. Here's the relevant part of the log.

    I tried several times just to fail again. If someone would want us to enlighten as what goes wrong here. Let me know if you need more information about the configuration...




    File: ...//oraInventory/logs/install2013-05-3018-01-31 AM .out_


    ORA-01450: length maximum key (6398) exceeded

    Completion percentage: 62
    Repository creation utility: create - completion summary
    Information on the database:
    Host name: vccg - rh1.earth.com
    Port: 1521
    Service name: OIAMDB
    Logged in as: sys
    Prefix for schema owners (non prefixable): DEFAULT_PREFIX
    RCU Logfile: /data/OIAM/installed_apps/fmw/Oracle_IDM1_IDP33/rcu/log/rcu.log
    RCU Checkpoint object: / data/OIAM/installed_apps/fmw/Oracle_IDM1_IDP33/rcu/log/RCUCheckpointObj
    Of component schemas that you created:
    Status Logfile element
    Oracle Internet directory is not /data/OIAM/installed_apps/fmw/Oracle_IDM1_IDP33/rcu/log/oid.log

    Repository creation utility - create: finished
    Repository - Dropping and cleaning of the defective components creation utility
    Fall of repository and cleaning of defective components.
    Completion percentage: 93
    Percentage of completion:-117
    Completion percentage: 100
    -RCUUtil createOIDRepository status = 2 - java.lang.Exception: the RCU failed to create schema OID
    at oracle.as.idm.install.config.IdMDirectoryServicesManager.doExecute(IdMDirectoryServicesManager.java:792)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:375)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:96)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:186)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
    at java.lang.Thread.run(Thread.java:662)

    ____________________________________________________________________________________________________________________________________________________





    File: ...///fmw/Oracle IDM1_IDP33/RCU/log/OID.log_


    CREATE UNIQUE INDEX rp_dn on ct_dn (parentdn, rdn)
    *
    ERROR on line 1:
    ORA-01450: length maximum key (6398) exceeded

    Published by: 1008964 on May 30, 2013 12:10

    Published by: 1008964 on May 30, 2013 12:12

    Change NLS_LENGTH_SEMANTICS = BYTE. and try again.

  • Creating a DB link between mySQL and Oracle

    How can I create a dblink in mySQL to display the data in a table in Oracle 10g?

    Thank you
    Roald

    What is the OS of Oracle and MYSQL database?
    You can check the following link
    http://www.Pythian.com/news/1554/how-to-access-MySQL-from-Oracle-with-ODBC-and-SQL/

  • Before demo application of Oracle Fusion Store - failed to create schema

    I downloaded the Demo Application Fusion Store Front "FusionOrderDemo_R1PS2.zip" of http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html.
    Followed the instructions on the same page. But creating schema is a failure.

    I don't know why this isn't picking all the way up to JDeveloper which is looking for wlserver_10.3\server]\lib in I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib (JDeveloper not getting added to the path.)
    The Build.Properties file content:

    JDeveloper.Home=I:/Oracle/FusionMiddleware/JDeveloper
    CBC. Home =... / /...


    # Info JDBC used to create a schema
    JDBC. Driver = Oracle.JDBC.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    JDBC.port = 1521
    JDBC.sid = XE

    # Information about the default setting for the user to demo.
    db.adminUser = system
    db.demoUser = FOD
    db.demoUser.password = fusion
    db.demoUser.tablespace = USERS
    db.demoUser.tempTablespace = TEMP

    Error:

    BUILD FAILED
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\Ant\build.XML:51: The following error occurred during the execution of this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.XML:91: The following error occurred during the execution of this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.XML:56: The following error occurred during the execution of this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.XML:28: I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib not found.

    Total time: 2 seconds


    Thank you
    Rajdeep

    Rajdeep,

    If you installed JDeveloper to I:/Oracle/FusionMiddleware/JDeveloper (otherwise said, it contains directories "jdeveloper" and "wlserver_10.3", among others), your build.properties should be:

    jdeveloper.home=I:/Oracle/FusionMiddleware/JDeveloper/jdeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=XE
    
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    
  • CREATE link MySQL to ORACLE

    Hello!!

    I know it is posible to create a dblink Oracle to MySQL, but the question is, is posible to create a link between MySQL to ORACLE Db?

    I hope that this question as soon as posible.

    Regads!

    Ion user11925786 wrote:
    Hello!!

    I know it is posible to create a dblink Oracle to MySQL, but the question is, is posible to create a link between MySQL to ORACLE Db?

    I hope that this question as soon as posible.

    Regads!

    And why do you think that the answer would come ASAP?

    As far as I KNOW, mysql doesn't a link db support.

    Aman...

  • Why is conversion of procedures &amp; functions due to lack of MySQL to Oracle?

    Hi all

    I'm trying to migrate a database from MySQL to Oracle using the Migration Workbench data in SQL Developer 1.5.4.
    I ran both the quick Migration Wizard and the Manual Migration process as described in the documentation.

    I get through the process very well, even if not everything is successfully migrated. Namely, stored procedures and functions of the database of third parties are not correctly migrated.
    The following text is listed in the Migration log for each of the stored procedures and functions:

    * "Limitation of the translation"procedure_audit requires a translation of the manual"met on the column of the stored procedure fse.procedure_audit line 0-0."

    If I look at the 'converted' model the procedure has been created and is set to NULL. The procedure of 'captured the model' original is commented out in the body of the procedure in the "convert" template Does anyone have any ideas as to why it's a failure? And how do I fix it?


    In addition, there seems to be a problem with the conversion of the index, particularly those that are 'MAJOR' indexes in MySQL not appear in models 'captured' or 'converted '.


    In addition, the migration log provides the following:

    * "Index 'customer_customer_id' on the 'customer' table ' has been ignored, because it is a duplicate of a constraint" * "

    Looking at the index in the original third party database, it does appear that an index on that column on the respective table. The ides why this happens?


    Here, any help would be immensely appreciated.

    Thank you
    Amedeo.

    Mysql stored procedure to PL/SQL function is not available, or in the direction sqldeveloper statement:

    http://www.Oracle.com/technology/products/database/sql_developer/files/sqldeveloperstatementofdirection.htm

    -Turloch

  • connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent

    Hi all

    I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.

    I want to connect to MySQL. I do the following

    Configure Listner.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PLSExtProc)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (= Extproc PROGRAM)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = ORCL)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (SID_NAME = ORCL)

    )

    (SID_DESC =

    (SID_NAME = mysql)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_2)

    (PROGRAM = HSODBC)

    (ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)

    )

    )

    LISTENER =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))

    )

    Tnsnames.ora configuration

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )
    MySQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    )
    (HS = OK)
    )

    create file initodbc.ora in the folder hs

    HS_FDS_CONNECT_INFO = mysql

    HS_FDS_TRACE_LEVEL = OFF

    Restart the listner

    tnsping

    C:\users\administrator > tnsping mysql

    AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
    015 13:02:52

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:
    C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
    (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
    OK (0 msec)

    Create the connection odbc for Unicode

    the test is successful

    now, I create the dblink

    create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";

    then try to select from a table inside the MySQL database

    SQL > select * from appeal@mysql;

    Select * from appeal@mysql

    *

    ERROR on line 1:

    ORA-28545: error diagnosed by Net8 when connecting to an agent

    Cannot retrieve the text of the message NETWORK/NCR 65535

    ORA-02063: preceding 2 lines of MYSQL

    How could I solve this problem?

    Thank you.

    Hello

    I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows.  You can not install the 32-bit on WIndows 64-bit HSODBC.

    Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database.  HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.

    Kind regards

    Mike

  • 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

Maybe you are looking for