Link to home
Start Free TrialLog in
Avatar of nobleit
nobleit

asked on

instance response time

Is there any simple method to fix slow instance response time using the package from DBMS_ADVANCED_REWRITE or any other method..
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Tuning tuning tuning.


People make entire careers doing what you asked.  There are many ways to go about this.  First is define what is slow, define objectives, then see what you can do to achieve them.

'Slow app' isn't good enough. What makes it 'slow'?  Memory, disk, ???  Then see what is using that resource.
Is the CPU taxed? Is the network congested? Make sure it is Oracle. Could be OS, network, unlrealistic expectations, etc.

Otherwise, I usually start with the slowest, most often run query and work down from there.

Yes, query rewrite lets you fix bad SQL. I think it should be used as a last resort, after attempting to get the code fixed first.

Avatar of nobleit

ASKER

slow instance response could be taken care of using the package DBMS_ADVANCED_REWRITE
or not..Actually how we can implement this....
>>slow instance response could be taken care of using the package DBMS_ADVANCED_REWRITE
or not..Actually how we can implement this....

Yes, it can help. The point is, it is just one of many tools you have. It isn't your first line of attack, though.

The use of the advanced rewrite module is to fix / improve application SQL from behind the scenes as a DBA. This assumes you have slow queries. Have you determined that you have slow queries?
Avatar of nobleit

ASKER

I used this script to find any slow running queries..
SQL> select  sql_text, disk_reads, loads, optimizer_cost,
  2  parsing_user_id, serializable_aborts, au.username
  3  from  v$sql, all_users au
  4  where  disk_reads > 10000
  5  and  parsing_user_id = au.user_id
  6  order by disk_reads desc;

no rows selected

Also I heard that  slow query log to find slow queries..
where is it located..How can we access..
Haven't I posted links to the performance tuning guide in some of your previous questions?  You should really spend some time in the docs.

If there is a log, that is really a separate question.  This one is: is there a simple way to fix slow response and what about DBMS_ADVANCED_REWRITE.

Both have been answered.  There is no 'easy' way to fix performance problems and if that package can help.

Back to the latest extra question:  are you thinking v$longops?  You should really ask a new question with specifics and not general like: How do I make it run fast.  Remember: people make careers out of that question.  There really isn't a way to anser that one here.
@slightvw

>> Back to the latest extra question:  are you thinking v$longops? <<

Or rather V$SESSION_LONGOPS :)

@nobleit

Read that Tuning Guide we've been suggesting you since several posts ! Nobody can guess why you 'think' your database is 'slow'. There is so many possibilities...

Read the docs, search the problem and then we might help you with some advice.

P
Avatar of nobleit

ASKER

I queried
select * from elapsed_second from v$session_longops;
it is zero...

That means no slow queries...right..
no,  it only means there are no queries using dbms_application_info  to write to the long ops tracking
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
nobliet,

Can you explain why you accepted the answer you did?  It seems a few posts helped you answer the question asked and a split should be in order.

Please clarify.