Database performance query
Hi,
A process generally takes 2-3 hours in our database. But one day it got stuck at a particular query and remained in that state for 20 long hours after which we had to kill the process and restart it. Second time it ran smoothly.
The details of the cache sizes of the database are as follows::
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 512M Std Block Size: 8K
Shared Pool Size: 160M Log Buffer: 2,048K
What could be the possible reason for this behaviour?
Thanks,
Paulami
Here is the statspack report....
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
db file sequential read 212,871,657 562,034 49.52
CPU time 162,292 14.30
wait for unread message on broadcast channel 338,490 145,170 12.79
buffer busy waits 31,244,353 127,259 11.21
enqueue 108,964 59,937 5.28
Similar Messages
-
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 -
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 -
Hi,
Who takes up the task of database performance tuning....is it the BW consulant or anyother?
ThanksJB
We actually never involve in Database performance tuning!, All the time DBA will handle the
database tuning according SAP notes. We all the time involve in loading and query perfomance issues.
Srinivas.D -
Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?
Thanks for convincing me I really need a new laptop...
SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:00:52.94
SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:00:00.01
SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:00:00.01
SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:00:45.08
SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:01:16.29
SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
COUNT(*)
105413504
Elapsed: 00:01:18.63
Message was edited by: Hoek
The result cache seems to have lagged a bit for the first hintless query.. -
Oracle Database Performance With Semantic
Hello,
Is there a Developer's Guide for Semantic that specifically talks about database performance with the Semantic network/tables/indexes? We are having issues with performance the larger the semantic network becomes.
Any help or pointers would be appriciated.
Thanks
-MichaelBMatt,
Thanks for your response. Here are the answers to the questions about our setup/environment.
1) Are you querying multiple models and/or a model + entailment? If so, are you using a virtual model and using the ALLOW_DUP=T query option?
A single model, no entailments. We attempted to use multiple models, and a virtual model (with ALLOW_DUP=T), however the UNION ALL in the explain plan made the query duration unacceptable.
2) Are you using named graphs?
No named graphs.
3) How many triples are you querying?
Approximately 85 million.
4) What semantic network and/or datatype indexes have been created?
We have PCSGM, PSCGM, PSCM, PCSM, CPSM, and SCM.
5) What is your hardware setup (number and type of disks, RAM, processor, etc.)?
We are running the 11.2.0.3 database on a Sun Solaris T2000, we have ASM managing our disks from RAID5, I believe currently we have two Disk Groups with the indexes in one and the data tables in the other. We have 32 GB of memory, and 32 CPUs. However, it is not the only thing running on the machine.
6) How much memory have you allocated to the database (pga, sga, memory_target, etc.)?
We have the memory_target set to 9GB, the db_cache_size set to 2GB, and the db_keep_cache_size set to 4.5GB. `pga_aggregate_target` is set to 0 (auto), as is `sga_target`.
(Since my initial request, we pinned the RDF_VALUE$ (~2.5GB) and C_PK_VID (~1.7GB) objects in the KEEP buffer cache, which drastically improved performance)
7) Are you using parallel query execution?
Yes, some of the more complex queries we run with the parallel hint set to 8.
8) Have you tried dynamic sampling?
Yes. We have ODS set to 3 for our more complex queries, we have not altered this much to see if there is a performance gained by changing this value.
Thanks again,
-Michael -
Can archive log backup influence database performance?
Hi,
can archive log backup generally influence the database performance? I mean: users can view their query to go slowly during backup of archived redolog?Are you asking about backing up the archived redo logs via rman or directly to tape or the actual archive process where Oracle backs the online redo to disk?
-- comments on archive process
Normally the redo log archiving process should have no noticable effect on database performance. About the only way for the process to have a noticable performance impact while it is running is if you store all your online redo logs on the same physical disk. You would also want the backup to be on a different physical disk.
Check your alert log to make sure you do not have error messages related to being unable to switch redo logs and checkpoint incomplete messages. These would be an indication that your online redo logs are defined too small and you are trying to cycle around before Oracle has finished archiving the older logs.
-- comments on archived redo log backup
Archived reodo logs should not be on the same disk as the database so using rman or an OS task to back these files up should not impact Oracle unless you server is itself near capacity and any additional task effects the server.
HTH -- Mark D Powell -- -
10g grid control. minimum DB privileges for database performance tab?
database -> performance tab -> log into database.
what are the minimum privileges needed for this? I normally use DBA privs. However, I need to give access to non-dbas. When I try to log in with their account, it says see the help. I have been hunting through the help, but can't find anything about this.This article may be of use: http://dbastreet.com/blog/?tag=grid-control
If you "grant select any table" (Query tables, views, or mviews in any schema) to the role oem_monitor you get what you want. Maybe an overkill but thats what I can think of now.
Eric -
How to get Hierarchical XML File from a Database Join Query !
Hi,
How can i get a Hierarchical XML File from a Database Join Query ?
Any join query returns repeated values as below:
BD17:SQL>select d.dname, e.ename, e.sal
2 from dept d
3 natural join
4 emp e
5 /
DNAME ENAME SAL
ACCOUNTING CLARK 2450
ACCOUNTING KING 5000
ACCOUNTING MILLER 1300
RESEARCH SMITH 800
RESEARCH ADAMS 1100
RESEARCH FORD 3000
RESEARCH SCOTT 3000
RESEARCH JONES 2975
SALES ALLEN 1600
SALES BLAKE 2850
SALES MARTIN 1250
SALES JAMES 950
SALES TURNER 1500
SALES WARD 1250
14 rows selected.
We tried use DBMS_XMLQUERY to generate a xml file, but it was unable to get xml in Hierarchical format.
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <ROWSET>
- <ROW num="1">
<DNAME>ACCOUNTING</DNAME>
<ENAME>CLARK</ENAME>
<SAL>2450</SAL>
</ROW>
- <ROW num="2">
<DNAME>ACCOUNTING</DNAME>
<ENAME>KING</ENAME>
<SAL>5000</SAL>
</ROW>
- <ROW num="3">
<DNAME>ACCOUNTING</DNAME>
<ENAME>MILLER</ENAME>
<SAL>1300</SAL>
</ROW>
- <ROW num="4">
<DNAME>RESEARCH</DNAME>
<ENAME>SMITH</ENAME>
<SAL>800</SAL>
</ROW>
- <ROW num="5">
<DNAME>RESEARCH</DNAME>
<ENAME>ADAMS</ENAME>
<SAL>1100</SAL>
</ROW>
- <ROW num="6">
<DNAME>RESEARCH</DNAME>
<ENAME>FORD</ENAME>
<SAL>3000</SAL>
</ROW>
- <ROW num="7">
<DNAME>RESEARCH</DNAME>
<ENAME>SCOTT</ENAME>
<SAL>3000</SAL>
</ROW>
- <ROW num="8">
<DNAME>RESEARCH</DNAME>
<ENAME>JONES</ENAME>
<SAL>2975</SAL>
</ROW>
- <ROW num="9">
<DNAME>SALES</DNAME>
<ENAME>ALLEN</ENAME>
<SAL>1600</SAL>
</ROW>
- <ROW num="10">
<DNAME>SALES</DNAME>
<ENAME>BLAKE</ENAME>
<SAL>2850</SAL>
</ROW>
- <ROW num="11">
<DNAME>SALES</DNAME>
<ENAME>MARTIN</ENAME>
<SAL>1250</SAL>
</ROW>
- <ROW num="12">
<DNAME>SALES</DNAME>
<ENAME>JAMES</ENAME>
<SAL>950</SAL>
</ROW>
- <ROW num="13">
<DNAME>SALES</DNAME>
<ENAME>TURNER</ENAME>
<SAL>1500</SAL>
</ROW>
- <ROW num="14">
<DNAME>SALES</DNAME>
<ENAME>WARD</ENAME>
<SAL>1250</SAL>
</ROW>
</ROWSET>
Thank you for some help.
Nelson AlbertiHi,
I wrote a general ABAP program which can be configured to grab contrent from an URL and post that content as a new PI message into the integration adapter .... from that point on normal PI configuration can be used to route it to anywhere ...
It can be easily scheduled as a background job to grab content on a daily basis etc ...
Regards,
Steven -
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 -
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. -
Frm-40505:ORACLE error: unable to perform query in oracle forms 10g
Hi,
I get error frm-40505:ORACLE error: unable to perform query on oracle form in 10g environment, but the same form works properly in 6i.
Please let me know what do i need to do to correct this problem.
Regards,
PriyaHi everyone,
I have block created on view V_LE_USID_1L (which gives the error frm-40505) . We don't need any updation on this block, so the property 'updateallowed' is set to 'NO'.
To fix this error I modified 'Keymode' property, set it to 'updatable' from 'automatic'. This change solved the problem with frm-40505 but it leads one more problem.
The datablock v_le_usid_1l allows user to enter the text (i.e. updated the field), when the data is saved, no message is shown. When the data is refreshed on the screen, the change done previously on the block will not be seen (this is because the block updateallowed is set to NO), how do we stop the fields of the block being editable?
We don't want to go ahead with this solution as, we might find several similar screens nad its diff to modify each one of them individually. When they work properly in 6i, what it doesn't in 10g? does it require any registry setting?
Regards,
Priya -
Database performance degradation issue
Hi,
We are having the database performance related problem.
Oracle database 8.1.7.0
when we use statement,
SQL> select name,value from v$sysstat where name ='redo buffer allocation retries';
NAME VALUE
redo buffer allocation retries 2540
Here, Redo retries value shown above is too big, which it should not be.
Currently we are having log_buffer = 65536 bytes (64 kb)
Is it necessary to increase the size of log_buffer ? does increasing the size of log_buffer will improve the database performance issue upto some extent ?
Also, regarding database buffer cache,
SQL> SELECT NAME, VALUE FROM V$SYSSTAT WHERE NAME IN ('db block gets', 'consistent gets', 'physical reads');
NAME VALUE
db block gets 4365099
consistent gets 1309280457
physical reads 103708616
From the above values, buffer cache hit ratio is 0.921052817
So, is it necessary to increase the size of database buffer cache ?
With RegardsLog_buffer 64k is likely too small. The default is 512k per CPU.
Increasing log buffer will decrease the number of redo allocation retries.
You need to set to 512K or 1M.
Buffer Cache Hit Ratio is a Meaningless Indicator of the Performance of the System, as Connor McDonald has demonstrated on http://www.oracledba.co.uk
You'd better strive to reduce I/O.
Also you will notice you need very big amounts of memory to get very little improvement.
Personally I would probably do something if BCHR was below 80 percent, but I know of situations where the problem is in the application and no value of db_blockf_buffers will be big enough.
Hth
Sybrand Bakker
Senior Oracle DBA -
Oracle 11 G database performance tuning
How to indexing the oracle 11G database?
Thanks in advance.Your question is like if you ask "Tell me how to fix a car". As you know people spend years learning how to fix different problems with cars; the same applies to database performance tuning. There is no way to answer this question in one post. Please ask a more specific question in an apropriate (database related) forum.
cheers -
Can anyone help me? I just anted to know which are best and
precise sites on internet where I can find info about Oracle 8i
database performance monitoring,correction,best practises and
prevention. Many times our database performance goes down and
need to trouble shoot and correct the problems
Thanks
sandeepHi sue..
please send the papers to me also..my mail id [email protected]
bye bye
subbu
The Oracle Performance and Tuning class is very good at least
when I took it around 2 years ago.
Oracle Performance Tuning by Mark Curry and Peter Corrigan is
good but is probably too deep for someone new in Oracle. (It's
too deep for me most of the time since I've worked with Oracle
for 2.5 years now)
I could also send you a paper that gives a fairly good
explanation on use of V$SESSION_WAIT, V$SESSION_EVENT, and
V$SYSTEM_WAIT. V$SESSION_WAIT tells you what application is
wating and what is the event wait occuring.
Let me know if you want it.
Maybe you are looking for
-
NVIDIA GeForce 8600M GT graphics processor Macbook Pro 15 in model June 2007
Screen black out with power on, read on the web that this is due to manufacturing defect of NVIDIA GeForce 8600M GT graphics processor, will i still get the free replacement from Apple service centre?
-
10.6.8 Canon printer sharing
Hello, I'm the head of IT for a non-profit and we're trying to share our Canon MF6530 between our two Mac Pros running 10.6.8. We're on a wireless network, with the Canon connected to ComputerA via USB and using Bonjour to share it wih ComputerB. Com
-
What is the syntax? From a client desktop I can login to SQL Plus and Enterprise Manager 10g, but not via ODBC (Test Connection) using the same login. SQL PLUS: Start/Programs/Oracle - OraDb10g_home3/Application Development/SQL Plus presents a login
-
Cold Fusion Implicit Data Type Conversion
I Have a Question for Anyone. I have a Simple <CFIF> Statement comparing 2 values Ex.(<CFIF Val1 EQ Val2>) Val1 is Initialize to "" Val2 in one of the Following 01B, 01C, 01D, 01E, 01F, 01G The Question I Have is: Why will the Comparison only crash W
-
Hi, I would like to know how sap determine the COGM. 1) may i know cogm is considered p&l or balance sheet? to me, cogm can be bs and also p&l. if sold, then p&l, else bs. but i was told sap treats cogm as p&l. so i would like to confirm this point.