Upload
afsarbasha
View
224
Download
0
Embed Size (px)
Citation preview
8/8/2019 Oracle Administration and Monitoring Tools for Windows
1/49
Oracle Administration andOracle Administration andMonitoring Tools forMonitoring Tools forWindowsWindows
Administering and Monitoring OracleAdministering and Monitoring Oraclewith Windows Toolswith Windows Tools
8/8/2019 Oracle Administration and Monitoring Tools for Windows
2/49
ObjectivesObjectivesAt the end of this module the student will understand theAt the end of this module the student will understand thefollowing tasks and concepts.following tasks and concepts.
Oracle GUI Administration ToolsOracle GUI Administration Tools
Oracle Services ConfigurationOracle Services Configuration
Event ViewerEvent Viewer
Task ManagerTask Manager
Oracle Administration Assistant for WindowsOracle Administration Assistant for Windows
Windows Performance MonitorWindows Performance Monitor Oracle Counters for Windows Performance MonitorOracle Counters for Windows Performance Monitor
Oracle Command Line Administration ToolsOracle Command Line Administration Tools
Using SQLPlus for AdministrationUsing SQLPlus for Administration
The ORADIM utilityThe ORADIM utility
Creating password files with orapwdCreating password files with orapwd
The ORADEBUG UtilityThe ORADEBUG Utility
STATSPACKSTATSPACK
Automatic Workload Repository Reports (10g)Automatic Workload Repository Reports (10g)
Oracle Web ToolsOracle Web Tools
Managing Oracle with Oracle 10g Grid ControlManaging Oracle with Oracle 10g Grid Control
8/8/2019 Oracle Administration and Monitoring Tools for Windows
3/49
Managing Oracle ServicesManaging Oracle Services
Oracle Services canOracle Services canbe accessed bybe accessed byControl PanelControl Panel -->>
Administrative ToolsAdministrative Tools --> Services> Services
You can start, stop,You can start, stop,pause and restart anpause and restart anOracle Service.Oracle Service.
Services can also beServices can also beenabled or disabled.enabled or disabled.
It is also possible toIt is also possible torun a custom programrun a custom programupon a Service failureupon a Service failureevent.event.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
4/49
Viewing Oracle EventsViewing Oracle Events Oracle Events can beOracle Events can be
viewed through theviewed through theApplication EventApplication EventViewer.Viewer.
The Event Viewer can beThe Event Viewer can beaccessed by Controlaccessed by Control
PanelPanel --> Administrative> AdministrativeToolsTools --> Event Viewer> Event Viewer
Choose Application fromChoose Application fromthe Log menu.the Log menu.
Oracle 10g problems andOracle 10g problems andother significant eventsother significant events
are recorded here.are recorded here. A drillA drill--down descriptiondown description
of each event is availableof each event is availableby doubleby double--clicking anclicking anindividual event.individual event.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
5/49
The Task Manager ToolThe Task Manager Tool
The Task Manager Tool displays:The Task Manager Tool displays: HighHigh--level summary of the concurrent applications and processeslevel summary of the concurrent applications and processes
runningrunning
Information about process stateInformation about process state
Graphical summary of CPU usageGraphical summary of CPU usage
Graphical summary of memory usageGraphical summary of memory usage
Information about OS usersInformation about OS users Task Manager can be used to change the priority of a process.Task Manager can be used to change the priority of a process.
The Task Manager can be launched two ways:The Task Manager can be launched two ways:
Hit controlHit control--altalt--escapeescape
RightRight--click on the task bar at the bottom of the screenclick on the task bar at the bottom of the screen
The Performance tab contains useful information that directlyThe Performance tab contains useful information that directlyimpacts Oracle performanceimpacts Oracle performance
8/8/2019 Oracle Administration and Monitoring Tools for Windows
6/49
The Task Manager ToolThe Task Manager Tool OracleOraclePerformancePerformance
CPU Usage, as well as MemoryCPU Usage, as well as Memoryand Page File Usage can beand Page File Usage can bemonitored with the Performancemonitored with the Performancetabtab
Both CPU Usage and MemoryBoth CPU Usage and Memory
and Page File Usage are criticaland Page File Usage are criticalfor Oracle performancefor Oracle performance
CPU Usage should beCPU Usage should beconsistently high, but not maxedconsistently high, but not maxedoutout
You should not consistently seeYou should not consistently seehigher memory usage than thehigher memory usage than thephysical RAMphysical RAM
Neither should you see highNeither should you see highPage File Usage or a steadilyPage File Usage or a steadilyclimbing rate of Page File Usageclimbing rate of Page File Usage
8/8/2019 Oracle Administration and Monitoring Tools for Windows
7/49
The System MonitorThe System Monitor
Launching PerfmonLaunching Perfmon
StartStart ProgramsPrograms Administrative ToolsAdministrative Tools PerformancePerformance
8/8/2019 Oracle Administration and Monitoring Tools for Windows
8/49
System Performance MonitorSystem Performance Monitor
Performance ObjectsPerformance Objects
CountersCounters
Explain TextExplain Text
8/8/2019 Oracle Administration and Monitoring Tools for Windows
9/49
Performance Logs and AlertsPerformance Logs and Alerts
Right click on CounterRight click on CounterLogs, Trace Logs, orLogs, Trace Logs, oralerts to set upalerts to set up
Alerts require you to setAlerts require you to set
limits for counter valueslimits for counter values Creating a performanceCreating a performance
log file with Systemlog file with SystemMonitorMonitor
CommaComma--separated formatseparated format
or tabor tab--separated formatseparated format Use meaningful collectionUse meaningful collection
intervals (> 1 minute)intervals (> 1 minute)
8/8/2019 Oracle Administration and Monitoring Tools for Windows
10/49
Administration Assistant forAdministration Assistant for
WindowsWindows Startup from StartStartup from Start -->>
OracleOracle --Orahome92Orahome92 -->>Configuration andConfiguration andMigration ToolsMigration Tools -->>
Administration AssistantAdministration Assistantfor Windowsfor Windows
Maneuver to theManeuver to theDatabase objectDatabase object
Right click to loginRight click to login
You can now startupYou can now startupand shutdown Oracle,and shutdown Oracle,as well as several otheras well as several otheradministrative functions.administrative functions.
Right click and chooseRight click and chooseProcess InformationProcess Information
This gives you a way toThis gives you a way tokill Oracle threads, ifkill Oracle threads, if
necessary.necessary.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
11/49
Oracle Counters for WindowsOracle Counters for Windows
Performance MonitorPerformance Monitor To initially configure theTo initially configure the
Oracle Counters forOracle Counters forWindows PerformanceWindows PerformanceMonitor, open a commandMonitor, open a command
line windowline window Enter the following:Enter the following:
OPerfCfgOPerfCfg U systemU system PP{password}{password} D {SID}D {SID}
The registry entries for theThe registry entries for thePerformance Monitor arePerformance Monitor arenow set.now set.
Note: Oracle Counters forNote: Oracle Counters forPerformance Monitor isPerformance Monitor issensitive to Oracle Netsensitive to Oracle Netsettings, which must besettings, which must becorrectcorrect
8/8/2019 Oracle Administration and Monitoring Tools for Windows
12/49
Oracle Counters for WindowsOracle Counters for Windows
Performance MonitorPerformance Monitor Oracle Counters forOracle Counters for
Windows PerformanceWindows PerformanceManager is available as aManager is available as astandstand--alone application,alone application,
or as addor as add--in performancein performancecounters to Perfmoncounters to Perfmon
Startup from StartStartup from Start -->>OracleOracle --Orahome92Orahome92 -->>Configuration andConfiguration andMigration ToolsMigration Tools --> Oracle> OracleCounters for WindowsCounters for WindowsPerformance MonitorPerformance Monitor
By default, two OracleBy default, two Oraclecounters for Sorts arecounters for Sorts aredisplayed.displayed.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
13/49
Oracle Counters for WindowsOracle Counters for Windows
Performance MonitorPerformance Monitor To display alternate counters,To display alternate counters,
rightright--click in the window andclick in the window andchoose Propertieschoose Properties
Click on the Performance ObjectClick on the Performance Object
menu. A list of Oracle counters ismenu. A list of Oracle counters isdisplayed.displayed.
Use the Add and Remove buttonsUse the Add and Remove buttonsto modify the display.to modify the display.
For example, to monitor databaseFor example, to monitor database
I/O, add the following counters:I/O, add the following counters: physreads/secphysreads/sec
physwrites/secphyswrites/sec
8/8/2019 Oracle Administration and Monitoring Tools for Windows
14/49
Managing Oracle with SQL PlusManaging Oracle with SQL Plus
Startup SQL Plus fromStartup SQL Plus fromStartStart --> Oracle> Oracle --Orahome92Orahome92 --> Application> ApplicationDevelopmentDevelopment --> SQL Plus> SQL Plus
Log in as the SYSTEMLog in as the SYSTEM
user.user.
You can then useYou can then use
connect / as sysdbaconnect / as sysdba
to login with full privilegesto login with full privileges(on the console)(on the console)
You can now startup andYou can now startup andshutdown Oracle, as wellshutdown Oracle, as wellas any otheras any otheradministrative function.administrative function.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
15/49
The ORADIM UtilityThe ORADIM Utility
The ORADIM utility is a command line tool that can beThe ORADIM utility is a command line tool that can beused to manually create, delete or modify databasesused to manually create, delete or modify databases
To get help, enterTo get help, enter
oradimoradim --? |? | --H |H | --HELPHELP
To create an instance called PROD, for example, youTo create an instance called PROD, for example, youcould enter:could enter:
C:C:\\> oradim> oradim --NEWNEW --SID prodSID prod --INTPWD mypassword1INTPWD mypassword1 --STARTMODE autoSTARTMODE auto --PFILE C:PFILE C:\\oracleoracle\\adminadmin\\prodprod\\pfilepfile\\init.orainit.ora
To start an instance called PROD, for example, youTo start an instance called PROD, for example, you
could enter:could enter:C:C:\\> oradim> oradim --STARTUPSTARTUP --SID prodSID prod --STARTTYPE instSTARTTYPE inst --PFILEPFILEC:C:\\oracleoracle\\adminadmin\\prodprod\\pfilepfile\\init.orainit.ora
8/8/2019 Oracle Administration and Monitoring Tools for Windows
16/49
The ORADIM UtilityThe ORADIM Utility
To stop an instance called PROD, for example, youTo stop an instance called PROD, for example, youcould enter:could enter:
C:C:\\> oradim> oradim --SHUTDOWNSHUTDOWN --SID prodSID prod --SHUTTYPE srvc, instSHUTTYPE srvc, inst
To change an instance name from prod to lynx, set aTo change an instance name from prod to lynx, set anew instance password mycat123, and specify a newnew instance password mycat123, and specify a newinitialization parameter file, for example, you couldinitialization parameter file, for example, you couldenter:enter:
C:C:\\> oradim> oradim --EDITEDIT --SID prodSID prod --NEWSID lynxNEWSID lynx --INTPWDINTPWDmycat123mycat123 --STARTMODE aSTARTMODE a PFILEPFILEC:C:\\oracleoracle\\adminadmin\\lynxlynx\\pfilepfile\\init.orainit.ora
To delete an instance called prod, for example, youTo delete an instance called prod, for example, youmight enter:might enter:
C:C:\\> oradim> oradim --DELETEDELETE --SID prodSID prod
8/8/2019 Oracle Administration and Monitoring Tools for Windows
17/49
Creating an Oracle PasswordCreating an Oracle PasswordFileFile To establish a secure local logon user and password,To establish a secure local logon user and password,
you need to create a password fileyou need to create a password file
It can also be used for remote access to the databaseIt can also be used for remote access to the databasefor selected usersfor selected users
To start, open a command line session andTo start, open a command line session and
cd C:cd C:\\oracleoracle\\ora92ora92\\dbsdbs
Enter the following:Enter the following:
orapwd file=ORACLE_SIDpwd password={yourorapwd file=ORACLE_SIDpwd password={your
password} entries=5 (the maximum number of openpassword} entries=5 (the maximum number of openadmin connections)admin connections)
A password file is now createdA password file is now created
8/8/2019 Oracle Administration and Monitoring Tools for Windows
18/49
The Oracle ORADEBUG UtilityThe Oracle ORADEBUG Utility
The ORADEBUG utility is a debugging tool thatThe ORADEBUG utility is a debugging tool thatsends debug commands through SQL*Plus tosends debug commands through SQL*Plus toan Oracle process.an Oracle process.
To start the ORADEBUG utility:To start the ORADEBUG utility: Start SQL*Plus from the command prompt:Start SQL*Plus from the command prompt:
C:C:\\> sqlplus / NOLOG> sqlplus / NOLOG
Connect to Oracle9Connect to Oracle9ii database as SYSDBA:database as SYSDBA:SQL> CONNECT / AS SYSDBASQL> CONNECT / AS SYSDBA
Enter the following at the SQL*Plus prompt:Enter the following at the SQL*Plus prompt:SQL> ORADEBUG ORADEBUGSQL> ORADEBUG ORADEBUG
The utility runs and prompts you for parameters.The utility runs and prompts you for parameters.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
19/49
The Oracle ORADEBUG UtilityThe Oracle ORADEBUG Utility
To obtain a list of ORADEBUG parameters, enter theTo obtain a list of ORADEBUG parameters, enter thefollowing:following:
SQL> ORADEBUGHELPSQL> ORADEBUGHELP
Output from most debug commands is written to traceOutput from most debug commands is written to trace
files in the BACKGROUND_DUMP_DEST andfiles in the BACKGROUND_DUMP_DEST andUSER_DUMP_DEST directories.USER_DUMP_DEST directories.
To find the location of your trace file, enter the followingTo find the location of your trace file, enter the followingat the SQL*Plus prompt:at the SQL*Plus prompt:
SQL> ORADEBUG TRACEFILE_NAMESQL> ORADEBUG TRACEFILE_NAME
If output is more than one line, then the result is sent to a traceIf output is more than one line, then the result is sent to a tracefile.file.
If a debug command produces only one line of output, then theIf a debug command produces only one line of output, then theoutput is relayed directly to SQL*Plus.output is relayed directly to SQL*Plus.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
20/49
StatspackStatspack Standard Performance PackageStandard Performance Package
Similar to original BSTAT/ESTATSimilar to original BSTAT/ESTAT
InstallInstall@?@?\\rdbmsrdbms\\adminadmin\\spcreatespcreate
RunRunSQL> CONNECT perfstat/perfstatSQL> CONNECT perfstat/perfstatSQL> EXECUTE statspack.snap;SQL> EXECUTE statspack.snap;
Create the report withCreate the report with
@spreport@spreport Tell it which snapshots to use.Tell it which snapshots to use.
A report is created.A report is created.
Report contains a wealth of diagnosticReport contains a wealth of diagnosticinformation and predictive toolsinformation and predictive tools
8/8/2019 Oracle Administration and Monitoring Tools for Windows
21/49
8/8/2019 Oracle Administration and Monitoring Tools for Windows
22/49
Automatic Workload RepositoryAutomatic Workload Repository
FeaturesFeatures Statspack on Steroids (10g only)Statspack on Steroids (10g only)
Collects stats every 60 minutesCollects stats every 60 minutes
Kept for a week then purgedKept for a week then purged A collection of performance statsA collection of performance stats
A new background process MMONA new background process MMON
Resides in new sysaux tablespaceResides in new sysaux tablespace
8/8/2019 Oracle Administration and Monitoring Tools for Windows
23/49
Automatic Workload RepositoryAutomatic Workload RepositoryReportsReports
Two reports provided by OracleTwo reports provided by Oracle
awrrpt.sqlawrrpt.sql
awrrpti.sqlawrrpti.sql
Similar to Statspack reportSimilar to Statspack report
Reports can be generated with scripts orReports can be generated with scripts orthrough a GUI interfacethrough a GUI interface
Optional HTML or plain text formatsOptional HTML or plain text formats
8/8/2019 Oracle Administration and Monitoring Tools for Windows
24/49
Administering Oracle and MonitoringAdministering Oracle and MonitoringPerformance with Oracle 10g GridPerformance with Oracle 10g Grid
ControlControl Oracle Grid Control is theOracle Grid Control is the
enhanced version of OEM that isenhanced version of OEM that isinstalled with Oracle 10ginstalled with Oracle 10g
Requires a central ManagementRequires a central ManagementRepository and Agents on eachRepository and Agents on eachdatabase serverdatabase server
Enhancements for managingEnhancements for managingand deploying RAC nodes andand deploying RAC nodes andapplication grid nodesapplication grid nodes
Significant improvements inSignificant improvements inautomatic performanceautomatic performancemonitoring and analysismonitoring and analysis
Central interface forCentral interface foradministering and monitoringadministering and monitoring
Oracle 10gOracle 10g Perform all Administration tasksPerform all Administration tasks
Contains a variety of AdvisorsContains a variety of Advisorsfor improving performancefor improving performance
8/8/2019 Oracle Administration and Monitoring Tools for Windows
25/49
Oracle Grid Control Performance PageOracle Grid Control Performance Page
The databaseThe databasePerformance pagePerformance pagegives a quick lookgives a quick look
at performanceat performancetrendstrends
Host CPUHost CPU
Average ActiveAverage ActiveSessionsSessions
Instance Disk I/OInstance Disk I/O
InstanceInstanceThroughputThroughput
8/8/2019 Oracle Administration and Monitoring Tools for Windows
26/49
AWR ReportsAWR Reports To create an AWR report:To create an AWR report:
On the Database Administration page, select the AutomaticOn the Database Administration page, select the AutomaticWorkload Repository link under Statistics Management. TheWorkload Repository link under Statistics Management. The
Automatic Workload Repository page appears.Automatic Workload Repository page appears.
Under Manage Snapshots and Preserved Snapshot Sets,Under Manage Snapshots and Preserved Snapshot Sets,click Snapshots link. The Snapshots page appears.click Snapshots link. The Snapshots page appears.
Under Select Beginning Snapshot, select the start point forUnder Select Beginning Snapshot, select the start point forthe range of snapshots that will be included in the report.the range of snapshots that will be included in the report.
From the Actions pullFrom the Actions pull--down menu, select View Report anddown menu, select View Report andclick Go. The View Report page appears.click Go. The View Report page appears.
Under Select Ending Snapshot, select the end point for theUnder Select Ending Snapshot, select the end point for therange of snapshots and click OK. The Processing: Viewrange of snapshots and click OK. The Processing: View
Report page appears while the report is being generated.Report page appears while the report is being generated.
Once completed, the Snapshot Details page appearsOnce completed, the Snapshot Details page appearsand the report will be displayed.and the report will be displayed.
To save the report as an HTML file, click Save to File.To save the report as an HTML file, click Save to File.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
27/49
AWR ReportsAWR Reports
8/8/2019 Oracle Administration and Monitoring Tools for Windows
28/49
Using the Segment SpaceUsing the Segment SpaceAdvisorAdvisor The Oracle 10g Segment Advisor helps you determineThe Oracle 10g Segment Advisor helps you determine
whether an object has space available for reclamation.whether an object has space available for reclamation.
Available in 10g OEM or Grid ControlAvailable in 10g OEM or Grid Control
The Segment Advisor can generate advice at threeThe Segment Advisor can generate advice at three
levels:levels: Object levelObject level -- advice is generated for the entire object, such asadvice is generated for the entire object, such as
a table. Advice does not cascade to dependent objects.a table. Advice does not cascade to dependent objects.
Segment level,Segment level, -- advice is generated for a single segment, suchadvice is generated for a single segment, suchas unpartitioned table, a partition or subpartition of a partitionedas unpartitioned table, a partition or subpartition of a partitionedtable, or an index or LOB column.table, or an index or LOB column.
Tablespace levelTablespace level -- advice is generated for every segment in theadvice is generated for every segment in thetablespace.tablespace.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
29/49
Using the Segment SpaceUsing the Segment SpaceAdvisorAdvisor
8/8/2019 Oracle Administration and Monitoring Tools for Windows
30/49
Using the Segment Space AdvisorUsing the Segment Space Advisor
8/8/2019 Oracle Administration and Monitoring Tools for Windows
31/49
SQL Tuning AdvisorSQL Tuning Advisor
10g Oracle Enterprise Manager (DB Console,10g Oracle Enterprise Manager (DB Console,Grid Control) offers the SQL Tuning Advisor asGrid Control) offers the SQL Tuning Advisor asa SQL statement tuning tool.a SQL statement tuning tool.
Accessed from Advisor CentralAccessed from Advisor Central
Select one or more SQL statements, or generate anSelect one or more SQL statements, or generate anSQL Tuning SetSQL Tuning Set
View automatically generated RecommendationsView automatically generated Recommendations
View Explain Plan outputView Explain Plan output
8/8/2019 Oracle Administration and Monitoring Tools for Windows
32/49
SQL Tuning Advisor RecommendationsSQL Tuning Advisor Recommendations
8/8/2019 Oracle Administration and Monitoring Tools for Windows
33/49
SQL Tuning Advisor Explain PlanSQL Tuning Advisor Explain Plan
8/8/2019 Oracle Administration and Monitoring Tools for Windows
34/49
Using the SQLAccess AdvisorUsing the SQLAccess Advisor
The SQLAccess Advisor provides an alternative toThe SQLAccess Advisor provides an alternative tomanually determining which indexes are required.manually determining which indexes are required.
The SQLAccess advisor may be invoked from AdvisorThe SQLAccess advisor may be invoked from AdvisorCentral in OEM or run with the procedures in theCentral in OEM or run with the procedures in theDBMS_ADVISOR package.DBMS_ADVISOR package.
For a chosen schema, the SQLAccess Advisor eitherFor a chosen schema, the SQLAccess Advisor eitherrecommends using a workload or it can generate arecommends using a workload or it can generate ahypothetical workload.hypothetical workload.
Given a workload, the SQLAccess Advisor generates aGiven a workload, the SQLAccess Advisor generates a
set of recommendations from which you can selectset of recommendations from which you can selectindexes to be implemented.indexes to be implemented.
SQLAccess Advisor generates an implementation scriptSQLAccess Advisor generates an implementation scriptthat can be executed manually or through OEM.that can be executed manually or through OEM.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
35/49
Using the SQLAccess AdvisorUsing the SQLAccess Advisor
The SQLAccess Advisor provides an alternative toThe SQLAccess Advisor provides an alternative tomanually determining which indexes are required.manually determining which indexes are required.
The SQLAccess advisor may be invoked from AdvisorThe SQLAccess advisor may be invoked from AdvisorCentral in OEM or run with the procedures in theCentral in OEM or run with the procedures in the
DBMS_ADVISOR package.DBMS_ADVISOR package. For a chosen schema, the SQLAccess Advisor eitherFor a chosen schema, the SQLAccess Advisor either
recommends using a workload or it can generate arecommends using a workload or it can generate ahypothetical workload.hypothetical workload.
Given a workload, the SQLAccess Advisor generates aGiven a workload, the SQLAccess Advisor generates a
set of recommendations from which you can selectset of recommendations from which you can selectindexes to be implemented.indexes to be implemented.
SQLAccess Advisor generates an implementation scriptSQLAccess Advisor generates an implementation scriptthat can be executed manually or through OEM.that can be executed manually or through OEM.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
36/49
Using the SQLAccess AdvisorUsing the SQLAccess Advisor
8/8/2019 Oracle Administration and Monitoring Tools for Windows
37/49
Automatic Database DiagnosticAutomatic Database DiagnosticMonitorMonitor ADDM considers the following to makeADDM considers the following to make
performance tuning recommendations:performance tuning recommendations:
CPU bottlenecksCPU bottlenecks
Undersized Memory StructuresUndersized Memory Structures
I/O capacity issuesI/O capacity issues
High load SQL statementsHigh load SQL statements
High load PL/SQL execution and compilationHigh load PL/SQL execution and compilation
High load Java usageHigh load Java usage
RAC specific issues:RAC specific issues:
Global cache hot blocks and objectsGlobal cache hot blocks and objects
Iinterconnect latency issuesIinterconnect latency issues
8/8/2019 Oracle Administration and Monitoring Tools for Windows
38/49
Automatic Database DiagnosticAutomatic Database Diagnostic
Monitor (cont.)Monitor (cont.) ADDM considers the following to makeADDM considers the following to make
recommendations:recommendations: SubSub--optimal use of Oracle by the application:optimal use of Oracle by the application:
Poor connection managementPoor connection management Excessive parsingExcessive parsing
Application level lock contentionApplication level lock contention
Database configuration issues:Database configuration issues: Incorrect sizing of log filesIncorrect sizing of log files
Archiving issues, excessive checkpointsArchiving issues, excessive checkpoints SubSub--optimal parameter settingsoptimal parameter settings
Concurrency issuesConcurrency issues -- Are there buffer busyAre there buffer busyproblems?problems?
Hot objects and top SQL for various problem areasHot objects and top SQL for various problem areas
8/8/2019 Oracle Administration and Monitoring Tools for Windows
39/49
ADDM Recommended SolutionsADDM Recommended Solutions
Hardware changesHardware changes
Adding CPUsAdding CPUs Changing the I/O subsystem configurationChanging the I/O subsystem configuration
Database configurationDatabase configuration
Changing initialization parameter settingsChanging initialization parameter settings
Schema changesSchema changes
Hash partitioning a table or indexHash partitioning a table or index
Using automatic segmentUsing automatic segment--space management (ASSM)space management (ASSM)
Application changesApplication changes
Using the cache option for sequencesUsing the cache option for sequences
Using bind variablesUsing bind variables
Using other advisorsUsing other advisors
Running the SQL Tuning Advisor on high load SQLRunning the SQL Tuning Advisor on high load SQL Running the Segment Advisor on hot objectsRunning the Segment Advisor on hot objects
8/8/2019 Oracle Administration and Monitoring Tools for Windows
40/49
8/8/2019 Oracle Administration and Monitoring Tools for Windows
41/49
ADDM Findings in OEMADDM Findings in OEM
8/8/2019 Oracle Administration and Monitoring Tools for Windows
42/49
Running ADDM ManuallyRunning ADDM Manually
From the Database Home pageFrom the Database Home page Under Related Links, click the Advisor Central linkUnder Related Links, click the Advisor Central link
On the ADDM page, under Advisors, click the ADDMOn the ADDM page, under Advisors, click the ADDMlinklink
Select Run ADDM to analyze past instanceSelect Run ADDM to analyze past instanceperformanceperformance Choose the Period Start Time (choose startingChoose the Period Start Time (choose starting
snapshot)snapshot)
Choose the Period End Time (default is lastChoose the Period End Time (default is last
snapshot)snapshot) Click OK to start analysisClick OK to start analysis
8/8/2019 Oracle Administration and Monitoring Tools for Windows
43/49
Running ADDM in OEMRunning ADDM in OEM
8/8/2019 Oracle Administration and Monitoring Tools for Windows
44/49
Scheduling Jobs in OracleScheduling Jobs in Oracle10g10g
Oracle 10g contains a newOracle 10g contains a newScheduler for scheduling andScheduler for scheduling andtracking jobs.tracking jobs.
One way to access theOne way to access theScheduler is through the GridScheduler is through the GridControl Job Activity page. FromControl Job Activity page. Fromthis page you can:this page you can:
Search for existing job runs andSearch for existing job runs andjob executionsjob executions
Restrict the search by name,Restrict the search by name,owner, status, scheduled start,owner, status, scheduled start,
job type, target type, and targetjob type, target type, and targetname.name.
Create a jobCreate a job
View, edit, create like, suspend,View, edit, create like, suspend,resume, stop, and delete a runresume, stop, and delete a run
View, edit, create like, suspend,View, edit, create like, suspend,resume, retry, stop, and deleteresume, retry, stop, and deletean executionan execution
8/8/2019 Oracle Administration and Monitoring Tools for Windows
45/49
RAC Cluster Cache CoherencyRAC Cluster Cache Coherency
Heavy concurrent readHeavy concurrent readand write activity onand write activity onshared data in a clustershared data in a clustercan cause performancecan cause performanceproblems.problems.
The Cluster CacheThe Cluster Cache
Coherency page enablesCoherency page enablesyou toyou to
View cache coherencyView cache coherencymetrics for the entiremetrics for the entirecluster databasecluster database
Identify processingIdentify processingtrendstrends
Optimize performance forOptimize performance foryour Real Applicationyour Real ApplicationClusters environmentClusters environment
8/8/2019 Oracle Administration and Monitoring Tools for Windows
46/49
Cluster InterconnectsCluster Interconnects
The Cluster InterconnectsThe Cluster Interconnectspage enables you to view thepage enables you to view thecurrent state of interfaces oncurrent state of interfaces onhostshosts
You can use this page toYou can use this page to
Monitor the interconnectMonitor the interconnect
interfacesinterfaces Determine configurationDetermine configuration
issuesissues
Identify transfer rateIdentify transfer rate--relatedrelatedissues, such as excessissues, such as excesstraffic.traffic.
This page helps determineThis page helps determine
the load added by individualthe load added by individualinstances and databases oninstances and databases onthe interconnect.the interconnect.
Sometimes, you canSometimes, you canimmediately identifyimmediately identifyinterconnect delays due tointerconnect delays due toapplications outside theapplications outside theOracle Database.Oracle Database.
8/8/2019 Oracle Administration and Monitoring Tools for Windows
47/49
Oracle GUI Administration ToolsOracle GUI Administration Tools Oracle Services ConfigurationOracle Services Configuration
Event ViewerEvent Viewer
Oracle Administration Assistant for WindowsOracle Administration Assistant for Windows
Windows Performance MonitorWindows Performance Monitor
Oracle for Windows Performance MonitorOracle for Windows Performance Monitor
Oracle Command Line Administration ToolsOracle Command Line Administration Tools Using SQLPlus for AdministrationUsing SQLPlus for Administration
The oradim utilityThe oradim utility
Creating password files with orapwdCreating password files with orapwd
The ORADEBUG UtilityThe ORADEBUG Utility
StatspackStatspack
AWRAWR
Oracle Web ToolsOracle Web Tools
Managing Oracle with Oracle 10g Grid ControlManaging Oracle with Oracle 10g Grid Control
ConclusionsConclusions
8/8/2019 Oracle Administration and Monitoring Tools for Windows
48/49
ReviewReview
How could you customize an Oracle Service?How could you customize an Oracle Service?
What command is used to create an OracleWhat command is used to create an Oraclepassword file?password file?
How must you log in to SQLPlus in order toHow must you log in to SQLPlus in order tostop and start the database?stop and start the database?
Where can you go if you need to kill OracleWhere can you go if you need to kill Oraclethreads?threads?
What Advisors can you launch from OracleWhat Advisors can you launch from OracleGrid Control to help monitor performance?Grid Control to help monitor performance?
8/8/2019 Oracle Administration and Monitoring Tools for Windows
49/49
SummarySummary
In this training module the following tasks andIn this training module the following tasks andconcepts were covered:concepts were covered:
Managing Oracle Services on WindowsManaging Oracle Services on Windows
Creating a password file with orapwdCreating a password file with orapwd
Managing a database with SQLPlusManaging a database with SQLPlus
Managing a database with AdministrationManaging a database with AdministrationAssistant for NTAssistant for NT
Managing and Monitoring a database withManaging and Monitoring a database withOracle Enterprise ManagerOracle Enterprise Manager