• No results found

Oracle Database 11g: New Features for Administrators 15-1

N/A
N/A
Protected

Academic year: 2021

Share "Oracle Database 11g: New Features for Administrators 15-1"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)
(3)

SQL Monitoring

The real-time SQL monitoring feature on Oracle Database 11g enables you to monitor the performance of SQL statements while they are executing.

The real-time SQL monitoring feature is enabled by default when the STATISTICS_LEVEL initialization parameter is either set to ALL or to TYPICAL, which is the default value. Additionally, the CONTROL_MANAGEMENT_PACK_ACCESS parameter must be set to

(4)

SQL Monitoring (continued)

You can monitor the statistics for SQL command execution using the V$SQL_MONITOR and

V$SQL_PLAN_MONITORviews.

After monitoring is initiated, an entry is added to the V$SQL_MONITOR dynamic performance view. This entry tracks key performance metrics collected for the execution, including the elapsed time, CPU time, number of reads and writes, I/O wait time, and various other wait times. These statistics are refreshed in near real time as the command executes, generally once every second.

After the execution ends, monitoring information is not deleted immediately, but is kept in the V$SQL_MONITORview for at least one minute. The entry is eventually deleted so its space can be reclaimed as new commands are monitored.

The V$SQL_MONITOR and V$SQL_PLAN_MONITOR views can be used in conjunction with the following views to get additional information about the execution that is monitored:

V$SQL, V$SQL_PLAN, V$ACTIVE_SESSION_HISTORY, V$SESSION_LONGOPS, and V$SESSION

(5)

SQL Monitoring in Oracle Database 11g Release 2

In Oracle Database 11g Release 2, you can access the SQL Monitoring feature in Enterprise Manager Database Control by clicking the Performance tab. You can choose from Real Time and Historical Settings. Scroll down to the Additional Monitoring Links area and click SQL Monitoring, as shown in the slide.

Note: The COMPATIBLE initialization parameter must be set to 11.2.0.0 (or higher) to use this feature.

(6)

SQL Monitoring with Enterprise Manager Database Control

This slide shows just one possible work flow in Enterprise Manager Database Control. You can navigate through the following pages:

• Monitored SQL Execution • SQL Execution Details • Session Details

(7)

Monitored SQL Executions

When you move the cursor over the values or symbols of each SQL execution, a relevant hint appears. The slide shows the actual SQL command being executed with the cursor on the SQL ID link.

When you click the link that shows the SQL ID, you navigate to the Monitored SQL Execution Details page, as shown in the following slide.

(8)

SQL Monitoring List

This slide shows another example of monitored SQL executions.

1. In the top left section, you see for each long-running SQL, the completion status (which can be executing, done, or error), execution duration (wall clock time), SQL ID, and Session ID where the SQL was executed.

2. Here you see the database time by wait class, and I/O read and write operations.

3. This detail shows you the degree of parallelism: the number of instances that are involved in this parallel execution.

(9)

Monitored SQL Execution Details

The details of the SQL execution are displayed on three different tabbed pages: • Plan Statistics, as shown in the bottom part of the slide

• Parallel, displaying the distribution of work across the parallel servers (not part of the example in the slide)

• Activity, displaying ASH data on a time line

(10)

SQL Execution Details for Parallel Queries

(11)

Details for Parallel Execution

This slide shows you monitored SQL execution details for parallel queries (on the Parallel tabbed page).

(12)

Activity Details for Parallel Execution

This Activity tabbed page displays the activity graphs for parallel queries. You see the oscillation of CPU and direct reads over time.

(13)

Viewing Session Details

This page shows you the session details for the MONI user, divided into the following sections: • Server • Client • Application • Contention • Wait • Other

(14)

SQL Details

(15)

Viewing the SQL Monitoring Report

The SQL Monitoring Report shows the same information as the previous slides, but this time in a textual, rather than a graphic way. It begins with the SQL Text, followed by global information, and then the SQL Plan Monitoring details, which also indicates the current operation with an arrow. When you see the new Save and Mail buttons, you can also save the report in HTML format and email the Active Report—for example, to a SQL Tuning expert, if your organization has such a division of work.

(16)
(17)
(18)

References

Related documents

Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license

If you choose the option ‘Create a new database on a different SQL Server’, you will need to provide information on the SQL Server instance you wish to create the database on..

(Prerequisite: CISY 286 Intro to Oracle: SQL & PL/SQL or permission of instructor) This course is designed to give future Oracle database administrators (DBAs) a firm

Once your database has been uploaded to your SQL database and you have tested your connection to your SQL database using Team- SQL, you can make SQL the active database to force

The details of this SQL Server user are entered in the Connection Details dialog box when running the Database Discovery wizard (see Configuring Foglight for SQL Server on page 9

On the Workstation, you must use SQL Authentication to connect the workstation to the Server to access the SQL database. Enter the User name and Password a) Click on Browse for

If you want to continue using projects that are currently in Access, you must convert the project database to SQL Server Express, SQL Server, or Oracle, and then upgrade the

The ability of the second- year dental student to complete accurate random blood glucose by self-testing in a controlled setting demonstrates that dentistry can