All data was deleted and another testing was started. This time they tell me
that Oracle is exceptionally slow. They noticed it right away but all I did
was that I added two datafiles with alter tablespace. Any ideas why this
might have happened or how to fix it?
- Jake -
HTH. Additions and corrections welcome.
Pete
SELECT standard_disclaimer, witty_remark FROM company_requirements;
Does the datafiles created on the same disk speed that the other one ?
I also notice that we appear to be talking about one 30GB file. Not knowing which version of
SunOS I am left wondering how well it handles files larger than 2GB?
Daniel Morgan
Yes. It would be better to create datafile to another disk, but the
performance was awful. They told about 5-20 seconds delays when a one
message is inserted! One message includes a few queries and two inserts.
Another insert is adds a blob also.
- Jake -
That was something I didn't know. I think they might have used delete
instead of truncate. Production staff reported about 5-20 second delays when
one message was inserted. One message includes a few queries and two
inserts.
Another insert is adds a blob also. Could it be that the performance drops
so much?
- Jake -
did you analyse the table after the delete - the stats will probably be
sitting at the previous settings.
If you did delete rather than truncate, then try :
alter table xxxx deallocate unused keep nn;
and see if that makes a difference. But, before you do, try a quick
select count(*) from xxxx
and see how long it takes to complete and what result you get back. If
it takes 5 mins and says something like 10 rows, then you are hitting
the old 'scan up to the HWM' problem where most of the blocks are empty
- but still get scanned. The deallocate command above should fix that.
Cheers,
Norman.
-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman...@LFS.co.uk
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------
- Jake -