Ora-02298 in migrating MS-SQLServer to Oracle 8i

Greetings,
I am in the process of migrating a MS-SQLServer db to Oracle 8i.
I have encountered an error (ora-02298). The following was inserted into the mwb error log:
REM
REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
REM User : bcbiz
ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
I have tried dropping and creating the table from scratch and have received the same error.
Does anyone have any suggestions that I might try?
Thank you in advance,
-Ken
null

hello,
am interested in migrating from mssql server 7 to oracle 8i.
how excatly do i do that should i download some gateway software or should i download migration workbench software if i download how do i move files from MSSQL to oracle.
Some one please help me out.
thankyou
Ramesh
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kenneth Eisner ([email protected]):
Greetings,
I am in the process of migrating a MS-SQLServer db to Oracle 8i.
I have encountered an error (ora-02298). The following was inserted into the mwb error log:
REM
REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
REM User : bcbiz
ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
I have tried dropping and creating the table from scratch and have received the same error.
Does anyone have any suggestions that I might try?
Thank you in advance,
-Ken
<HR></BLOCKQUOTE>
null

Similar Messages

  • Migration from SqlServer to Oracle

    I am using Sqldeveloper 1.2.1
    I am trying to migrate sql server 2000 data to Oracle..
    For that i had created two connections for oracle & SqlServer.
    SqlServer and Oracle connections were made sucessfully, i am able to view the database and table.
    Now i am doing migration process..
    In Oracle conn i had selected Create Repository then
    in SqlServer conn i selected "Capture Microsoft SqlServer".
    Now Capturing Database is running long time.
    No messsage is displayed..
    Is my way is correct?
    Pls provide solution.

    Hi Shivasha,
    If you are using 11g, the the solution is here (the 3rd post):
    Re: SQL Developer in Oracle 11g
    Andrei

  • Migration from SqlServer from Oracle

    hi all,
    i have use a migration iter of Oracle sql developer, but i have a problem.
    when i start the conversion of acquired model sql server to oracle, some name of column or table are modify.
    example in sql server i have a column name MV__EPOS, but in coverted model oracle is renamed MV_EPOS with one underscore.
    Can you help me??
    Thanks.

    Hi,
    I confirm if you use double underscores in table or column name, it is replaced by one underscore.
    For the moment, except to rename manually column or object, there is no other solution.
    Your issue has been transferred to development for modification
    Thanks
    Regards,
    Mireille

  • Migrating from sqlServer to Oracle

    Sir,
    My name is ramandeep singh and I hail from india and I work as a computer programmer
    cum incharge computer software.Presently we are using SQL Server and we intend to update
    our existing database to Oracle/Dev 2000.Please provide me the details.
    I am a OTN memeber.
    please get back to me as soon as possible.
    My mail id is [email protected],
    [email protected]

    You Can Convert Yours Database from SQL Server to oracle Write A VB Program that open two connections one to SQL Server And Another To Oracle then By Yours Program Read The Specified Records from Sql Server And insert it in the ORACLE.
    About the Tables And Views Genrate A script from SQL Server Option The Take The Commands Of creating tables and modify the datatype to oracle datatype the run the script in the SQL Plus .
    About the Programs you must rebuild it on developer2000
    Anjad H.S.
    DB Programmer

  • Migrate HFM (9.3) from Sqlserver to Oracle

    Hello.
    We are using Sqlserver for HFM for historical reason, but now we would like to change
    our database to Oracle for improve performance and for licenses reason.
    We want to organize migration and some tests.
    I checked OTN and Metalink and I didn't find anything related to HFM.
    I have found a lot of documentation about migration from Sqlserver to Oracle,
    but I would like to find and read something specific related to HFM repository.
    Maybe Oracle suggests to do some premigration task
    or some postmigration task.
    How can I find this kind of documentation?
    There is anyone that have already done this kind of job?
    Some suggestion?
    Thanks in advance.
    D.
    Edited by: Spugna on May 20, 2011 8:33 AM
    Edited by: Spugna on May 20, 2011 8:34 AM

    You can use the HFMCopyApp utility, which ships with HFM, under the \Server folder on each HFM app server. There are other threads in this forum on how to use this utility. It will allow you to copy from one RDBMS to another.
    Each product however, is different in terms of migrating between RDBMS. FDM, for example, requires a rebuild. So you will have to check into each component. As for performance being better under Oracle vs. SQL Server, that's a matter of tuning and opinion. I would make sure performance will in fact be better before I undertook this project. License costs should be much more clear, of course.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Migration from Sqlserver 2005 to Oracle 10g

    Hi all,
    does anyone know a tool good to migrate a sqlserver 2005 database to oracle 10g ?
    I tried Sqldeveloper and the migration of tables and datas are ok, but when I try to migrate views, functions and procedures the sqldeveloper hangs.
    regards,.
    Wander (Brazil)

    Quite frankly forget using tools for all but the simplest migration: The best you will get from a tool, provided it works, is mediocrity.
    Moving tables and data with tools works if you are using basic data types. Once you get past this, in all seriousness, it is time to roll up your sleeves and start writing code.
    The differences between the two products is profound. What constitutes a transaction different, locking different, logging different, security models different, etc.
    No tool can turn Transact SQL into nested BULK COLLECT and FORALL statements. And for many years into the future ... none will.

  • Migration issue sqlserver 2008 to oracle 11g

    migration data from sqlserver to oracle at at thjat time i got issue, please give me a solution.
    error: migration actions have failes,check the migration reports for details;capture enterprise capture capture faild.refer to migrlog table inthe repository for details.

    Please send more details like what method is being used to perform this migration?

  • How to connect sqlserver use oracle sql developer?

    I created a non-oracle location connection in owb and can load data from sqlserver to warehouse. Now, I want to use sqlplus or sqldeveloper to connect sqlserver directly, But I got this error message"ora-03135:connection lost contact".
    How can I connect sqlserver in sqldeveloper or sqlplus?
    Thanks

    Hi Napo,
    SQLDeveloper can migrate to oracle, browse sqlserver and run and display results from single statements.
    I have not seen "ora-03135:connection lost contact" have you set up sqlserver for tcp/ip connection, checked the port is open (and not blocked by, for example, firewalls) and used the jtds driver to connect SQLDeveloper to sqlserver?
    Note that "ora-03135:connection lost contact" is an oracle error and does not seem related to sqlserver.
    Oracle also has heterogenous gateway products which may be useful
    Oracle® Database Gateway for SQL Server User's Guide
    http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31049/toc.htm
    -Turloch

  • How to resolve ORA-02298: cannot validate (%s.%s) - parent keys not found

    Hi, During the exp/imp process,i have tried to enable the constraints once the import done,but for some of the constraints am getting ORA-02298: cannot validate (%s.%s) - parent keys not found error,can anyone assist me what are all the possible ways to fix this issue. database -ORACLE 11g,o/s -LINUX

    Hi. Put the missing values into the parent table or Remove the rows in the child table which contain values that are not in the parent table
    http://www.shutdownabort.com/errors/ORA-02298.php
    Regards
    Javid Hasanov
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Edited by: Javid Hesenov on Jul 6, 2012 2:03 AM

  • Migrating Sybase code to Oracle 11g

    Hi All,
    We have to migrate Sybase code to Oracle 11g.
    When we are doing a SELECT .. INTO in Sybase , even if the query is returning more than 1 row , sybase selects 1 of the rows and populates the variables.
    But while migrating this code to oracle, we are getting TOO_MANY_ROWS Exception.
    We need to migrate the code from SYBASE to ORACLE without disturbing the logic.
    Can someone please tell me the logic applied by SYBASE to pick up the record?
    And if someone has faced this issue, then what can be done to resolve this.
    Regards,
    Riddhisha Khamesra

    The result 3 is the last entered record (not the amount of records..).
    So the first approach to write a dummy procedure that will select all records in Oracle like:
    CREATE OR REPLACE PROCEDURE last_record
    v_arg1 OUT NUMBER
    AS
    BEGIN
    SELECT col1
    INTO v_arg1
    FROM tt_tmp ;
    END;
    and hopefully returns only the last record will fail with:
    SQL> variable outvar number
    SQL> exec last_record (:outvar)
    BEGIN last_record (:outvar); END;
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYSTEM.LAST_RECORD", line 9
    ORA-06512: at line 1
    One possible approach to get the last (and only the last) record that was entered into the table is to use rownum:
    The select might look like "select col1 from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;"
    So the procedure can be coded as:
    CREATE OR REPLACE PROCEDURE last_record
    v_arg1 OUT NUMBER
    AS
    BEGIN
    SELECT col1
    INTO v_arg1
    from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;
    END;
    Now calling it in SQL*Plus:
    SQL> variable outvar number
    SQL> exec last_record (:outvar)
    PL/SQL procedure successfully completed.
    SQL> print :outvar
    OUTVAR
    7
    The value 7 is the last record I've inserted into my tt_tmp table:
    SQL> select * from tt_tmp;
    COL1 COL2
    1 1
    2 2
    8 8
    7 7

  • Only AFTER triggers generated afther migrating the SQLServer db to Oradb

    When we migrate the SQLServer triggers in Oracle Model using the omwb only AFTER row level triggers are genereted.
    Can we also generate BEFORE row level and STATEMENT level triggers from SQLServer database triggers in Oracle Model triggers?
    thanks in advance,
    Daud Akmal

    Daud,
    Trigger support is not comprehensive and is one of the features we may need to review. Can you be clearer in what you want as the feature enhancement to the TSQL to PL/SQL parser?
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • ORA-02298

    SQL> alter table jti.DIS_ROOM_REQUESTS
    2 add constraint DIS_FK2_ROOM_REQUESTS_ST_ID foreign key (STUDENT_ID)
    3 references jtisp.sis_students (STUDENT_ID);
    add constraint DIS_FK2_ROOM_REQUESTS_ST_ID foreign key (STUDENT_ID)
    ERROR at line 2:
    ORA-02298: cannot validate (JTI.DIS_FK2_ROOM_REQUESTS_ST_ID) - parent keys not
    found
    plz help me...to come out this error...

    Hi:
    From techonthenet.com
    Cause:
    You tried to execute an ALTER TABLE ENABLE CONSTRAINT command, but it failed because your table has orphaned child records in it.
    Action:
    The options to resolve this Oracle error are:
    1- Remove the orphaned child records from the child table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.
    2- Create the missing parent records in the parent table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.Saad,
    http://saadnayef.blogspot.com

  • ORA-02298: cannot validate .......

    Hi,
    I exported user cmsadmin with constraints=y and consistent=y as DBA user from 9i then Imported it using fromuser/touser =cmsadmin into oracle 10g..
    i got the follwing error while importing:
    IMP-00017: following statement failed with ORACLE error 2298:
    "ALTER TABLE "RESPONSES" ENABLE CONSTRAINT "FK_RESPONSE_FK_CTF_RE_CERTIFIC""
    IMP-00003: ORACLE error 2298 encountered
    ORA-02298: cannot validate (CMSADMIN.FK_RESPONSE_FK_CTF_RE_CERTIFIC) - parent keys not found
    The
    ALTER TABLE "CMSADMIN"."RESPONSES" ADD CONSTRAINT
    "FK_RESPONSE_FK_CTF_RE_CERTIFIC" FOREIGN KEY ("REP_CERTIFICATION_ID")
    REFERENCES "CERTIFICATION" ("CTF_CERTIFICATION_ID") ENABLE NOVALIDATE ;
    But when i checked number of rows of for CERTICATION table in 9i DB and target 10g DB they are same....
    But when i run the following query:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);The above query returns 288 rows meaning they are not in CERTIFICATION table.. but the count of number of rows are same in source and target DB..
    What can be the reason..
    can you pls help...
    Thx

    Hi,
    here is my EXP and IMP commands:
    exp cmsadmin/frora04_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsdbt01_cmsadmin_29Mar07.log owner=cmsadmin consistent=y grants=y constraints=y rows=n
    imp cmsadmin/orad1_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsadmin_imp.log fromuser=cmsadmin touser=cmsadmin ignore=y
    moreover, when i run the following query in source database on 9i from where i took the export it does not return any rows meaning that data is fine in both parent and child tables:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);
    But, when i run the same above query in target table after importing the schema (usng above imp command) i get 14 distinct CTF_CERTIFICATION_ID meaning that they are not in parent table..
    Master Table --> CERTIFICATION
    PK column --> CTF_CERTIFICATION_ID
    Child Table --> RESPONSES
    FK column to above PK --> REP_CERTIFICATION_ID
    Hence issue still persists reg. parent key not found after importing..
    Thx

  • Experiences migrating from Sybase to Oracle

    Hi all,
    I have been asked to look into migrating a database from Sybase to Oracle.
    I know there is lots of info on Oracle's website, which I have downloaded, but I was just hoping for some info about some of your experiences regarding your processes. What are the gotchas. I suspect there will be a few.
    Anything that will help would be of interest.
    Many thanks
    VicC

    HI VicC,
    I work within the SQL Developer team and not a customer as such, but the follow maybe of use.
    SQL Developer is a migration aid, its not 100% magic bullet.
    SQL Developer does alot of the manual conversion for you quickly. But you may find Testing / Tuning and the application migration (if any) take you the most amount of time.
    SQL Developer aims to migrate you tables, indexes, and data without issue. But SQL Objects like Procedures, Triggers, Views and Functions conversion will likely require manual work on top of the automatic conversion provided by SQL Developer.
    SQL Developer does not yet automatically handle things like the tablespaces structure or the the logins. Although these things can be scripted and managed more easily within SQL Developer.
    I would recommend downloading and performing the migration from a non production instance ASAP.
    SQL Developer can perform a migration quickly and you will then be able to assess what SQL Developer can and cant do for you.
    I would recommend creating a migration repository on an Oracle database local (install Oracle XE if you dont have a local database) to the SQL Developer instance you are using.
    I would also recommend downloading SQL Developer 2.1
    Here are some key sites regarding Sybase migrations.
    http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html . This viewlet for SQL Server is the same process for Sybase.
    http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm . This Oracle By Example takes you step by step through a Sybase migration including some gotchas
    http://dermotoneill.blogspot.com/2008/06/sql-developer-migration-workbench-151_11.html . This is my blog outlining the steps to perform a Sybase migration.
    Regards,
    Dermot
    SQL Developer Team.

  • Error: ORA-02298 while creating a new app at DRM 11.1.2.3.300

    Hi All,
            There's something weird happening when I try to create a new DRM app at DRM Management Console. After provide all information about database connection and admin long on i am getting the following error during the repository creation :
    Creating Repository ...  Done.
    Creating Tables ...  Done.
    Creating Views ...  Done.
    Creating Stored Procedures ...  Done.
    Creating Indexes ...  Done.
    Creating Primary Keys ...  Done.
    Initializing schema with predefined data ...
    Database creation failed with this error: ORA-02298: cannot validate (EPM_DRM_DB.FK_CATUSER02) - parent keys not found
         It is a fresh install and I don't know why I am having this error.  Did someone had this issue too ? How to solve that ?
    Thanks in advance

    ...To whom it may concern.....
    This issue was related to privileges in database. I've generated the scripts and ran with system user and it worked.
    Case closed.

Maybe you are looking for

  • 2 ipods on one laptop....help

    Well I returned my shuffle for another like customer support said. In my second ipod. Almost got it working. Here is my question. My son uses an ipod mini on his laptop. I'm trying to get my shufflr working on it too. Now I get the message can't writ

  • Where can I get Workshop:

    Hi, I use change management software, and I used Workshop Compilers 98/12/15 C 5.0 to complie an extension to this CM software. After a recent upgrade, teh software vendor will only support issues when the extensions have been compiled with Sun WorkS

  • R/3 Source System Check in BW

    Hi , We had a BW client Copy from Production to QA and DEV system. Last week, When I am trying to restore source system connection to R/3 after client copy by creating PORT and PARTNERPROFILES in BW system. I could restore connection in BW Dev but no

  • Can any one tell me what is JSF and where  why is it used

    hi can any one give me a brief introduction on JSF and where and why is it used.. if there is any good tutorial/documentation pls give me the links sanjay

  • HT201260 I can't update my mac

    I can't update my mac to 10.7. I have the one from 2008 or 2009. Its a MacBook and when I go to about mac, it sais "Mac OS X" "10.6.8" then when I check for software update, it sais there is none, so I can't update to 1.7, which I need for a lot of A