Monitoring and Tuning The Database
Monitoring and Tuning The Database
Oracle Database makes it easy to monitor the health and performance of your database.
It monitors the vital signs (or metrics) related to database health and performance,
analyzes the workload running against the database, and automatically identifies any
issues that need your attention as an administrator. Any incidents (critical errors in the
database) are reported on the Database Home page in EM Express.
The Database Home page enables you to monitor the state and workload of your
database. It provides a central place for general database state information and is
updated periodically.
2. (Optional) Click the Refresh icon to the right of the selected refresh interval for the Auto
Refresh list to up date the information displayed.
The time that the Database Home page was last collected from the database appears near the
top right corner of the page.
By default, the Database Home page automatically refreshes every 60 seconds. You can prevent
automatic refresh by selecting Off in the Auto Refresh list at the top right-hand corner of the
page.
You must then click the Refresh icon to View the latest information.
3. Get a quick overview of the database state in the Status section, which includes the
following information:
. Up Time
- Type
The database type. The type can be a single instance database (CDB or non—CDB) or an Oracle
RAC database (or cluster database).
If the database type is a CDB, the next line will identify the database as a CDB and specify the
number of PDBs in the CDB. The CDB (n PDBs) line is a link to the Containers page, which shows
a list of containers in the CDB (not including PDB$SEED), as well as status, performance, and
resource information about the containers.
. Version
. Database name
. Instance name
. Platform name
- Host name
. Thread
. Archiver
4. View active session information in the Performance section. The Performance section shows
trend information for the past hour.
The Activity Class chart shows the average number of database sessions active for the past
hour. The chart shows the type of activity for each session (on CPU, waiting for I/O, or waiting
for another resource).
The Services chart shows the average number of database sessions active for the past hour for
database services.
For Oracle RAC, the Activity Class chart shows activity aggregated across all instances in the
cluster. Also, an Instances chart appears for Oracle RAC that shows Average Active Sessions per
instance.
5 . View resource utilization for the latest data point (the last minute) in the Resources section.
The Resources section includes the following information:
This chart shows the percentage of CPU time used by the database instance and other
processes during the last minute. Place your cursor over the instance data to see the
percentage of CPU used by foreground and background instance processes.
If other processes are taking up most of your CPU time, then this indicates that some other
application running on the database host computer could be causing performance problems.
This chart shows the average number of active sessions during the last minute, broken out by
wait, user I/O, and CPU.
- Waits
This is the value for all wait classes combined, excluding user I/ O and idle wait events. Wait
classes are groupings of wait events based on the type of wait.
Go to the Performance Hub and click the Activity tab to view more information about waits.
. User I/O
This is the average number of active sessions waiting for user I/O. User I/ O means that the
workload originating from the user causes the database to read data from disk or write data to
disk.
Go to the Performance Hub and click the Summary tab to view more information about I/O.
- CPU
This is the average active sessions using CPU. Go to the Performance Hub and click the
Summary tab to view more information about CPU usage.
. Memory (GB)
This chart shows the current memory utilization (as of the latest refresh time) broken out by
the database shared pool, java pool, buffer cache, PGA, and other SGA components.
This chart shows the current space usage (as of the latest refresh time) broken out by user
data, database log files, undo tablespaces, and temporary, SYSAUX, and SYSTEM tablespaces.
The table in this section displays information about monitored SQL statement executions. If
there is a green spinning icon in the Status column, then the monitored statement is still
running. If there is a check mark in the Status column, then the statement has completed its
execution.
SQL statements are monitored only if they have consumed at least 5 seconds of CPU or I/O
time.
For each SQL statement, the table provides information in the Status, Duration, SQL ID, Session
ID, Parallel, Database Time, and SQL Text columns.
Click a SQL ID to display the SQL Details page with more information about that SQL statement.
7. The Incidents — Last 24 Hours section displays a table that provides information about
database incidents that have occurred in the past 24 hours. The table has the Instance, Time,
Incident, Problem, and Error columns.
areas.
minute).
or both.
Perfor-
activity information
and a breakdown of
activity information
and a breakdown of
period.
SionsforASHoverthe___-_T-iiri-e-Pe-r-ib-dnm.
chartsshowthe521?""""'ââããíiiíêlww
tern of user calls, parse torical data
statement.
executions. If there is
completeeitherdue
to an error or due to
the session getting
terminated. If there is a
check mark in the Sta—
tus column, then the
statement completed
its execution during
the selected time
period.
SQL statements are
monitored only if they
have consumed at least
5 seconds of CPU or I/O
time.
You can view informa—
tion such as the status
whether it executed
as a serial or parallel
the statement.
Click a SQL ID to
statement.
when a CDB
period. PDB.
CDB, CDB, or
PDB.
a CDB and
CDB. CDB.
navigates
(drills down)
to the PDB.
The tab is
not available
when a PDB
administra-
tor is logged
directly into
the PDB.
time data.
the tab.
active report:
report.
to Display Statistics
snapshots in AWR.
Historical — Custom
Historical — Week
Historical – Custom
Historical — Week
Historical — Custom
Time Period field, you use the time picker to specify the
time period for which data is displayed in the Perfor-