Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Oracle 10g Grid Control Yammy Wong 20060623 聚碩科技 台北市內湖路一段 516 號 10F Tel No: (02) 8797-8260 ext. 2386.

Similar presentations


Presentation on theme: "1 Oracle 10g Grid Control Yammy Wong 20060623 聚碩科技 台北市內湖路一段 516 號 10F Tel No: (02) 8797-8260 ext. 2386."— Presentation transcript:

1 1 Oracle 10g Grid Control Yammy Wong 20060623 聚碩科技 台北市內湖路一段 516 號 10F Tel No: (02) 8797-8260 ext. 2386

2 2 A G E N D A 1. Overview 2. Architecture 3. Controlling the Management Framework 4. Directory Structure 5. Installing the Management Framework 6. Troubleshooting

3 3 O V E R V I E W 1. 10g Grid Control VS Database Control Six 2. Six Features of Database Control

4 4 Overview 10g Grid Control VS Database Control Grid Control – Monitors multiple targets including databases, application servers, listeners, web applications, agents and management services Application Control – Monitors a SINGLE APPLICATION SERVER FARM or CLUSTERED FARM Database Control – Monitors a SINGLE DATABASE INSTANCE or CLUSTERED INSTANCE

5 5 10g Grid Control VS Database Control (Cont’d) FeatureGrid ControlDatabase Control InstallationSeparateDatabase 10g Enterprise Manager repositoryCentralizedIn local 10g database Enterprise Manager agentOne per host in separate homeOne per 10g database home Target typesManySingle 10g database # of targetsManyOne EM job systemYes Cluster database (RAC)Yes Standby database (Data Guard)YesNo Configuration managementEnterprise-wideLocal system Mobile access (EM2Go)YesNo Overview

6 6 10g database control console is certified database 10g only.: PackNote Database Diagnostics Pack Tuning PackRequires license for Database Diagnostics Configuration Management PackNew Option Change Management Pack Application Server Diagnostics PackNew Option Configuration Management PackNew Option Overview

7 7 Six Features of Database Control AvailabilityManagementAdministration & Info Central Database Control StorageManagement LifecycleManagement PerformanceTuning TroubleShooting Overview

8 8 1. Administration & Info Central Database Homepage Overview

9 9 1. Administration & Info Central Complete Database Administration Overview

10 10 2. Diagnostics DB CONSOLE Problem Resolution System Baselining Monitoring & Alerting Root Cause Analysis 1 2 3 4 METRIC&ALERT Overview

11 11 2. Diagnostics The Definition of Metrics – Metrics are units of measurement used to assess the health of your system. Each target comes with a predefined set of metrics. These metrics in turn have thresholds associated with them. – Thresholds are boundary values against which monitored metric values are compared. For example, for each disk device associated with the Disk Utilization (%) metric, you can define a different warning and critical threshold. Some of the thresholds are predefined by Oracle, others are not. Overview

12 12 2. Diagnostics Baselining Metrics Overview

13 13 2. Diagnostics Example – A tablespace is 90% full. Overview

14 14 2. Diagnostics Example – A tablespace is 90% full. Overview

15 15 3. Performance tuning Best Practice Tuning – Oracle Database 10g Features Automatic Database Diagnostic Monitor (ADDM) SQL Tuning Advisor SQL Access Advisor Overview

16 16 3. Performance tuning The Top Activity page shows the Active Sessions chart along with a table that shows Top SQL, and another table that shows Top Sessions The Activity page of SQL Details shows the Active Sessions chart along with a table showing Overview

17 17 4. Availability Management Real Application Clusters (RAC) – With EM 10g, RAC is much easier. If your RAC database is properly configured, EM 10g discover this target, and gives you the RAC features listed here. Backup/Recovery – With EM 10g Backup and Recovery, you are provided with guided backup and recovery strategies, backup management, and flash recovery. Data Guard Overview

18 18 Real Application Clusters (RAC) Overview

19 19 Backup/Recovery Overview

20 20 Data Guard Management Add and configure standby database -Logical and physical -Standby creation frombackup Log transport & apply monitoring & management e.g. real-time log apply Alerts On-demand standby health check Switch-over / fail-over Protection mode management -Choice of availability vs. performance Data Guard Section on Database home page Overview

21 21 5. Space Management Integrated Storage Management – Tablespaces – Datafiles – Redo logs – Rollback Segments – Archive logs Management of ASM Overview

22 22 5. Space Management Integrated Storage Management ARCHIVE LOGS MANAGEMENT DATAFILES MANAGEMENT Overview

23 23 6. Database Configuration Feature Effective way to Administrate the Database – Memory Parameters – Undo Management – All Initialization Parameters – Database Feature Usage Overview

24 24 ARCHITECTURE Deployment with 10g Enterprise Manager Overview of the Individual Components.

25 25 Enterprise Manager 3. Studio Mode Agent Enterprise Manager 1. Grid Control Enterprise Manager 2. Database Control(EM) Agent http(s) XML SQL*Net H/W spec. CPU: 2.8G RAM: 2G HDD: 2* 150G Oracle License Oracle DB Enterprise Edition 25NU Oracle enterprise Managers - Diagnostics Pack - Tuning Pack - Change Management Pack - Management Pack Architecture 1. Deployment with 10g Enterprise Manager (Cont’d)

26 26 2. Overview of the Individual Components Oracle Management Agent Oracle Management Repository Oracle Management Service Architecture

27 27 Grid Control Components Oracle Management Repository Oracle Management Services Oracle Management Agents Managed Targets Oracle8 i Databases Oracle9 i Databases Oracle10g Databases Oracle9 i Application Servers Oracle10g Application Servers … Administrator Architecture

28 28 Oracle Management Agent Runtime consists of – Persistent EM agent process – Periodic, show-lived processes (due to OS Cmd Fetchlet) – A lightweight WATCHDOG process that monitors and corrects Collects data from the target – Fetchlet: Gathers data for a particular type of object (OS, SQL, SNMP) Uploads collected data and severity states to repository Architecture

29 29 Oracle Management Agent (Cont’d) Management Service Receives From OMS: Sends to OMS: Config changes,Realtime Metric Heartbeat information Values, Remote op Submission Collected Data Agent Services Scheduler Target Inv. Metadata Mgt State Mgr Self Monitor OSSNMPHTTPSQL FETCHLETS Monitored Database Architecture

30 30 Oracle Management Repository SYSMAN is now the Repository schema owner. In charge of rollups, uploads, metric collections, event detection Supported in Oracle Database 10g REPOSITORY MANAGEMENT SERVICE Architecture

31 31 Oracle Management Service Browser Console Console User Interface Notification Dispatcher Job Dispatcher Self MonitorData Loader Agent Client Layer ‧ Configuration changes ‧ Real time metrics ‧ Remote Ops submission Data and Heartbeak Receiver Management agent To AgentFrom Agent Management Repository Job Dispatcher Architecture

32 32 Oracle Agent Oracle Management Service (Cont’d) Management Repository Oracle AS 10g Instance: Apache Server,OC4J Engine Thick JDBC Fetchlets OC4J_EM Application CONSOLE Servlet MGT Servlet HTTP(S) SQL SNMP …. HTTP(S) Architecture

33 33 Oracle Management Service (Cont’d) Management Servlet – A logical part of the Management service (OC4J_EM) Collects data from the Agents Uploads data to the Repository Dispatches jobs to Agents Pings Agents when Detected as DOWN – Talks to the Agent via port 1830 – Talks to the Repository Database via JDBC Architecture

34 34 Oracle Management Service (Cont’d) Console Servlet – Logical part of the Management Service (OC4J_EM) – Accepts requests from HTTP/(S) browser clients – Sends generated UI pages back to browser client – Talks to browser clients via defined HTTP port 5500 Architecture

35 35 Controlling the Management Framework Starting,Stopping,and Restarting Components

36 36 Controlling the Management Framework OMR sqlplus lsnrctl OMS opmnctl OMA emctl AS Control dcmctl emctl Component Control Utilities OMR OHS Web Cache OC4J EM OMS OMA Controlling the Management Framework

37 37 Starting the Grid Control Framework To start the Grid Control framework: 1. Start the OMR database listener. 2. Start the OMR database. 3. Start all OMSs. 4. Start the OMA on the OMS/OMR server. 5. Start the OMA on managed servers. OMA OMR OHS Web Cache OC4J EM OMS Controlling the Management Framework

38 38 Stopping the Grid Control Framework OHS Web Cache OC4J EM OMS OMR To Stop the Grid Control framework: 1.Stop the OMA on managed servers (optional). 2.Stop the OMA on the OMS/OMR server. 3.Stop all OMSs. 4.Stop the OMR database. 5.Stop the OMR database listener. Controlling the Management Framework

39 39 Controlling the OMR Database Listener STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.0.1.4.0 Start Date 29-FEB-2004 12:01:53 Uptime 14 days 22 hr. 9 min. 31 sec The OMR database listener is controlled by the Listener Control Utility (lsnrctl): ‧ Start the listener with lsnrctl start. ‧ Stop the listener with lsnrctl stop. ‧ Check the listener’s status with lsnrctl status. Controlling the Management Framework

40 40 Controlling the OMR Database $ sqlplus "/ as sysdba" Connected to: Oracle9i Enterprise Edition Release 9.0.1.5.0 - Production With the Partitioning option JServer Release 9.0.1.4.0 - Production The OMR database is controlled with sqlplus: ‧ Begin an sqlplus session with sqlplus "/ as sysdba“. ‧ Start the database with startup. ‧ Stop the database with shutdown immediate. Controlling the Management Framework

41 41 Controlling the OMS The Oracle Management Service may be controlled using: ‧ Oracle Process Monitor and Notification Control (opmnctl) ‧ Enterprise Manager Control (emctl) ‧ Distributed Configuration Manager Control (dcmctl) ‧ Oracle Enterprise Manager 10g Application Server Control Controlling the Management Framework

42 42 opmnctl $ opmnctl startall $ opmnctl stopall $ opmnctl startproc ias-component=OC4J $ opmnctl stopproc process-type=OC4J_EM $ opmnctl status -l Use the Oracle Process Monitor and Notification Control utility (opmnctl) to: ‧ Start and stop all OMS components ‧ Start and stop individual OMS components ‧ Check the status of OMS components Controlling the Management Framework

43 43 emctl $ emctl start oms $ emctl stop oms $ emctl status oms $ emctl start iasconsole $ emctl stop iasconsole Use the Enterprise Manager Control Utility (emctl) to: ‧ Start and stop required OMS components ‧ Administer Oracle Enterprise Manager 10g Application Server Control ‧ Secure the OMS Controlling the Management Framework

44 44 dcmctl $ dcmctl start $ dcmctl start –ct WebCache $ dcmctl stop $ dcmctl getstate $ dcmctl listcomponents Use the Distributed Configuration Manager Control (dcmctl) to: ‧ Start, stop, and monitor the status of all OMS components ‧ Deploy and validate J2EE applications ‧ Create additional OC4J components ‧ Create archives of OMS configuration files Controlling the Management Framework

45 45 $ $AGENT_HOME/bin/emctl start agent $ $AGENT_HOME/bin/emctl stop agent $ $AGENT_HOME/bin/emctl status agent $ $AGENT_HOME/bin/emctl upload $ $AGENT_HOME/bin/emctl config addTarget - /home/oracle/newTarget.xml Controlling the OMA Oracle Management Agents are controlled by emctl. ‧ Start, stop, and monitor status ‧ Force uploads to the management repository ‧ Add, delete, and list managed targets Controlling the Management Framework

46 46 Application Server Control http://omshost.mycompany.com:1810 Controlling the Management Framework

47 47 Starting Application Server Control $ emctl start iasconsole $ emctl stop iasconsole $ emctl status iasconsole Use emctl to start, stop, or check the status of Application Server Control. Controlling the Management Framework

48 48 Directory Structure 1. What’s inside ORACLE_HOME 2. Directory Structure

49 49 Directory Structure 1. What’s inside ORACLE_HOME? Oracle Database 10g Home (ORACLE_HOME) binsysman Hostname_sid oc4j adminsysman config log emd j2ee OC4J_DBconsole OC4J_DBconsole_ hostname_sid

50 50 2. Directory Structure $ORACLE_HOME/ _ – Emctl.pid: File with process ID of DBconsole $ORACLE_HOME/ _ /sysman/config – emagentlogging.properties Agent Fetchlet logging and tracing – emd.properties Agent runtime properties file – emoms.properties OMS runtime properties – emomsintg.xml Integration add-on class definition – emomslogging.properties OMS logging and tracing setting Directory Structure

51 51 2. Directory Structure (Cont’d) $ORACLE_HOME/ _ /sysman/emd – agntstmp.txt –Timestamp of last heartbeat to OMS protocol.ini – targets.xml –List of configured targets / state / upload agntstmp.txt targets.xml Directory Structure

52 52 2. Directory Structure (Cont’d) $ORACLE_HOME/ _ /sysman/log – emagent.log –Default logfile for agent – emagent.trc –Default tracefile for agent – emagentfetchlet.log –Default logfile for agent fetchlets – emagentfetchlet.trc –Default tracefile for agent fetchlets – emdb.nohup –dbconsole main process logfile – emdb.nohup.lr –dbconsole last run logfile – emoms.log –Default logfile for DBconsole – emoms.trc –Default tracefile for DBconsole Directory Structure

53 53 2. Directory Structure (Cont’d) $ORACLE_HOME/ _ /cfgtoollogs/emca/ – emca_.log –Repository log Directory Structure

54 54 Installing the Management Framework Preinstallation Checks : Hardware,Operating System Installation OMR,OMS,OMA

55 55 http://www.oracle.com/technology/software/products/oem/index.html Download grid control sofeware C:\WINNT\system32\drivers\etc\hosts Change the host file Installation

56 56 Preinstallation Checks: Hardware ‧ RAM --Small enterprises: 1 GB minimum 2 GB recommended --Large enterprises: 2 GB minimum 4 GB recommended ‧ Disk space --Small enterprises: 4.5 GB --Large enterprises: Approximately 5 MB for each managed target Installation

57 57 Preinstallation Checks: Operating System Ensure that your operating system is supported: ‧ Sun Solaris ‧ HPUX ‧ HP Tru64 ‧ Linux ‧ IBM AIX ‧ Microsoft Windows Verify that your system configuration files include a fully qualified host name. Installation

58 58 Installation To install the management repository: 1.Create the Oracle Inventory directory. 2.Create a new ORACLE_HOME. 3.Select the product to install. 4.Specify Super Administrator and Database passwords. 5.Configure MetaLink and proxy information. 6.Specify the database name and file locations. 7.Run appropriate configuration assistants. Installation

59 59 Installation Step 1

60 60 Installation Step2

61 61 Installation Step3

62 62 Installation Step4

63 63 Installation Step5

64 64 Installation Step 6

65 65 Installation Step 7

66 66 Installation Step 8

67 67 Installation Step 9

68 68 Installation Step 10

69 69 Installation Step 11

70 70 Installation Step 12

71 71 Installation Step 13

72 72 Installation Step 14

73 73 Installation Step 15

74 74 Installation Step 16

75 75 Installation Step 17

76 76 Installation Step 18

77 77 Installation

78 78 Installation

79 79 Installation

80 80 Installation

81 81 Windows Service Installation

82 82 Installing the Oracle Management Agent Installation

83 83 Installation

84 84 Installation

85 85 Installation

86 86 Installation Interactive Installation

87 87 Installation

88 88 Installation

89 89 Installation Selecting an OMS

90 90 Installation

91 91 Installation

92 92 Installation

93 93 Installation

94 94 Configuring Grid Control Administrators 1.About Groups Administrator

95 95 Groups Grid Control groups are user-defined logical sets of targets that enable you to: ‧ Manage sets of systems as a single functional unit ‧ Quickly determine overall status and health of a subset of the grid’s managed targets ‧ Get summaries of open alerts and job activity ‧ Run Host and SQL jobs against group targets ‧ Apply blackouts, grant privileges, and set notification rules collectively to all group members Configuring

96 96 Types of Groups ‧ Groups (generic) ‧ Database groups ‧ Host groups Configuring

97 97 Creating Groups On the Home page, click Targets and then click Groups. ‧ Select the group type and click Go. ‧ Select the targets to include in the group. ‧ If the type is Group, also select Metrics. Configuring

98 98 Monitoring Groups On the Group Home page, you can monitor all the targets in a group. Configuring

99 99 Monitoring Group Performance You can monitor a group’s performance. Configuring

100 100 Monitoring Group Targets You can monitor all the targets in a group. Configuring

101 101 Super Administrator A super administrator has the ability to perform all of the following tasks: Select the group type and click Go. ‧ Create, modify, and delete any Grid Control administrator ‧ Create any role in the system ‧ Perform any action on any target in the system ‧ See all areas of the Management System primary tab Configuring

102 102 Creating Administrators On the Grid Control Home page, click Setup, and then click Administrators. Configuring

103 103 Creating Roles Super administrators create, grant, and revoke roles. Roles include: ‧ System privileges ‧ Targets ‧ Target privileges ‧ Administrators ‧ Other Roles Configuring

104 104 Notifying Administrators About Issues ‧ Notifications help administrators resolve issues quickly by notifying them when certain conditions exist. ‧ The following items need to be defined for an administrator to receive notifications: –Notification method –E-mail addresses –Notification schedule –Notification rules Configuring

105 105 Setting Up Notification Methods Notification methods define how an administrator is notified. Configuring

106 106 Defining E-Mail Addresses E-mail addresses are used to send notifications to you. Configuring

107 107 Defining a Notification Schedule Notification schedules determine who is notified when alerts or other issues occur. Configuring

108 108 Using Notification Rules Notification rules act as filters to determine which notifications are sent to an administrator. Configuring

109 109 Preferred Credentials Preferred credentials simplify access to targets that you manage. Preferred credentials are set for the following target types: ‧ Databases ‧ Host ‧ Listener Configuring

110 110 Preferred credentials may be set, modified or deleted from the Preferred Credentials page. Setting Preferred Credentials Configuring

111 111 Managing Target Subtabs Customizing Grid Control target subtabs to match your division of system responsibility. Configuring

112 112 Troubleshooting When you want to collect tracefiles before making a TAR

113 113 Troubleshooting When you want to collect tracefiles before making a TAR you could face a problem using DBconsole and could not find what caused it, please search it from Metalink first, then open TAR. In this case, OSS needs a clear problem description about what is happening now and well organized tracefiles with DEBUG mode. Setting DEBUG mode become effective after restarting DBconsole. DBconsole is dependent on Database but different serivce, this action does not affect Database service.

114 114 When you want to collect tracefiles before making a TAR (Cont’d) 1. Stop DBconsole Service 2. Move the files in $ORACLE_HOME/ /sysman/log into another directory 3. Open $ORACLE_HOME/ /sysman/config/emomslogging.propertie s 4. Set log4j.rootCategory=WARN, emlogAppender, emtrcAppender To log4j.rootCategory=DEBUG, emlogAppender, emtrcAppender 5. Open $ORACLE_HOME/ /sysman/config/emd.properties 6. Set EMAGENT_PERL_TRACE_LEVEL=ERROR To EMAGENT_PERL_TRACE_LEVEL=DEBUG 7. Start DBconsole 8. Reproduce the problem 9. Compress all the files in $ORACLE_HOME/ /sysman/log and upload in on your TAR. 10. Unset DEBUG mode Troubleshooting

115 115 Q & AQ & A


Download ppt "1 Oracle 10g Grid Control Yammy Wong 20060623 聚碩科技 台北市內湖路一段 516 號 10F Tel No: (02) 8797-8260 ext. 2386."

Similar presentations


Ads by Google