Roads ? - where we're going, we don't need roads ...
Worst recovery case ... ever ! | ORA600
ORA600 content Content RSS
Oracle ORA600 News RRSS Oracle News RSS
ORA600 blog Blog RSS
ORA600 blog Blog Atom

User login

Worst recovery case ... ever !

Worst recovery case ... ever.

Oracle DMP files generated by 'exp' are not considered as a backup. In a sense that is correct.
If you run 'exp' on a live database, data in your dump file can be inconsistent. This can be an issue when you export for example tables with a parent-child relationship.
Or for example - while performing full exports and tables are using a surrogate primary key. Typically a sequence is used, but the sequences are exported at a different point of the export flow. This means that sequences can become out-of-sync with the table data. Anyway, some of these issues are handled by the CONSISTENT parameter.

The main reason DMP files became legacy is the fact that we live in a 24/7 world (or 25/8 for dba's & sysadmins) - and DMP files are just a snapshot of your data in time, and thus are basically useless from the moment the file hits your disk. They are only vaguely useful now when it comes to having a snapshot of your database object DDL.
I remember the days though, where we had databases that we could shut down during the night for a cold backup and a startup followed by an export ... those days are long gone.

However, somehow people are still very fond of the beloved exp/imp tools even as a backup.

I remember one case were I was asked to look into an import problem.
Import errors are mostly like this :
1. something is wrong with the database you are importing to - like permissions - and thus, those are easely solved
2. or something is wrong with the DMP file itself - and this is mostly the point where you feel your blood pumping, because, well, not much you can do about that ...
(unless of course you still have the source database, and you can redo to export)

DUDE contains a DMP api ... which means that it can generate 8.0.5 compatible DMP files. These dump files can be read by the Oracle imp tool, version 8.0 and above. What's even more - the API allows the generation of datatypes which didn't even exist in 8.0.5 and still it will work in 10g.
For example, a table containing the TIMESTAMP datatype, extracted by DUDE to a 8.0.5 DMP file, will import without problems using 10g imp.

Anyway - a couple of years ago, I was approached by a company that had lost their database *and* their online backups... all they had left was an export dump.
Now, if you've lost both your database and backup ... and all you have left is one export dump... well, then that dump file *becomes* your backup.
So close your eyes - imagine yourself in this situation  ... and then imagine encountering an IMP-00009 error half-way through your only dump.
I'm telling you - forget base-jumping - IMP-00009 in that situation gives you the same adrenaline high !
Now - the company approached me with the question - can you repair this ?
This is not the sort of thing you do on a daily bases - but I was intrigued so I agreed to have a look at it without garantuee.

It was quite obvious what had happened. They were running Oracle on MS Windows - I don't know for sure if they were using NTFS or FAT32 - but my guess would have been FAT as I did recognise the corruption.
It's something one might call cross-linked files where a FAT corruption results in 2 files sharing a number of clusters.
The symptoms are quite easy to spot - just open a file with a hex editor and you'll see parts of other files popping up in multiples of 512bytes, aligned at multiples of 512bytes.
I've seen it at least a handful of times at several sites running MS Windows where they experienced a sudden power-loss.
And on each occasion datafiles (or in this case, a dmp file) were partially over-written by parts of some random dll.
In case of - partitially - overwritten files - the conclusion is simple : data will be lost.

This is what the DMP looked like (over-simplified) :

+--------------------------------------------------------------------+
| dmp header (see below)                                               |
+--------------------------------------------------------------------+
| filler bytes                                                                     |
+--------------------------------------------------------------------+
| CONNECT <user>                                                         
| TABLE "<name>"                                                     
| CREATE TABLE DDL                                                  
| INSERT INTO STATEMENT                                             
| NOF columns                                                        
| COLx type | COLx len                                              
| RECx data  1                                                       
| corruption - 512 bytes                                             
| RECx data  3                                                       
| RECx data  4                                                       
| corruption - 4096 bytes                                            
| RECx data  6                                                       
| RECx data  7                                                       
| STOP bytes                         
+--------------------------------------------------------------------+

The header stores NLS characterset settings, version of dump file, type of export, etc.
NLS info might also be stored on a per column basis.
Anyway - the format is pretty straight forward (at least compared to database blocks).
The company was interested in only one table and this was a 3Gb DMP (full export) file.

Here's a snapshot of what the DMP would have looked like in a hexeditor (this is not the actual dump)

corrupt dump

You clearly see something is wrong - even if you don't know a thing about DMP internals - just look at the part that says 'This program requires microsoft windows' ... not likely Oracle would put that in their dumps ;-)

I actually managed to manually create a new DMP file with only that one table in it using a hex editor and cutting
and pasting only good parts - so the end result was a bit like this :

+--------------------------------------------------------------------+
| dmp header (see below)                                               |
+--------------------------------------------------------------------+
| filler bytes                                                                     |
+--------------------------------------------------------------------+
| CONNECT <user>                                                        
| TABLE "<name>"                                                         
| CREATE TABLE DDL                                                      
| INSERT INTO STATEMENT                                             
| NOF columns                                                                
| COLx type | COLx len                                                   
| RECx data  1                                                                
| RECx data  3                                                                
| RECx data  4                                                                
| RECx data  6                                                                
| RECx data  7                                                                
| STOP bytes                                                                  
+--------------------------------------------------------------------+

The dump file imported without spawning imp-00xxx errors - however, data was lost and it was quite hard to tell what the actual value of this dump file was for the company.
Especially as I had to cut away a large amount of data - I counted 30 corruptions of on average 8K and there were many more outside that one table.
It took me long enough too - about 6hours... it felt a bit like an ER surgeon cutting away damaged flesh.

I'm sure the handmade DMP file had its use for them - but they probably had a long way to go from there... cross-checking what they had lost, re-entering data and so on...


It was without a doubt the worst recovery case I had encountered ... ever ... no datafiles ... no backup ... corrupted DMP.

 

Technorati Tags:

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ loan to pay off payday loans [url=http://paydayonlinemoney.com/]online payday loans[/url] easy to get loans online payday loans

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ payday loan richmond va [url=http://paydayonlinemoney.com/]cash advance online[/url] cash advance taylor mi online

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ single mother loans [url=http://paydayonlinemoney.com/]payday loans[/url] legit online loans for bad credit online payday loans

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ paydayloan [url=http://paydayonlinemoney.com/]payday loans[/url] one hour cash advance payday loans online

what to tell doctor to get viagra prescription

viagra online free sample viagra without doctor prescription genuine viagra online uk [url=http://thjsildenafiljkvc.com/#]viagra without a prescription[/url] buy cheap viagra online us

booxy

[url=http://viagranrxbuyonlinerx.com/]cheap viagra online[/url] viagra for sale online http://viagranrxbuyonlinerx.com viagra girl commercial buy generic viagra

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ payday loan for bad credit direct lender [url=http://paydayonlinemoney.com/]online payday loans[/url] unsecured personal loans for bad credit not payday loans cash advance online

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ bad credit loans pa [url=http://paydayonlinemoney.com/]loans[/url] payday loans over the phone online cash advance

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ payday loans fast [url=http://paydayonlinemoney.com/]cash advance online[/url] cash loans greenville sc payday loans

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ monthly loan [url=http://paydayonlinemoney.com/]pay day loans[/url] payday loan in minutes online

http://paydayonlinemoney.com/

http://paydayonlinemoney.com/ direct pay day loans [url=http://paydayonlinemoney.com/]online[/url] payday loan lenders online payday express

cialis utilisatio

generico cialis en espana [url=http://cialisbuyhaq.com/]generic cialis[/url] generic cialis cialis dose recommended

jiply

[url=http://buynrxcialisonlinerx.com/]buy cialis online[/url] cialis order online http://buynrxcialisonlinerx.com cialis online australia buy cheap cialis

buy viagra cvs

viagra sales rep viagra without doctor buy viagra in bangladesh [url=http://thjsildenafiljkvc.com/#]viagra without a prescription[/url] get rid viagra spam

Coemedy

http://advanceloansbad.com how to get a personal loan with no credit history [url=http://advanceloansbad.com/">cash advance online[/url] cash advance loans near me loans for bad credit

citalse

http://advanceloansbad.com private money lending [url=http://advanceloansbad.com/">cash advance[/url] quick pay day loans cash advance

oceargo

http://advanceloansbad.com payday loans garland tx [url=http://advanceloansbad.com/">cash advance online[/url] get a loan with no credit advance loans

Bleax

http://advanceloansbad.com loan services [url=http://advanceloansbad.com/">payday express[/url] easy pay day loans cash advance loans

Roohite

[url=http://viagranrxbuyonlinerx.com/]buy viagra online[/url] chinese herb viagra http://viagranrxbuyonlinerx.com which viagra is best buy generic viagra

best website buy cialis

what color are cialis pills cialis without a doctor cheapest cialis price [url=http://vnacialisfbvn.com/#]cialis without doctor[/url] cialis best buy

buy viagra germany

viagra used [url=http://viagradiscountg.com/]generic viagra online[/url] online viagra what is best viagra pill

achetez viagra cialis levitra

viagra available in canada [url=http://viagradiscountg.com/]viagra cheap[/url] buy viagra viagra for sale in the phils

Omicy

http://advanceloansbad.com personal loans lenders [url=http://advanceloansbad.com/">payday express[/url] payday loans with savings account cash advance loans

angex

http://advanceloansbad.com quick easy money [url=http://advanceloansbad.com/">payday express[/url] microlending websites payday advance loans

ordesee

http://advanceloansbad.com payday loan advance [url=http://advanceloansbad.com/">cash advance loans[/url] america loan payday advance loans

buy cheapest cialis

buy cialis levitra and viagra cialis without doctor cheapest cialis 20mg [url=http://vnacialisfbvn.com/#]cialis without prescription[/url] cialis sale us

Alumpiz

http://advanceloansbad.com cashloan [url=http://advanceloansbad.com/">payday advance loans[/url] pay advance loans online cash advance online

Clume

http://advanceloansbad.com american cash loans [url=http://advanceloansbad.com/">payday express[/url] online loans with no credit payday advance loans

cialis at liquidation price

cialis uk price [url=http://cialisbuyhaq.com/]generic cialis[/url] cialis cialis canadian online

risse

http://advanceloansbad.com payday loans in houston [url=http://advanceloansbad.com/">cash advance online[/url] advance check loans advance loans

brutt

http://advanceloansbad.com safe payday loans [url=http://advanceloansbad.com/">bad credit loans[/url] loans for bad credit no fees bad credit loans

ascep

[url=http://buynrxcialisonlinerx.com/]buy cialis[/url] hot rod cialis pills buy http://buynrxcialisonlinerx.com alcohol cialis generic buy cheap cialis

buy cialis online usa

buy cialis generic canada cialis without a doctor's prescription where to buy generic cialis [url=http://vnacialisfbvn.com/#]cialis without doctor[/url] how do i order cialis

prescription sample cialis

comprar cialis 20 generico [url=http://cialisorderasj.com/]buy cialis online[/url] buy cialis foro cialis

buy cialis generic online

should buy cialis online cialis without prescription order cialis at online pharmacy [url=http://vnacialisfbvn.com/#]cialis without doctor[/url] buy cialis online in australia

cialis generico 60mg

paypal to buy cialis pills [url=http://cialisorderasj.com/]order cialis[/url] buy cialis online high quality cialis

buy cialis nz

where is the best place to buy generic cialis cialis without prescription canadian pharmacy buy cialis professional [url=http://vnacialisfbvn.com/#]cialis without a doctor prescription[/url] cialis c5 pill

Rhire

[url=http://cialiscnrxonline.com/]cheap cialis[/url] cialis online http://cialiscnrxonline.com cialis discount online generic cialis online

wooma

[url=http://viagranrxbuyonline.com/]cheap viagra online[/url] synthetic viagra http://viagranrxbuyonline.com 1 viagra pill generic viagra online

spous

[url=http://viagranrxbuyonline.com/]buy viagra[/url] what happens if a female takes viagra http://viagranrxbuyonline.com viagra not working generic viagra online

Agepats

[url=http://payday2meloansonline.com/]personal loans[/url] get cash http://payday2meloansonline.com cash advance online reviews cash advance

Vackuts

[url=http://payday2meloansonline.com/]payday loans[/url] direct pay day lender http://payday2meloansonline.com loans short term payday loans

boaby

[url=http://viagranrxbuyonline.com/]viagra generic[/url] viagra before and after video http://viagranrxbuyonline.com is viagra funded by the government viagra online

alobe

[url=http://viagranrxbuyonline.com/]generic viagra online[/url] new viagra commercials http://viagranrxbuyonline.com when did viagra come out viagra generic

cialis super active 20mg pills

buy cheap viagra cialis cialis prices buy cialis fda [url=http://fmacialisuhy.com/#]cialis cost[/url] buy daily cialis

Actiome

[url=http://viagranrxbuyonline.com/]buy viagra[/url] viagra singles http://viagranrxbuyonline.com herbal viagra ingredients buy viagra online

gally

[url=http://payday2meloansonline.com/]payday express[/url] loan online application http://payday2meloansonline.com very poor credit personal loans cash advance

Bampurn

[url=http://viagranrxbuyonline.com/]buy viagra online[/url] viagra 100mg price walmart http://viagranrxbuyonline.com viagra 4 hours warning buy viagra

amedler

[url=http://viagranrxbuyonline.com/]buy generic viagra[/url] viagra 100mg canadian pharmacy http://viagranrxbuyonline.com viagra for sale ebay buy viagra online



Howto's
See DUDE primer for info

Get Support

Europe

Belgium :
Kurt Van Meerbeeck
ORA600 bvba
E-mail
dude@ora600.be
Cell : +32 495 580714

Denmark :
Michael Môller
Service & Support Manager
Miracle AS
E-mail :
hra@miracleas.dk
Cell: +45 53 74 71 27


Latin America

Brazil :
HBtec
E-mail
dude@hbtec.com.br
Cell : +55 47 88497639
Contact


Africa

South Africa :
Kugendran Naidoo
NRG Consulting
E-mail
k@nrgc.co.za
Cell : +27 82 7799275