Error mapping, OGG from SQL 2008 to Oracle 11g

Hi Experts
Please I hoppe you can help me, I am using OGG to replicate from SQL 2008 to Oracle 11g R2, I can insert rows and replicate without problems, but when I update or delete on the Source the replicat stop working.
This is the mesage:
2012-06-11 09:51:57 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, msrep.prm: Error mapping from FACTURA.EMP to GOLDENGATE.EMP.
2012-06-11 09:51:57 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, msrep.prm: PROCESS ABENDING.
--- Discard FIle
Key column FIRST_NAME (1) is missing from delete on table GOLDENGATE.EMP
Key column LAST_NAME (2) is missing from delete on table GOLDENGATE.EMP
Missing 2 key columns in delete for table GOLDENGATE.EMP.
Current time: 2012-06-11 09:51:57
Discarded record from action ABEND on error 0
Aborting transaction on /u01/app/goldenGate/dirdat/ms beginning at seqno 0 rba 13729
error at seqno 0 rba 13729
Problem replicating FACTURA.EMP to GOLDENGATE.EMP
Mapping problem with delete record (target format)...
ID = 121
Process Abending : 2012-06-11 09:51:57
------ SOURCE TABLE
create table [factura].[emp] (
[id] [smallint] not null,
[first_name] varchar(50) not null,
[last_name] varchar(50) not null,
constraint [emp_pk] primary key clustered (
[id] asc
) with (pad_index = off, statistics_norecompute=off, ignore_dup_key=off, allow_row_locks=on, allow_page_locks=on) on [primary]
) on [primary]
------ TARGET TABLE
CREATE TABLE GOLDENGATE.EMP
ID NUMBER,
FIRST_NAME VARCHAR2(50 BYTE),
LAST_NAME VARCHAR2(50 BYTE)
Thank you
J.A.

Hi
I altered the table in Oracle, I add the primary key:
alter table emp add constraint
pk_emp primary key (ID );
Now GG replicate insert, delete and update.
J.A.

Similar Messages

  • How do I migrate views from MS SQL 2008 to Oracle 11g through SQL Developer

    Is there any way to migrate the views from MS SQL 2008 to Oracle 11g through SQL Developer? Please give me some detail steps. Thanks for your help.
    Kevin

    Hi Kevin,
    user13531850 wrote:
    Hi Turloch,
    When I use migrate to oracle, I got a problem, the migrate tool create a new schema for me in my case (AZTECA_KSMMS), it migrates all the stuffs under that schema (AZTECA_KSMMS). However my application need the all the Oracle data under schema AZTECA instead of AZTECA_KSMMS. Is there any way to specify specific schema (AZTECA) for target oracle database? Schema remapping is available:
    First Capture (separately) then during right click convert on the captured model there is a Specify the conversion options with a Object Naming tab where the schema (and other) name changes are editable.
    I have not used this recently.
    Also during the migration process, when I choose repository, there is a check box for truncate to reset repository to empty state, Do I need to check that truncate Check Box so the repository will be cleared from last migration?The repository can hold multple migration attempts. Check truncate to get rid of previous attempts information. This cleans up the repository - not the destination database.
    There are also online database and offline database options during the migration process, what are the difference between these two choices? After I migrated to Oracle, all my views has a red cross icon next to it. Does that mean the view migration is failed or not? Please give me your comments. Thanks for your help.offline: for big (amount of data) databases with simple data types,
    uses bcp + files + scripts + sqlldr.
    online: for small (amount of data) databases (easier),
    uses (Java) jdbc.
    The view is likely to be broken - recompiling it may help.
    The Oracle schema is created using a .sql file - see under generated in the directory you gave originally in the wizard. There is a .out file that contains the result of running this script including any errors. During conversion there are also likely to be warnings displayed on the UI.
    There may be a single issue that is causing multiple issues - if viewa depends on functionb, and functionb is broken, viewa will also fail.
    >
    Kevin-Turloch
    SQLDeveloper Team

  • No data after migration from MSSQL 2008 to Oracle 11g

    Hi
    After looong way to migrate database from MSSQL 08 to Oracle 11g (lots of topic on oracle forum was very helpfull), I finally wanted to migrate my data. So, i did like in this http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm tutorial, used oracle_ctl , then I got back some data :
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 22:37:29 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Trigger altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:29 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Pracownicy.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Dokumenty.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.sysdiagrams.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Spis.log)
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> 2
    PL/SQL procedure successfully completed.
    SQL> 2
    PL/SQL procedure successfully completed.
    SQL> SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Trigger altered.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Ok, I see there are problems with save logs, but ok, I'm moving on to sqldeveloper - open table in migrated database, pressing "Data", and unfortunatly, there were no data. I tryed few times, checked permission for database user, but still the same.
    Anyone have idea, whats wrong could be with it?

    Hi
    After looong way to migrate database from MSSQL 08 to Oracle 11g (lots of topic on oracle forum was very helpfull), I finally wanted to migrate my data. So, i did like in this http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm tutorial, used oracle_ctl , then I got back some data :
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 22:37:29 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Trigger altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:29 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Pracownicy.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Dokumenty.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.sysdiagrams.log)
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-522: lfiopn failed for file (log\dbo_zsbddwa.Spis.log)
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 5 22:37:30 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> 2
    PL/SQL procedure successfully completed.
    SQL> 2
    PL/SQL procedure successfully completed.
    SQL> SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Table altered.
    SQL>
    Trigger altered.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Ok, I see there are problems with save logs, but ok, I'm moving on to sqldeveloper - open table in migrated database, pressing "Data", and unfortunatly, there were no data. I tryed few times, checked permission for database user, but still the same.
    Anyone have idea, whats wrong could be with it?

  • Is DDL is suported in ogg from sqlserver 2005  to oracle 11g xe

    Hi !
    i want to use ogg to trasfer all tables and sp from sql server 2005 to oracle 11g xe. (using windows 2008,ogg112101_ggs_Windows_x86_ora11g_32bit.zip)
    is it suported? becasue i read "Extraction or replication of DDL (data definition language) operations.Non-supported objects and operations for SQL Server" in
    from SQL Server Installation and Setup Guide
    11g Release 2 Patch Set 1 (11.2.1.0.1)
    yours sincerely

    Does that mean even i cant migragte MSSQL stored procedure to oracle 11g xe also?Correct. You can't do that with GoldenGate. However, as Steve mentioned, you should look into SQL Developer migration capabilities (formally Migration Workbench). It can convert some T-SQL to PL/SQL but you'll need to do some (probably a lot) of custom code changes. Porting application logic from one language to another is basically a holy grail for IT systems. OGG will convert datatypes on the fly but it will never port application logic on the fly.
    Good luck,
    -joe

  • New To Oracle.. Needs Help:: Conversion from SQL Server to Oracle 11g

    I am new to Oracle 11g and badly need the conversion of SQL Server Functions to Oracle.. Sample Pasted Code not working .. end with error.. pls help
    Create Table TempT (ID1 Varchar (10),
    ID2 Varchar (10)
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
    TYPE RCT1 IS REF CURSOR;
    TRANCOUNT INTEGER := 0;
    IDENTITY INTEGER;
    END;
    CREATE OR REPLACE FUNCTION fTempT
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT TT.*
    FROM TempT TT
    WHERE (fTempT.i = ''
    OR TT.ID1 = fTempT.i)
    RETURN REFCURSOR;
    END;
    CREATE OR REPLACE FUNCTION fTempTF
    i IN VARCHAR2 DEFAULT NULL
    RETURN GLOBALPKG.RCT1
    IS
    REFCURSOR GLOBALPKG.RCT1;
    BEGIN
    OPEN REFCURSOR FOR
    SELECT *
    FROM TABLE(fTempT(i))
    RETURN REFCURSOR;
    END;
    LAST FUNCTION ENDs WITH ERROR
    Error(13,7): PL/SQL: ORA-22905: cannot access rows from a non-nested table item

    2. The major purpose is to get a simplest way to create a parameterized function who can return a table like output. 2nd function has no use instead i was testing the result of First Function like thisIf you just want to select from a select, you should use a view not a function.
    1. which program is more help ful for writing and executing queries bcoz after using Query Analyzer of Microsoft It seems difficult to work on SQL Developer.
    sqlplus? If you are having difficulty learning new tools because of an old one you used, probably best to forget the old one and concentrate on learning the new one because it will be different. This goes for the database itself also.
    2. Can DMLs be used within a Function.Yes, you just can't execute the function in another SQL statement if it modifies data and this is a good thing.
    3. Can temporary tables be used within a function.Unfortunately yes, but they shouldn't be unless you are in a slowest application competition.
    5. Each Function which is a Table Function must be accompanied with Type Definitions?? its a bit longer way of doing the things than SQL ServerThat is why it is better to use views instead, is there any reason you want a select that you can select from inside a function?
    SQL Server for last 9 years thats why i refer this toolThat is not in itself a problem, if you try and do what you did in SQLServer in Oracle, that will be a problem though.

  • Error in Migration from SQL Server to Oracle latest version

    I am following the steps in the notes
    http://www.oracle.com/technology/tech/migration/workbench/files/omwb_getstarted.html#capt
    I was doing great (connected and captured SQL Server db and Oracle etc) till I ran the Generation Script which is giving me errors since I do not have DBO/admin permissions to create users.
    I wish to create the database within an existing user's database schema - that is in my schema since I do not have privileges to create users.
    What lines do I change in the script to make this happen.
    PLEASE HELP

    You should remove the create user ..., grant ... and connect ... statements from the script. All you should keep are the DDLs for creating the objects: tables, views, triggers, sequences, SPs ...
    But why don't you download Oracle Database Express Edition (http://www.oracle.com/technology/software/products/database/xe/index.html) and play with it. You can install it easily on your machine and then you can create as many users/schemas as you want as you are the DBA :).

  • How to Migrate from SQL server to oracle 11g

    Hi,
    i have many tables in sql server and i want to link them in oracle

    Welcome to the forum,
    Hi,
    To link Oracle with SQL Server follow this steps:
    1-Install Oracle ODBC drivers on the server (your local Oracle database) that will access the remote SQL Server database using the database link.
    2. Setup the ODBC connection on the local Oracle database using the Windows ODBC Data Source Administrator
    3. Test the ODBC drivers to ensure that connectivity is made to the SQL Server database.
    4. Ensure that your global_names parameter is set to False.
    5. Configure the Oracle Heterogeneous services by creating an initodbc.ora file within the Oracle database.
    7. Modify the Listener.ora file.
    SID_NAME is the DSN for the remote database.
    ORACLE_HOME is the actual Oracle home file path.
    PROGRAM tells Oracle to use heterogeneous services.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=Cas30C) -- Enter the DSN on this line
    (ORACLE_HOME = c:\oracle10gdb) -- Enter your Oracle home on this line
    (PROGRAM = hsodbc) ) )
    8. Modify the Tnsnames.ora file. This is the Oracle database installation accessed by the users to connect to the ODBC drivers
    (DESCRIPTION=
    (ADDRESS_LIST=
    (Address=(PROTOCOL=TCP)
    (HOST=
    -- (Server x)
    (PORT=1521))) -- Enter the port on which the server x Oracle installation
    -- is listening
    (CONNECT_DATA=(SID=Cas30c)) - Enter the DSN name
    (HS=OK) -- Enter this value. It tells Oracle to use hetergeneous services
    9. Reload the listener on local Oracle database
    10. Create a database link on the local Oracle installation that accesses the heterogeneous connection, which, in turn, connect to SQL Server.
    11. Run a SQL Server Select statement from the Oracle installation using the database link
    Thanks
    BelMan :)

  • How to extract incremental data from SQL server to oracle tables in ODI

    HI All,
    In my ODI sql server is install.My Source is in SQL server and my target is in Oracle.
    I need to create a interface mapping where i need to extract incremental data from sql server to oracle.
    There is a datetime(with Timestamp) field in sql server .I need to pull incremental data based on dateime.
    Example = tablename.DateTime > (select '1-jan-11' from dual) .....i am using this query but its not woking.the error is Invalid object name"dual".
    We are not going to use Incremental in IKM and LKM.
    Request you to please provide any suggestion ASAP.
    Thanks,
    Lony

    You can do that via Variable.
    In the interface mapping create a filter on Tablename.DateTime
    and put the condition like this
    Tablename.DateTime BETWEEN #VAR and in the variable use this query in refreshing tab with oracle schema
    SELECT max(start_time)||' AND '||max(END_TIME)+1 from audit_table where ETL_JOB_CODE = '20'In the package call the above variable in refresh mode and then interface.
    This way you will pass from the query between and condition date and pass to interface so that SQL Server fetches the data between those too range.
    Note:- You might need to tweak the date format so that SQL Server can understand.
    Hope this helps.

  • Migrating a table with BLOB field from SQL-Server to Oracle.

    Hi All,
    I'm trying to create a Class to migrate data from SQL-Server to Oracle, this table has a BLOB field.
    The Code:
    package br.com.infox;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class Migrador {
         public static void main(String[] args){
              try {
                   // Conex�o com o SQL Server
                   Class.forName("net.sourceforge.jtds.jdbc.Driver");
                   Connection conSQL = DriverManager.getConnection ("jdbc:jtds:sqlserver://10.10.2.9/protocolo","prot","suinf2002");
                   // Conex�o com o Oracle
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection conORA = DriverManager.getConnection ("jdbc:oracle:thin:@10.10.2.2:1521:des","protocolo","protocolo");
                   Statement stSQL = conSQL.createStatement();
                   String querySQL = "SELECT * FROM DOC_INCORPORADO";
                   ResultSet rsSQL = stSQL.executeQuery(querySQL);
                   String queryORA = "INSERT INTO PROT_VITALICIAMENTO (NU_PROCESSO, ANO_PROCESSO, CD_USUARIO, DT_ENVIO," +
                             "DE_COMPLEMENTO, NM_ARQUIVO, ARQUIVO, NU_SEQ, CD_TIPO_ARQUIVO, MES, ANO) VALUES (?,?,?,?,?,?,?,?,?,?,?)";
                   PreparedStatement psORA = conORA.prepareStatement(queryORA);
                   while (rsSQL.next()){
                        System.out.println("Linha: " + rsSQL.getRow());
                        psORA.setInt(1, rsSQL.getInt("nu_processo"));
                        psORA.setInt(2, rsSQL.getInt("ano_processo"));
                        psORA.setInt(3, rsSQL.getInt("cd_usuario"));
                        psORA.setDate(4, rsSQL.getDate("dt_incorporacao"));
                        psORA.setString(5, rsSQL.getString("complemento"));
                        psORA.setString(6, rsSQL.getString("nm_arquivo"));
                        psORA.setBinaryStream(7, rsSQL.getBinaryStream("arquivo"), (int)rsSQL.getBlob("arquivo").length());
                        psORA.setInt(8, rsSQL.getInt("num_seq"));
                        psORA.setInt(9, rsSQL.getInt("cd_tipo_arquivo"));
                        psORA.setInt(10, rsSQL.getInt("mes"));
                        psORA.setInt(11, rsSQL.getInt("ano"));
                        psORA.executeUpdate();
                   stSQL.close();
                   psORA.close();
                   conORA.close();
                   conSQL.close();
              } catch (Exception e){
                   e.printStackTrace();
    The ERROR:
    java.sql.SQLException: Exce��o de E/S: Connection reset
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2191)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2064)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2989)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at br.com.infox.Migrador.main(Migrador.java:41)
    What's the problem of these Class?
    Thank's.

    Depending on the version of the database you have, you could use transportable tablespaces.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96524/c04space.htm#9370

  • Related to migration of db from sql server to oracle 11 g

    We're trying to migrate a Sql server managment studio database to Oracle 11g using SQL Developer 4.0. We can successfully connect to both Sql server managment studion 8.0 and Oracle 11g using the tool, as well as click through the Migration Wizard and start the migration.
    This opens the Database Migration dialog box, which indicates the capture process starts normally. we get the following error:
    ora :01440 : can not insert null into migrlog (id column) ,
    \and then after some time , i get an error that migration failed
    i am not getting the reason,I thing it may be due to reason that , I have table's column in my source db with more than 30 character.
    If i am migrating one by one table . then it is not giving any error, and identifier name is getting shrink in 30 character. but i am not getting the view , stored procedure , indexes , and others
    then what is the solution  for that, somebody pls suggest any help?????????????               

    Pl do not post duplicates - related to migration of db from sql server to oracle 11 g
    Continue the discussion in your original thread
    The error message is explicitly clear
    ora :01440 : can not insert null into migrlog (id column)
    Your process is trying to insert a NULL value into the ID column, which presumably cannot be NULL

  • Error Intall RWD Uperform 4.3 on Windows 2008 with Oracle 11G

    Hi,
    I need install RWD Uperform 4.3 on Windows 2008 with Oracle 11G.
    When tried install Uperform 4.3 occurs the next error:
    Product: RWD uPerform Server -- This Release requires Oracle 11.2 R2 ODP Client to be Installed.
    If you are not using Oracle, please use the regular 4.30.0 release.
    If you are using Oracle, please install ODP.NET and then re-run the Setup. Setup will be aborted now.
    I installed the ODP.NET whit the version 11.2.0.2.
    But the errors still occur.
    Thanks.
    Marco Kolombesky

    In the end I solved my problem.
    But I installed RWD uperform 4.4 (not 4.3).
    But I think that the problem was that when I installed uperform 4.3 I didn't run this command at DB level on my SQL Server datadabe:
    ALTER DATABASE AdventureWorks2008R2
        SET READ_COMMITTED_SNAPSHOT ON;
    GO
    Regards
    Matteo Stocco

  • Migrating from SQL Server to Oracle 8i

    Hi all :),
    I am trying to migrate from SQL Server to Oracle 9i.
    I am using the Migration Workbench.
    Everything goes fine during Capturing phase, but while
    creating Oracle model the Workbench just hangs at
    "Mapping Tablespaces" for over three hours.
    (not exactly hangs in the sense that it responds to mouse
    events and I can abort the ongoing activity ...)
    What should I do ? Should I let it go on and see what
    happens.
    I follow each and every step as mentioned in the
    documentation ... but obviously I am doing something
    wrong. Any pointers ???
    However ... if I try to migrate to Personal Oracle 8 ...
    the migration goes fine from start to end ... just that
    the SQL Server triggers aren't successfully migrated.

    You may want to start by downloading the Oracle Migration Workbench. That generally does a reasonable job in moving the tables, stored procedures, etc. from SQL Server to Oracle. If your VB code is database agnostic, it should continue to work without any more intervention. Realistically, however, you'll rpobably have to at least tweak a few things that don't work the same way in the old ODBC/ OLE DB provider and the new one.
    The hard part of migrations like this is that you may need to revisit some of your architectural decisions if you want Oracle to perform well. There are plenty of things that one does in SQL Server (i.e. frequent commits) to improve performance that have the opposite affect in Oracle. Identifying and fixing these sorts of things tends to be the largest part of a migration like this. Unfortunately, I don't know of a resource that talks addresses all the possible gotchas here.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • Migrating from SQL Server to ORACLE using SqlDeveloper tool - IN OUT CURSOR

    Hi All,
    I am new to Oracle. I am asked to migrate a database from SQL Server to ORACLE. I have migrated all the SP's and functions except 2. I am facing the following problem. Pls do reply me if anyone knows the solution since I am struggling for the past 2 days for these two functions
    the function is as follows in ORACLE.
    create or replace
    FUNCTION ABC
    AA IN VARCHAR2,
    BB IN DATE,
    CV_1 IN OUT SYS_REFCURSOR
    When I tried to call from some other function its showing me an error.
    I called from another function as follows:
    ABC(CC,DD,CV_2);
    Shall I know how to call the above function? I feel someone has faced the same problem before. Thanks in advance for the help.
    Thanks,
    Srinivasan.T

    Its returing a number only. I am just giving part of the function.
    create or replace
    FUNCTION ABC
    AA IN VARCHAR2,
    DD IN DATE,
    CV_1 IN OUT SYS_REFCURSOR
    RETURN NUMBER
    AS
    When I call the function which has a IN OUT SYS_REFCURSOR as a parameter I am facing this problem.
    I need to know how to call a function which has the IN OUT SYS_REFCURSOR parameter.
    Thanks,
    Srinivasan.T

  • SQL Server 2008 to Oracle 11G

    Hi,
    I have few scripts which needs to be migrated from microsoft SQL server 2008 to Oracle 11G.
    Can some one let me know can this be done by Oracle SQL developer or any other way ?
    I am new to SQL server 2008 & havent worked on that.
    Thanks in advance.

    Hello,
    in SQL Developer, click on Help - Table of Contents.
    Then: SQL Developer: Migrating Third-Party Databases, then SQL Developer User Interface for Migration, then Using the Translation Scratch Editor. Read the description of the Translation Scratch Editor and try it out.
    Regards
    Wolfgang

  • Slow Speed While fetching data from SQL 2008 using DoQuery.

    Hello,
    I am working for an AddOn and tried to use DoQuery for fetching data from SQL 2008 in C#.
    There are around 148 records which full fill this query condition but it takes much time to fetch the data.
    I wanna know that is there any problem in this code by which my application is getting slower.
    I used break Points and checked it, I founds that while connecting to the server it is taking time.
    Code:
    // Get an initialized SBObob object
    oSBObob = (SAPbobsCOM.SBObob)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
    //// Get an initialized Recordset object
    oRecordset = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    string sqlstring = "select DocEntry,ItemCode From OWOR  where OWOR.Status='R' and DocEntry not in ( Select distinct(BaseRef) from IGE1 where IGE1.BaseRef = OWOR.DocEntry)";
    oRecordset.DoQuery(sqlstring);
    var ProductList = new BindingList<KeyValuePair<string, string>>();
    ProductList.Add(new KeyValuePair<string, string>("", "---Please Select---"));
    while (!(oRecordset.EoF))
    ProductList.Add(new KeyValuePair<string, string>(oRecordset.Fields.Item(0).Value.ToString(), oRecordset.Fields.Item(0).Value.ToString() + " ( " + oRecordset.Fields.Item(1).Value.ToString() + " ) "));
    oRecordset.MoveNext();
    cmbProductionOrder.ValueMember = "Key";
    cmbProductionOrder.DisplayMember = "Value";
    Thanks and Regards,
    Ravi Sharma

    Hi Ravi,
    your code and query look correct. But can you ellaborate a little bit.
    It seems to be a DI API program ( no UI API ) ?
    When you say "I founds that while connecting to the server it is taking time." do you mean the recordset query or the DI API connection to SBO ? The later would be "normal" since the connection can take up to 30 seconds.
    To get data it is usually better to use direct SQL connections.
    regards,
    Maik

Maybe you are looking for

  • Problems with Boot Camp, OSX Lion Server 10.7.3, and Windows 7

    My new Mac Mini Server is running OSX Lion Server 10.7.3. I want to install Windows 7 as a dual boot. I start up Boot Camp and use an ISO image to create a USB boot disk. I don't seem to be able to use the DVD to install, so I use an ISO image on dis

  • Need Help on blue screen

    there, Please Dear I have a problem in my laptop that really bothering me and I can't find a true solution, and also can't risk to try a friends suggestions, so may you please help me and here's problem

  • Missing czech character

    Hi, I have problem with my adobe interactive form placed in WD4A. In all my texts some characters( č Č, ů, ě...) are missing, but ohers (á,í..) are displayed correctly. In preview in SE80 (in integrated livecycle designer), reader shows all character

  • Missing Thumbnails and Missing Photos

    **** iLife!! I updated iphoto to 6.02, and now I'm getting blank spaces for a bunch of photos in the thumbnail section, and I'm getting the empty grey square with the exclamation point in regular sized photos. Everything was just fine before the upgr

  • Need information/advice on dataware house compression on 11g

    We have an initiative to compress our ever growing datawarehouse. OS level is AIX, db version is 11gr1, and going to go to 11gr2. We would like to know where I can get a link regarding what is best to apply regrading compression in datawarehouse db.