administration and monitoring the database oracle 10g
TRANSCRIPT
![Page 1: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/1.jpg)
Administration and Monitoring the Database
Oracle 10g
![Page 2: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/2.jpg)
Monitoring the Database
When problems occur with a system, it is important to perform accurate and timely diagnosis of the problems before making any changes to the system. Often a database administrator simply looks at the symptoms and immediately starts changing the system to fix those symptoms.
2
![Page 3: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/3.jpg)
Monitoring Performance Issues
Oracle Database XE enables you to monitor the following performance statistics.1)- Session information: A session is the connection of a user to an
Oracle database instance. A session lasts from the time the user connects until the time the user disconnects or exits the database application.
2) System Statistics page displays statistics for: Physical I/O Logical I/O Memory Time SQL cursor Transaction
3
![Page 4: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/4.jpg)
2)- Top SQL: The "top" SQL statements represent the SQL statements that are executed most often, that use more system resources than other SQL statements, or that use system resources more frequently than other SQL statements.
3)- Long operations: The Long Operations page displays the status of various operations that run for longer than six seconds (in absolute time). These operations currently include many backup and recovery functions, statistics gathering, and query execution. More operations are added for every Oracle release.
4
![Page 5: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/5.jpg)
Viewing Top SQL
Management has been complaining about slow-running reports. Sheila wants to see which SQL statements are using the most resources and then view their execution plans. She uses the Top SQL page under Monitor to do this.
5
![Page 6: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/6.jpg)
6
![Page 7: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/7.jpg)
7
=Monitor
![Page 8: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/8.jpg)
8
![Page 9: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/9.jpg)
9
![Page 10: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/10.jpg)
10
![Page 11: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/11.jpg)
11
![Page 12: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/12.jpg)
12
![Page 13: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/13.jpg)
13
![Page 14: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/14.jpg)
Monitoring Sessions
Sheila is unable to make changes to the data in the EMPLOYEES table because of a lock placed by another session. She waits a reasonable amount of time for the lock to be released. However, when the data continues to be locked, she decides to terminate the blocking session so that she can proceed.
14
![Page 15: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/15.jpg)
15
![Page 16: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/16.jpg)
16
=Monitor
![Page 17: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/17.jpg)
17
![Page 18: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/18.jpg)
18
![Page 19: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/19.jpg)
19
![Page 20: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/20.jpg)
20
![Page 21: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/21.jpg)
21
![Page 22: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/22.jpg)
22
![Page 23: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/23.jpg)
Viewing System Statistics
System statistics describe the system's hardware characteristics (such as I/O and CPU performance and utilization) to the query optimizer. When choosing an execution plan, the optimizer estimates the I/O and CPU resources required for each query. System statistics enable the query optimizer to more accurately estimate I/O and CPU costs, enabling the query optimizer to choose a better execution plan.
23
![Page 24: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/24.jpg)
Sheila wants to periodically save the system statistics for analysis.When she does this, she deletes older statistics and saves the current statistics.
24
![Page 25: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/25.jpg)
25
![Page 26: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/26.jpg)
26
=Monitor
![Page 27: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/27.jpg)
27
![Page 28: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/28.jpg)
28
![Page 29: Administration and Monitoring the Database Oracle 10g](https://reader036.vdocuments.net/reader036/viewer/2022081512/56649ec55503460f94bcf53d/html5/thumbnails/29.jpg)
The End
29