Problem with the migration of key primary and foreign from SQL Server to Oracle

Hi people, I use SQL Developer to migrate Oracle to a SQL database, and I'm stuck with a few questions:

So far, the worst of them is the fact that I can not migrate the PKs and FKs. After having successfully captured the model DB in SQL Server and Oracle conversion, when the tool generates scripts, all ALTER TABLE queries that add pharmacokinetics and the FKs have their columns duplicate targets.

for example: when I'm trying to migrate a simple table that contains an Id (PK) and the columns name, the tool generates the following scripts:


PROMPT create Table TestTable...
CREATE TABLE TestTable)
ID NUMBER (10,0) NOT NULL,
Name VARCHAR2 NOT NULL
);

The PROMPT create constraint primary key on the table TestTable PK_TestTable...
ALTER TABLE TestTable
ADD CONSTRAINT PK_TestTable PRIMARY KEY
(
ID,
ID
)
ENABLE


Regarding the FKs, the tool duplicates the columns thus:

ALTER TABLE SomeTable
ADD CONSTRAINT FK_SomeTable_SomeTable2 FOREIGN KEY
(
SomeTable2Id,
SomeTable2Id
)
REFERENCES SomeTable2
(
ID,
ID
)
ENABLE
;

Does anyone have an idea on how to solve these problems? I would be very grateful for answers!

Hi Fernando,

I was unable to reproduce this problem. My primary / foreign keys when defined using unique columns.

The PROMPT create constraint primary key on the suppliers table PK_Suppliers...
ALTER TABLE suppliers
ADD CONSTRAINT PK_Suppliers PRIMARY KEY
(
Vendor No.
)
ENABLE
;

I tried a few things like
capturing twice and rename the two models of the same
Rename the converted templates
but without success.
I think that this problem occurs is in the capture phase or convert.

(1) you perform the capture online or offline?
(2) can provide you a DDL together for one of these tables and the indexes to see if I can reproduce?
(3) made of capture or convert fail or be again at any stage?

I all else fails I would attempt a capture and convert again using a new repository (create a new schema in Oracle and associate him the migration repository).

Kind regards
Dermot
SQL development team

Published by: Dermot ONeill on October 22, 2009 12:18

Tags: Database

Similar Questions

  • I have a problem with the drag (cursor snap) video and audio stuttering!

    I have an emachine windows vista home edition and have caused problems with the drag (cursor snap) video and audio stuttering.  my hardware configuration includes an HP printer and a video camera from Microsoft with pregnant beyond the keyboard, monitor, and system speakers routine.  Are there updates or the settings that I can apply to correct this problem?

    http://www.eMachines.com/support/drivers.html

    The latest drivers/software for your machine come directly from eMachines.

    Click the link above for them.

    See you soon.

    Mick Murphy - Microsoft partner

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

  • I have a problem with the previous results of LEDs and indicators of compensation

    I'm working on a proper VI for my building project, but there is a problem... The project here is to define the occurrence of the error and the error type to decide what actions are required to protect the circuit. This isn't a problem here...

    The problem is when I run the VI for the first time... Everything is good and I got what I need... But when I run it after that... The new results to come out with the results of the first round... So my problem is with the previous results of LEDs and indicators of compensation

    Hope my question is clear and not confusing

    Well, show us a code instead. How do you call the VI?

    Have you tried the option: "properties of the VI... run... clear the flags when called?

  • Problems with the windows player video media and internet explorer?

    Original title: Windows Media Player

    I have Windows Media Player 11. I can't play the videos with her. Videos MSN don't is not at all and YouTube loading starts playing and closes exactly 11seconds every time regardless of what particular video. I recently updated my IE 8 browser and tried to use Microsoft Fix it Center Online. It has fixed some problems but not this problem. Any ideas out there? Thanx.

    Hello

    (1) windows operating system you are using?

    (2) have you made changes before the start of this issue?

    (3) what is the exact error message or error code?

    (4) what type of video file you try to play?

    (5) in difficulty he makes you run?

    Step 1: Search for the codecs

    Codecs: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions

    For reference:

    Solve problems in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

    Resources for the resolution of problems in Windows Media Player

    http://support.Microsoft.com/kb/843509

    According to the problem with the playback of videos in Internet Explorer, try the steps in the following article

    The video problems when you use Internet Explorer

    http://support.Microsoft.com/kb/2532294

  • Migration from SQL Server to Oracle database

    I have 2 questions:

    1. we intend to convert our sql server databases oracle OLTP databases. I tried to use SQL Developer to migrate a database of small sql server to oracle (size 5 GB) database. It was fine. When I tried to migrate to a different database (size 90G), it takes too much time. The problem with sql developer is I can not pick and choose tables. 250 paintings, I need to migrate tables abt 80 (the size will be abt 50 G). What is everyone can share their experiences, as appropriate, converting databases of size average sql server for oracle databases? other options?

    2. I intend to convert the sql server ddl to oracle ddl. I have tested bcp out and use sql loader to import the data. Right now I am manually creating the oracle tables sql server tables. I use http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12069/apa.htm#BABCIIDI to convert the code. Are there other ways better to convert sql DDL DDL Oracle Server?

    Thanks in advance

    DDLS must be converted manually. Oracle is not SQL-Server.

    If for example, you have the option of partitioning, you should consider using the partitioning index and when it is possible. Not all tables must be hash tables. Do postpone you creation of segment or not? What type of tablespace? Set yourself free percentages and allows you to manage when the data block is on the free list and how much is reserved in the block of data to update rows in this block?

    There are many considerations to be taken with regard to the physical database design.

    Using BCP and SQL * Loader sound good. SQL * Loader is fast and scalable - use it to load up to 3.6 million lines every 60 seconds. Direct and parallel charges will give the best performance in this regard (assuming that the underlying table structure and use supports this approach).

  • How to migrate from SQL server to oracle 11g

    Hello
    I have a lot of tables in sql server, and I want to connect them in oracle

    Welcome to the forum,

    Hello
    To create a link Oracle with SQL Server follow these steps:
    1. install Oracle ODBC drivers on the server (your Oracle database local) who will have access to the remote SQL Server database by using the database link.

    2. configuration of the ODBC connection on the local Oracle using the Windows ODBC Data Source Administrator database

    3 test pilots to verify ODBC connectivity is made to the SQL Server database.

    4. make sure that your global_names parameter is set to False.

    5. configure Oracle heterogeneous services by creating an initodbc.ora file in the Oracle database.

    7 change the Listener.ora file.

    SID_NAME is the DSN for the remote database.
    ORACLE_HOME is the real path to the file at Oracle.
    PROGRAM says Oracle heterogeneous services.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = Cas30C) - enter the DSN on this line
    (ORACLE_HOME = c:\oracle10gdb)--Inscrivez your Oracle home
    (Program = hsodbc)) )

    8. change the Tnsnames.ora file. It's accessed by users Oracle database installation connect for ODBC drivers

    (DESCRIPTION =
    (ADDRESS_LIST =
    (Address = (PROTOCOL = TCP)
    (HOST =
    -(X server)
    (PORT = 1521))) -Enter the port on which the server x installing Oracle
    -is listening
    (CONNECT_DATA = (SID = Cas30c)) - enter the name of the DSN
    (HS = OK)-enter this value. He indicates to Oracle to use transfer services
    )

    9 recharge the listener on a local Oracle database

    10. create a link of database on the local Oracle installation that accesses the heterogeneous connection, which, in turn, connect to SQL Server.

    11 execute SQL Select Server from the Oracle installation using the database link

    Thank you
    BelMan :)

  • Problem with the Migration Wizard

    I'm moving to an iMac to a MacBook Pro. Both are updated to newer OSX. Both have firewalls off the coast. I have them connected with an Ethernet cable and followed the instructions from Apple to find out how. The MacBook sees the iMac, I choose that it, but I get a message saying that it cannot connect to the iMac and make sure both computers are on and connected to WiFi even, be they. On Migration Asst window on the iMac it does not show the new MacBook, just wheel spinning guard. What is the problem? OR does the same thing to back up from a Time Machine backup? If I have not excluded anything, a backup TimeMach will have my entire photo library, installed apps, just the same as if I migrated directly from the Mac? What should I do?

    Have you enabled the sharing of files on the iMac? Have you taken the course of MA for transfer via Ethernet?

    How to use the Migration Assistant to transfer files from another Mac

    Migration Assistant tips

    iMac (27 - in, Quad Core, late 2009) - migration to OS X v10.5 Leopard with wireless migration

  • Problems with the Thinkpad E560 keyboard/keypad and mouse mats

    I bought my Thinkpad around time of December-January, and since there has been some recurring problems.

    On the one hand, with the keyboard, sometimes some of the keys stick: say I'm going to hold the S key and then release, sometimes it keeps acting as if he is still in detention. In addition, the entire keypad has stopped working; at this time last week, it worked perfectly fine, I used to use the calculator, lock the buttons on the internet Explorer and file at the top of the key all the time, but one day they just stopped working. The numbers themselves, as well as the NumLock key and others, also do not work. I tried to reboot, perform analysis, installation of the drivers and all sorts, but without success.

    Finally, with the mouse pad, sometimes sections of it will stop working. As I type this, I can use the right side of my mousepad to move the mouse, but the left side does not work. Sometimes it will change, with the center of the mouse pad does not, while the very right and left mouse do. Usually reinstalling a driver or reboot the computer solves this problem, but it keeps happening and is very frustrating.

    This laptop is a few months old only, I'm not too happy with the problems that keep popping up, and I hope that someone can be useful!

    Thank you

    My mistake! I had completely missed the BIOS update, I installed and fixed this problem. I found it here, if anyone else has similar problems

    http://support.Lenovo.com/GB/en/products/laptops-and-netbooks/ThinkPad-edge-laptops/ThinkPad-E560/do...

  • a problem with the display of window margins and columns

    Hey there,

    I have a problem with my window margins and columns. Whenever I open it, it stuck in the upper right of my screen and I can't press OK.

    I tried to switch between workspaces, notice to update my program, restart the program, restart my computer, unplugged my second screen, rest again... nothing helps. Does anyone have an idea? It drives me crazy.

    Screen Shot 2016-01-20 at 3.04.30 PM.png

    Reset preferences also probably won't help, but worth to try: replace your preferences

    I'm a Windows user, but is there any command on Mac that allows you to move dialog boxes by using the arrow keys on the keyboard, as Windows users do?

  • Problem with the Macbook, it "goes off" and suddenly crashes

    I bought a new macbook pro 13 inch screen retina early 2015 (bought in November 2015) processor: 2.7 GHz Intel Core i5, memory: 8 GB 1867 MHz DDR3, graphics: Intel Graphics Iris 6100 1536 MB, Version OS X Yosemite 10.10.5. After some time of use (about 2 months), I've been havin this problem: occasional, the screen goes black (as if it was closed) and the trackpad blocks and don't click. When this occurs, the computer does not react with anything, and there is no way to turn and knit. Once it's "off" o whatever it is, can't do bu wait until it works again. When he started to arrive it is stayed "off" and blocked for a few minutes or a few hours, but now when it comes it stays like that for several days or even weeks. I already took it to be fixed and SEEN, and they told me that the 'motherboard' has been damaged, then they changed it for a new one, but in any case I still having the same problem. This same problem also happens to people I know who have the same macbook as I do. I don't know what is happening to this computer, can someone help me please? I really need this problem to be solved quickly.

    See which shows the Apple Hardware Test.

  • Problems with the Wi - Fi (Airport Extreme and At & t Uverse questions)

    Hello

    We used an Airport Extreme with AT & T Uverse to our network wireless successfully since 2010. Recently Uverse sent me a new modem, and our wireless service has taken a turn for the worse. The network has two different wireless Internet for our House. Please let know us how we can solve this problem. We use a Mac, mac laptop 2, iPad 2 & all Iphones 2 are up-to-date with the latest version of the software.

    Mike

    The AT & T device is a modem/router that provides a signal of wireless network with a name something like ATTa1b3c3d, for example. Your AirPort Extreme also provides a wireless signal by using a wireless network name that you have assigned to the device.

    Thus, it would be normal for you to be able to 'see' the two wireless networks.

    If you don't want to not use the ATT Wireless, just ignore it... or... If you think that it is at the origin of the conflict with the wireless AirPort Extreme, it is possible to turn off wireless on ATT modem/router, so that you only 'sees' the AirPort Extreme network.

    AT & T support can help you in the task of turning off the wireless... or... If you have the number of brand and practical model of modem/router, AT & T, we can try to find an online configuration guide which could provide instructions for this task.

    If you encounter a different kind of problem, please provide details on the problem.

  • Problems with the compatibility of Lightroom 6CC and ElCapitan on older iMacs

    When I upgraded to ElCapitan, Lightroom CC seems to continue to work without problem.  Then I did the first update and since then, I have not been able to use development module in the program.  I posted these problems on the Lightroom forums (see link below), but it is clearly an Apple problem, is not a problem of Lightroom. Lightroom people think it's the graphics processor in the older iMac which poses problem, but as I said above, it happened on the first update, not on the initial installation.  There is now another update on hold, and I fear that other programs will no longer work.  Apple made contact with Lightroom on those very real inconsistencies and what is their consensus?  This is a serious problem for a person using an older iMac and photo editing using Adoble products.  For a fuller discussion, please see the link below for the Lightroom Forum (information was also posted on the Forum from Adobe).

    Information on my version of Lightroom and my computer are in posts on the forum.

    pgrade-Lightroom-CC-2015-3-Camera-Raw-9-http://www.lightroomforums.NET/showthread.php?27159-develop-module-problems-in-u...

    Thanks to anyone who can help solve this problem.

    Should I worry about several incompatibilities with the new pending upgrade to El Capitan?

    FWIW, iMac 24 "early 2009 may have at least 512 KB of VRAM (typical models

    only had 256 K).  The specification of Lightroom CC, minimum is 1 GB of VRAM.

    Operation on this machine was borderline at best and probably just lucky it worked at all.

    In addition, a huge impact on the works of Lightroom is the amount of RAM installed.  With

    El Capitan installed, try to run Lightroom CC with anything less than 8 GB will be

    issue (despite what can say Adobe).

  • Having a problem with the message saying (not answer) and computor lock, answers please

    Problem with computor saying "not responding" and lock, any ideas please.

    Problem with computor saying "not responding" and lock, any ideas please.

    Provide you any other information.  You have to give to get when it comes to troubleshooting.

    Given that don't even give you an operating system - replace the defective hardware.  ;-)

    What specific operating system you use?  Include the service pack level and architecture (SP1, SP2, SP3... (32 - bit or 64 - bit?)

    I'm guessing that has happened since the first day - of a lifetime of computers - what happened between he works and does not?  New software installed?  All new hardware installed or attached?

    Did you * nothing * to try to remedy the situation?  If so - what?

    Be specific.  Ignore the cameras, microphones and remote viewing software, we have installed in your home, clothing and computer.  Pretend that we do not understand what you do and save it for future reference.  * smile * (should be easy - we don't have).

    Stuff in general, you could do (as long as you use a Microsoft Windows Operating System after the year 2000...)

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Update your drivers for hardware devices from the manufacturer themselves - do not use the built-in features of Windows. If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • Problems with the installation of windows updates and reboot the computer

    When you try to restart the computer it freezes on "installation updates.do not turn off computer.". Currently have 20 updates which will not be installed. computer says CCC.exe prevents the computer from restarting and getting error code 80240016 when you try to install the updates

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/957307

    Error message when you try to install the updates on the Windows Update Web site or the Microsoft Update Web site: "0 x 80240016.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the above does not resolve the problem:

    Windows Update Forum:

    It's updated operating system Vista, upgraded installation and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost, are kindly Error Codes and exactly what happens when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Change in the complexity of password.

    We must change the password complexity in windows server 2003? We do not want to include special characters.. pelase help urgent

  • Windows XP backup contains a media error

    I have about a hundred users with Windows XP Professional SP3.  They all have a scheduled task to run Windows Backup to various network drives to different times.  Usually, it works very well... However, from time to time, Windows backup starts and t

  • G550 power management driver

    Hello Somewhere in my travels I have uninstalled the Lenovo power management driver, preferring to rely on the installation of clean energy from Win7. But now I think that I need this driver in order to activate Bluetooth. A research on the Lenovo si

  • 14 t - k100 replaceable graphics?

    I bought this laptop configured with Intel HD graphics base.  Is it possible to update the graphics with a discreet card or the motherboard doesn't support? Here is my configuration:

  • -Renewal-license module CSC SSM

    Recently, my existing CSC SSM module license expired & I need to know the necessary steps & product ID to renew expired CSC SSM license module hosted on ASA-SSM-20 device: Tip, The system was laid off with Base & more license, 500 users.