+ All Categories
Home > Documents > Administration and Monitoring the Database Oracle 10g.

Administration and Monitoring the Database Oracle 10g.

Date post: 13-Jan-2016
Category:
Upload: earl-campbell
View: 230 times
Download: 0 times
Share this document with a friend
Popular Tags:
29
Administration and Monitoring the Database Oracle 10g
Transcript
Page 1: Administration and Monitoring the Database Oracle 10g.

Administration and Monitoring the Database

Oracle 10g

Page 2: Administration and Monitoring the Database Oracle 10g.

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.

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.

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.

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.

6

Page 7: Administration and Monitoring the Database Oracle 10g.

7

=Monitor

Page 8: Administration and Monitoring the Database Oracle 10g.

8

Page 9: Administration and Monitoring the Database Oracle 10g.

9

Page 10: Administration and Monitoring the Database Oracle 10g.

10

Page 11: Administration and Monitoring the Database Oracle 10g.

11

Page 12: Administration and Monitoring the Database Oracle 10g.

12

Page 13: Administration and Monitoring the Database Oracle 10g.

13

Page 14: Administration and Monitoring the Database Oracle 10g.

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.

15

Page 16: Administration and Monitoring the Database Oracle 10g.

16

=Monitor

Page 17: Administration and Monitoring the Database Oracle 10g.

17

Page 18: Administration and Monitoring the Database Oracle 10g.

18

Page 19: Administration and Monitoring the Database Oracle 10g.

19

Page 20: Administration and Monitoring the Database Oracle 10g.

20

Page 21: Administration and Monitoring the Database Oracle 10g.

21

Page 22: Administration and Monitoring the Database Oracle 10g.

22

Page 23: Administration and Monitoring the Database Oracle 10g.

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.

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.

25

Page 26: Administration and Monitoring the Database Oracle 10g.

26

=Monitor

Page 27: Administration and Monitoring the Database Oracle 10g.

27

Page 28: Administration and Monitoring the Database Oracle 10g.

28

Page 29: Administration and Monitoring the Database Oracle 10g.

The End

29


Recommended