AWR - Database Performance Slow
If my Whole Database Performance is slow,
running AWR report include current time statistics when the DB Performance is slow ?
The default AWR Snapshot Interval is 1 hour. So, if you have the default implementation, you will be able to create an AWR report for the period 10am to 11am. It will not reflect what or why "slowness" occurred at 10:45. The statistics in the AWR report will be a summation / averaging of all the activity in the entire hour.
You could modify the Snapshot Interval (using dbms_workload_repository.modify_snapshot_settings) to have Oracle collect snapshots every 15minutes. But that will apply after the change has been made. So, if you have a slowness subsequently, you will be able to investigate it with the AWR report for that period. But what has been collected in the past at hourly intervals cannot be refined any further.
Hemant K Chitale
Similar Messages
-
Hi to all,
My database performance is suddenly going slow. My PGA Cahe hit percentage remain in 96%.
I will list out the findidngs I found...
Some tables were not analyzed since Dec2007. Some tables were never analyzed.
(Will the tables were analyzed the performance will be improved for this scenario)
PGA Allocated is 400MB. But till now the max pga allocated is 95MB since Instance started (11 Nov 08 - Instance started date).
(I persume we have Over allocated PGA can i reduce it to 200MB and increase the Shared pool and Buffer Cache 100MB each?)
Memory Configuration:
Buffer Cache: 504 MB
Shared Pool: 600 MB
Java Pool: 24MB
Large Pool: 24MB
SGA Max Size is: 1201.72 MB
PGA Aggregate is: 400 MB
My Database resided in Windows 2003 Server Standard Edition with 4GB of RAM.
Please give me suggestions.
Thanks and Regards,
Vijayaraghavan KVijayaraghavan Krishnan wrote:
My database performance is suddenly going slow. My PGA Cahe hit percentage remain in 96%.
Some tables were not analyzed since Dec2007. Some tables were never analyzed.
PGA Allocated is 400MB. But till now the max pga allocated is 95MB since Instance started (11 Nov 08 - Instance started date).
(I persume we have Over allocated PGA can i reduce it to 200MB and increase the Shared pool and Buffer Cache 100MB each?)
You are in an awkward situtation - your database is behaving badly, but it has been in an unhealthy state for a very long time, and any "simple" change you make to address the performance could have unpredictable side effects.
At this moment you have to think at two levels - tactical and strategic.
Tactical - is there anything you can do in the short term to address the immediate problem.
Strategic - what is the longer-term plan to sort out the state of the database.
Strategically, you should be heading for a database with correct indexing, representative data statistics, optimium resource allocation, minimum hacking in the parameter file, and (probably) implementation of "system statistics".
Tactically, you need to find out which queries (old or new) have suddenly introduced an extra work load, or whether there has been an increase in the number of end-users, or other tasks running on the machine.
For a quick and dirty approach you could start by checking v$sql every few minutes for recent SQL that might be expensive; or run checks for SQL that has executed a very large number of times, or has used a lot of CPU, or has done a lot of disk I/O or buffer gets.
You could also install statspack and start taking snapshots hourly at level 7, then run off reports covering intervals when the system is slow - again a quick check would be to look at the "SQL ordered by .." sections of the report to the expensive SQL.
If you are lucky, there will be a few nasty SQL statements that you can identify as responsible for most of your resource usage - then you can decide what to do about them
Regarding pga_aggregate_target: this is a value that is available for sharing across all processes; from the name you've used, I think you may be looking at a figure for a single specific process - so I wouldn't reduce the pga_aggregate_target just yet.
If you want to post a statspack report to the forum, we may be able to make a few further suggestions. (Use the "code" tags - in curly brackets { } to make the report readable in a fixed fontRegards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"The temptation to form premature theories upon insufficient data is the bane of our profession."
Sherlock Holmes (Sir Arthur Conan Doyle) in "The Valley of Fear". -
Database Performance of the database is very slow
Hi All,
I have an issue with performance of the database.
I noticed my database performance is very slow for the last 2 months. And recently i had made some changes in my database (like changing the NLS character set of my database) but prior to that itself i had an performance issue. But after the change i did recently still it got degraded.
And now, i had no trace files getting generated for my database. And i had no statspack information. and my alert log file is not having much information regarding to this.
Can anyone suggest how can i proceed further to look into the issue..?
Thanks & Regards
Vedavathi Euser602126 wrote:
Hi All,
I have an issue with performance of the database.
I noticed my database performance is very slow for the last 2 months. And recently i had made some changes in my database (like changing the NLS character set of my database) but prior to that itself i had an performance issue. But after the change i did recently still it got degraded.
And now, i had no trace files getting generated for my database. And i had no statspack information. and my alert log file is not having much information regarding to this.
Can anyone suggest how can i proceed further to look into the issue..?Vedvathi,
Its kind of finding needle in a haystack with being blindfolded. You don't have any statspack report, that's not such big deal. You can always create one. What's the database version of yours? If you are on 10g, consider using AWR report than Statspack.
You mentioned that you did a recent change, what is that change? Where did you do it and for what reason?
Give us some more detail in the form of statspack/awr reports to help you further.
HTH
Aman.... -
Database performance is very slow
Hi DBA's
Plz help me out !!!
Application users complaining database performance is very slow. Its an 10g DB in IBM AIx Server.
Any changes needed pls be post as soon as possible
Buffer Cache Hit Ratio 94.69
Chained Row Ratio 0
Database CPU Time Ratio 17.21
Database Wait Time Ratio 82.78
Dictionary Cache Hit Ratio 99.38
Execute Parse Ratio -25.6
Get Hit Ratio 70.62
Latch Hit Ratio 99.65
Library Cache Hit Ratio 99.43
Parse CPU to Elapsed Ratio 8.4
Pin Hit Ratio 81.6
Soft-Parse Ratio 94.29
=====================================
NAME TYPE VALUE
cursor_sharing string EXACT
cursor_space_for_time boolean FALSE
nls_currency string
nls_dual_currency string
nls_iso_currency string
open_cursors integer 600
optimizer_secure_view_merging boolean TRUE
session_cached_cursors integer 20
sql92_security boolean FALSE
===========================================================
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 4272M
sga_target big integer 4G
pga_aggregate_target big integer 2980M
Total Ram Size is 8 GBSQL> select username,sid from v$session where username='WPCPRODUSR';
USERNAME SID
WPCPRODUSR 378
WPCPRODUSR 379
WPCPRODUSR 380
WPCPRODUSR 381
WPCPRODUSR 382
WPCPRODUSR 383
WPCPRODUSR 384
WPCPRODUSR 385
WPCPRODUSR 386
WPCPRODUSR 387
WPCPRODUSR 388
USERNAME SID
WPCPRODUSR 389
WPCPRODUSR 390
WPCPRODUSR 391
WPCPRODUSR 392
WPCPRODUSR 393
WPCPRODUSR 394
WPCPRODUSR 395
WPCPRODUSR 396
WPCPRODUSR 397
WPCPRODUSR 398
WPCPRODUSR 399
USERNAME SID
WPCPRODUSR 400
WPCPRODUSR 401
WPCPRODUSR 402
WPCPRODUSR 403
WPCPRODUSR 404
WPCPRODUSR 405
WPCPRODUSR 406
WPCPRODUSR 407
WPCPRODUSR 408
WPCPRODUSR 409
WPCPRODUSR 410
USERNAME SID
WPCPRODUSR 411
WPCPRODUSR 412
WPCPRODUSR 413
WPCPRODUSR 414
WPCPRODUSR 415
WPCPRODUSR 416
WPCPRODUSR 417
WPCPRODUSR 418
WPCPRODUSR 419
WPCPRODUSR 420
WPCPRODUSR 421
USERNAME SID
WPCPRODUSR 422
WPCPRODUSR 423
WPCPRODUSR 424
WPCPRODUSR 425
WPCPRODUSR 426
WPCPRODUSR 427
WPCPRODUSR 428
WPCPRODUSR 429
WPCPRODUSR 430
WPCPRODUSR 431
WPCPRODUSR 432
USERNAME SID
WPCPRODUSR 433
WPCPRODUSR 434
WPCPRODUSR 435
WPCPRODUSR 436
WPCPRODUSR 437
WPCPRODUSR 438
WPCPRODUSR 439
WPCPRODUSR 440
WPCPRODUSR 441
WPCPRODUSR 442
WPCPRODUSR 443
USERNAME SID
WPCPRODUSR 444
WPCPRODUSR 445
WPCPRODUSR 446
WPCPRODUSR 447
WPCPRODUSR 448
WPCPRODUSR 449
WPCPRODUSR 450
WPCPRODUSR 451
WPCPRODUSR 452
WPCPRODUSR 453
WPCPRODUSR 454
USERNAME SID
WPCPRODUSR 455
WPCPRODUSR 456
WPCPRODUSR 457
WPCPRODUSR 458
WPCPRODUSR 459
WPCPRODUSR 460
WPCPRODUSR 461
WPCPRODUSR 462
WPCPRODUSR 463
WPCPRODUSR 464
WPCPRODUSR 465
USERNAME SID
WPCPRODUSR 466
WPCPRODUSR 467
WPCPRODUSR 468
WPCPRODUSR 469
WPCPRODUSR 470
WPCPRODUSR 471
WPCPRODUSR 472
WPCPRODUSR 473
WPCPRODUSR 474
WPCPRODUSR 475
WPCPRODUSR 476
USERNAME SID
WPCPRODUSR 477
WPCPRODUSR 478
WPCPRODUSR 479
WPCPRODUSR 480
WPCPRODUSR 481
WPCPRODUSR 482
WPCPRODUSR 483
WPCPRODUSR 484
WPCPRODUSR 485
WPCPRODUSR 486
WPCPRODUSR 487
USERNAME SID
WPCPRODUSR 488
WPCPRODUSR 489
WPCPRODUSR 490
WPCPRODUSR 491
WPCPRODUSR 492
WPCPRODUSR 493
WPCPRODUSR 494
WPCPRODUSR 495
WPCPRODUSR 496
WPCPRODUSR 497
WPCPRODUSR 498
USERNAME SID
WPCPRODUSR 499
WPCPRODUSR 500
WPCPRODUSR 501
WPCPRODUSR 502
WPCPRODUSR 503
WPCPRODUSR 504
WPCPRODUSR 505
WPCPRODUSR 506
WPCPRODUSR 507
WPCPRODUSR 508
WPCPRODUSR 509
USERNAME SID
WPCPRODUSR 510
WPCPRODUSR 511
WPCPRODUSR 512
WPCPRODUSR 513
WPCPRODUSR 514
WPCPRODUSR 515
WPCPRODUSR 516
WPCPRODUSR 517
WPCPRODUSR 518
WPCPRODUSR 519
WPCPRODUSR 520
USERNAME SID
WPCPRODUSR 521
WPCPRODUSR 522
WPCPRODUSR 523
WPCPRODUSR 524
WPCPRODUSR 525
148 rows selected. -
Database performing Very slow - Lots of wait events
My database is on Oracle10g on Sun 5.10
The users are complaining about database is very slow.
I analyzed the indexes & later on rebuild them, hardly it has only 5% performance improvement.
http://i812.photobucket.com/albums/zz43/sadeel00/untitled1.jpg
http://i812.photobucket.com/albums/zz43/sadeel00/untitled2.jpg
ADDM has no recommendations.Duplicate post - Database performing Very slow - Lots of wait events
Srini -
Regarding Database Performance
Hi All,
I have installed *10gR2 on RHEL4 (4GB -- RAM, space is enough)*. One application (oracle ucm) is running on that. Its contains apache and content server. After 2-3 weeks, developers were saying taking long time for opening url. So done gather database statistics (after that daily gathering db stats using scheduler). After that, it was working fine. Again after week they are having the prob. They are doing lot of dml on db. Checked in os level using top command. But oracle ( installed entire application as oracle) user is not consuming that much memory. set pga_aggregate_target to about 500M. Sga (sga_max_size --- 950M) is auto tuning. db is of size 8GB. workarea_policy_size is auto.
Please suggest any solutions for improving database performance.
Thanks,
Manikandan.daily gathering db stats using scheduler)Done by default on V10+
Please suggest any solutions for improving database performance.Ready, Fire, Aim!
Is any OS resource the bottleneck; CPU, RAM, IO, network?
During slow period what is reported by AWR?
Please read these:
When your query takes too long
When your query takes too long ...
How to Post a SQL statement tuning request
HOW TO: Post a SQL statement tuning request - template posting
Edited by: sb92075 on Jul 27, 2010 10:01 AM -
Database Performance Monitoring
Hi,
I use oracle 11.2.0.2.0,IBM AIX 6.1 operating System.
My client/User complainting that the Application process is taking long time than usual,especially when they implementing some module in their applications.
So when i closely monitoring my production(LIVE) database at the time of implementation,im unable to find any issues in DB side.So what are all the possibile areas to be focus on this situation?
I really thinks it could also possible that the issue belongs to the Network failure/bandwith running slow.
So what i really expect is ,Are they any monitoring tool or any trigger applicable/available for this scenario?
Looking for Helpful Answers..
Regards
Faizfor information ,Here i post my actuall scenario
Only in two out of 200 client branches ,the application performance was taking long time than usual,
So that i enable trace (TKPROOF)for that corresponding sessions,also i generate and analyze AWR report durig that particular time,
I found that no issues from database side.Later i come to know the actual issue was being in the Network side(i.e Network speed was very poor).
So henceforth,i have been asked that if the problem persists again,i need to make ensure that the problem which not belongs to Network part before go and check
database performance.
So any tool or monitoring script or any packages available to make ensure that the actuall problem not belongs to Network related issues,befor check DB performance. -
Oracle : 10.2.0.3
OS : Linux 64 bit
Issue : Slow performance at 11-30PM complained by client.
Checks done :
1. Ran AWR between 11 PM and 12 Noon.
CPUs : 4 SGA Size : 2,000M (100%) Buffer Cache : 1,584M (79.2%) Shared Pool 1,129M (56.4%)
ADDM suggest SGA_TARGET to increase from 2000MB to 2500MB.
2. top 5 events
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time Wait Class
db file scattered read 1,952,811 4,804 2 30.5 User I/O
CPU time 3,448 21.9
db file sequential read 149,712 1,921 13 12.2 User I/O
read by other session 293,022 877 3 5.6 User I/O
log file sync 9,920 157 16 1.0 Commit
------------------------------------------------------------- 3. Stats are upto date.
4. Index rebuild requirement is not there
SQL> SELECT name,height,lf_rows,del_lf_rows,(del_lf_rows/lf_rows)*100 as ratio FROM INDEX_STATS;
no rows selected5. Average 100 sessions will connect to the database
6. Checked all logs fr any disconnection details
7. Application is running from weblogic
Questions : How to certify the performance is good or slow from the above observations. I am able to feel the statistics are the similar for the different periods where I ran AWR report.
: Other than the user as a DBA what are the other checks can be done to monitor the performanceIt's difficult to use AWR or Statspack to "certify" database performance is good. It just depends what "performance is good" means.
Most of the time it's application response time which is the right metric: database response time is only a part of application response time and AWR/Statspack cannot easily link database response time and application response time.
[11.2 Concepts Guide Principles of Application Design and Tuning| http://download.oracle.com/docs/cd/E11882_01/server.112/e10713/cncptdev.htm#CHDEHHIJ] says
>
Define clear performance goals and keep historical records of metrics
An important facet of development is determining exactly how the application is expected to perform and scale. For example, you should use metrics that include expected user load, transactions per second, acceptable response times, and so on. Good practice dictates that you maintain historical records of performance metrics. In this way, you can monitor performance proactively and reactively (see "Performance Diagnostics and Tuning"). -
Database very slow/hangs.
Hello,
My company server has a database of size 400GB. It has has been distributed on 2 HDD of 300GB each. Previously i had faced the problem of database performing very slow . That time the size of the database was much shorter & i just moved the REDOLOG FILE to other HDD using rename command. That worked & again the database was working great. But now the scenario is quite different than previous... as given below ...
Tablespace Name - LHSERP
No. Of. Datafiles in LHSERP Tablespace - 55 ( Which are distributed on 2 HDD )
Hard Disk Drive (HDD) in server - 2
Capacity of HDD - 300GB each.now both HDD has datafiles from LHSERP tablespace. I tried to move the redo log files to other HDD but no use. No improvement in the performance. Still the database is slow.
One more thing i need to make a point of , when i see the task manager on the server it shows some RED and GREEN color graph of CPU usage. Does it mean anything serious ???? Even the whole OS works quite slow on the server. Right from opening MY COMPUTER , to loging into the user ....to fire the query in the user ...everything is very slow. Should i try to short out this problem in some different direction ???
Can you suggest me what to do next ... to improve database performance. If you have anymore ideas please let me know.
ORACLE DATABASE 10g
Windows Server 2008 64-Bit
Thanks in advance ....Hi,
What is your AWR snapshot keep time? I normally set it to 30 days so that in case of some problem, i can compare my AWR with my history AWRs. Now, can you take out an AWR when your database was doing good and then the latest AWR and then compare it and see what is the difference? Is redo log generation has increased? What are the top 5 wait events in the good AWR report and now in current bad AWR report. What are the top SQLs (elapsed time, CPU time) in good and bad AWR. What were the top segments in bad and good AWRs.
Doing this will give you insight of the problematic area.
Can you check ADDM report, is oracle recommending you anything t o look into?
what is the CPU usage. Even Oracle is the top consumer, can you check the CPU usage for past 24 hours, is it touching 100 %?
You should have OEM configured with the database. Form OEM, can you check host hard disks performance and check the busy percentage of your hard disks for past one month and check if there was any increase in the hard disk busy rate.
Doing all above will certainly help you identify the problematic area.
Salman -
Hi,
I am running Oracle10g in Windows and i have
SGA - 289406976
Fixed Size- 1248576
Variable Size - 96469696
Database Buffer - 184549376
Redo Buffer - 7139328
i am enclosing the init.ora file for better understanding
# Cache and I/O
db_block_size=8192
db_file_multiblock_read_count=16
# Cursors and Library Cache
open_cursors=300
# Database Identification
db_domain=""
db_name=orcl
# Diagnostics and Statistics
background_dump_dest=D:\oracle\product\10.2.0/admin/orcl/bdump
core_dump_dest=D:\oracle\product\10.2.0/admin/orcl/cdump
user_dump_dest=D:\oracle\product\10.2.0/admin/orcl/udump
# File Configuration
control_files=("D:\oracle\product\10.2.0\oradata\orcl\control01.ctl", "D:\oracle\product\10.2.0\oradata\orcl\control02.ctl", "D:\oracle\product\10.2.0\oradata\orcl\control03.ctl")
db_recovery_file_dest=D:\oracle\product\10.2.0/flash_recovery_area
db_recovery_file_dest_size=2147483648
# Job Queues
job_queue_processes=10
# Miscellaneous
compatible=10.2.0.1.0
# Processes and Sessions
processes=150
# SGA Memory
sga_target=287309824
# Security and Auditing
audit_file_dest=D:\oracle\product\10.2.0/admin/orcl/adump
remote_login_passwordfile=EXCLUSIVE
# Shared Server
dispatchers="(PROTOCOL=TCP) (SERVICE=orclXDB)"
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=95420416
# System Managed Undo and Rollback Segments
undo_management=AUTO
undo_tablespace=UNDOTBS1
and the Total Physical Memory - 1037864
Available - 206124
kindly pls explain why the database is running slow?Pls tell me what parameter shuld i change in the init.ora so that the database performance increases?Is only Oracle running slow?
Are some query running slow?
I think that you might not be able to increase performance
by changing only oracle parameter.
What kind of programs and services are running on your Windows?
Are they disturbing <s>Oracle sleeping</s> Oracle running?
Please check them first.
Oops, I'm not native, so I have mistake in using word.
Sorry.
Message was edited by:
ushitaki -
Question: Will online backup impact database performance for DB6 V9.1
Dear All,
I would like to know will online backup impact the database performance? for eg: access will be slower if online backup is currently running. Appreciate if someone can shed some light on this as i'm new to DB6.
I know for oracle it will impact due the performance due to tablespace are locked in backup mode and this will increaes I/O load due to every block is written to redo log during backup instead of just the changes.
Hope to hear from you soon.
Cheers,
Nicholas Chang.Hello Nicholas,
Here is some additional information on throttling utilities such as online backups:
SET UTIL_IMPACT_PRIORITY command
Changes the impact setting for a running utility. Using this command, you can:
throttle a utility that was invoked in unthrottled mode
unthrottle a throttled utility (disable throttling)
reprioritize a throttled utility (useful if running multiple simultaneous throttled utilities)
Scope
Authorization
One of the following:
sysadm
sysctrl
sysmaint
Required connection
Instance. If there is more than one partition on the local machine, the attachment should be made to the correct partition. For example, suppose there are two partitions and a LIST UTILITIES command resulted in the following output:
ID = 2
Type = BACKUP
Database Name = IWZ
Partition Number = 1
Description = online db
Start Time = 07/19/2007 17:32:09.622395
State = Executing
Invocation Type = User
Throttling:
Priority = Unthrottled
Progress Monitoring:
Estimated Percentage Complete = 10
Total Work = 97867649689 bytes
Completed Work = 10124388481 bytes The instance attachment must be made to partition 1 in order to issue a SET UTIL_IMPACT_PRIORITY command against the utility with ID 2. To do this, set DB2NODE=1 in the environment and then issue the instance attachment command.
Command syntax
>>-SET UTIL_IMPACT_PRIORITY FORutility-idTOpriority----><
Command parameters
utility-id
ID of the utility whose impact setting will be updated. IDs of running utilities can be obtained with the LIST UTILITIES command.
TO priority
Specifies an instance-level limit on the impact associated with running a utility. A value of 100 represents the highest priority and 1 represents the lowest priority. Setting priority to 0 will force a throttled utility to continue unthrottled. Setting priority to a non-zero value will force an unthrottled utility to continue in throttled mode.
Examples
The following example unthrottles the utility with ID 2.
SET UTIL_IMPACT_PRIORITY FOR 2 TO 0
The following example throttles the utility with ID 3 to priority 10. If the priority was 0 before the change then a previously unthrottled utility is now throttled. If the utility was previously throttled (priority had been set to a value greater than zero), then the utility has been reprioritized.
SET UTIL_IMPACT_PRIORITY FOR 3 TO 10
Relationship between UTIL_IMPACT_LIM and UTIL_IMPACT_PRIORITY settings
The database manager configuration parameter util_impact_lim sets the limit on the impact throttled utilities can have on the overall workload of the machine. 0-99 is a throttled percentage, 100 is no throttling.
The SET UTIL_IMPACT_PRIORITY command sets the priority that a particular utility has over the resources available to throttled utilities as defined by the util_impact_lim configuration parameter. (0 = unthrottled)
Using the backup utility as an example, if the util_impact_lim=10, all utilities can have no more than a 10% average impact upon the total workload as judged by the throttling algorithm. Using two throttled utilities as an example:
Backup with util_inpact_priority 70
Runstats with util_impact_priority 50
Both utilities combined should have no more than a 10% average impact on the total workload, and the utility with the higher priority will get more of the available workload resources. For both the backup and runstats operations, it is also possible to declare the impact priority within the command line of that utility. If you do not issue the SET UTIL_IMPACT_PRIORITY command, the utility will run unthrottled (irrespective of the setting of util_impact_lim).
To view the current priority setting for the utilities that are running, you can use the LIST UTILITIES command.
Usage notes
Throttling requires that an impact policy be defined by setting the util_impact_lim configuration parameter.
Regards,
Adam Wilson
SAP Development Support -
General Oracle Database Performance trouble solving best practice Steps
We use Oracle 11g DB on Windows2008R2 as web application backend DB.
We have peformance trouble in that DB.
I would like to know General Oracle Database Performance trouble solving best practice Steps.
Is there any good general best practice document for performace trouble solving in the internet ?@Girish Sharma: I disagree with this. Many people say things like your phrase "..first identify the root cause and then move forward" but that is not the first step. Any such technique is nothing more than looking at some report, finding a number that you don't like, and attempting to "fix" it. Some people use that supposedly funny term "compulsive tuning disorder" (first used by Gaja Krishna Vaidyanatha) to describe this approach (also advocated in this topic by @Supriyo Dey). The first step must be to determine what the problem is. Until you know that, all those reports you mentioned (which, remember, require EE plus pack licences) are useless.
@teradata0802, your best practice starts by finding the problem. Is it, for example, that the overnight batch jobs don't finish until lunchtime? A screen takes 10 seconds to refresh, and your target is one second? A report takes half an hour, but you need to run it every five minutes? Determine what business function is causing your client to lose money because it is too slow. Then investigate what it is doing, how, and why. You have to begin by focussing on the problem, not by running database-wide reports.. -
User say ur database is slow how u slove this how identified reasons
user say ur database is slow how u slove this how identified reasons
blame the developers for that, a bad tuned query will reduce your performance. Also you may blame the users for that, a lot of concurrent users running inefficient sql statements will strangle your system.
You may find further suggestions in your duplicated thread --> Some inter view Questions Please give prefect answer help me -
Hi all,
I am testing data guard at my laptop with winxp, i m using Oracle 9.2 version.
Data guard is implemented and working fine.
The problem i am facing is very slow response from standby database, it takes so much time while startup, change recovery mode and changing read only mode. Where as primary database is working fine.
Any idea what could be the reason.
Regards,
Asimcouple of days earlier i implement data guard on the same laptop, at that time primary and standby database was working fine no performance (slow) issues, then i need to reinstall windows, now when i once again configured data guard and face the stated (standby slow) problem.
I have tested some hit and trials and finally stop all other database basis and started only standby in nomount mode but same problem.
:-) I agree with your point, this is a not a normal behaviour.
Further i think to solve this problem, i might reinstall windows, probably then this problem will be solved and some one new might arise.
Regards, -
Database is slow due to indexes.
Hi,
Our database is slow and we are trying to identify duplicate indexes in a table within a schema where the index name may be different but the columns indexed are same. They may not necessarily be in the same order.Please update me the query which gives duplicate indexes.
ThanksDear,
As Nicolas did emphasize it, you need facts and proof before claiming that your performance problem is due to indexes.
Anyway, when speaking about duplicate indexes you need first to understand what is a duplicate index. Let me then show you a simple example about this
mhouri>drop table t1;
Table dropped.
mhouri>create table t1(a number, b number, c varchar2(10), d date, x number, y number);
Table created.
mhouri>create index t1_i1 on t1(a,b);
Index created.I have created a simple table and added to it a simple composite index on (a,b)
Now, I will create a duplicate index
mhouri>create index t1_i2 on t1(a);
Index created.You know why this index is considered as a duplicate one? simply because the first index I did create has its leading column = a and hence the second index t1_i2 can be covered by the first index t1_i1.
And what about the following index
mhouri>create index t1_i3 on t1(b,a);
Index created.is it a duplicate index? the answer is NO; it is not a duplicate one. Because there is no index starting with the couple (b,a). However, if you have the intention to create an index say t1_i4(b) then do not do it because it will be covered by the index t1_i3(b,a).
Finally, you can use simple select as the following one
define m_table_name = &m_table
set verify off
set linesize 100
select substr(uc1.table_name,1,25) table_name
,substr(uc1.index_name,1,30) index_name
,substr(uc1.column_name,1,10) column_name
,uc1.column_position column_pos
from user_ind_columns uc1
where uc1.table_name = upper('&m_table_name')
order by
uc1.index_name
,uc1.column_position
,uc1.column_position
;which will give you a list of existing indexes per input table together with their columns and the position of those columns. Based on your knowledge of what a duplicate index is you can analyse and act accordingly.
The above select when executed against our current table t1 gives the following picture
mhouri>start c:\red-index.sql
Enter value for m_table: t1
TABLE_NAME INDEX_NAME COLUMN_NAM COLUMN_POS
T1 T1_I1 A 1
T1 T1_I1 B 2
T1 T1_I2 A 1
T1 T1_I3 B 1
T1 T1_I3 A 2 In which we can point out that there exist two indexes t1_i and t1_i2 starting with the same column A . This is why the index t1_i2 is not necessary and should not have been created originally.
Hope this helps
Mohamed Houri
Maybe you are looking for
-
Can I use multiple store.connect( ) in my code?
I have a mail server installed on my local comp and have created multiple users. Now I need to poll the folders of each of those users for mails and read the mails. The code is working fine for a single user but when I increase the number or users, i
-
Rollup for new dimension values.
hai, i've created some dimensions and variables and added values to them.set the hierearchies and performed roll-up for the corresponding variables.Everything was OK then. But when i add new values to the dimension at various levels , set the hierarc
-
Want multiple email accounts to download into 1 inbox
''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/1033197 /questions/1033197]'' I have 5 email addresses, but I don't want to have 5 inboxes. Is there anyway to have all these email accounts download
-
Create purchase requisition form sales order
What are all the settings required for autiomatic creation of Purchase requisition from sales order. I am new to this topic
-
UITableView not reloading the Data
Hello, I am new to Xcode and i am facing problem with UITableview , What my app is doing is getting the list of the items from internet and show in (View 1) which have UITableView and working good (no problem in it) now after that as soon i click on