Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Data Comparison

Re: Data Comparison

From: DA Morgan <damorgan_at_psoug.org>
Date: Sat, 26 Nov 2005 22:25:45 -0800
Message-ID: <1133072742.2452@yasure>


raghu wrote:
> Hi,
>
> We are trying to compare two tables of similar structure. In other
> words, the missing and the different records are to be determined. The
> database is Oracle 9i.
>
> The options being evaluated are
>
> 1. Minus Operator - Since the table has nearly 4 million records, I am
> not sure if this is a feasible option.
>
> 2. Cursors - For each table, cursors can be opened and the data can be
> compared. Fetching the records in blocks (using BULK COLLECT LIMIT) may
> not be possible because different records might be selected from each
> table. Moreover, comparing null values makes it even tougher.
>
> Though time (taken for the comparison operation) is not a constraint,
> the number of database hits and the processing memory are to be
> certainly considered.
>
> What are your thoughts? Are there any other ways to do the data
> comparison?
>
> Thank you.

The thought is that you are ignoring the built-in solution.

The question is why? Getting paid by the hour?

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Sun Nov 27 2005 - 00:25:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US