Skip to main content

How to check quickly the most expensive event status on database order by hundredths of a second



set linesize 300
set pagesize 80
select event, total_waits,time_waited 
from V$system_event
where event NOT IN
('pmon timer', 'smon timer', 'rdbms ipc reply', 'parallel deque wait',
'virtual circuit', '%SQL*Net%', 'client message', 'NULL event')
order by time_waited desc;


EVENT                                                            TOTAL_WAITS TIME_WAITED
---------------------------------------------------------------- ----------- -----------
SQL*Net message from client                                       2544593029  9.5738E+10
rdbms ipc message                                                   59890948  9356298126
EMON slave idle wait                                                 4176203  2088107168
Space Manager: slave idle wait                                       5305448  1054797785
DIAG idle wait                                                       8318686   831907680
Streams AQ: emn coordinator idle wait                                 417631   417636828
Streams AQ: qmn coordinator idle wait                                 299027   417635512
Streams AQ: qmn slave idle wait                                       149517   417632391
LNS ASYNC end of log                                                28649629   412144766
Streams AQ: waiting for time management or cleanup tasks                  16   374508583
db file sequential read                                           6094148284   101288206
db file scattered read                                             240411748     6836985
db file parallel read                                              186404095     6398861
direct path read                                                    27329910     3512900
log file parallel write                                             27909838     2252334
log file sync                                                       23244780     2045899
SQL*Net more data to client                                         22152314     1597210
SQL*Net more data from client                                        2966774     1552454
PX Idle Wait                                                             116     1444719
db file parallel write                                              20117770     1329762
jobq slave wait                                                        22514     1117679
flashback log file write                                             2382695      750777
control file parallel write                                          5019598      519358
read by other session                                                6240301      428481
LNS wait on SENDREQ                                                 26527936      322477
SQL*Net message to client                                         2544371341      237607
enq: TX - row lock contention                                          14420      209558
enq: TX - contention                                                    7033      196450
direct path write temp                                               1151975      188288
control file sequential read                                        29607742      128987
log file sequential read                                              301381      112421
db file async I/O submit                                             5513873      102108
SQL*Net break/reset to client                                        2106997       81595
wait for unread message on broadcast channel                          209565       78040
direct path read temp                                                1138231       68282
os thread startup                                                      17821       52884
SQL*Net vector data to client                                        5716120       49388
enq: WF - contention                                                       2       42613
Disk file operations I/O                                             4605590       39631
cursor: pin S wait on X                                                  323       36576
Log archive I/O                                                         1081       33843
Data file init write                                                   49795       19149
SQL*Net vector data from client                                       153052       18207
buffer busy waits                                                    1927510       15544
flashback log file read                                                47424       11843
enq: TX - index contention                                             15879        7702
recovery area: computing applied logs                                    246        7652
reliable message                                                      617437        3202
ADR block file read                                                    62178        3046
Parameter File I/O                                                   1392690        3043
enq: KO - fast object checkpoint                                        5929        2541
JS coord start wait                                                       49        2446
Data Guard Broker Wait                                                    24        2350
cursor: pin S                                                         545364        2151
parallel recovery slave idle wait                                        251        1322
library cache: mutex X                                                 33616        1304
latch: cache buffers chains                                           853324        1267
securefile chain update                                                 1274        1197
PX Deq: Txn Recovery Start                                                50        1186
enq: CF - contention                                                     198        1155
undo segment extension                                                  1573        1033
wait for EMON to spawn                                                  1025        1027
flashback log file sync                                                 4815        1020
direct path write                                                       7287         906
control file single write                                               3431         833
log file switch completion                                               148         820
LGWR wait for redo copy                                               190555         734
local write wait                                                        2042         725
row cache lock                                                           468         635
ADR block file write                                                   11690         573
SecureFile mutex                                                       12300         555
ARCH wait on SENDREQ                                                     410         456
switch logfile command                                                    50         430
library cache lock                                                        58         426
control file heartbeat                                                     1         400
latch free                                                             28211         396
write complete waits                                                      14         346

EVENT                                                            TOTAL_WAITS TIME_WAITED
---------------------------------------------------------------- ----------- -----------
class slave wait                                                       17323         275
log file single write                                                   1024         263
ARCH wait for process start 3                                              3         246
enq: TC - contention                                                     409         241
enq: CR - block range reuse ckpt                                         766         215
LGWR-LNS wait on channel                                                 148         148
ARCH wait on ATTACH                                                        5         141
db file single write                                                    1264         138
parallel recovery slave wait for change                                  419         112
log buffer space                                                           2         111
ADR file lock                                                          14058         101
SGA: allocation forcing component growth                                   6          73
kksfbc child completion                                                   13          65
enq: RO - fast object reuse                                              203          53
asynch descriptor resize                                              239660          46
buffer exterminate                                                        44          44
SGA: MMAN sleep for component shrink                                     112          42
latch: cache buffers lru chain                                         11299          40
library cache load lock                                                  117          29
latch: shared pool                                                       201          26
wait for stopper event to be increased                                    12          24
recovery read                                                             95          22
latch: object queue header operation                                    4066          22
latch: undo global data                                                 6610          20
enq: HW - contention                                                      50          14
buffer deadlock                                                        14213          14
LNS wait on ATTACH                                                         1          12
enq: JS - queue lock                                                      13          11
utl_file I/O                                                             250           5
PX Deque wait                                                             23           4
CSS initialization                                                         1           4
PX Deq: Slave Session Stats                                              142           4
enq: SQ - contention                                                      91           3
parallel recovery coord wait for reply                                   115           3
enq: PR - contention                                                       2           3
Streams AQ: emn coordinator waiting for slave to start                     5           2
latch: active service list                                               287           2
log file switch (checkpoint incomplete)                                    1           2
PX Deq: Join ACK                                                          71           1
Disk file Mirror/Media Repair Write                                        3           1
latch: call allocation                                                    71           1
PX Deq: Test for credit                                                   18           1
ARCH wait on DETACH                                                        4           1
latch: redo writing                                                       50           1
latch: messages                                                           86           1
latch: redo allocation                                                    75           1
enq: TX - allocate ITL entry                                              12           1
latch: row cache objects                                                 365           1
Streams AQ: qmn coordinator waiting for slave to start                     2           0
enq: RF - synch: DG Broker metadata                                      137           0
ASM file metadata operation                                                1           0
enq: PS - contention                                                       1           0
PX Deq: Signal ACK EXT                                                    71           0
PX Deq: Test for msg                                                     301           0
PX Deq Credit: free buffer                                                41           0
PX qref latch                                                              2           0
instance state change                                                      2           0
enq: FB - contention                                                       1           0
latch: lob segment dispenser latch                                         7           0
latch: lob segment hash table latch                                       23           0
enq: US - contention                                                       2           0
parallel recovery coord send blocked                                       1           0
ARCH wait for archivelog lock                                            425           0
latch: checkpoint queue latch                                             35           0
latch: enqueue hash chains                                                36           0
latch: session allocation                                                  1           0
wait list latch free                                                       3           0
PX Deq Credit: need buffer                                                 2           0
cursor: mutex X                                                           49           0
PX Deq: Txn Recovery Reply                                                 2           0
LNS wait on LGWR                                                           1           0
LNS wait on DETACH                                                         1           0
checkpoint completed                                                       2           0
DG Broker configuration file I/O                                          13           0

151 rows selected.


SQL>





Comments

Last Week Topics

How to break a bonded network interface red hat

1.- Bonding device called bond0 which aggregated by eth0 and eth1 # ifconfig bond0     Link encap:Ethernet  HWaddr 44:a8:42:5d:6d:5d           inet addr:192.168.1.51  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::5054:ff:fe4d:9004/64 Scope:Link           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 eth0      Link encap:Ethernet  HWaddr 44:a8:42:5d:6d:5d           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1 eth2      Link encap:Ethernet  HWaddr 44:a8:42:5d:76:29           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1           RX packets:6 errors:0 dropped:0 overruns:0 frame:0 # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: fault-tolerance (active-backup) Primary Slave: em1 (primary_reselect always) Currently Active Slave: em1 MII Status: up MII Polling Interval (ms): 50 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Speed: 10000

HOW TO ADD A LINE WITH ANSIBLE WITH TAB SPACE IN A FILE

-bash-4.2# vi add_line_syslog.yml --- - name: script in order to add in the server list below with TAB spaces a Line in the SYSLOG CONF   hosts: oraking   tasks:     - name: Add a Line  in /etc/syslog.conf in order to delivery that information to another server       lineinfile:         path: /etc/syslog.conf         line: " *.err;auth.notice;auth.info;local0.info \t\t @10.10.10.200 "         insertbefore: ' \*.alert;kern.err;daemon.err '     - name: Restart system-log       command: /usr/sbin/svcadm restart svc:/system/system-log:default

How to configure publisher and install packages in Oracle Solaris 11

Connect to Oracle Support and Download the certificates Set proxy if you have one  #export https_proxy=https://usuario:password@191.118.2.110:8080  #export http_proxy=http://usuario:password@191.118.2.110:8080 You can add in the profile this information in order to have them configured in the login 1.-Download the ssl certicates in order to install them in the server 2.-Create a directory /var/pkg/ssl. #mkdir -p 755  /var/pkg/ssl 3.-Copy or Move the cerrtificates  # cd /var/pkg/ssl/  # ls -ltr total 53 -rw-r--r--   1 root     root        1679 Mar 27 13:36 Oracle_Solaris_11_Support.key.pem -rw-r--r--   1 root     root         932 Mar 27 13:36 Oracle_Solaris_11_Support.certificate.pem 4.- # pkg set-publisher \  -k /var/pkg/ssl/Oracle_Solaris_11_Support.key.pem \ -c /var/pkg/ssl/Oracle_Solaris_11_Support.certificate.pem \ -g https://pkg.oracle.com/solaris/support/ \ -G http://pkg.oracle.com/solaris/release/ solaris   5.-Verify the new publisher  # pkg publ

Updating Solaris 11.X to 11.3 and SRU to 11.3.2.4.0

Updating Solaris 11.X to 11.3 Download Repository Certificate s accessing with MOS user https://pkg-register.oracle.com/register/certificate/ Upload them to the server and rename as below pkg.oracle.com.certificate.perm pkg.oracle.com.key.perm root@:~# pkg unset-publisher This option below delete the currently repository and add the new one root@:~# pkg set-publisher -k  /root/pkg.oracle.com.key.pem -c /root/pkg.oracle.com.certificate.pem -G "*" -g https://pkg.oracle.com/solaris/support/ solaris root@:~# pkg publisher PUBLISHER                   TYPE     STATUS P LOCATION solaris                     origin   online F http://pkg.oracle.com/solaris/support/ root@# pkg update Validate previous boot environment root@:~# beadm list BE      Flags Mountpoint Space  Policy Created --      ----- ---------- -----  ------ ------- solaris NR    /          12.58G static 2016-03-15 07:11 root@:~# root@:~# PHASE             

What is PaaS, IaaS and SaaS?

  Infrastructure Platform as a Service (iPaaS) Integration Platform as a Service (iPaaS) is a suite of cloud services enabling the development, execution, and governance of integration flows connecting any combination of on-premises and cloud-based processes, services, applications, and data within individuals or across multiple organizations.   Ease of use Comprehensive integration of toolsets   Level of support   Readiness to support protocols Flexibility Ability to process, clean, and transform data in formats like XML and JSON; Performance when handling large-scale data operations and concurrent executions; Support for real-time processing and batch data integration; Monitoring for failures, latency, resource utilization, and workflow performance;   Security mechanisms for access control, data encryption, and single sign-on integrations   Infrastructure as a Service (IaaS)     I s a business model that delivers IT infrastructure like computing, storage, and network resources on a p

HOW TO SHARE WITH ZFS A FILE SYSTEM IN SOLARIS 11

As root execute the following Create the pool #zpool create ztemp c0d0 Create ZFS  #zfs create ztemp/temp Mount ZFS  #zfs set mountpoint=/temp ztemp/temp Share ZFS with the option "sharenfs=on" #zfs set sharenfs=on ztemp/temp Share and Select the PATH and SERVERS that you need that mount the ZFS from the NFS Server in our case the servers are oracle1,oracle2 and oracle3 with Read and Write Options #zfs set share=name=temp,path=/temporario,prot=nfs,anon=0,rw=oracle1:oracle2:oracle3 ztemp/temp

How to install Explorer Data Collector 8.11 Solaris 11

1.-Download from Oracle Support MOS the patch 22783063 and unzip and run the command below p22783063_8111638_SOLARIS64.zip #./install_stb.sh -verbose Extracting the STB payload ... Determining the check sums ... Sourcing STB library file ... List of Services Tool Bundle Components:    Oracle Explorer Data Collector 8.11    Oracle Serial Number in EEPROM (SNEEP) 8.11    Service Tag (ST) packages    Oracle Autonomous Crashdump Tool 8.17 (ACT) Would you like to (I)nstall, (X)tract, or (E)xit ? (I by default) X  <-----Select Extract (X) Extracting components for Solaris 11/sparc ...  Extracting IPS repository  Extracting SVR4 packages for Service Tag (ST) packages  - Package 5.11_sparc/SUNWsthwreg.sparc.5.10.pkg extracted Extraction to /var/tmp/stb/extract done Removing STB installation area ...   2.- Now you have in the directory "/var/tmp/stb/extract" de ipsrepo  # cd /var/tmp/stb/extract rwxr-xr-x   3 102      staff          4 Mar  8 11:28 ipsrepo -rw-r--r-- 

How to see all spfile parameters

SET LINESIZE 300 COLUMN name  FORMAT A30 COLUMN value FORMAT A60 COLUMN displayvalue FORMAT A60 SELECT sp.sid,        sp.name,        sp.value,        sp.display_value FROM   v$spparameter sp ORDER BY sp.name, sp.sid;

How to Reset the Root Password of RHEL-7 / systemd

1) Boot your system and wait until the GRUB2 menu appears. 2) In the boot loader menu, highlight any entry and press e . 3) Find the line beginning with linux. At the end of this line, append the following: init=/bin/sh Or if you face a panic, instead of "ro" change to "rw" to sysroot as example below: rw init=/sysroot/bin/sh 4) Press F10 or Ctrl+X to boot the system using the options you just edited. Once the system boots, you will be presented with a shell prompt without having to enter any user name or password: sh-4.2# 5) Load the installed SELinux policy: sh-4.2# /usr/sbin/load_policy -i 6) Execute the following command to remount your root partition: sh4.2# mount -o remount,rw / 7) Reset the root password: Raw sh4.2# passwd root 9) Reboot the system. From now on, you will be able to log in as the root user using the new password set up during this procedure.