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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Flat file generation integrity ideas...

RE: Flat file generation integrity ideas...

From: Grabowy, Chris <cgrabowy_at_fcg.com>
Date: Sat, 26 Oct 2002 19:59:11 -0800
Message-ID: <F001.004F4B3A.20021026195911@fatcity.com>


Hey Jared,  

The current thinking is using a PL/SQL package to create the external flat file.  

And I don't have proof, but I am absolutely positive that using UTL_FILE is faster then Perl...I just know it is....it's gotta be.......  

I will take a look at sqlunldr.pl, thanks.  

CG  

	-----Original Message----- 
	From: Jared Still [mailto:jkstill_at_cybcon.com] 
	Sent: Sat 10/26/2002 10:45 PM 
	To: ORACLE-L_at_fatcity.com; Tim Gorman; Grabowy, Chris 
	Cc: 
	Subject: Re: Flat file generation integrity ideas...
	
	


	I was going to suggest MD5 as well. Though I was thinking of the Perl version.
	
	The DBMS_OBFUSCATION version is fine, but I was thinking of the unload
	method.
	
	Chris, how are you creating the flat files?  UTL_FILE?  SqlPlus?
	
	Perl is much faster than sqlplus, dunno about UTL_FILE, as I haven't
	compared them for speed. (yet)
	
	PL/SQL also requires about 10x more code for this kind of thing than Perl.
	
	You *could* just modify the sqlunldr.pl script in "Perl for Oracle DBA's" to
	add MD5 checksums at the beginning of the line.  You could also easily\
	MD5 the entire file in one line of code.
	
	If you're using C, well, you're just working too hard.  ;)
	
	Jared
	
	On Thursday 24 October 2002 15:24, Tim Gorman wrote:

> RE: Flat file generation integrity ideas...DBMS_OBFUSCATION_TOOLKIT has an
> (undocumented) function called MD5 which uses that protocol (MD5) to
> calculate checksums. Look at $OH/rdbms/admin/dbmsobtk.sql... -----
> Original Message -----
> From: Jamadagni, Rajendra
> To: Multiple recipients of list ORACLE-L
> Sent: Thursday, October 24, 2002 12:46 PM
> Subject: RE: Flat file generation integrity ideas...
>
>
> you could also use dbms_utility.get_hash_value ... to compute hash value
> for the whole row and store that as an additional column. Be syre to use
> the same parameters on both sides to compute and test, else it will fail
> the check.
>
> Raj
> ______________________________________________________
> Rajendra Jamadagni MIS, ESPN Inc.
> Rajendra dot Jamadagni at ESPN dot com
> Any opinion expressed here is personal and doesn't reflect that of ESPN
> Inc. QOTD: Any clod can have facts, but having an opinion is an art!
---------------------------------------- Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: quoted-printable Content-Description: ---------------------------------------- y筅~'"jS ⰃDO /rܢaZ(׭ŠIǬ9wtXm 0r+r&IÉ(&+&Ƣ)+-jwpyhاǫ'DCTLkaɚXX֧YƠz.+-r+r&z-xE ;)zYb
kڝاzN nu楊w{Zx I_at_ND Received on Sat Oct 26 2002 - 22:59:11 CDT

Original text of this message

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