Sorry to “spam” the group like this, but I need some advice.
Oracle Database 11.2.0.2 on SLES Linux 11.
I have a table with a LOB in it. The lob has a lob index (SYS_blah$$)
and is corrupted. The database is throwing ora-600 [something] and the
Ora-600 analyser at MOS tells me to “drop and rebuild the affected
indexes” which are identified by an error from “analyze index xxxxx
validate structure”. This I have done.
But, I have two corrupt indexes, one small (56 Gb) and one a tad larger
- 1.5 Tb. (Yes, Tb!) And I need to rebuild them.
Of course, you can’t rebuild a lob index of this kind, so the solution
is to move the lob segment out to a new tablespace and then, back again.
As follows:
ALTER TABLE big_reports
MOVE LOB (REPORTDATA)
STORE AS (TABLESPACE norman);
ALTER TABLE big_reports
MOVE LOB (REPORTDATA)
STORE AS (TABLESPACE lob01);
So, I managed to do this on the smaller index, all 56Gb of it. It took
about an hour to move out and back again. In between moves, I
revalidated the structure, and thankfully, all was well. It bodes well
for the biggie!
Unfortunately, I do not have at the moment, anywhere near enough free
space to hold a 1.5 Tb index. The server doesn’t either, so I can’t
steal any space to build a tablespace.
Given that I have got a rebuild rate of about 100 Gb per hour, I’m
looking at 16 hours of rebuilding time - unless I only move it once,
where I guess it will be about 8 hours. Anyway, users can’t use the
database during this time.
I’m about to leave for home now, I’ve been here 12 hours already today,
as no-one in the disc department is around to offer me oodles of space
to build a tablespace in. However, as you nice people in the US and
places westward of where I am are just (!) coming online, I was hoping
that you could have a think and see if you know of any new features in
11.2 that I haven’t found yet in the LOB INDEX rebuilding department.
Other information - the database is not using ASSM so
SECUREFILES/FASTFILES is a no-no, shame. We are stuck with BASICFILES
(or slow files?) I’m afraid.
The tablespaces in question, amongst others, were imported from a 9i
Standard Edition database recently using Transportable Tablespaces which
were converted using the following circuitous route:
-
Clone 9i database & upgrade to 10g Enterprise Edition. (On HPUX 64 bit
server) -
Export tablespaces as transportable (what a wonderful tool - 1.5 TB
imports in 5 mins!) - did all the stuff with COMPATIBLE and READ ONLY
etc. -
Transport files on tape, to new data centre.
-
Loaded onto disc and used 11.2 RMAN to CONVERT DATAFILE from HPUX 64
to Linux 64. -
Imported the converted files successfully. (As mentioned above, in 5
mins!)
The system has been running overnight and all today since then with no
errors.
I’m resigned to the long and tortuous “rebuild” process of moving
between tablespaces and back again, but I’m hoping someone has tried and
tested methods I don’t know about.
Cheers,
Norm. [TeamSlightlyUpTheCreek]
Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.
We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.
If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk