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: Kevin Lange <kgel_at_ppoone.com>
Date: Thu, 24 Oct 2002 10:54:51 -0800
Message-ID: <F001.004F2BB4.20021024105451@fatcity.com>


Chris;  

I would suggest the following:

  1. Generating Check Sums of the files before they are sent.
  2. Send the files.
  3. Generating an after Check Sum and compare.

Here are the steps I go thru to make sure our Oracle Archive Logs are correctly transfered to our Standby Server:  

  1. Zip the Archive Logs into 1 Zip.
  2. Check Sum the Zip.
  3. Use the TEST option to make sure the Zip is good.
  4. RCP the zip file to the standby location.
  5. RSH a test of the Zip.
  6. RSH a Check Sum of the Transfered Zip and compare to original value.
  7. Unzip the file

With this method you have 2 independent checks.... the Check Sum and the Zip Integrity Check.  

 -----Original Message-----
Sent: Thursday, October 24, 2002 12:35 PM To: Multiple recipients of list ORACLE-L

I have to create packages that will generate several flat files of data from tables that will be sent to other systems to be processed.

I am looking for ideas on how to ensure data integrity in the flat files.

For example, the expected record count is stored on the first line of the file to ensure that the correct amount of records was received.

The systems group is chartered to ensure the flat files are correctly FTPed between systems, so that's covered.

I just worry that if "somehow" a flat file is scrambled then the scrambled data is loaded into the database, therefore corrupting it.

At this phase, XML is not an option

I keep thinking that some sort of CRC should be stored with each line in the flat file. And then before the line is loaded into the database, the CRC is compared against the generated CRC of the just read line. Has anyone done anything like this? Any examples out there?

Many TIA!!

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kevin Lange
  INET: kgel_at_ppoone.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Oct 24 2002 - 13:54:51 CDT

Original text of this message

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