SlideShare a Scribd company logo
1 of 32
Download to read offline
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

What's hot

Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on ExadataAnil Nair
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Aaron Shilo
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsAnil Nair
 
Deep review of LMS process
Deep review of LMS processDeep review of LMS process
Deep review of LMS processRiyaj Shamsudeen
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTanel Poder
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 
Same plan different performance
Same plan different performanceSame plan different performance
Same plan different performanceMauro Pagano
 
My Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cMy Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cNelson Calero
 
Chasing the optimizer
Chasing the optimizerChasing the optimizer
Chasing the optimizerMauro Pagano
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecturenaderattia
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationMarkus Michalewicz
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseMarkus Michalewicz
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insightsKirill Loifman
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by exampleMauro Pagano
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptChien Chung Shen
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuningGuy Harrison
 

What's hot (20)

Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata Migrations
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Deep review of LMS process
Deep review of LMS processDeep review of LMS process
Deep review of LMS process
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
Same plan different performance
Same plan different performanceSame plan different performance
Same plan different performance
 
My Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12cMy Experience Using Oracle SQL Plan Baselines 11g/12c
My Experience Using Oracle SQL Plan Baselines 11g/12c
 
Chasing the optimizer
Chasing the optimizerChasing the optimizer
Chasing the optimizer
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecture
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning Concept
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 

Similar to Oracle Database performance tuning using oratop

Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop Sandesh Rao
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop Sandesh Rao
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuningafa reg
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performanceRicky Zhu
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and HadoopDataWorks Summit
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and ArchitectureSidney Chen
 
Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldPaul Marden
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and HadoopMichael Zhang
 
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdfBRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdfaaajjj4
 
My old security advisories on HMI/SCADA and industrial software released betw...
My old security advisories on HMI/SCADA and industrial software released betw...My old security advisories on HMI/SCADA and industrial software released betw...
My old security advisories on HMI/SCADA and industrial software released betw...Luigi Auriemma
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)akirahiguchi
 
Cisco data center support
Cisco data center supportCisco data center support
Cisco data center supportKrunal Shah
 
JomaSoft VDCF - Solaris Private Cloud
JomaSoft VDCF - Solaris Private CloudJomaSoft VDCF - Solaris Private Cloud
JomaSoft VDCF - Solaris Private CloudJomaSoft
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTanel Poder
 
Introduction to Parallel Execution
Introduction to Parallel ExecutionIntroduction to Parallel Execution
Introduction to Parallel ExecutionDoug Burns
 
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA   New Questions 29Tuts.Com New CCNA 200-120 New CCNA   New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2Lori Head
 

Similar to Oracle Database performance tuning using oratop (20)

Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performance
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and Hadoop
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Oracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open WorldOracle RAC Presentation at Oracle Open World
Oracle RAC Presentation at Oracle Open World
 
The Data Center and Hadoop
The Data Center and HadoopThe Data Center and Hadoop
The Data Center and Hadoop
 
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdfBRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
 
My old security advisories on HMI/SCADA and industrial software released betw...
My old security advisories on HMI/SCADA and industrial software released betw...My old security advisories on HMI/SCADA and industrial software released betw...
My old security advisories on HMI/SCADA and industrial software released betw...
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)
 
Cisco data center support
Cisco data center supportCisco data center support
Cisco data center support
 
JomaSoft VDCF - Solaris Private Cloud
JomaSoft VDCF - Solaris Private CloudJomaSoft VDCF - Solaris Private Cloud
JomaSoft VDCF - Solaris Private Cloud
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
 
Introduction to Parallel Execution
Introduction to Parallel ExecutionIntroduction to Parallel Execution
Introduction to Parallel Execution
 
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA   New Questions 29Tuts.Com New CCNA 200-120 New CCNA   New Questions 2
9Tuts.Com New CCNA 200-120 New CCNA New Questions 2
 
Dpdk applications
Dpdk applicationsDpdk applications
Dpdk applications
 
Long live to CMAN!
Long live to CMAN!Long live to CMAN!
Long live to CMAN!
 

More from Sandesh Rao

Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Sandesh Rao
 
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022Sandesh Rao
 
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
Analysis of Database Issues using AHF and Machine Learning v2 -  SOUGAnalysis of Database Issues using AHF and Machine Learning v2 -  SOUG
Analysis of Database Issues using AHF and Machine Learning v2 - SOUGSandesh Rao
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021Sandesh Rao
 
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUGSandesh Rao
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at OracleSandesh Rao
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseSandesh Rao
 
How to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsHow to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsSandesh Rao
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUGSandesh Rao
 
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaIntroduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaSandesh Rao
 
How to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaHow to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaSandesh Rao
 
Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Sandesh Rao
 
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEAIntroduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEASandesh Rao
 
20 tips and tricks with the Autonomous Database
20 tips and tricks with the Autonomous Database20 tips and tricks with the Autonomous Database
20 tips and tricks with the Autonomous DatabaseSandesh Rao
 
TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new Sandesh Rao
 
Machine Learning in Autonomous Data Warehouse
 Machine Learning in Autonomous Data Warehouse Machine Learning in Autonomous Data Warehouse
Machine Learning in Autonomous Data WarehouseSandesh Rao
 
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Sandesh Rao
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Sandesh Rao
 
Introduction to Machine Learning and Data Science using Autonomous Database ...
Introduction to Machine Learning and Data Science using Autonomous Database  ...Introduction to Machine Learning and Data Science using Autonomous Database  ...
Introduction to Machine Learning and Data Science using Autonomous Database ...Sandesh Rao
 
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
The Machine Learning behind the Autonomous Database   ILOUG Feb 2020 The Machine Learning behind the Autonomous Database   ILOUG Feb 2020
The Machine Learning behind the Autonomous Database ILOUG Feb 2020 Sandesh Rao
 

More from Sandesh Rao (20)

Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022Whats new in Autonomous Database in 2022
Whats new in Autonomous Database in 2022
 
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022Analysis of Database Issues using AHF and Machine Learning v2 -  AOUG2022
Analysis of Database Issues using AHF and Machine Learning v2 - AOUG2022
 
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
Analysis of Database Issues using AHF and Machine Learning v2 -  SOUGAnalysis of Database Issues using AHF and Machine Learning v2 -  SOUG
Analysis of Database Issues using AHF and Machine Learning v2 - SOUG
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
 
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
15 Troubleshooting tips and Tricks for Database 21c - KSAOUG
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at Oracle
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
 
How to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsHow to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata Environments
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
 
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmeaIntroduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
Introduction to Machine learning - DBA's to data scientists - Oct 2020 - OGBEmea
 
How to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmeaHow to use Exachk effectively to manage Exadata environments OGBEmea
How to use Exachk effectively to manage Exadata environments OGBEmea
 
Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020Troubleshooting tips and tricks for Oracle Database Oct 2020
Troubleshooting tips and tricks for Oracle Database Oct 2020
 
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEAIntroduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
Introduction to Machine Learning - From DBA's to Data Scientists - OGBEMEA
 
20 tips and tricks with the Autonomous Database
20 tips and tricks with the Autonomous Database20 tips and tricks with the Autonomous Database
20 tips and tricks with the Autonomous Database
 
TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new TFA, ORAchk and EXAchk 20.2 - What's new
TFA, ORAchk and EXAchk 20.2 - What's new
 
Machine Learning in Autonomous Data Warehouse
 Machine Learning in Autonomous Data Warehouse Machine Learning in Autonomous Data Warehouse
Machine Learning in Autonomous Data Warehouse
 
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
Introduction to AutoML and Data Science using the Oracle Autonomous Database ...
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
 
Introduction to Machine Learning and Data Science using Autonomous Database ...
Introduction to Machine Learning and Data Science using Autonomous Database  ...Introduction to Machine Learning and Data Science using Autonomous Database  ...
Introduction to Machine Learning and Data Science using Autonomous Database ...
 
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
The Machine Learning behind the Autonomous Database   ILOUG Feb 2020 The Machine Learning behind the Autonomous Database   ILOUG Feb 2020
The Machine Learning behind the Autonomous Database ILOUG Feb 2020
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 

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