Performance over DG from mysql to oracle very slow for inserts

configured het services over gateway from oracle 11.2.0.4 to mysql 5.6
Have a table I want to pull over into oracle.  1000 rows.
On mysql : create view vw_mysql_t1 as select columns from my_mysql_table.    
On Oracle:  create view vw_ora as select columns from  vw_mysql_t1@mysql_link
On oracle: select * from vw_ora data returns data in 3-4 seconds. 
however, try an insert to get the data over
     insert into a_table_on_oracle
         (select * from vw_ora)
takes 11-12 minutes.     
create table as or insert into same performance.  Tried just inserting 1 row  and same performance 11-12 minutes.  any ideas?

cant seem to get the trace file to generate.  any ideas, I have the config as below, the gateway is working, I can select data no problem from table@dcv   , just performance is terrible
logfile not in $ORACLE_HOME/hs/log
or
/tmp
this is my tns
dcv =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = <IP of server>)(PORT = 1521))
    (CONNECT_DATA =
      (SID = dcv)
    (HS = OK)
this is my init file
# HS init parameters
HS_FDS_CONNECT_INFO=dcv
HS_FDS_TRACE_LEVEL=255
HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5a.so
HS_RPC_FETCH_SIZE=50000               
HS_ROWID_CACHE_SIZE=10000
#HS_LONG_PIECE_TRANSFER_SIZE=1024
HS_LONG_PIECE_TRANSFER_SIZE=65536
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P15    ## The Oracle RDBMS is using a Unicode characterset [ID 756186.1]
HS_FDS_FETCH_ROWS=1                           ## This is select int datatype
HS_FDS_SQLLEN_INTERPRETATION=32               ## This is to select NULL values via DB Link [ID 554409.1]
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
more /etc/odbc.ini
[dcv]
Driver       = /usr/lib64/libmyodbc5a.so
SERVER       = <IP of mysql server>
PORT         = 3306
USER         = un
Password     = pw
Database     = dcv
OPTION       = 3
CHARSET      = latin1
[ODBC]
TRACE        = ON     # also tried 0 and 1 and DEBUG and USER
TraceFile    = /tmp/odbc.trace
10:11:19 SQL> select count(*) from "vw_t1"@dcv;
  COUNT(*)
     24794
Elapsed: 00:00:00.23
10:11:45 SQL>
10:11:57 SQL>
10:11:57 SQL>
10:11:57 SQL>
10:11:57 SQL>
10:11:58 SQL> create table backup_data.delete_me as
10:11:59   2  select   * from
10:11:59   3        "vw_t1"@dcv;
Table created.
Elapsed: 00:09:47.07
10:21:49 SQL>
Theres around 130 columns, varchars, numerics and floats.  Is there a conversion going on that would take that long?

Similar Messages

  • Migrating from MySQL to Oracle 11g

    can u tell me the steps to migrating database from MySQL to Oracle using SQL Developer?
    I have installed Oracle 11g(11.1.0.6.0) in server and SQl Developer in my local system.
    I connected to MySQL and Oracle in SQL Developer and tried to MIgrate everything in MySQL to Oracle using Quick Migrate option.
    it took one and half day but didn't work at last...
    is there any pre tasks that i need to do before migrating to oracle from MySQL?
    and also when i export the MySQL data to Oracle using SQL Developer,it is giving data type mismatch errors like (date, boolean etc...).
    please give a reply what i need to do and any refferences also very much appreciated.

    hi Turloch ,
    I followed the steps mentioned above.
    When I right click my MySQL server db Connection and click "Capture MySQL server", it just shows a dialog with "Close" enabled.
    after clicking the close button, it gives following error messages.
    oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
    the same error is coming no of times.
    Kindly help me in this regard.

  • DB Migration from MYSQL to ORACLE Using Offline Capture

    Hi
    Am doing a database migration from MySQL to Oracle using SQL Developer (version 2.1.1.64). So far, I've successfully captured the MySQL database and converted it to the Oracle Model. However, when generating offline scripts to create the converted model schema into Oracle DDL scripts it managed to generate SQL to create: 1) User 2) Sequences 3) Tables 4) Triggers and 5) constraints.
    It has created the SQL to add the primary key constraints and index constraints. Although it did the foreign key constraints in the SQL, the foreign key constraints seems to have missed the cascading options for the foreign key constraint. I.e. theres no reference of whether the foreign key constraint will restrict on delete or cascade etc.
    We have a foreign keys in the MySql database that have different cascading options and these have not being ported over into the migration SQL. Therefore, all the foreign keys generated in the SQL by default are cascade to restrict on delete.
    Does 'Generate Oracle DDL' not take into account a foreign key's on delete cascading option?
    Any help or information would be greatly appreciated.
    Thanks

    Hello,
    that reminded me for the following thread:
    Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem
    That is a similar issue, isn't it?
    I opened a bug for that, and it will be fixed in SQL Developer 3.1 (not in any 3.0 Early Adopter version). If you hit the same issue, there is no other way then using the workaround as used in the mentioned thread.
    Regards
    Wolfgang

  • Translating SQL from MYSQL to ORACLE with more than one outer join.

    I will translate the following sqlquery from MYSQL to ORACLE:
    SELECT ticket.ticket_no,ticket.ticket_dato,ticket.ticket_subject,ticket.customer_id,customer_name,ticket.ticket_own_read, ticket.department_id, department.department_name, priority_name, tickstat_name, tickettype_name
    FROM customer, ticket left join department
    on ticket.department_id = department.department_id left join priority on ticket.priority_id = priority.priority_id
    left join ticketstatus on ticket.tickstat_id = ticketstatus.tickstat_id
    left join tickettype on ticket.tickettype_id = tickettype.tickettype_id
    where ticket.customer_id = customer.customer_id and customer.owner_id =
    #session.owner_id#
    I have tried in ORACLE with:
    SELECT ticket.ticket_no,ticket.ticket_dato,ticket.ticket_subject,ticket.customer_id,customer_name,ticket.ticket_own_read, ticket.department_id, department.department_name, priority_name, tickstat_name, tickettype_name
    FROM customer, ticket ,department, priority, ticketstatus, tickettype
    where
    ticket.department_id(+) = department.department_id and
    ticket.priority_id(+) = priority.priority_id and
    ticket.tickstat_id(+) = ticketstatus.tickstat_id and
    ticket.tickettype_id(+) = tickettype.tickettype_id and
    ticket.customer_id = customer.customer_id and customer.owner_id = #session.owner_id#
    I get an error:
    MERANT][ODBC Oracle driver][Oracle]ORA-01417: a table may be outer joined to at most one other table
    How do I translate the code to ORACLE?

    I think that your syntax is wrong. The (+) operator should be on the right hand table column, not the left hand table column if you want all rows on the left hand table column. If this syntax is really what you want, you can create underlying views for each join condiction.

  • Best practice for loading from mysql into oracle?

    Hi!
    We're planning migrating our software from mysql to oracle. Therefore we need a migration path for moving the customer's data from mysql to oracle. The installation and the data migration/transfer have to run onto different customer's enviroments. So migration ways like installing the oracle gateway and connect for example via ODBC to mysql are no option because the installation process gets more complicated... Also the installation with preconfigured oracle database has to fit on a 4,6 GB dvd...
    I would prefer the following:
    - spool mysql table data into flat files
    - create oracle external tables on the flat files
    - load data with insert into from external tables
    Are there other "easy" ways of doing migrations or what do you think about the prefered way above?
    Thanks
    Markus

    Hi!
    Didn't anyone have this requirement for migrations? I have tested with the mysql select into file clause. Seems to work for simple data types - we're now testing with blobs...
    Markus

  • Out of memory error in migrating from mysql to oracle

    Hi,
    I'm trying migrate from mysql to oracle9i. The hardware and software requirements are matching or even much higher than mentioned in the documentation. I have installed OMWB is properly(hope so). When I try to migrate the desired database from mysql to oracle, the repository, the Oracle model are created successfully. But while migrating data, say for around 35000 rows insertion everything works pretty fine. But after sometime, the migration stops and no error or anything appears in the screen.And in the Errorlog I get "OutOfMemoryError".
    I tried to migrate single table also. But I still get this problem after sometime. The tables may contain from 10 - 130000 rows...
    I even tried to change the %JRE..% memory value to 64M or 128M in the omwb.bat file and the O/s is Microsoft Windows XP, RAM 256MB.
    Any help is much appreciated.
    Thanks in advance.

    Hi Viji,
    did the message in the error.log provide any extra information? For example, was the OutOfMemory error prefixed with a string
    like "cannot create new native thread" ? My suggestion to workaround the problem would have been to increase the JVM heap size to 128
    but this appears to have been unsuccessful for you. Can you send a mail to the Migration Workbench support services
    ([email protected]) explaining the problem, and attach the full error.log file please ? (please also copy me on the mail).
    In the meantime, you can workaround this by migrating the schema only (there is a switch on step 3 of the migration wizard asking:
    "Do you want to migrate the table data to Oracle?" - just select the "No" option). When the schema has migrated, you can then use the
    offline data loading facility to migrate the data. This uses data extraction scripts and SDQL*Loader to migrate the data to the target
    Oracle database.You can learn more about the offline data loading facility from the plugins referenceguide (from the Help menu in
    the Migration Workbench).
    I hope this helps,
    Tom.

  • How to handle DATE type problems in migrating from mysql to oracle.?

    Hi,
    I'm migrating only the data from mysql to oracle with the help of sql loader.But with this type i cannot able to insert the date values from mysql to oracle.In mysql i have defined date as "DATETIME" type and in oracle it is in TimeStamp.Whenever i'm inserting the values thru CTL file ,i'm getting an error invalid date format entered.How to solve this problem?
    Thanks in Advance
    JAI

    you need to supply a mask to the timestamp entry. see http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1006714 for details on datatypes within the ctl file
    B

  • Copy data from mysql to oracle database help?

    Im an sql newb and trying to understand how I can automatically copy data from one dtabase to another systems database on the same server.
    We have two differnt applications, but both share customer information, but one is on a win server, while the other is on oracle.
    Each time a customer contacts us via online chat (win server, mysql), we want to copy their entire chat transcript into our CRM's (oracle) customer account. So the folks that use the CRM can see the past chat histories. I hope this makes sense.
    Where can i look to get started on this?
    Thanks

    You could look at Heterogeneous Services (see the forum here Heterogeneous Connectivity but if you want to push data from mysql to oracle you might be better looking at it from the mssql side. I don't know what they offer.
    It might be simpler to do it at the client end. ie cut and paste from the online chat application into a new utility which inserts into the oracle database.
    Incidentally, this forum is specifically for the SQLDeveloper tool. You might get more general help in the "database - general" or "sql and pl/sql" forums

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How can I move my left over money from my UAE account into USD for my American itunes account?

    How can I move my left over money from my UAE account into USD for my American itunes account?

    How can I go back to my US account then?? I only have .03 aed left..

  • Why my Illustrator CC is now very slow for opening a 2MB AI file (about 5 minutes), at the beginning (1 month ago) it was very fast (10 seconds).

    Why my Illustrator CC is now very slow for opening a 2MB AI file (about 5 minutes), at the beginning (1 month ago) it was very fast (10 seconds).

    Assuming that you system meets minimal requirements for CC, make sure you have enough space on your hard drive. By saying enough, I try not to cross 3/4 of its capacity but trivially saying, the more free space the better and the faster the drive the better (I've been considering an SSD drive but still running a regular HDD).
    If you are on Windows, clean up the %TEMP% folder regularly and keep the disk neat using the defragmentation tool.
    Click Start>Run>enter %temp% , wait for the files to load and select all, hit Shift+DEL to remove them permanently.
    For the defrag tool, you can use either the defrag /? command from the command line or right-click the drive, click Properties > Tools > Defragmentation>Defragment Now
    Other than that it requires deeper analysis to find performance bottleneck.

  • WIFI too slow after IOS 6 installed. SAFARI is loading very slow for burmese language website. Please help.....

    WIFI too slow after IOS 6 installed. SAFARI is loading very slow for burmese language websites. Not only that....many other websites too.....Please help.....Don't expect that ENglish is only language we expect to view on IPAD......
    Most websites are responding very slow with safari & many other broswers opera.........Too annoying IOS 6...Give me IOS 5 back...Tell me how.....
    I am too angry with IOS 6.......My IPAD 2 & IPHONE 4S all suck after installing IOS 6..........
    I can't believe "$600 billions " company released without testing on every devices with different wifi routers, applications on their store.........   
    Give me some ways to downgrade to IOS 5.1.1......

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    You may think you are connected to the internet, but maybe not. Click on Safari and see if it connects.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Download using wifi is very slow for my ipad may i know what is the problem?

    Downloading using wifi is very slow for my ipad may i know what is the problem

    Maybe your internet speed is slow. Check your download speed.
    https://itunes.apple.com/sg/app/speedtest.net-mobile-speed/id300704847?mt=8

  • IPad Air very slow for last 6 weeks. Installing latest did not help. Screen just sits and buffers. If I reboot, sometimes it's better, sometimes it's not..????

    MMy iPad Air has been VERY slow,for 6-8 weeks. Update to iOS 8.1 did not help.  Screen just sits and buffers. Rebooting sometimes helps, sometimes not.what's wrong???

    Hi go to ICloud & backup. Go to Seetings Restore to Factory Settings This will get rid of any bugs and make ipad like new. Just use Same Apple ID & password then you will get all your Apps & Data Back. Cheers Brian

  • Data transfer from MySQL to Oracle Urgent!

    Hi All,
    We have a table in MySQL database and we need to transfer a subset of its data over to Oracle table. The table in MySQL is big, so we created a temp table trying to do it several times. The question is, we set the the primary key column in both MySQL temp table and Oracle table ( a varchar column), when we transfered the data over using "insert into table_name select * from table_name@hsdobc", Oracle always gave the "Null value for not Null column" error, and it's only existed for one row no matter how many rows we want to transfer, but MySQL temp table has no such null value for the primary key column, it's very strange. Anyone knows what the problem might be? Thanks very much in advance.

    Hi, thanks for your answer. I checked the MySQL table again, and found that in both the original table and the temp table, there is a row with the primary key column value "null". Don't know what happened? Probably it's a MySQL bug.
    It's not Primary Key NULL value. If your new Oracle Table has ANY column defined
    NOT NULL and while inserting you have at least one value in one row of coming data is NULL - It will fail. You need either to drop NOT NULL constraint for that
    column(s), or provide value for it.
    Also you can drop that NOT NULL constraint, Insert your data as is,
    Update your data to get rid off all NULLs and put NOT NULL constraint back on.
    ALTER TABLE MY_NEW_TABLE MODIFY MY_NEW_COLUMN NULL;
    UPDATE MY_NEW_TABLE SET MY_NEW_COLUMN = 'Some_Value';
    ALTER TABLE MY_NEW_TABLE MODIFY MY_NEW_COLUMN NOT NULL;

Maybe you are looking for