creating view to select unique records



Hello All,

I am unsure if similar question has already been posted to this group.
If so please point me to the relevant post/group.. otherwise please
read on...

We are in the process of migrating our application from Sybase to
Oracle. Basically for each table, we would do an bcp out of the table
and load it into oracle via sqlldr.

The source table has duplicate rows in it. However, we would not want
to export those dupe rows to our oracle table.

My intention is to create a view that would pick up only the unique
records and I can bcp the data out of the view.

I can create a view something like
select distict * from sybase_table. However, I am worried about the
performance since I have heard that distinct clause is a costly
operation ( I am working on about 120-140 million rows ).

Is there a better way to achieve it?

Thanks in advance
Arun
.



Relevant Pages

  • Re: Idempotence of this function met with a concatenation ?
    ... I have table bcp that contains more than 1.100.000 records. ... It has a NAME_UPPER indexed field that contains standardized ... An index range scan is how oracle ... An index range scan doesn't work well as an execution plan when you ...
    (comp.databases.oracle.server)
  • Re: Bulk insert into Database
    ... Thanks for the reply Bill. ... Does Oracle have a command similar to bcp? ... Baz ... This is probably well suited to DTS or BCP. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Bulk insert into Database
    ... I haven't used Oracle since 8i but I believe SQL Loader is the equivalent. ... > Thanks for the reply Bill. ... This is probably well suited to DTS or BCP. ...
    (microsoft.public.dotnet.framework.adonet)
  • Oracel Linked server Problem
    ... We are trying to use linked server to oracle. ... If i do bcp out and sql loader in to oracle it is just few seconds. ...
    (microsoft.public.sqlserver.dts)