SlideShare a Scribd company logo
Oracle Database Performance Tuning
Using oratop
Sandesh Rao
VP AIOps for the Autonomous
@sandeshr
https://www.linkedin.com/in/raosandesh/
https://www.slideshare.net/SandeshRao4
Tips and tricks
A text-based interface like “top”, which can
be run against Real Application Cluster (RAC)
or non-RAC databases
It provides the ability to monitor the
database in near real time
What is oratop
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
Visual layout
(1) Database
(2) Instance activity
(3) AWR like
“Top 5 Timed Events”
(4) Process or SQL
$ export ORACLE_HOME=<path>
$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib
$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/suptools/oratop:$PATH
Command line mode
oratop: Release 16.5.1
The oratop program provides a dynamic near real-time view of an open database
It also provides a limited on-line interactive interface.
Usage:
oratop [ [Options] [Logon] ]
Logon: {username[@connect_identifier] | / } [AS SYSDBA]
Password is prompted and the connect_identifier is TNS/ EZconnect
Options:
-b: batch mode. Used with –n iteration (default is console)
-n: maximum number of iterations (requires a value)
-o: Write console output to a file (in batch mode)
-i: interval delay (requires a value, default: 5)
-r: real-time (RT) wait events. (section 3, default: Cumulative)
-m: Session/Process MODULE/ACTION (default: USERNAME/PROGRAM)
-s: SQL mode. (section 4, default: session/process mode)
-f: detailed format, 132 columns. (default: standard, 80 columns)
-v: oratop release version number
-h: this help
$ ./oratop –h
$ oratop / as sysdba
Login
Connection method is like sqlplus
Connecting “ / as sysdba“ is allowed only for bequeath connections
The remote database requires setting the parameter “REMOTE_LOGIN_PASSWORDFILE” paired with
the availability of an Oracle password file.
$ export TWO_TASK= rmtdbhost:1521/db1.domain.com
oratop sys@rmtdbhost:1521/db1.domain.com as sysdba
Login
TNS:
export TNS_ADMIN and connect with a TNS alias name as defined in tnsnames.ora
TWO_TASK can be set with any of the above for ease of use, example
EZConnect, example:
oratop: Release 16.5.1 Production on Fri Feb 11 05:54:50 UTC 2022
Copyright (c) 2011, Oracle. All rights reserved.
Enter password:
$ ./oratop sys as sysdba
Symbols:
(B)tyle, (K)illo, (M)ega, (G)iga, (T)err, [PEXY]
(u)micro, (m)illi, (s)econd, minu(t)e, (h)our, (d)ay, (y)ear
[60s/ 15s] – metric interval size, else current.
Interactive Mode
Options can be seen after starting the utility followed by pressing the keyboard key ‘h’
oratop: Release 16.5.1
Abbreviations Help Menu:
Section 1 – DATABASE .. [1]
Section 2 – INSTANCE .. [2]
Section 3 – DB WAIT EVENTS .. [3]
Section 4 – SESSION/PROCESS .. [4]
Quit Help .. (q|Q)
Enter selection number:
Interactive Keys: [default]
f : toggle between [standard] & detailed format
r : toggle between [Cumulative ©] & Real-Time (RT) (section 3)
s : switch to SQL mode (section 4)
p : switch to [session/process] mode (section 4)
m : Toggle session [USERNAME/PROGRAM] & MODULE/ACTION (sections 4)
t : tablespace information (N/A on standby)
x : SQL plan table (requires a value)
I : refresh interval, requires value in seconds [5]
q : quit/ exit program
Esc : pause.
Wait Events (section 3)
Keyboard key press ‘r’ will toggle the wait event section between Cumulative and Realtime. For C,
the stats shown is the accumulation since the last database restart
Miscellaneous
Header’s %DCP
Column “%DCP” (in section 2) is the database instance cpu usage as %CPU of the host
Header’s “archivelog” and “er” (incidents) These two values are static, they are acquired once upon start of
monitoring only. They are not auto refreshed because the first incur expensive recursive query and the second
adds to diagnosability database waits
Values appearing in RED color
Values flagged and highlighted in red color are merely an emphasis of warning
Tablespaces listing
A list of all the tablespaces (cdb and pdb) can be obtained online with keyboard key press ‘t’
Detailed format (long)
Miscellaneous
Note. in RAC environment, while section 2 (instance section) is restricted to the top 5 instances in the text-based
user interface, all of the available instances will be listed in the batch mode.
Cycle 1 - oratop: Release 16.5.1 Production on Thu Feb 10 19:42:49 UTC 2022
Oracle 23c - 19:41:56 Pri r/w cdbs up: 13h, 12 sn, 4G sga, 10%fra, 15%db
ID %CPU LOAD AAS ASC ASI ASW ISW IORT MBPS %FRE PGA UCPS SQRT %DBC %DBW
-------------------------------------------------------------------------------
1 51 3 1 0 0 6 6 17m 2 8 834M 42 1m 4 11
EVENT (C) T/O WAIT TIME AVG %DBT WAIT_CLASS
-------------------------------------------------------------------------------
SQL*Net more data from client 31k 1d 3s 93 Network
SQL*Net message from dblink 505k 39t 5m 2 Network
DB CPU 39t 2
oracle thread bootstrap 9k 27t 186m 2 Other
db file sequential read 35k 4t 6m 0 User I/O
ID SID SPID USR PROG S OPN SQLID/BLOCKER E/T %CPU PGA ACT EVENT/OB W/T
-------------------------------------------------------------------------------
1 792 517 TPC tpcc D PL/ 582r1jmmm3tgj 3s 3 4M INA SQL*Net 3s
1 802 439 TPC tpcc D PL/ 582r1jmmm3tgj 184m 3 4M INA SQL*Net 184m
1 418 413 TPC tpcc D PL/ 582r1jmmm3tgj 185m 1 4M INA SQL*Net 185m
Batch mode is applicable at the command line with the relevant input options.
Batch Mode
Cycle 2 - oratop: Release 16.5.1 Production on Thu Feb 10 19:42:54 UTC 2022
Oracle 23c - 19:41:56 Pri r/w cdbs up: 13h, 12 sn, 4G sga, 10%fra, 15%db
ID %CPU LOAD AAS ASC ASI ASW ISW IORT MBPS %FRE PGA UCPS SQRT %DBC %DBW
-------------------------------------------------------------------------------
1 51 3 1 0 0 6 6 17m 2 8 834M 42 1m 4 11
EVENT (C) T/O WAIT TIME AVG %DBT WAIT_CLASS
oratop: Release 16.5.1 Production on Thu Feb 10 19:42:40 UTC 2022
Copyright (c) 2011, Oracle. All rights reserved.
Enter password:
Connecting
$ ./oratop / sysdba -bn1
SQL (key press ‘s’)
SQL
SQL (key press ‘x’)
SQL Plan
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
Standby or mounted database instance
• STANDBY - key press “t” for “TABLESPACE INFORMATION” will not return any rows. Reason: BUG 27841703
• MOUNTED Instance – Section 2 will show inst_id highlighted in red color. Reason: Required statistics is not
available until instance is opened.
Miscellaneous
Unprivileged user
A typical error encountered by a non-privileged user upon connection to the database using the tool is “ORA-
00942: table or view does not exist”
To allow the non-privileged user to use oratop, the system administrator with a DBA role may issue the
following grant: “GRANT SELECT ANY DICTIONARY TO ;”
Exiting
To quit the program gracefully, user may press keyboard keys: "q" or "Q", or Esc key. A Ctrl+c to abort forcibly. In
all cases, proper database logout is performed
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
Monitor a local database:
Monitoring a remote database:
or
Monitoring a database every 10 seconds
$ ./oratop -i 10 / as sysdba
$ ./oratop -i 10 username/password@tns_alias
$ ./oratop -i 10 system/manager@tns_alias
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
Running from AHF
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
tfactl menu
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
f : toggle between [standard] & detailed format
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
r : toggle between [Cumulative ©] & Real-Time (RT) (section 3)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
s : switch to SQL mode (section 4)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
p : switch to [session/process] mode (section 4)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
m : Toggle session [USERNAME/PROGRAM] & MODULE/ACTION (sections 4)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
t : tablespace information (N/A on standby)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
x : SQL plan table (requires a value)
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
I : refresh interval, requires value in seconds [5]
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
(h) Help menu
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
(h) Help menu
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
(h) Help menu
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
(h) Help menu
23/07/2022
Copyright © 2021, Oracle and/or its affiliates
(h) Help menu
Oracle Database performance tuning using oratop

More Related Content

PPTX
AWR and ASH Deep Dive
PDF
Smart monitoring how does oracle rac manage resource, state ukoug19
PPTX
Oracle RAC features on Exadata
PDF
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
PDF
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
PDF
Tanel Poder - Scripts and Tools short
PDF
Exadata master series_asm_2020
PPT
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
AWR and ASH Deep Dive
Smart monitoring how does oracle rac manage resource, state ukoug19
Oracle RAC features on Exadata
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
Tanel Poder - Scripts and Tools short
Exadata master series_asm_2020
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors

What's hot (20)

PDF
Oracle db performance tuning
PDF
Oracle RAC 19c: Best Practices and Secret Internals
PDF
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
PDF
Understanding oracle rac internals part 2 - slides
PDF
AWR & ASH Analysis
PDF
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
PDF
How to Use EXAchk Effectively to Manage Exadata Environments
PDF
Oracle RAC 19c and Later - Best Practices #OOWLON
PPTX
Explain the explain_plan
PDF
New Generation Oracle RAC Performance
PPTX
Why oracle data guard new features in oracle 18c, 19c
PPTX
Oracle sql high performance tuning
PDF
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
PDF
Migration to Oracle Multitenant
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PDF
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
PDF
Oracle data guard for beginners
PDF
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
PDF
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
PDF
Oracle Performance Tuning Fundamentals
Oracle db performance tuning
Oracle RAC 19c: Best Practices and Secret Internals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
Understanding oracle rac internals part 2 - slides
AWR & ASH Analysis
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
How to Use EXAchk Effectively to Manage Exadata Environments
Oracle RAC 19c and Later - Best Practices #OOWLON
Explain the explain_plan
New Generation Oracle RAC Performance
Why oracle data guard new features in oracle 18c, 19c
Oracle sql high performance tuning
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Migration to Oracle Multitenant
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Oracle data guard for beginners
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Oracle Performance Tuning Fundamentals
Ad

Similar to Oracle Database performance tuning using oratop (20)

PDF
Performance Tuning Using oratop
PDF
Performance Tuning Using oratop
PDF
unix_linux_ORATOP_TechDays2016_presentations
PDF
Oracle Trace File Analyzer Overview
PDF
Trace File Analyzer - Usage and Features
PPTX
Oracle Database 19c New Features for DBAs and Developers.pptx
PDF
Novinky v Oracle Database 18c
TXT
oracle dba
PDF
Whats new in oracle ORAchk & EXAchk 18.3.0
PDF
Whats new in oracle OraChk and Exachk 18.3.0
PDF
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
PDF
My First 100 days with an Exadata (PPT)
PDF
AUSOUG - NZOUG - Groundbreakers - Jun 2019 - 19 Troubleshooting Tips and Tric...
PDF
Oracle Trace File Analyzer - What's New in 12.2.1.1.0
PPTX
OpenWorld 2018 - 20 years of hints and tips
PDF
What's new in oracle trace file analyzer 18.2.0
PPTX
Melbourne Groundbreakers Tour - Hints and Tips
PDF
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
PDF
APAC Groundbreakers 2019 - Perth/Melbourne
PDF
How to create a non managed standby database
Performance Tuning Using oratop
Performance Tuning Using oratop
unix_linux_ORATOP_TechDays2016_presentations
Oracle Trace File Analyzer Overview
Trace File Analyzer - Usage and Features
Oracle Database 19c New Features for DBAs and Developers.pptx
Novinky v Oracle Database 18c
oracle dba
Whats new in oracle ORAchk & EXAchk 18.3.0
Whats new in oracle OraChk and Exachk 18.3.0
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
My First 100 days with an Exadata (PPT)
AUSOUG - NZOUG - Groundbreakers - Jun 2019 - 19 Troubleshooting Tips and Tric...
Oracle Trace File Analyzer - What's New in 12.2.1.1.0
OpenWorld 2018 - 20 years of hints and tips
What's new in oracle trace file analyzer 18.2.0
Melbourne Groundbreakers Tour - Hints and Tips
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
APAC Groundbreakers 2019 - Perth/Melbourne
How to create a non managed standby database
Ad

More from Sandesh Rao (20)

PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
PDF
Will Oracle 23ai make you a better DBA or Developer?
PDF
Beyond Metrics – Oracle AHF Insights for Proactive Database Management - DOAG...
PDF
Sandesh_Rao_Navigating Oracle Troubleshooting- AHF Insights for Database 23ai...
PDF
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
PDF
Whats new in Autonomous Database in 2022
PDF
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
PDF
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
PDF
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
PDF
Machine Learning and AI at Oracle
PDF
Top 20 FAQs on the Autonomous Database
PDF
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
PDF
TFA Collector - what can one do with it
PDF
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
PDF
How to use Exachk effectively to manage Exadata environments OGBEmea
PDF
Troubleshooting tips and tricks for Oracle Database Oct 2020
PDF
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Will Oracle 23ai make you a better DBA or Developer?
Beyond Metrics – Oracle AHF Insights for Proactive Database Management - DOAG...
Sandesh_Rao_Navigating Oracle Troubleshooting- AHF Insights for Database 23ai...
Sandesh_Rao_Unlocking Oracle Database Mysteries AHF Insights and the AI-LLM D...
Whats new in Autonomous Database in 2022
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
Machine Learning and AI at Oracle
Top 20 FAQs on the Autonomous Database
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
TFA Collector - what can one do with it
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmea
Troubleshooting tips and tricks for Oracle Database Oct 2020
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PPT
Teaching material agriculture food technology
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
cuic standard and advanced reporting.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Teaching material agriculture food technology
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
cuic standard and advanced reporting.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
The Rise and Fall of 3GPP – Time for a Sabbatical?

Oracle Database performance tuning using oratop

  • 1. Oracle Database Performance Tuning Using oratop Sandesh Rao VP AIOps for the Autonomous @sandeshr https://www.linkedin.com/in/raosandesh/ https://www.slideshare.net/SandeshRao4 Tips and tricks
  • 2. A text-based interface like “top”, which can be run against Real Application Cluster (RAC) or non-RAC databases It provides the ability to monitor the database in near real time What is oratop 23/07/2022 Copyright © 2021, Oracle and/or its affiliates
  • 3. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates Visual layout (1) Database (2) Instance activity (3) AWR like “Top 5 Timed Events” (4) Process or SQL
  • 4. $ export ORACLE_HOME=<path> $ export LD_LIBRARY_PATH=$ORACLE_HOME/lib $ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/suptools/oratop:$PATH Command line mode oratop: Release 16.5.1 The oratop program provides a dynamic near real-time view of an open database It also provides a limited on-line interactive interface. Usage: oratop [ [Options] [Logon] ] Logon: {username[@connect_identifier] | / } [AS SYSDBA] Password is prompted and the connect_identifier is TNS/ EZconnect Options: -b: batch mode. Used with –n iteration (default is console) -n: maximum number of iterations (requires a value) -o: Write console output to a file (in batch mode) -i: interval delay (requires a value, default: 5) -r: real-time (RT) wait events. (section 3, default: Cumulative) -m: Session/Process MODULE/ACTION (default: USERNAME/PROGRAM) -s: SQL mode. (section 4, default: session/process mode) -f: detailed format, 132 columns. (default: standard, 80 columns) -v: oratop release version number -h: this help $ ./oratop –h
  • 5. $ oratop / as sysdba Login Connection method is like sqlplus Connecting “ / as sysdba“ is allowed only for bequeath connections The remote database requires setting the parameter “REMOTE_LOGIN_PASSWORDFILE” paired with the availability of an Oracle password file.
  • 6. $ export TWO_TASK= rmtdbhost:1521/db1.domain.com oratop sys@rmtdbhost:1521/db1.domain.com as sysdba Login TNS: export TNS_ADMIN and connect with a TNS alias name as defined in tnsnames.ora TWO_TASK can be set with any of the above for ease of use, example EZConnect, example: oratop: Release 16.5.1 Production on Fri Feb 11 05:54:50 UTC 2022 Copyright (c) 2011, Oracle. All rights reserved. Enter password: $ ./oratop sys as sysdba
  • 7. Symbols: (B)tyle, (K)illo, (M)ega, (G)iga, (T)err, [PEXY] (u)micro, (m)illi, (s)econd, minu(t)e, (h)our, (d)ay, (y)ear [60s/ 15s] – metric interval size, else current. Interactive Mode Options can be seen after starting the utility followed by pressing the keyboard key ‘h’ oratop: Release 16.5.1 Abbreviations Help Menu: Section 1 – DATABASE .. [1] Section 2 – INSTANCE .. [2] Section 3 – DB WAIT EVENTS .. [3] Section 4 – SESSION/PROCESS .. [4] Quit Help .. (q|Q) Enter selection number: Interactive Keys: [default] f : toggle between [standard] & detailed format r : toggle between [Cumulative ©] & Real-Time (RT) (section 3) s : switch to SQL mode (section 4) p : switch to [session/process] mode (section 4) m : Toggle session [USERNAME/PROGRAM] & MODULE/ACTION (sections 4) t : tablespace information (N/A on standby) x : SQL plan table (requires a value) I : refresh interval, requires value in seconds [5] q : quit/ exit program Esc : pause.
  • 8. Wait Events (section 3) Keyboard key press ‘r’ will toggle the wait event section between Cumulative and Realtime. For C, the stats shown is the accumulation since the last database restart Miscellaneous Header’s %DCP Column “%DCP” (in section 2) is the database instance cpu usage as %CPU of the host Header’s “archivelog” and “er” (incidents) These two values are static, they are acquired once upon start of monitoring only. They are not auto refreshed because the first incur expensive recursive query and the second adds to diagnosability database waits Values appearing in RED color Values flagged and highlighted in red color are merely an emphasis of warning Tablespaces listing A list of all the tablespaces (cdb and pdb) can be obtained online with keyboard key press ‘t’
  • 9. Detailed format (long) Miscellaneous Note. in RAC environment, while section 2 (instance section) is restricted to the top 5 instances in the text-based user interface, all of the available instances will be listed in the batch mode.
  • 10. Cycle 1 - oratop: Release 16.5.1 Production on Thu Feb 10 19:42:49 UTC 2022 Oracle 23c - 19:41:56 Pri r/w cdbs up: 13h, 12 sn, 4G sga, 10%fra, 15%db ID %CPU LOAD AAS ASC ASI ASW ISW IORT MBPS %FRE PGA UCPS SQRT %DBC %DBW ------------------------------------------------------------------------------- 1 51 3 1 0 0 6 6 17m 2 8 834M 42 1m 4 11 EVENT (C) T/O WAIT TIME AVG %DBT WAIT_CLASS ------------------------------------------------------------------------------- SQL*Net more data from client 31k 1d 3s 93 Network SQL*Net message from dblink 505k 39t 5m 2 Network DB CPU 39t 2 oracle thread bootstrap 9k 27t 186m 2 Other db file sequential read 35k 4t 6m 0 User I/O ID SID SPID USR PROG S OPN SQLID/BLOCKER E/T %CPU PGA ACT EVENT/OB W/T ------------------------------------------------------------------------------- 1 792 517 TPC tpcc D PL/ 582r1jmmm3tgj 3s 3 4M INA SQL*Net 3s 1 802 439 TPC tpcc D PL/ 582r1jmmm3tgj 184m 3 4M INA SQL*Net 184m 1 418 413 TPC tpcc D PL/ 582r1jmmm3tgj 185m 1 4M INA SQL*Net 185m Batch mode is applicable at the command line with the relevant input options. Batch Mode Cycle 2 - oratop: Release 16.5.1 Production on Thu Feb 10 19:42:54 UTC 2022 Oracle 23c - 19:41:56 Pri r/w cdbs up: 13h, 12 sn, 4G sga, 10%fra, 15%db ID %CPU LOAD AAS ASC ASI ASW ISW IORT MBPS %FRE PGA UCPS SQRT %DBC %DBW ------------------------------------------------------------------------------- 1 51 3 1 0 0 6 6 17m 2 8 834M 42 1m 4 11 EVENT (C) T/O WAIT TIME AVG %DBT WAIT_CLASS oratop: Release 16.5.1 Production on Thu Feb 10 19:42:40 UTC 2022 Copyright (c) 2011, Oracle. All rights reserved. Enter password: Connecting $ ./oratop / sysdba -bn1
  • 11. SQL (key press ‘s’) SQL
  • 12. SQL (key press ‘x’) SQL Plan
  • 13. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates Standby or mounted database instance • STANDBY - key press “t” for “TABLESPACE INFORMATION” will not return any rows. Reason: BUG 27841703 • MOUNTED Instance – Section 2 will show inst_id highlighted in red color. Reason: Required statistics is not available until instance is opened. Miscellaneous Unprivileged user A typical error encountered by a non-privileged user upon connection to the database using the tool is “ORA- 00942: table or view does not exist” To allow the non-privileged user to use oratop, the system administrator with a DBA role may issue the following grant: “GRANT SELECT ANY DICTIONARY TO ;” Exiting To quit the program gracefully, user may press keyboard keys: "q" or "Q", or Esc key. A Ctrl+c to abort forcibly. In all cases, proper database logout is performed
  • 14. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates Monitor a local database: Monitoring a remote database: or Monitoring a database every 10 seconds $ ./oratop -i 10 / as sysdba $ ./oratop -i 10 username/password@tns_alias $ ./oratop -i 10 system/manager@tns_alias
  • 15. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates Running from AHF
  • 16. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates tfactl menu
  • 17. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates
  • 18. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates
  • 19. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates f : toggle between [standard] & detailed format
  • 20. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates r : toggle between [Cumulative ©] & Real-Time (RT) (section 3)
  • 21. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates s : switch to SQL mode (section 4)
  • 22. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates p : switch to [session/process] mode (section 4)
  • 23. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates m : Toggle session [USERNAME/PROGRAM] & MODULE/ACTION (sections 4)
  • 24. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates t : tablespace information (N/A on standby)
  • 25. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates x : SQL plan table (requires a value)
  • 26. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates I : refresh interval, requires value in seconds [5]
  • 27. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates (h) Help menu
  • 28. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates (h) Help menu
  • 29. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates (h) Help menu
  • 30. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates (h) Help menu
  • 31. 23/07/2022 Copyright © 2021, Oracle and/or its affiliates (h) Help menu