forums › forums › SQLyog › Sync tools, Migration, Scheduled Backup and Notifications › Import from Oracle problems
- This topic is empty.
-
AuthorPosts
-
-
April 19, 2004 at 1:46 pm #8401jlitzMember
When I try and import straight from the ODBC I receive errors in creating the table that the columns are duplicated but in fact they are not. I am using the wizard and I wondering there are issues with it.
-
April 19, 2004 at 3:59 pm #15701RiteshMember
Are you able to import correctly from any other ODBC client like MS Access or Excel. Just wanted to confirm whether the ODBC driver is installed correctly.
-
April 19, 2004 at 7:05 pm #15702jlitzMember
I have been able to use ms access driver and some of the oracle tables do come over one of the common errors I receive is duplicate column information in the auto generated SQL. It is kinda of bizarre. When I look at the table there are no duplicate column names. It appears to have problems with the Oracle driver.
I believe I figured out what is specifically going on. When oracle tables have indexes set the auto import feature works no problem. When Oracle has no index set it ask which field do you want to use as the index.
A feature that is not reflected when using the auto import in sqlyog.
Hence I believe this is the reason why the autogenerate SQL duplicates itself and thus errors generated importing the data. If you try an import into access you will see it first pulls the data and the second a prompt says which field is to be used as an index.
This is where I believe the import feature in SQLyog is getting hung up.
-
April 25, 2004 at 4:27 am #15703RiteshMember
I am working on it and will get back to you as soon as possible.
-
May 5, 2004 at 2:22 am #15704NéoMember
Hi there,
is the problem described above considered as fixed ?
Just wondering whether the problem I had importing from DBF Files was on my side, coming from my Foxpro ODBC Driver or something you'd get fixed in SQLyog.
Thank's for your help
Néo
-
June 18, 2012 at 4:33 am #15705wesselMember
Hi all,
I have a similar issue when importing from a view created for me in Oracle. I have set up a import to run every 1 hour and import all from the view with the following where clause:
TEST_DATE > SYSDATE-60/1440
The problem is, this import is totally dependent on time and if for some reason it will find a duplicate, it will import the duplicate. I have tried all 3 different options in the wizard at the advanced tab:
o Update with source details
o Keep target data
o Abort
No matter which option I select, I still get duplicates.
Unfortunately there is no primary key defined as I am importing from a view, but I would still think SQLyog can check for duplicated and follow one of the 3 options above.
Is this a bug in SQLyog or am I doing something wrong?
Thanks in advance for any help, this is my first post on this forum.
Wessel
-
June 18, 2012 at 6:55 am #15706ashwinMember
Could you tell us the structure of the source? If there are PK(s) in the target then importing from source and having 'Keep target data' will not import duplicates. So you must have a target table with some PK in it without which duplicates will be imported.
It does not matter if your source is from a view, but the target table must have unique index so that there will be no duplicates on import.
-
-
AuthorPosts
- You must be logged in to reply to this topic.