Author ๋ฐ๋์ฐ ๊ณผ์ฅ, ๋ ธ์ฌ๊ตฌ ๋๋ฆฌ
Creation Date 2010-05-03
Last Updated
Version 1.0
Copyright(C) 2009 Goodus Inc.
All Rights Reserved
๊ธฐ์ ๋ ธํธ 48 ํ
Enterprise Manager Grid Control
Oracle 10g EM Grid Control
- 2 -
Contents
1. GRID CONTROL OVERVIEW ............................................................................................................................. 5
1.1. WHAT IS ENTERPRISE MANAGER 10G GRID CONTROL? .......................................................................................................... 5
1.1.1. Key Challenges for Administrator ............................................................................................................................. 5
1.1.2. What is Enterprise Manager Grid Control? .......................................................................................................... 5
1.1.3. Enterprise Manager Grid Control Features ........................................................................................................... 6
1.1.4. Expected Effect of Enterprise Manager Grid Control ...................................................................................... 6
1.2. ENTERPRISE MANAGER 10G GRID CONTROL ARCHITECTURE ................................................................................................. 8
1.2.1. Web Based Application.................................................................................................................................................. 8
1.2.2. Grid Control Architecture .............................................................................................................................................. 8
1.2.3. Managed Targets ............................................................................................................................................................ 10
2. GRID CONTROL INSTALLATION .................................................................................................................... 10
2.1. INSTRALLATION OVERVIEW .......................................................................................................................................................... 10
2.2. PREINSTRALLATION CHECKS ........................................................................................................................................................ 11
2.2.1. Hardware Requirements .............................................................................................................................................. 11
2.2.2. Network Ports .................................................................................................................................................................. 11
2.2.3. Grid Control Directory Structure (Unix) ................................................................................................................ 11
2.2.4. Grid Control Certification Matrix ............................................................................................................................. 11
2.3. ORACLE MANAGEMENT REPOSITORY INSTALLATION .............................................................................................................. 14
2.3.1. Management Repository Install Process .............................................................................................................. 14
2.3.2. Install & Configure Repository Database ............................................................................................................ 15
2.4. ORACLE MANAGEMENT SERVICE INSTALLATION...................................................................................................................... 21
2.4.1. OMS(Oracle Management Service Installation ................................................................................................. 21
2.4.2. Contact Enterprise Manager Grid Contring Using Your Internet Browser .......................................... 26
2.5. ORACLE MANAGEMENT AGENT INSTALLATION ....................................................................................................................... 27
2.5.1. Oracle Management Agent (OMA) may be installed .................................................................................... 27
2.5.2. Oracle Management Agent Installation from the Grid Control product CDs (Unix) ...................... 27
2.5.3. Deploying an Agent on another server ............................................................................................................... 33
2.5.4. Agent Status Check ....................................................................................................................................................... 35
2.5.5. Rediscover or Reconfigure Agent ........................................................................................................................... 36
2.5.6. Securing Agent ................................................................................................................................................................ 36
3. MANAGING THE GRID CONTROL COMPONENTS .................................................................................... 37
3.1. STARTING UP AND SHUTTING DOWN THE GRID CONTROL. ................................................................................................. 37
3.1.1. Control Utilites ................................................................................................................................................................. 37
3.1.2. Starting Up the Grid Control..................................................................................................................................... 37
3.1.3. Shutting Down the Grid Control ............................................................................................................................. 38
Oracle 10g EM Grid Control
- 3 -
3.1.4. Loading Grid Control on OS Booting ................................................................................................................... 39
3.2. GRID CONTROL CONFIGURATION .............................................................................................................................................. 40
3.2.1. Configuring Database Targets .................................................................................................................................. 40
3.2.2. Changing Registration Passwrod ............................................................................................................................ 43
3.2.3. Creating Grid Control Super Adminstrator and Administrator ................................................................. 43
3.2.4. Setup Prefered Credential .......................................................................................................................................... 45
4. MANAGING HOSTS ......................................................................................................................................... 46
4.1. HOST INFOMATION ....................................................................................................................................................................... 46
4.1.1. Host Home page ............................................................................................................................................................ 46
4.1.2. Host Availability ............................................................................................................................................................... 47
4.1.3. Hardware Detail Information ..................................................................................................................................... 48
4.1.4. Operating System Detail Information ................................................................................................................... 49
4.1.5. Alert History ...................................................................................................................................................................... 50
4.2. HOST PERFORMANCE .................................................................................................................................................................... 51
4.2.1. Performance Summary ................................................................................................................................................. 51
4.2.2. Detail Information .......................................................................................................................................................... 51
4.3. HOST MANAGEMENT .................................................................................................................................................................... 52
4.3.1. Required Installation ..................................................................................................................................................... 52
5. MANAGING DATABASE .................................................................................................................................. 58
5.1. DATABASE HOME PAGE ............................................................................................................................................................... 58
5.1.1. Database Home page ................................................................................................................................................... 58
5.1.2. Database Home Components .................................................................................................................................. 59
5.1.3. Managing Databases .................................................................................................................................................... 61
5.2. DATABASE PERFORMANCE ........................................................................................................................................................... 62
5.2.1. Monitoring Database Performance ........................................................................................................................ 62
5.2.2. Using Advisors in Grid Control ................................................................................................................................ 65
5.2.3. ADDM(Automatic Database Diagnostic Monitor) ........................................................................................... 66
5.2.4. Top Consumers ................................................................................................................................................................ 66
5.2.5. Instance Activity .............................................................................................................................................................. 67
5.2.6. Historical SQL (AWR) .................................................................................................................................................... 67
5.2.7. Active Session History (ASH) Report ..................................................................................................................... 69
5.2.8. Top Jobs .............................................................................................................................................................................. 70
5.2.9. Hang Analysis ................................................................................................................................................................... 70
5.3. DATABASE MANAGEMENT ........................................................................................................................................................... 71
5.3.1. Database Administration Features .......................................................................................................................... 71
5.3.2. Database Availablity ...................................................................................................................................................... 71
5.3.3. Storage Management ................................................................................................................................................... 72
5.3.4. Database Configuration ............................................................................................................................................... 73
Oracle 10g EM Grid Control
- 4 -
5.4. DATA MANAGEMENT .................................................................................................................................................................... 77
5.4.1. Database Objects ............................................................................................................................................................ 77
5.4.2. Objects Reorganization ................................................................................................................................................ 78
5.4.3. Data Masking .................................................................................................................................................................... 80
5.4.4. User Defined Types........................................................................................................................................................ 82
6. ENTERPRISE MANAGER TIP ........................................................................................................................... 83
6.1. ENTERPRISE MANAGER FRAMEWORK SECURITY ํ์ฑํ ....................................................................................................... 83
6.2. GRID CONTROL ์์ SYSMAN ์ ์ ์ ํจ์ค์๋ ๋ณ๊ฒฝ ................................................................................................ 83
6.3. ORACLE MANAGEMENT SERVICE(OMS) ์๋ฌ์ ํ์ธ๋ก๊ทธ ............................................................................................... 85
6.4. ORACLE MANAGEMENT AGENT(OMA) ์๋ฌ์ ํ์ธ๋ก๊ทธ ................................................................................................ 85
6.5. DEBUG ๋ฅผ ์ํ AGENT LOGGING ๋ ๋ฒจ ์กฐ์ ...................................................................................................................... 86
7. REFERENCE ........................................................................................................................................................ 87
Oracle 10g EM Grid Control
- 5 -
1. Grid Control Overview
1.1. What is Enterprise Manager 10g Grid Control?
1.1.1. Key Challenges for Administrator
์ค๋๋ Data Center ์์๋ ๋ค์ํ ํ๋ซํผ(ํ๋์จ์ด, ๋คํธ์ํฌ, ์คํ ๋ฆฌ์ง, ์ํํธ์จ์ด ๋ฑ) ์ ๋ํ ํตํฉ
์ ์ธ ๊ด๋ฆฌ ์๋ฃจ์ ์ ํ์๋ก ํ๊ณ ์์ต๋๋ค.
์ฑ๋ฅ ๋ฐ ๊ฐ์ฉ์ฑ์ ํ๋ณด
์ฅ์ ๋ฐ์์ ์์ํ ๋์ฒํ ์ ์๋ ํด๊ฒฐ์ฑ ์ ๊ณต
์์ผ๋ก ๋ฐ์ํ ๋น์ฉ์ ํฌํจ ( ์ถ๊ฐ ๋น์ฉ ์ ๊ฐ )
IT์ ๋น์ฆ๋์ค ๋ผ์ธ์ ์ฐ๊ฒฐํ์ฌ ์ฐ์ ์์๋ฅผ ์ ํจ.
1.1.2. What is Enterprise Manager Grid Control?
Enterprise Manager Grid Control 10g ๋ ์ค๋ผํด Grid ์ ๋ชจ๋ ์๋์ค์ธ ์ดํ๋ฆฌ์ผ์ด์ ์ ๋ชจ๋ ๋ฉด์ ๊ด
๋ฆฌํ๊ธฐ ์ํ ํตํฉ๋ ์๋ฃจ์ ์ ์ ๊ณตํฉ๋๋ค.
๊ทธ๋ฆผ 1 EM ๊ตฌ์ฑ
Oracle 10g EM Grid Control
- 6 -
1.1.3. Enterprise Manager Grid Control Features
๊ทธ๋ฆผ 2 EM 10g Grid Control ํต์ฌ ๊ธฐ๋ฅ
ํ 1 Oracle Database ๋ฅผ ์ํ EM ์ ์ฃผ์ ๊ธฐ๋ฅ
1.1.4. Expected Effect of Enterprise Manager Grid Control
Enterprise Manager Grid Control 10g IT ์๋น์ค์ ๊ฐ์ฉ์ฑ๊ณผ ํ์ง์ ํฅ์์ํค๊ณ ์์คํ ๊ด๋ฆฌ๋น์ฉ์ ์
๊ฐํ์ฌ ์ฌ๋ด ROA(Return of Assets)๋ฅผ ๊ทน๋ํ ์ํฌ ์ ์์ต๋๋ค. ํนํ ์ฑ๋ฅ๋ถ์, DB ๊ด๋ฆฌ, ์ต๊ณ ์ ์ฅ์
์๋ฐฉ ๋ฑ ์ข ํฉ์ ์ธ ๊ด๋ฆฌ๋ฅผ ์ ๊ณตํจ์ผ๋ก์จ IT ์ด์์ ์ต์ ์ ์ํ๋ฅผ ์ ์งํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 7 -
๊ทธ๋ฆผ 3 IT ์ด์ ์ต์ ํ ๊ณผ์
๊ทธ๋ฆผ 4 Grid Control ์ ์ฌ์ฉํ DB ์ต์ ํ ์คํ
๊ทธ๋ฆผ 5 Grid Control ๋์ ํ ๊ธฐ๋ ํจ๊ณผ
Oracle 10g EM Grid Control
- 8 -
1.2. Enterprise Manager 10g Grid Control Architecture
1.2.1. Web Based Application
Oracle Enterprise Manager 10g Grid Control ๋ Web Application ๋ฐฉ์์ผ๋ก ๊ตฌํ๋์ด ์์ผ๋ฉฐ ๊ฐ
์ธํฐ๋ท ๋ธ๋ผ์ฐ์ ๋ฅผ ํตํด ์ ๊ทบํ์ฌ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๊ทธ๋ฆผ 6 Grid Control Home Page
1.2.2. Grid Control Architecture
Management EM Repository ์ Management EM ๋ฅผ ์ํ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅ ๊ด๋ฆฌํ๊ณ , Management
EM Service ์ Agent ์์ ํต์์ ํตํด Enterprise Manager ์๋น์ค ์ ๊ณตํฉ๋๋ค.
๊ทธ๋ฆผ 7 Grid Control Architecture
Oracle 10g EM Grid Control
- 9 -
๊ทธ๋ฆผ 8 Grid Control Architecture
๊ทธ๋ฆผ 9 Grid Control Architecture
Https ๋ http ์ ๊ฑฐ์ ๊ฐ์ง๋ง ๋ชจ๋ ํต์๋ด์ฉ์ ์ํธํํ๋ ๊ฒ์ด๋ฉฐ, s ๋ secure socket, ์ฆ ์์ ํ ํต์๋ง
์ ๋ปํฉ๋๋ค. ํ์ง๋ง https ์ํธํ๋ฅผ ํ๋ ค๋ฉด ์น์๋ฒ์ ๋ถํ๊ฐ ์๊ธฐ๊ณ , ํ์ํ ์ธ์ฆ์๋ฅผ ๋น์ผ ๋์ ์ฃผ๊ณ ์ฌ
์ผํ๋ฏ๋ก, ์ฐ๋ฆฌ๋๋ผ ์น์ฌ์ดํธ์์๋ ์ ์ฐ์ด์ง ์์ต๋๋ค. ์ธ๊ตญ์ ๊ธ์ต ์ฌ์ดํธ๋ Gmail ๋ฑ์์๋ https ๋ฅผ
ํ์์ ์ผ๋ก ์ฌ์ฉํ๋ค๊ณ ํฉ๋๋ค.
Oracle 10g EM Grid Control
- 10 -
1.2.3. Managed Targets
Enterprise Manager 10g Grid Control ๋ ๋ค์๊ณผ ๊ฐ์ ๊ด๋ฆฌ ํญ๋ชฉ์ ํฌํจํฉ๋๋ค.
Oracle Databases
Oracle Database Listeners
Oracle Application Servers
Oracle Applications
Oracle Collaboration Suite
Most operating systems that are certified to run Oracle products
Third-party products and applications
๊ทธ๋ฆผ 10 EM ์ ์ฉ ๋ฒ์
2. Grid Control Installation
2.1. Instrallation Overview
Grid Control Framework ์ค์น ๊ณผ์ ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
Completing preinstallation checks
Installing the OMR and OMS
Completing postinstallation configuration
Oracle 10g EM Grid Control
- 11 -
2.2. Preinstrallation Checks
2.2.1. Hardware Requirements
RAM
Small enterprises: 1 GB minimum, 2 GB recommended
Larger enterprises: 2 GB minimum, 4 GB recommended
Disk space
OMS : 3 GB minimum, 5GB recommended
OMR : software 2 GB minimum + database 1GB minimum
OMA: Approximately 1GB for each managed target
2.2.2. Network Ports
Oracle Management Agent Port = 3872
Enterprise Manager Central Console Port = 4889
Listener for Oracle Database(10.2.0.4) Port = 1521
2.2.3. Grid Control Directory Structure (Unix)
Grid Control ์ ๊ฐ ์ํํธ์จ์ด๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ค์๊ณผ ๊ฐ์ ๊ฒฝ๋ก๋ก ๊ตฌ์ฑ๋ฉ๋๋ค.
2.2.4. Grid Control Certification Matrix
๋ฉํ๋งํฌ ๋ฌธ์ ID : 412431.1 ๋ฅผ ์ฐธ๊ณ ํ๋ฉด, OMS ๋ฒ์ ๋ณ ์ค์น ๊ฐ๋ฅํ OS ๋ฒ์ ๋ฐ Repository ๋ฒ์
์ ํ์ธํ ์ ์์ผ๋ฉฐ, ๊ด๋ฆฌ ๋์์ด ๋ ์๋ฒ์์ ์ค์น ๊ฐ๋ฅํ Agent ๋ฒ์ ์ ํ์ธํ ์ ์์ต๋๋ค.
Agent ๋ฒ์ ์ EM ์ผ๋ก ๊ด๋ฆฌ๋ ๋์๊ณผ์ ํธํ์ฌ๋ถ๋ฅผ ๋ฐ๋์ ์ดํด๋ด์ผ ํฉ๋๋ค.
๋ค์์ OMS, OMA ๋ฒ์ ๋๋ค 10.2.0.5 ์ธ ๊ฒฝ์ฐ์ Matrix ํ์ ๋๋ค.
OMS : 10gR5 Release : 10.2.0.5
Platform OS versions Status
Linux x86
RHEL 3.0, 4.0, 5.0 ; SLES 9, 10; OEL 4, 5; Asianux 2.0; Oracle VM (NOTE: RHEL and OEL Updates are supported Available
Oracle 10g EM Grid Control
- 12 -
Supported Repository Versions
Management Connectors
Browser Certifications
Supported 10gR5 Agents : 10.2.0.5
Platform OS versions Status
Linux x86
RHEL 3.0, 4.0(Metalink Note 729543.1), 5.0; SLES 9, 10; OEL4, 5; Asianux 2.0; Oracle VM (NOTE: RHEL and OEL Updates are supported Available
Windows x86 Win2k SP4; Win XP SP2; Win Server 2003 (SP2, R2); Available
Windows x86
Win2k SP4; Win Server 2003 (SP2, R2); Windows Vista; Windows 2008; Windows 2008 Hyper-V Available
Linux x64 (AMD64/EM64T)
RHEL 3.0, 4.0, 5.0; SLES 9, 10; OEL 4, 5; Oracle VM (NOTE: RHEL and OEL Updates are supported Available
Solaris SPARC (64-BIT) Solaris 8,9,10; Solaris 10 3/05 Local Container, Solaris 10 10/08 Logical Domains
Available
HP-UX Itanium 11.23, 11.31
Available
HP-UX PA-RISC (64-BIT) 11.11, 11.23, 11.31
Available
AIX 5L (64-BIT) 5.2, 5.3, 6.1
Available
For additional information on the release of other platform release dates, please
see( Metalink Note 793512.1) Available
DB Family Version Supported (RAC & StandAlone, Enterprise Edition)
DB-9.2 9.2.0.6, 9.2.0.7, 9.2.0.8
DB-10gR1 10.1.0.4 (Default), 10.1.0.5
DB-10gR2 10.2.0.2 , 10.2.0.3 (Metalink Note 9119013),10.2.0.4
DB-11g 11.1.0.6 , 11.1.0.7
NOTE: Please refer to Database Platform Certification for more
information. Oracle Enterprise Manager support for listed repositories follows the support policy - i.e. when Premier Support ends for a DB version, EM Support for the supported repository also ends. For reference, see
Oracle Lifetime Support Policy and Error Correction Policy.
Connector Connector Version Target Version Supported
HP ServiceCenter 1.0.4.0.0
HP ServiceCenter 6.1
HP Service Manager 1.0.4.0.0
HP Service Manager 7.0
HP OpenView Operations 1.0.4.0.0, 1.1.4.0.0
HP OpenView Operations Unix version 8.0.x
IBM Tivoli Enterprise Console 1.0.4.0.0
IBM Tivoli Enterprise Console versions 3.8 and 3.9
Microsoft Systems Center Operations Manager
1.0.5.0.0 Microsoft Systems Center Operations Manager version 2007
BMC Remedy Service Desk 1.0.4.0.0, 1.1.5.0.0
Remedy Service Desk IT Service Management 7.0.03 with the latest Incident Management patch, IT Service Management Patch 008
Supported Browsers
Netscape 7.2, 8.1, 9
Internet Explorer 6.0 SP2, 7.0 SP1
Mozilla 1.7
Firefox 1.0.4, 1.5, 2.0, 3.0
Safari 1.2, 3.0.4, 3.1
Oracle 10g EM Grid Control
- 13 -
Windows Vista; Windows 2008; Windows 2008 Hyper-V
Linux Itanium
RHEL 3.0, 4.0 (Metalink Note 729543.1), 5; SLES 9, 10 NOTE: RHEL Updates are supported Available
Linux x64 (AMD64/EM64T)
RHEL 3.0, 4.0 (Metalink Note 729543.1), 5; SLES 9, 10; OEL4 ; OEL 5; Oracle VM (NOTE: RHEL and OEL Updates are supported Available
Solaris SPARC (64-BIT)
Solaris 8,9,10; Solaris 10 3/05 Local Container, Solaris 10 10/08 Logical Domains Available
Solaris x86 Solaris 10
Available
Solaris x64 Solaris 10
Available
HP-UX Itanium 11.23, 11.31
Available
HP-UX PA-RISC (64-BIT) 11.11, 11.23, 11.31
Available
AIX 5L (64-BIT) 5.2, 5.3, 6.1
Available
Windows x64 (AMD & Xeon (EM64T)) Win XP, Win Server 2003 (SP1, SP2, R2), Windows Vista, Windows 2008
Available
Linux on Power
RHEL 4.0 (Metalink Note 729543.1), 5; SLES 9, 10 NOTE: RHEL Updates are supported Available
Linux on z System
RHEL 4.0 (Metalink Note 729543.1), 5; SLES 9, 10 NOTE: RHEL Updates are supported Available
HP Tru64 5.1 B
Available
Windows Itanium (64-BIT) Windows 2003 SP2, Windows 2008, Windows Vista
Available
For additional information on the release of other platform release dates, please see( Metalink Note 793512.1) Available
Managed Targets (select OMS & Agent Version)
NOTE: Oracle Enterprise Manager support for managing the listed targets follows the support policy for the target. When Premier Support ends for a target, Enterprise Manager Support for managing the target also ends. For reference, see Oracle Lifetime Support Policy. and Error Correction Policy."
DB Targets 8.1.7.4 9.2.0.8 10.1.0.4, 10.1.0.5 10.2.0.1 10.2.0.2, 10.2.0.3 , 10.2.0.4 11.1.0.6 , 11.1.0.7 11.2.0.1 (Metalink Note 953846.1) Content DB 10.1.3.2.0 , Content DB 10.2.0.0.0
MiddleWare Targets 9.0.4.2, 9.0.4.3 10.1.2.0.1 10.1.2.0.2(Ph 2), 10.1.2.1 PS, 10.1.2.2 PS , 10.1.2.3 10.1.3.0.0, 10.1.3.1, 10.1.3.2 10.1.3.3,10.1.3.4 Oracle Access Manager 10.1.4.0.1, 10.1.4.2 Oracle Identity Federation 10.1.4.0.1, 10.1.4.2 Oracle Identity Manager 9.0.1, 9.1.0.1 Oracle Identity Management Infrastructure 10.1.4.0.1, 10.1.4.2 (including Oracle Internet Directory) WebLogic Server 10.3.1, 10.3, 10.0.x, 9.x, 8.1.x, 7.x Coherence EE and GE 3.4.x, 3.3.x Oracle Service Bus(OSB) 10.3, 3.0, 2.6.1, 2.6 Standalone Oracle WebCache 9.0.4.0, 10.1.2.0 Oracle BPEL Process Manager 10.1.3.4,10.1.3.3, 10.1.3.1, 10.1.2 BI-EE 10.1.3.2, 10.1.3.3; BI DAC Server (BI Applications 7.9.1 to 7.9.4) Standalone Oracle HTTP Server 10.1.2.0 (Based on Apache 1.3) Apache HTTP Server 2.0
CS/Beehive Targets OCS 9.0.4.2 OCS 10.1.1 OCS 10.1.2.0.0 OCS 10.1.2.4 Beehive 1.4
Oracle-Built Management Plug-ins
Plug-in Plugin Version Target Version Supported
Microsoft SQL Server
4.0.3.0.0, 3.4.3.1.0, 3.3.3.1.0, 3.2.3.1.0, 3.1.3.1.0
Standard, Enterprise, Workgroup editions of SQL Server 2000, 2005(32- bit), 2005(64-bit running on x64 or Itanium), 2005 Cluster: Active/Active and Active/Passive, Microsoft SQL Server 2008 (32-bit),Microsoft SQL Server 2008 (64-bit) running on x64 or Itanium-based servers
F5 BigIP Local Traffic Manager 2.2.1.1.0, 2.0.1.0.0
F5 BigIP Local Traffic Manager v9.1.x
Juniper NetScreen Firewall 2.1.1.0.0, 2.0.1.0.0
NetScreen Firewalls with ScreenOS Version 5.0.0 +, ScreenOS version 5.0.0. Supported NetScreen Firewall versions:,NetScreen-5 Series,NetScreen-
Oracle 10g EM Grid Control
- 14 -
25/50,NetScreen-204/208,NetScreen-500,NetScreen-5200/5400,ISG Series
Checkpoint Firewall 2.1.1.0.0, 2.0.1.0.0
NG-AI (R54),NG-AI (R55),NG-AI (R60), NGX
IBM DB2
3.4.1.0.0, 3.3.1.0.0, 3.2.1.0.0, 3.1.1.0.0, 3.0.1.0.0
Single-partition IBM DB2 Universal Database (UDB) for Linux, UNIX, and Windows (LUW) Version 8.2 FixPak 2 (equivalent to version 8.1 FixPak 9) or higher.
EMC Celerra** 2.0.2.1.0
Clarion (NS 600/700 and NS 700G), Celerra Software/CLI version 5.3
Microsoft Active Directory 2.0.2.1.0, 2.0.1.0.0, 2.1.2.1.0
Windows Server 2003 Active Directory, Windows Server 2008 Active Directory
Microsoft Internet Information Services
2.0.1.0.0, 2.2.2.1.0 Internet Information Services 6.0.x. 7.0.x
Microsoft BizTalk Server 2.0.2.1.0
BizTalk Server 2004
Microsoft Commerce Server 2.0.2.1.0
All editions of Commerce Server 2002
Microsoft .NET Framework 2.0.2.2.0, 2.0.2.1.0, 2.0.1.0.0, 2.1.2.2.0
.NET Framework 1.1.x, 2.0.x, 3.0.x, 3.5.x
Microsoft Internet and Security Acceleration Server
2.0.2.1.0 All editions of ISA Server 2004
EMC Symmetrix DMX System** 1.0.3.1.0, 1.0.1.0.0
EMC Solutions Enabler 6.3.x and 6.4.x
EMC CLARiiON System** 1.1.3.0.0, 1.0.3.0.0
Navicli Version 6.24.0 +, CLARiiON CX Class Systems
VMware ESX Server 1.1.3.1.0, 1.1.3.0.0, 1.0.3.0.0
VMware ESX Server 3.0.0,3.0.1,3.0.2,3.5i
Sybase Adaptive server Enterprise 1.2.1.1.0, 1.1.1.0.0, 1.0.1.0.0
Version 12.5.4 or higher of Express (XE), Enterprise (EE), and Developer (DE) editions of Sybase Adaptive Server
Apache Tomcat 1.0.3.0.0
Apache Tomcat 6.0.x, 5.5.x, 5.0.3 through 5.0.30.
HP Oracle Exadata Storage Server 1.1.4.0.0, 1.0.3.0.0
HP Oracle Exadata Storage Server 11g Release 1 (11.1)
SAP R3
SAP R3
Dell Change Automation 1.0.4.0.0
Dell Change Automation Systems
NetApp Filer** 10.2.0.5
6.x,7.0.x
IBM WebSphere Application Server 10.2.0.5
WebSphere Application Server 6.1x, 6.0.x, 5.1.x
IBM WebSphere MQ 10.2.0.5
WebSphere MQ 6.0.x, 5.3.x
JBoss Application Server 10.2.0.5
Application Server 4.0.x, 4.2
Microsoft Exchange 10.2.0.5
Microsoft Exchange 2003
For Partner-built Plug-ins visit link (**) For additional certification details for this storage plug-in, please see MetaLink Note:465462.1
Applications Management Packs
Plug-in Target Version Supported
E-Business
Application Management Pack for Oracle E-Business Suite version 3.0*, Application Change Management Pack for Oracle E-Business Suite Version 3.0* *Patches required : 8474729, 8338853 & 8537296.
Siebel Siebel 7.7, 7.8, 8.0 on Windows, Linux, Solaris, HP UX, HP AIX Platforms Siebel 8.1.1 Application Management pack on Linux.
Click here to view Peoplesoft versions certified with Oracle Enterprise Manager
2.3. Oracle Management Repository Installation
2.3.1. Management Repository Install Process
1) Create the Oracle Inventory directory.
2) Create a new ORACLE_HOME.
3) Select the product to install. (Contain Label Security option)
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.
Oracle 10g EM Grid Control
- 15 -
2.3.2. Install & Configure Repository Database
OMS(Oracle Management Server)๋ฅผ ์ค์นํ๊ฒ ์์ OMR(Oracle Management Repository)๋ฅผ ๋จผ์
๊ตฌ์ฑํฉ๋๋ค. Repository ๋ฅผ ๊ตฌ์ฑ์ OMS ์์ ํ์๋ก ํ๋ ์ต์ ์ ์ค์น์ ํจ์น๋ฅผ ์ฐ์ ์ํํด ๋
๋ ๊ฒ์ OMS ์ค์น ์ฌ์ ์ ๊ถ์ฅ๋๋ ์ฌํญ์ ๋๋ค.
OMR ์ ์ค์นํ OMS ์ ๋ฒ์ ๊ณผ ํธํ๋๋๋ก ํจ์น๋ฅผ ํด๋์ด์ผ ํ๋ฉฐ(Matix ์ฐธ์กฐ), OMR ์์ฒด๋
Single ๋๋ RAC ๋ก ๊ตฌ์ฑ๋ ์ ์์ต๋๋ค.
1) OS ํ๊ฒฝ๋ณ์๋ฅผ ์ค์ ํฉ๋๋ค.(Unix ์ธ ๊ฒฝ์ฐ)
# Set up the ORACLE environments umask 022 set -o vi PATH=/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. export PATH ## Oracle Environment Variables export ORACLE_BASE=/oracle/OracleHome export ORACLE_HOME=$ORACLE_BASE/db10g export OMS_HOME=$ORACLE_BASE/oms10g export AGENT_HOME=$ORACLE_BASE/agent10g export ORACLE_SID=EMREP export ORACLE_OWNER=ora10 export NLS_LANG=American_America.KO16KSC5601 export LD_LIBRARY_PATH=/usr/local/lib:$ORACLE_HOME/lib;$ORACLE_HOME/lib32 export PATH=$PATH:$ORACLE_HOME/OPatch:.:$PATH:.:$ORACLE_HOME/bin: /usr/bin:/usr/ccs/bin:/usr/local/bin:/usr/sbin:/usr/ucb #stty erase ^H #set -o vi export DISPLAY=localhost:0.0 # ๋๋ ์์์ IP, X ๋ธ๋ผ์ฐ์ ๊ฐ ์ง์๋์ผ ํจ. #PS1=`hostname`:'$PWD>' alias ll='ls -laF' export LANG=C alias oh="cd $ORACLE_HOME" alias ss="sqlplus '/as sysdba'" alias emrep="export ORACLE_SID=EMREP"
Oracle 10g EM Grid Control
- 16 -
2) Installation ํ์ ์ ์ ํํฉ๋๋ค . ํ์ ์ Custom ์ ์ ํํ๊ณ , Product Languages ์ต์ ์ ์ ํํ
์ฌ Korean ์ ์ถ๊ฐํฉ๋๋ค.
3) Product ๊ตฌ์ฑ์์๋ฅผ ์ ํํฉ๋๋ค. OMR ์ ์ํด์๋ Oracle Label Security ์ต์ ์ ๋ฐ๋์
์ ํํ์ฌ์ผ ํฉ๋๋ค. Enterprise Manager Database Control ์ต์ ์ ์ค์นํ ํ์๊ฐ ์์ต๋๋ค.
Oracle Label Security ์ต์ ์ 8i ๋ ์ฒ์ ๋์์ผ๋ฉฐ, ๋ฏผ๊ฐํ ์ ๋ณด์ ๋ํ ํฌ๊ด์ ์ธ ๋ณดํธ ๊ธฐ๋ฅ์
์ ๊ณตํ๋ค. ์ฒ์์๋ ๊ธฐ๋ฐ ์ ๋ณด๋ฅผ ๋ณดํธํ๊ณ ์ ํ๋ ์ ๋ถ๊ธฐ๊ด ๋ฑ์์ ์ฃผ๋ก ํ์ฉ๋์์ผ๋ฉฐ,
๋ค๋จ๊ณ ๋ณด์ ๊ธฐ๋ฅ์ ์ ๊ณตํ์ฌ ์ค์ ๋ฐ์ดํฐ ๋ณด์ ๋ฐ ํ๋ผ์ด๋ฒ์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํฉ๋๋ค.
Oracle 10g EM Grid Control
- 17 -
4) ์ํํธ์จ์ด ์ค์นํ Repository์ฉ DB๋ฅผ ๊ตฌ์ฑํ๋๋ก ํฉ๋๋ค.
5) ์ค์น ๊ตฌ์ฑ ๋ด์ฉ์ ๋ค์ ํ๋ฒ ํ์ธ ํ ์ํํธ์จ์ด ์ค์น๋ฅผ ์งํํฉ๋๋ค.
( ์ํํธ์จ์ด ํจ์น๋ฅผ ๋จผ์ ํ๊ณ ์ ํ๋ ๊ฒฝ์ฐ ํจ์น ์ดํ DB๋ฅผ ์์ฑํ๋๋ก ํฉ๋๋ค.)
Oracle 10g EM Grid Control
- 18 -
6) ์ค์น ์งํ ํ๋ฉด์ด๋ฉฐ, ์ค์น ์ค ์ค๋ฅธ์ชฝ ์ฐฝ์ด ๋ณด์ด๋ฉด root ์ ์ ๋ก root.sh ๋ฅผ ์ํํฉ๋๋ค.
7) ์ค์น ์ฌํ ๊ตฌ์ฑ์ผ๋ก ๋ฆฌ์ค๋ ๋ฐ DB๋ฅผ ๊ตฌ์ฑํฉ๋๋ค.
Oracle 10g EM Grid Control
- 19 -
8) ๋ฆฌ์ค๋๋ฅผ ๊ตฌ์ฑํฉ๋๋ค.(์ฌ๊ธฐ์๋ ์ผ๋ฐ์ ์ธ ๊ตฌ์ฑ์ ์ ํํฉ๋๋ค. LISTENER, 1521ํฌํธ)
9) DB๋ฅผ ๊ตฌ์ฑํฉ๋๋ค. (Custom Database๋ฅผ ์ ํํฉ๋๋ค.)
10) ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ตฌ์ฑ์์๋ฅผ ์ ํํฉ๋๋ค. ๋ฐ๋์ Oracle Label Security ์ต์ ์ ์ ํํฉ๋๋ค.
Oracle 10g EM Grid Control
- 20 -
11) ์ค์นํ DB ๊ตฌ์ฑ์์๋ฅผ ๋ค์ ํ๋ฒ ํ์ธํฉ๋๋ค.
12) DB๋ฅผ ์์ฑํฉ๋๋ค.
13) ์ค์น ๊ฒฐ๊ณผ๋ฅผ ํ์ธํฉ๋๋ค.
Oracle 10g EM Grid Control
- 21 -
2.4. Oracle Management Service Installation
2.4.1. OMS(Oracle Management Service Installation
1) Grid Control 10.2.0.1 Product ๋๋ ํ ๋ฆฌ์์ runInstaller ๋ฅผ ์ํํฉ๋๋ค.
2) ์ด๋ฏธ ์กฒ์ฌํ๋ DB๋ฅผ ์ด์ฉํ์ฌ Grid Control์ ์ค์นํฉ๋๋ค.
$ cd /oracle/media/gc
$ ./runInstaller
Starting Oracle Universal Installerโฆ
โฆ
Oracle 10g EM Grid Control
- 22 -
3) $OMS_HOME(/oracle/OracleHomes ๊น์ง๋ง) ์ ์ค์ ํฉ๋๋ค. agent10g ๋ฐ oms10g ๊ฐ ํ์
๋๋ ํ ๋ฆฌ๋ก ์๋ ์์ฑ๋ฉ๋๋ค.
4) Product-Specific Prerequisite Checks
์์คํ ์ hostname์ ๊ฐ๊ธ์ Full Hostname (๋์์ธํฌํจ)์ผ๋ก ํ๋ ๊ฒ์ ๊ถ์ฅํจ. ์น์์์์
ํ์ด์ง ์ ํ์ hostname์ ์ฐธ๊ณ ํฉ๋๋ค. /etc/hosts ํ์ผ๋ก๋ถํฐ hostname์ด ์ฐธ์กฐ๋๋ฏ๋ก ์ค์น์ ์
/etc/hosts ์ hostname์ด ๋ฑ๋ก๋์ด ์๋ ์ง ํ์ธ ํ ํ์๊ฐ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 23 -
5) OMR DB๋ฅผ ์ค์ ํฉ๋๋ค. (OMR ์ ์ ์ ๋ณด๋ฅผ ์ ๋ ฅ ํ Prefill Tablespace Locations ๋ฅผ ํด๋ฆญํ๋ฉด
๋๊ฐ์ ํ ์ด๋ธ์คํ์ด์ค์ ๊ฒฝ๋ก๊ฐ ์๋ ์ค์ ๋ฉ๋๋ค.)
๋ง์ฝ ์ ์์ด ๋์ง ์๋๋ค๋ฉด DB ๋ฐ ๋ฆฌ์ค๋์ ์ํ๋ฅผ ์ฒดํฌํ์๊ณ , /etc/hosts์ hostname์ด ๊ณ ์ IP๋ก ์ค์ ์ด ๋์ด ์๋์ง ์ฒดํฌํ์๊ธฐ ๋ฐ๋๋๋ค.
๋ํ OMR์ ๋ณด๋ฅผ ์ฝ๋ ์ค ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด ๋ค์ ํ๋ผ๋ฉํฐ์ ํจํค์ง๊ฐ ์ค์ ๋์ด ์๋์ง
ํ์ธํฉ๋๋ค. ์ค์ ๋์ด ์์ง ์๋ ๊ฒฝ์ฐ์๋ initSID.ora ๋๋, spfileSID.ora ํ์ผ์ ์์ ํ๊ณ ,
DBMS_SHARED_POOL Package ๋ฅผ ์ค์นํ์๊ธฐ ๋ฐ๋๋๋ค.
SQL> ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
SQL> ALTER SYSTEM SET aq_tm_processes=2;
SQL> @ $ORACLE_HOME/rdbms/admin/dbmspool
6) ์ํธ๋ฅผ ์ค์ ํฉ๋๋ค. (Secure ๋ชจ๋๋ก ์ค์ ํ ๊ฒฝ์ฐ Agent ์ค์น์์๋ ํจ์ค์๋๋ฅผ ์๊ตฌํ๊ฒ ๋ฉ๋๋ค.)
Oracle 10g EM Grid Control
- 24 -
7) Summary ํ์ธ ํ ์ธ์คํจ์ ์งํํ๋ฉฐ, ์ค๋ฅธ์ชฝ ์ฐฝ์ด ๋ณด์ด๋ฉด root ์ ์ ๋ก ์คํฌ๋ฆฑํธ๋ฅผ ์ํํฉ๋๋ค.
8) ์ค์น๊ฐ ์๋ฃ๋๋ฉด ๋ค์ ์คํฌ๋ฆฑํธ๋ฅผ root. ์ ์ ๋ก ์ํํฉ๋๋ค.
/oracle/OracleHome/oms10g/allroot.sh
/oracle/oraInventory/orainstRoot.sh (์ธ๋ฒคํ ๋ฆฌ๋ฅผ ์๋ก ๊ตฌ์ฑํ ๊ฒฝ์ฐ๋ง ์ํํฉ๋๋ค. )
$ su root # cd /oracle/OracleHome/oms10g # ./allroot.sh Starting to execute allroot.sh ......... Starting to execute /oracle/OracleHomes/oms10g/root.sh ...... Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/OracleHomes/oms10g Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... Adding entry to /var/opt/oracle/oratab file... Entries will be added to the /var/opt/oracle/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. chmod: WARNING: /oracle/OracleHomes/oms10g/bin/emtgtctl2: Corresponding set-ID also disabled on file since set-ID requires execute permission Finished execution of /oracle/OracleHomes/oms10g/root.sh ...... Starting to execute /oracle/OracleHomes/agent10g/root.sh ...... Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/OracleHomes/agent10g Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... Entries will be added to the /var/opt/oracle/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions. Finished execution of /oracle/OracleHomes/agent10g/root.sh ......
Oracle 10g EM Grid Control
- 25 -
9) Grid Control ๊ด๋ ฆ ๊ตฌ์ฑ์ ์ํ ์ค์น๊ฐ ์๋์ผ๋ก ์งํ๋ฉ๋๋ค. ๋ชจ๋ ๊ณผ์ ์ด ์ฑ๊ณต์ ์ผ๋ก ์ํ๋์ด์ผ
ํ๋ฉฐ, ์คํจ์ ์ ์์ ์ผ๋ก Grid Control์ ๊ตฌ์ฑํ ์ ์์ต๋๋ค.
10) ์ค์น๊ฐ ์๋ฃ๋์์ต๋๋ค. ๊ตฌ์ฑ ์ ๋ณด๋ฅผ ๋ฐ๋์ ํ์ธํ์๊ณ ์ฌ์ฉํ์๊ธฐ ๋ฐ๋๋๋ค.
This information is also available at: /oracle/OracleHomes/oms10g/agent10g/sysman/setupinfo.txt See below for information pertaining to your Enterprise Manager installation: 1. Use the following URL to access the Enterprise Manager Grid Control: http://goodus:4889/em 2. The Enterprise Manager installation includes an Oracle Application Server instance, which is administered using a special "ias_admin" user account. The following information was defaulted for the embedded Application Server instance: Instance Name: EnterpriseManager0.new ias_admin password: This password is the same the SYSMAN account. 3. The connection details for the Enterprise Manager Repository are: Host: 127.0.0.1 Port: 1521 SID: EMREP 4. The Enterprise Manager Release Notes are located at: /oracle/OracleHomes/oms10g/agent10g/relnotes/README_EM.txt
Oracle 10g EM Grid Control
- 26 -
2.4.2. Contact Enterprise Manager Grid Contring Using Your Internet Browser
์น๋ธ๋ผ์ฐ์ ๋ฅผ ์คํํ์ฌ http://<OMS_HOSTNAME>:4889/em ๋๋
http://<OMS_HOSTNAME>:7777/em ์ผ๋ก ์ ์ํ ์ ์์ต๋๋ค. ์ธ๋ถ์์ ์ ์ํ๋ ค๋ ๊ฒฝ์ฐ DNS์
๋ฑ๋ก๋์ด ์๋ HostName์ ์ฌ์ฉํ์๋ฉด ๋ฉ๋๋ค. ๋ง์ผ DNS์ ๋ฑ๋ก์ด ๋์ด ์์ง ์์ ๊ฒฝ์ฐ
Windows ์ด์์ฒด์ ์ hosts ํ์ผ์ EM ์๋ฒ์ hostname์ ์ถ๊ฐํ์ ์ผ ํฉ๋๋ค.
๊ฒฝ๋ก c:\windows\system32\drivers\etc\hosts
11.11.11.11 goodus
http://goodus:4889/em ๋งํฌ๋ก ์ด๋ํ ๋ค sysman // oracle 0 ๋ก ์ ์ํฉ๋๋ค.
Oracle 10g EM Grid Control
- 27 -
2.5. Oracle Management Agent Installation
2.5.1. Oracle Management Agent (OMA) may be installed
OMA ๋ ๋ค์๊ณผ ๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก ์ค์นํ ์ ์์ต๋๋ค.
Interactively from the Grid Control product CDs โ (2.5.2)
Agent Deploy application
nfsagentinstall script
agentDownload script - (2.5.3)
Cluster Agent installation
Management Agent cloning
Interactive installation using OUI from Grid Control product CDs
Silent installation using the Grid Control product CDs
2.5.2. Oracle Management Agent Installation from the Grid Control product CDs (Unix)
1) OMS์๋ฒ์ agent๋ฅผ ์ค์นํ ์๋ฒ์ Host ์ ๋ณด๋ฅผ /etc/hosts์ ๋ฑ๋กํฉ๋๋ค.
2) Agent๋ฅผ ์ค์นํ ์๋ฒ์ OMS์ ๋ํ Host ์ ๋ณด๋ฅผ /etc/hosts์ ๋ฑ๋กํฉ๋๋ค.
## Oracle Enterprise Manager 10g Grid Control - Management Server
11.11.11.11 goodus
3) ํ์ฌ Oracle DB๊ฐ ์ด๋ฏธ ๊ตฌ์ฑ๋์ด ์๊ณ Inventory๋ฅผ ๋ณ๋๋ก ๊ตฌ์ฑํ๊ธฐ ์ํ๋ค๋ฉด, /etc/oraInst.loc๋ฅผ
๋ฐฑ์ ๋ฐ๊ณ ์ ๊ฑฐํด ๋ก๋๋ค.
mv /etc/oraInst.loc /etc/oraInst.loc.db
Oracle 10g EM Grid Control
- 28 -
4) ํ์ฌ Oracle DB์ ๋ฒ์ ์ ์ฒดํฌํฉ๋๋ค. ๋ฒ์ ์ ๋ฐ๋ผ ํธํ ๊ฐ๋ฅํ ๋ฒ์ ์ Agent๋ฅผ ์ค์นํด์ผ
ํฉ๋๋ค.
(์ฌ๊ธฐ์๋ 10.2.0.4 ๋ฒ์ ์ Oracle DB๋ฅผ ์ฌ์ฉํฉ๋๋ค. ์ด๋ Agent๋ 10.2.0.5 ๋ฒ์ ์ ์ฌ์ฉํ ์
์์ต๋๋ค. )
sqlplus โ/as sysdbaโ
-- version ์ฒดํฌ
col comp_name for a30
col product for a40
col status for a30
col version for a20
set lines 150
set pages 9999
select * from v$version;
select comp_name, version, status from dba_registry;
select * from product_component_version;
5) Grid Control ์์ Oracle DB์ ๋ชจ๋ํฐ๋งํ๊ธฐ ์ํด DB์ ๋ชจ๋ํฐ๋ง ์คํค๋ง dbsnmp ์ lock์
ํด์ ํฉ๋๋ค.
SQL> connect system/******
Connected.
SQL> alter user dbsnmp identified by dbsnmp account unlock;
User altered.
6) ํ๊ฒฝ ๋ณ์ ๋ฑ๋ก (.profile ๋ฑ ์์ )
OS ํ๊ฒฝ ๋ณ์ ํ์ผ(.profile)์ ๋ค์ ํ๊ฒฝ ๋ณ์๋ฅผ ์ถ๊ฐํฉ๋๋ค. ์ค์น ์ดํ ORACLE_HOME์ ๊ธฐ์กฒ์
DBMS๊ฐ ์ค์น๋ ๊ฒฝ๋ก๋ก ์์ ๋ณต๊ทํฉ๋๋ค.
export AGENT_HOME=/oracle/OracleHomes/agent10g
export ORACLE_HOME=$AGENT_HOME
export DISPLAY=11.11.11.11:0.0 โ ์ค์นํ ์ฝ์์ IP
* ์ค์นํ ํ๋ซํผ์ด AIX 5L์ธ ๊ฒฝ์ฐ unset OBJECT_MODE ๋ฅผ ์ํํฉ๋๋ค. Agent ์ค์น์ ์ปดํ์ผ ์ค
์ผ๋ถ๋ 32bit Library ๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ ๊ฐํน OBJECT_MODE=64๋ก ์ธํ ๋์ด ์๋ ๊ฒฝ์ฐ
์ปดํ์ผ์์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
7) X Window๊ฐ ์ฌ์ฉ๊ฐ๋ฅํ ์ํ์์ ์ํํธ์จ์ด๊ฐ ์๋ CD์ runInstaller๋ฅผ ์คํํฉ๋๋ค.
~/agent/aix/agent/runInstaller
Oracle 10g EM Grid Control
- 29 -
8) Additional Management Agent๋ฅผ ์ ํํ์ฌ Agent ์ค์น๋ฅผ ์งํํฉ๋๋ค.
9) Agent๊ฐ ์ค์น๋ ๋ถ๋ชจ ๋๋ ํ ๋ฆฌ๋ฅผ ์ค์ ํฉ๋๋ค. (10g R1 Agent์ ๊ฒฝ์ฐ์๋ ์ค์ ์ค์น๋ Agent
๋๋ ํ ๋ฆฌ๋ฅผ ์ ํํด์ผ ํฉ๋๋ค.) ๊ทธ๋ฆฌ๊ณ ์ฌ์ฉํ Product Language๋ฅผ ์ ํํฉ๋๋ค.
Agent Home : /oracle/OracleHomes/agent10g
Oracle 10g EM Grid Control
- 30 -
10) OMS ์๋ฒ ์ ๋ณด๋ฅผ ์ ๋ ฅํฉ๋๋ค. ์ด๋ OMS ์๋ฒ์ ํธ์คํธ๋ช ์ ์ ๋ ฅํด์ผ ํ๋ฏ๋ก ๋ฐ๋์ ๋จผ์
/etc/hosts ์ OMS hostname์ด ๋ฑ๋ก๋์ด ์๋ ์ง ํ์ธํด์ผ ํฉ๋๋ค. ๋ง์ฝ OMS์ ํต์์ด ๋์ง
์๋ ๋ค๋ฉด, ๋ค์์ผ๋ก ์งํ์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
11) ์ฐ๊ฒฐ์ด ๋์ด ๋ค์์ผ๋ก ์งํํ์ ๋ ํจ์ค์๋๋ฅผ ์ ๋ ฅํ๋ ๋์ด ๋จ๋ ๊ฒฝ์ฐ OMS ์ค์น์ ๋ณด์
์ค์ ์ ํ ์ํ๋ก https ํ๋กํ ์ฝ๋ก ํต์์ด ๋ฉ๋๋ค. OMS ์์ ์ค์น์ ์ ๋ ฅํ ํจ์ค์๋๋ฅผ
๋ฃ์ผ์๊ณ ์งํํ๋ฉด ๋ฉ๋๋ค. ํจ์ค์๋๊ฐ ํ๋ฆฎ๊ฒฝ์ฐ Agent ๊ตฌ์ฑ์ agent๋ฅผ secure ๋ชจ๋๋ก ๋ณ๊ฒฝํ์ฌ
OMS์ ํต์ํ๋ ค ํ ๋ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค,
Oracle 10g EM Grid Control
- 31 -
12) ์ค์น์ ๊ตฌ์ฑ์ ํ์ธํ์๊ณ ์ค์น๋ฅผ ์งํํฉ๋๋ค.
13) ์ค์น๊ฐ ์๋ฃ๋๋ฉด root ์ ์ ๋ก root.sh๋ฅผ ์คํํฉ๋๋ค.
14) ์ค์น๊ฐ ์๋ฃ๋๋ฉด Agent๋ฅผ ๊ตฌ์ฑํ๋ ํ๋ฉด์ผ๋ก ์งํ๋ฉ๋๋ค.
Oracle 10g EM Grid Control
- 32 -
15) Agent๊ฐ ์ ์์ ์ผ๋ก ์ค์น๋๋ฉด ์๋์ผ๋ก OMS์ ํต์๋๋ฉฐ EM ํํ์ด์ง์ ๋์ โ ํธ์คํธ์
์ค์น๋ ์๋ฒ๊ฐ ๋ฑ๋ก๋์ด ๋ณด์ด๊ฒ ๋ฉ๋๋ค.
http://hostname:<port>/em ๋๋ https:/hostname:<port>/em
(10.2 / 11G ์์๋ https ๊ฐ default ์ด๋ค)
-- EM URL ์ฐพ๋ ๋ฐฉ๋ฒ
1. emctl status dbconsole ๋ช ๋ น์ด
2. <ORACLE_HOME>/<hostname_SID>/sysman/config/emd.propeties ์์ REPOSITORY_URL ํ์ธ
Oracle 10g EM Grid Control
- 33 -
2.5.3. Deploying an Agent on another server
OMS ์๋ฒ์ Agent ๋ฅผ ์ค์นํ ์๋ฒ์ ํ๋ซํผ์ด ๊ฐ์ ๊ฒฝ์ฐ, ๊ทธ๋ฆฌ๊ณ httpget ์ด ์ง์๋๋ ๊ฒฝ์ฐ์๋
OMS ์๋ฒ๋ก๋ถํฐ Agent ์ค์น์ ํ์ํ ๊ตฌ์ฑํ์ผ์ ๋ค์ด๋ก๋ํ์ฌ ์ค์นํ๋ ๋ฐฉ๋ฒ์ ์ทจํ ์ ์์ต
๋๋ค. (์ฌ๊ธฐ์๋ Linux ์ธ ๊ฒฝ์ฐ ์ค์นํ๋ ๋ฐฉ๋ฒ์ ์๋ก ๋ญ๋๋ค.)
16) ์น๋ธ๋ผ์ฐ์ ๋ก Agent Download Link์ ์ ์ํ์ฌ Agent ๋ฅผ ๋ค์ด๋ก๋ํฉ๋๋ค.
OMS ๊ฐ Linux ์ธ ๊ฒฝ์ฐ URL : http://<OMS_HOST>:4889/agent_download/10.2.0.1/linux
17) agentDownload.linux ๋ฅผ ์ํํ์ฌ ์ค์น๋ฅผ ์งํํฉ๋๋ค.
# ORACLE_HOME ์ AGENT_HOME ์ผ๋ก ์ง์ ํฉ๋๋ค. $ export AGENT_HOME=/u01/app/oracle/OracleHomes/agent10g $ export ORACLE_HOME=$AGENT_HOME # PATH ์ jdk ๊ฒฝ๋ก๋ฅผ ์ถ๊ฐํฉ๋๋ค. (๋ฐ๋์ full path ๋ก ์ ๋ ฅํฉ๋๋ค. ORACLE_HOME ๋ณ๊ฒฝ์ผ๋ก ์ธํ ๊ฒฝ๋ก ์ง์ ๋ฌธ์ ) $ PATH=$PATH:/u01/app/oracle/product/10.2.0/db_1/jdk/bin # agentDownload ํ์ผ์ ์คํ๊ถํ์ ๋ถ์ฌํ๋ค ์คํ์ํต๋๋ค. (์๋ ์ค์น) $ chmod 755 agentDownload.solaris # ์คํ์ โb ์ต์ ์ ์ฃผ์ด agent ๊ฐ ์ค์น๋ Directory ๋ฅผ ์ ๋ ฅํฉ๋๋ค. $ ./agentDownload.solaris โb /u01/app/oracle/OracleHomes/agent10g agentDownload.solaris invoked on Wed Aug 20 11:27:45 KST 2008 with Arguments "-b /u01/app/oracle/OracleHomes/agent10g" Platform=SunOS, OS=solaris GetPlatform:returned=0, and os is set to: solaris, platform=SunOS Creating /u01/agentDownload10.2.0.1.0Oui ... LogFile for this Download can be found at: "/u01/agentDownload10.2.0.1.0Oui/agentDownload.solaris082008112745.log" Running on Selected Platform: SunOS Installer location: /u01/agentDownload10.2.0.1.0Oui Downloading Agent install response file ... --2010-04-29 11:27:46-- http://new:4889/agent_download/10.2.0.1.0/agent_download.rsp Resolving new... 61.250.99.225 Connecting to new|61.250.99.225|:4889... connected. HTTP request sent, awaiting response... 200 OK Length: 19978 (20K) [text/plain] Saving to: `agent_download.rsp' 100%[====================================================================================================>] 19,978 --.-K/s in 0.001s 2010-04-29 11:27:46 (14.9 MB/s) - `agent_download.rsp' saved [19978/19978] Finished Downloading with Status=0 Downloaded response with status=0 Downloading Oracle Installer ...
Oracle 10g EM Grid Control
- 34 -
--2010-04-29 11:27:46-- http://new:4889/agent_download/10.2.0.1.0/solaris/oui/oui_solaris.jar Resolving new... 61.250.99.225 Connecting to new|61.250.99.225|:4889... connected. HTTP request sent, awaiting response... 200 OK Length: 45007923 (43M) [application/java-archive] Saving to: `oui_solaris.jar' --- ์ค๊ฐ ์๋ต --- Initializing Java Virtual Machine from /tmp/OraInstall2010-04-29_11-27-58AM/jre/1.4.2/bin/java. Please wait... Oracle Universal Installer, Version 10.2.0.1.0 Production Copyright (C) 1999, 2005, Oracle. All rights reserved. You can find a log of this install session at: /u01/app/oracle/oraInventory/logs/installActions2010-04-29_11-27-58AM.log .................................................................................................... 100% Done. Loading Product Information .............................................................................................................. 100% Done. Analyzing dependencies ............................................................... 47% Done. ............................................................... 95% Done. ...... 100% Done. ----------------------------------------------------------------------------- Summary Global Settings Source: http://new:4889/agent_download/10.2.0.1.0/solaris/agent/stage/products.xml Oracle Home: /u01/app/oracle/OracleHomes/agent10g (agent10g) Installation Type: Complete Product Languages English Space Requirements /u01/ Required 885MB : Available 12.82GB /tmp/ Required 57MB (only as temporary space) : Available 1.60GB New Installations (65 products) Oracle Management Agent 10.2.0.1.0 Enterprise Manager Agent 10.2.0.1.0 Enterprise Manager Agent Core Files 10.2.0.1.0 Oracle Recovery Manager 10.2.0.1.0 Enterprise Manager Common Files 10.2.0.1.0 Enterprise Manager Common Core Files 10.2.0.1.0 --- ์ค๊ฐ ์๋ต --- Oracle Universal Installer 10.2.0.1.0 Oracle One-Off Patch Installer 10.2.0.1.0 Installer SDK Component 10.2.0.1.0 Java Runtime Environment 1.4.2.0.0 Sun JDK 64 bit 1.4.2.0.8 ----------------------------------------------------------------------------- Installation in progress (Wed Aug 20 11:28:29 KST 2008) ............................................................... 26% Done. ............................................................... 52% Done. ............................................................... 79% Done. ............ 84% Done. Install successful Linking in progress (Wed Aug 20 11:33:09 KST 2008) Link successful Setup in progress (Wed Aug 20 11:35:11 KST 2008) ................. 100% Done. Setup successful End of install phases.(Wed Aug 20 11:35:41 KST 2008) WARNING: The following configuration scripts need to be executed as the "root" user. #!/bin/sh #Root script to run /u01/app/oracle/OracleHomes/agent10g/root.sh To execute the configuration scripts: 1. Open a terminal window 2. Log in as "root" 3. Run the scripts 4. Return to this window and click "OK" to continue Starting to execute configuration assistants Configuration assistant "Agent Configuration Assistant" succeeded The installation of Oracle Management Agent was successful. Please check '/u01/app/oracle/oraInventory/logs/silentInstall2010-04-29_11-27-58AM.log' for more details. Querying Agent status: Agent is running Removing the copied stuff.....
Oracle 10g EM Grid Control
- 35 -
Removed: /u01/agentDownload10.2.0.1.0Oui/oui_solaris.jar Removed: /u01/agentDownload10.2.0.1.0Oui/agent_download.rsp Removed:/u01/agentDownload10.2.0.1.0Oui/Disk1 Log name of installation can be found at: "/u01/app/oracle/OracleHomes/agent10g/agentDownload.solaris082008112745.log" /u01/app/oracle/OracleHomes/agent10g/root.sh needs to be executed by root to complete this installation.
18) root ์ ์ ๋ก ์ ์ํ์ฌ root.sh ๋ฅผ ์ํํฉ๋๋ค.
19) Agent ์ญ์ ๋ฐฉ๋ฒ
2.5.4. Agent Status Check
Agent ์ค์น ํ ๊ธฐ๋ ์ํ๋ฅผ ํ์ธํฉ๋๋ค. $ ./emctl status agent Oracle Enterprise Manager 10g Release 10.2.0.1.0. Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent Version : 10.2.0.1.0 OMS Version : 10.2.0.1.0 Protocol Version : 10.2.0.0.0 Agent Home : /u01/app/oracle/OracleHomes/oms10g/agent10g Agent binaries : /u01/app/oracle/OracleHomes/oms10g/agent10g Agent Process ID : 15164 Parent Process ID : 15151 Agent URL : https://lee:3872/emd/main/ Repository URL : https://new:1159/em/upload Started at : 2010-04-29 11:38:08 Started by user : oracle Last Reload : 2010-04-29 11:38:08 Last successful upload : 2010-04-29 11:46:18 Total Megabytes of XML files uploaded so far : 5.76 Number of XML files pending upload : 0 Size of XML files pending upload(MB) : 0.00 Available disk space on upload filesystem : 56.79% Last successful heartbeat to OMS : 2010-04-29 11:45:46 --------------------------------------------------------------- Agent is Running and Ready
# ๋ค๋ฅธ ํฐ๋ฏธ๋ ์ฐฝ์ ์ด์ด root User ๋ก root.sh ๋ฅผ ์ํ ํ ์ค์น๋ฅผ ๊ณ์ ์งํํฉ๋๋ค. lee [/data/media/companion]# /u01/app/oracle/OracleHomes/oms10g/agent10g/root.sh Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/OracleHomes/agent10g Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... Entries will be added to the /var/opt/oracle/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions.
1. Agent ํ๋ก์ธ์ค๋ฅผ ์ข ๋ฃํฉ๋๋ค
$ cd $AGENT_HOME/bin $ ./emctl stop agent $ cd
2. AGENT_HOME ๋๋ ํ ๋ฆฌ๋ฅผ ์ญ์ ํฉ๋๋ค. $ cd /u01/app/oracle/OracleHomes $ rm โrf agent10g
3. oraInventory ๋ด์ฉ์ ์ ๋ฆฌํฉ๋๋ค. $ cd /u01/app/oracle/oraInventory/CotentsXML $ cd inventory.xml inventory.xml.orig $ vi inventory.xml Remove entry associated with โagent10gโ
Oracle 10g EM Grid Control
- 36 -
2.5.5. Rediscover or Reconfigure Agent
Agent ๋ฅผ ์ฌ๋ฐ๊ฒฌ ๋๋ ์ฌ๊ตฌ์ฑํ๊ธฐ ์ํด agentca ๋ฅผ ์ฌ์ฉํฉ๋๋ค. (10g R2 ์ด์)
์ฌ๊ตฌ์ฑ ํ ์์ ๊ณผ ๊ด๋ ฆ๋ ์ฌํญ์ ๋ก๊ทธํ์ผ์ ์ฐธ๊ณ ํ์ญ์์ค.
Rediscover Agent (agentca -d) , Reconfigure Agent (agentca -f)
goodus:/oracle/OracleHomes/agent10g/bin>agentca -d Stopping the agent using /oracle/OracleHomes/agent10g/bin/emctl stop agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Stopping agent ... stopped. Running agentca using /oracle/OracleHomes/agent10g/oui/bin/runConfig.sh ORACLE_HOME=/oracle/OracleHomes/agent10g ACTION= Configure MODE=Perform RESPONSE_FILE=/oracle/OracleHomes/agent10g/response_file RERUN=TRUE INV_PTR_LOC=/oracle/OracleHomes/agent10g/oraInst.loc COMPONENT_XML={oracle.sysman.top.agent.10_2_0_1_0.xml} Perform - mode is starting for action: Configure Perform - mode finished for action: Configure You can see the log file: /oracle/OracleHomes/agent10g/cfgtoollogs/oui/configActions2009-09-30_02-54-14-AM.log goodus:/oracle/OracleHomes/agent10g/bin>agentca -f Stopping the agent using /oracle/OracleHomes/agent10g/bin/emctl stop agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Stopping agent ... stopped. Running agentca using /oracle/OracleHomes/agent10g/oui/bin/runConfig.sh ORACLE_HOME=/oracle/OracleHomes/agent10g ACTION= Configure MODE=Perform RESPONSE_FILE=/oracle/OracleHomes/agent10g/response_file RERUN=TRUE INV_PTR_LOC=/oracle/OracleHomes/agent10g/oraInst.loc COMPONENT_XML={oracle.sysman.top.agent.10_2_0_1_0.xml} Perform - mode is starting for action: Configure Perform - mode finished for action: Configure You can see the log file: /oracle/OracleHomes/agent10g/cfgtoollogs/oui/configActions2009-09-30_03-00-55-AM.log
2.5.6. Securing Agent
Secure ๋ชจ๋์ธ OMS ์ ์ํธํ๋ ํต์์ ์ํด Secure ๋ชจ๋๋ก ์ ํํฉ๋๋ค. You can see the log file: /oracle/OracleHomes/agent10g/cfgtoollogs/oui/configActions2009-09-30_03-00-55-AM.log goodus:/oracle/OracleHomes/agent10g/bin> goodus:/oracle/OracleHomes/agent10g/bin>emctl secure agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Agent successfully stopped... Done. Securing agent... Started. Enter Agent Registration Password : OMS ์ ์ ๋ ฅํ ํจ์ค์๋๋ฅผ ์๋ชป ๋ฃ์ ๊ฒฝ์ฐ Agent successfully restarted... Done. Securing agent... Failed. goodus:/oracle/OracleHomes/agent10g/bin>emctl secure agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Agent successfully stopped... Done. Securing agent... Started. Enter Agent Registration Password : OMS ์ ์ ๋ ฅํ ํจ์ค์๋๋ฅผ ์ ํํ ๋ฃ์ ๊ฒฝ์ฐ Agent successfully restarted... Done. Securing agent... Successful. #Agent ์ ๊ฐฑ์์ด ์๋ ๊ฒฝ์ฐ Upload ๋ฅผ ์ํํฉ๋๋ค. goodus:/oracle/OracleHomes/agent10g/bin>emctl upload agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. --------------------------------------------------------------- EMD upload completed successfully
Oracle 10g EM Grid Control
- 37 -
3. Managing the Grid Control Components
3.1. Starting Up and Shutting Down the Grid Control.
3.1.1. Control Utilites
3.1.2. Starting Up the Grid Control
Grid Control ์ ๋ค์๊ณผ ๊ฐ์ ์ ์ฐจ๋ก ์์ํฉ๋๋ค.
1) Start the OMR database listener. (lsnrctl start)
2) Start the OMR database. (sqlplus >>> startup)
3) Start all OMSs. (opmnctl startall, emctl start oms)
4) Start the OMA on the OMS/OMR server. (emctl start agent)
5) Start the OMA on managed servers. (emctl start agent)
goodus:/oracle/OracleHomes/db10g/bin>export ORACLE_HOME=$ORACLE_BASE/db10g goodus:/oracle/OracleHomes/db10g/bin>export PATH=$DB_PATH goodus:/oracle/OracleHomes/db10g/bin>cd $ORACLE_HOME/bin goodus:/oracle/OracleHomes/db10g/bin>sqlplus "/as sysdba" SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 30 19:17:51 2009 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 536870912 bytes Fixed Size 1268484 bytes Variable Size 239076604 bytes Database Buffers 289406976 bytes Redo Buffers 7118848 bytes Database mounted. Database opened. SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod With the Partitioning, Oracle Label Security, OLAP, Data Mining and Real Application Testing options goodus:/oracle/OracleHomes/db10g/bin>lsnrctl start LISTENER LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 30-SEP-2009 19:18:46 Copyright (c) 1991, 2007, Oracle. All rights reserved. Starting /oracle/OracleHomes/db10g/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.4.0 - Production System parameter file is /oracle/OracleHomes/db10g/network/admin/listener.ora Log messages written to /oracle/OracleHomes/db10g/network/log/listener.log
Component Control Utilities OMR OMS OMA
Sqlplus opmnctl emctl
emctl Lsnrctl
dcmctl As Control
Oracle 10g EM Grid Control
- 38 -
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=goodus)(PORT=1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=goodus)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production Start Date 30-SEP-2009 19:18:47 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /oracle/OracleHomes/db10g/network/admin/listener.ora Listener Log File /oracle/OracleHomes/db10g/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=goodus)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully goodus:/oracle/OracleHomes/db10g/bin>export ORACLE_HOME=$ORACLE_BASE/oms10g goodus:/oracle/OracleHomes/db10g/bin>export PATH=$OMS_PATH goodus:/oracle/OracleHomes/oms10g/bin>cd $OMS_HOME/opmn/bin goodus:/oracle/OracleHomes/oms10g/opmn/bin>opmnctl startall opmnctl: starting opmn and all managed processes... goodus:/oracle/OracleHomes/oms10g/opmn/bin>cd $OMS_HOME/bin goodus:/oracle/OracleHomes/oms10g/bin>emctl start oms Oracle Enterprise Manager 10g Release 5 Grid Control Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. opmnctl: opmn is already running Starting HTTP Server ... Oracle Management Server Already Started. goodus:/oracle/OracleHomes/oms10g/opmn/bin>cd $OMS_HOME/bin goodus:/oracle/OracleHomes/oms10g/bin>emctl start oms Oracle Enterprise Manager 10g Release 5 Grid Control Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. opmnctl: opmn is already running Starting HTTP Server ... Oracle Management Server Already Started. goodus:/oracle/OracleHomes/oms10g/bin>export ORACLE_HOME=$ORACLE_BASE/agent10g goodus:/oracle/OracleHomes/oms10g/bin>export PATH=$AGENT_PATH goodus:/oracle/OracleHomes/oms10g/bin>cd $AGENT_HOME/bin goodus:/oracle/OracleHomes/agent10g/bin>emctl start agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Starting agent .................. started.
3.1.3. Shutting Down the Grid Control
Grid Control ์ ๋ค์๊ณผ ๊ฐ์ ์ ์ฐจ๋ก ์ข ๋ฃํฉ๋๋ค.
1) Stop the OMA on managed servers (optional). (emctl stop agent)
2) Stop the OMA on the OMS/OMR server. (emctl stop agent)
3) Stop all OMSs. (emctl stop oms opmnctl stopall)
4) Stop the OMR database. (sqlplus >>> Shutdown immediate)
5) Stop the OMR database listener. (lsnrctl stop)
goodus:/oracle/OracleHomes/db10g/bin>export ORACLE_HOME=$ORACLE_BASE/agent10g goodus:/oracle/OracleHomes/db10g/bin>export PATH=$AGENT_PATH goodus:/oracle/OracleHomes/db10g/bin>cd $AGENT_HOME/bin goodus:/oracle/OracleHomes/agent10g/bin>emctl stop agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Stopping agent ... stopped. goodus:/oracle/OracleHomes/agent10g/bin>export ORACLE_HOME=$ORACLE_BASE/oms10g goodus:/oracle/OracleHomes/agent10g/bin>export PATH=$OMS_PATH goodus:/oracle/OracleHomes/agent10g/bin>cd $OMS_HOME/bin goodus:/oracle/OracleHomes/oms10g/bin>emctl stop oms Oracle Enterprise Manager 10g Release 5 Grid Control Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Oracle Management Server is Down.
Oracle 10g EM Grid Control
- 39 -
goodus:/oracle/OracleHomes/oms10g/bin>cd .. goodus:/oracle/OracleHomes/oms10g>cd opmn/bin goodus:/oracle/OracleHomes/oms10g/opmn/bin>opmnctl stopall opmnctl: stopping opmn and all managed processes... goodus:/oracle/OracleHomes/oms10g/opmn/bin>export ORACLE_HOME=$ORACLE_BASE/db10g goodus:/oracle/OracleHomes/oms10g/opmn/bin>export PATH=$DB_PATH goodus:/oracle/OracleHomes/oms10g/opmn/bin>cd $ORACLE_HOME/bin goodus:/oracle/OracleHomes/db10g/bin>lsnrctl stop LISTENER LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 30-SEP-2009 19:11:58 Copyright (c) 1991, 2007, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=goodus)(PORT=1521))) The command completed successfully goodus:/oracle/OracleHomes/db10g/bin>sqlplus "/as sysdba" SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 30 19:12:37 2009 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, Oracle Label Security, OLAP, Data Mining and Real Application Testing options SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, Oracle Label Security, OLAP, Data Mining and Real Application Testing options
3.1.4. Loading Grid Control on OS Booting
Grid Control ์ ๋ถํ ๋ก๋ ํ์ผ๋ก Start/Stop ํ ์ ์์ต๋๋ค. ๋จ, OMR ์ ์ด๋ฏธ Startup ๋ ์ํ์ฌ์ผ
ํฉ๋๋ค.
# /etc/init.d/gcstartup start [๋๋ stop ] -- root user ์์ ์ํ new [/etc/init.d]# gcstartup stop opmnctl: stopping opmn and all managed processes... ================================================================================ opmn id=new:6200 3 of 5 processes stopped. ias-instance id=EnterpriseManager0.new ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------------------------------------------------------------------------- ias-component/process-type/process-set: OC4J/OC4J_EM/default_island Error --> Process (pid=1123) time out while waiting for a managed process to stop Log: /u01/app/oracle/OracleHomes/oms10g/oms10g/opmn/logs/OC4J~OC4J_EM~default_island~1 -------------------------------------------------------------------------------- ias-component/process-type/process-set: WebCache/WebCacheAdmin/WebCacheAdmin Error --> Process (pid=1037) time out while waiting for a managed process to stop Log: /u01/app/oracle/OracleHomes/oms10g/oms10g/opmn/logs/WebCache~WebCacheAdmin~1 opmnctl: graceful stop of processes failed, trying forceful shutdown...
Oracle 10g EM Grid Control
- 40 -
new [/etc/init.d]# gcstartup start opmnctl: starting opmn and all managed processes... Oracle Enterprise Manager 10g Release 10.2.0.1.0. Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. Starting agent ......................... started. # oms ์์ ๋ฐ ์ข ๋ฃ, ์ํ ํ์ธ $ OMS_HOME/opmn/bin/opmnctl startall $ OMS_HOME/opmn/bin/opmnctl stopall $ OMS_HOME/opmn/bin/opmnctl status # agent ์์ ๋ฐ ์ข ๋ฃ $ AGENT_HOME/bin/emctl start agent $ AGENT_HOME/bin/emctl stop agent
3.2. Grid Control Configuration
3.2.1. Configuring Database Targets
Grid control ์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ํ๋ฅผ ๋ชจ๋ํฐ๋ง ํ๊ณ ์ฑ๋ฅ์ ๋ํ ์ ๋ณด ๋ฑ์ ์์งํ๋ ค๋ฉด ๋ชจ๋ํฐ๋ง
๋์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์ ์์ด ๊ฐ๋ฅํด์ผ ํฉ๋๋ค. ์ด ๋ ํ์ํ ๊ฒ์ด โMonitoring Credentialโ ์ ๋
๋ค. ์ด๋ ๊ด๋ฆฌ ๋์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์ฌ์ฉ์๋ช (dbsnmp), ์ํธ(์ฌ๊ธฐ์๋ oracle)์ ์ค์ ํ๋ ๊ฒ์ ๋
๋ค.
1) Grid Control ์ ์คํํ์ฌ Targets(๋์) Databases(๋ฐ์ดํฐ๋ฒ ์ด์ค)๋ฅผ ์ ํํ์ฌ ์ค์ ํฉ๋๋ค.
๋ง์ฝ ๋์ ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ๋ณด์ด์ง ์๋ ๊ฒฝ์ฐ์๋ ์ถ๊ฐ๋ฅผ ๋๋ฌ ์๋์ผ๋ก ๋ฑ๋กํ ์ ์์ต๋๋ค.
(hostname ์ธ์ ๋ฑ ๋ฌธ์ ๋ก ์ธํด)
Oracle 10g EM Grid Control
- 41 -
2) ๋ชจ๋ํฐ๋ง ๊ณ์ ์ด ์ ๊ฒจ ์๊ฑฐ๋ ๊ตฌ์ฑ๋์ด ์์ง ์์ผ๋ฉด ์ ๊ทธ๋ฆฐ์ฒ๋ผ DB ์ํ๊ฐ ์ ์์ ์ผ๋ก
๋ชจ๋ํฐ๋ง ๋์ง ์์ต๋๋ค. ๋ชจ๋ํฐ๋ง ๋์ DB๋ฅผ ์ ํํ ํ Configure(๋ชจ๋ํฐ๋ง ๊ตฌ์ฑ) ๋ฒํบ์
ํด๋ฆญํฉ๋๋ค.
3) ๋ชจ๋ํฐ๋ง ๊ตฌ์ฑ์์ ์ํธ๋ฅผ ์ ๋ ฅํ์ฌ(์ฌ๊ธฐ์๋ oracle) ์ค์ ํฉ๋๋ค.
Oracle 10g EM Grid Control
- 42 -
4) ๋ง์ฝ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ฉด dbsnmp ๊ณ์ ์ ๋ํด account unlock์ ์ํํ๊ณ ์ํธ๋ฅผ
์ฌ์ค์ ํด์ผ ํฉ๋๋ค.
SQL> ALTER USER dbsnmp identified by oracle account unlock; User altered.
5) ์ค์ ์ด ์๋ฃ๋๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ํ๊ฐ ์ ์์ ์ผ๋ก ๋ชจ๋ํฐ๋ง๋๋ฉฐ, ํด๋ฆญํ๋ฉด ์ํ๋ฅผ ํ์ธํ ์
์์ต๋๋ค. ๋ง์ฝ ํ ํ์ด์ง์์ ์ํ์ ๋ณด๊ฐ ๋ณด์ฌ์ง์ง ์๋๋ค๋ฉด ์ฐ์ธก ์๋จ์ ๋ฐ์ดํฐ ์๋ก ๊ณ ์นจ
๋ฒํบ์ ๋๋ฌ ์ ๋ณด๋ฅผ ๊ฐฑ์ํ์ญ์์ค.
Oracle 10g EM Grid Control
- 43 -
3.2.2. Changing Registration Passwrod
Secure ๋ชจ๋๋ก Agent ์ ํต์ํ๊ธฐ ์ํด ๋ฑ๋ก๋ ์ํธ๋ฅผ ์ถ๊ฐํ๊ฑฐ๋ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
๋ฑ๋ก ์ํธ๋ ์ด ์ ์ฅ์๋ฅผ ์ฌ์ฉํ๋ ์์์ OMS ๋ก๋ถํฐ Oracle Agents ๋ฅผ ๋ณดํธํ๊ธฐ ์ํด ๊ด๋ฆฌ์
๊ฐ ์ฌ์ฉํฉ๋๋ค. ๋ฑ๋ก ์ํธ๋ฅผ ์ ์ํ๋ ๊ฒฝ์ฐ ์ํธ๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ๋๋ ๋ง๊ธฐ ๋ ์ง๋ฅผ ์ง์ ํ๊ฑฐ
๋, ์ํธ๋ฅผ ํ ๋ฒ ์ฌ์ฉํ ํ ์ ์ฅ์์์ ์๋์ผ๋ก ์ญ์ ๋๋๋ก ์ง์ ํ ์ ์์ต๋๋ค
3.2.3. Creating Grid Control Super Adminstrator and Administrator
Grid Control ๊ด๋ฆฌ์๋ฅผ ์ถ๊ฐ๋ก ์ค์ ํ ์ ์์ต๋๋ค.
1) ์๋จ์ ์ค์ (Setup)์ ํด๋ฆญํ๊ณ , ์ผ์ชฝ ๋ฉ๋ด์์ ๊ด๋ฆฌ์(Administrator)๋ฅผ ํด๋ฆญํฉ๋๋ค.
์์ฑ(Create) ๋๋ ๋ค์๊ณผ ๊ฐ์ด ์์ฑ(Create Like)๋ฅผ ํด๋ฆญํ์ฌ ์๋ก์ด ๊ด๋ฆฌ์๋ฅผ ์ถ๊ฐํฉ๋๋ค.
Oracle 10g EM Grid Control
- 44 -
2) ๊ด๋ฆฌ์๋ช ์ emadmin, ์ํธ๋ emadmin, ์ ์๋ฉ์ผ ํญ๋ชฉ์ ์ ๋ ฅํ ๋ค, Super Administrator(์ํผ
๊ด๋ฆฌ์)๋ฅผ ์ฒดํฌํ ๋ค ๋ค์์ผ๋ก ์งํํฉ๋๋ค. ๋ค์ํ์ด์ง์์ ๊ฒํ ํ ์๋ฃํฉ๋๋ค.
3) ์๋ก์ด ๊ด๋ฆฌ์๊ฐ ์ถ๊ฐ๋ ๊ฒ์ ํ์ธ ํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 45 -
3.2.4. Setup Prefered Credential
Target์ ๋ํ ์ ํธ์ธ์ฆ์๋ฅผ ์ค์ ํฉ๋๋ค. ํธ์คํธ์ ๊ฒฝ์ฐ๋ ๋์ ํธ์คํธ ์์คํ ์ ๋ชจ๋ํฐ๋ง์ ์ํด
์ต์์ ๊ถํ์ ๊ฐ๋ root ์ ์ ๋ณด๋ ์ ์ ๋ฐ ๋ชจ๋ํฐ๋ง ๊ฐ๋ฅํ ์ฌ์ฉ์์ ๊ณ์ ์ ๋ณด๋ฅผ ๋ฏธ๋ฆฌ ์ ๋ ฅํด ๋์ค
์ ์์ต๋๋ค. ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ฐ ๋ค๋ฅธ ๋์๋ค ์ญ์ ๋ชจ๋ํฐ๋ง ๋ฐ ๊ฐ ๊ธฐ๋ฅ์์ ๊ถํ์ด๋ ์ ์ ์ ๋ณด๊ฐ
ํ์ํ ๊ฒฝ์ฐ, ์ฌ์ ์ ์ ์ ์ ๋ณด ๋ฑ์ ์ ๋ ฅํด ๋์ค ์ ์์ต๋๋ค. ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ฐ์ ๊ฒฝ์ฐ ์ฑ๋ฅ
๋ชจ๋ํฐ๋ง ๋ฐ Job ๋ฑ์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋ฐ๋์ ์ค์ ํด์ผ ํฉ๋๋ค.
1) Grid Control URL ์์ EM Super Admin ์ธ SYSMAN์ผ๋ก ์ ์ํฉ๋๋ค.
2) Grid Control์ Home page์ ์ค๋ฅธ์ชฝ ์๋จ์ โPreferenceโ ๋ฅผ ์ ํํฉ๋๋ค.
3) โPrefered Credentialโ์ ์ ํํ์ฌ Target DB์ ๋ํ SYSDBA ๊ถํ ์ฌ์ฉ์๋ฅผ ์ ํํฉ๋๋ค.
4) ์๋จ Preference(ํ๊ฒฝ์ค์ ) => ์ผ์ชฝ Prefered Credential(์ ํธ ์ธ์ฆ์) => ๋ฉ์ธ ํ๋ฉด :
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์คํด์ค โ ์ธ์ฆ์ ์ค์ ์ ํด๋ฆญํฉ๋๋ค.
5) ๋์ ์ธ์ฆ์์ ์ํ๋ DB์ ์ ์ ์ ๋ณด๋ฅผ ์ ๋ ฅ ํ๋ค ํ ์คํธ๋ฅผ ๊ฑฐ์ณ ์ ์ ์ฌ๋ถ๋ฅผ ํ์ธ ํ ํ
์ ์ฉํฉ๋๋ค.
Oracle 10g EM Grid Control
- 46 -
4. Managing Hosts
4.1. Host Infomation
4.1.1. Host Home page
๊ด๋ฆฌ ๋์(Targets)์ ํธ์คํธ์๋ Agent ๊ฐ ์ค์น๋ ์๋ฒ๋ค์ ๋ชฉ๋ก์ ๋ณผ ์ ์์ต๋๋ค.
ํน์ ํธ์คํธ๋ฅผ ์ ํํ๋ฉด, ๊ทธ ํธ์คํธ์ ๋ํ ๋๋ต์ ์ธ ์ํ์ ๋ณด, OS ๊ตฌ์ฑ์ ๋ณด, ๊ฒฝ๋ณด, ์ ์ฑ ์๋ฐ,
๋ณด์, ์์ ํ๋ ์ํ๋ฅผ ๋ณด์ค ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 47 -
4.1.2. Host Availability
ํธ์คํธ์ ๊ฐ์ฉ ์ํ ๋ด์ญ์ ํ์ธํ์ค ์ ์์ต๋๋ค. ์๋ฒ์ ์๋ ์ค์ง๋ ์์ด์ ํธ๊ฐ ์ฐ๊ฒฐ์ด ์๋์์
๋ ๋ฑ ์ํ์ ๊ธฐ๋ก์ด ๋จ์ต๋๋ค.
[ํ์ฌ ์ฌ์ฉ์ ๋ณด๊ธฐ]๋ ํ์ฌ ํธ์คํธ์ ๋ก๊ทธ์ธ๋ ์ฌ์ฉ์ ํํฉ์ ๋ณผ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 48 -
4.1.3. Hardware Detail Information
ํธ์คํธ์ ๊ตฌ์ฑ ํญ๋ชฉ ์ค ํ๋์จ์ด ํ๋ซํผ์ ๋งํฌ๋ฅผ ์ ํํ๋ฉด ํ๋์จ์ด ์ธ๋ถ ์ ๋ณด๋ฅผ ํ์ธ ํ ์ ์์ต๋
๋ค .
CPU
I/O Devices
Network Interfaces
Disk capacity
Memory
Link to historical infomation
Oracle 10g EM Grid Control
- 49 -
4.1.4. Operating System Detail Information
ํธ์คํธ์ ๊ตฌ์ฑ ํญ๋ชฉ ์ค ์ด์ ์ฒด์ ๋ฅผ ์ ํํ๋ฉด ์ด์ ์ฒด์ ์ธ๋ถ ์ ๋ณด๋ฅผ ๋ณด์ค ์ ์์ต๋๋ค. ์ผ๋ฐ์ ์ธ OS
์์ฑ ๋ฐ ํ์ผ์์คํ , ์ค์น๋ ํจํค์ง๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
์ด์ ์ฒด์ ์ธ๋ถ ์ ๋ณด โ ์ผ๋ฐ ์ฌํญ : ์ด์์ฒด์ ์์ฑ
์ด์ ์ฒด์ ์ธ๋ถ ์ ๋ณด โ ํ์ผ ์์คํ
์ด์ ์ฒด์ ์ธ๋ถ ์ ๋ณด โ ํจํค์น
Oracle 10g EM Grid Control
- 50 -
4.1.5. Alert History
ํธ์คํธ์ ์์คํ ๋ก๊ทธ์ ๊ธฐ๋ก๋ ์๋ฌ๋ ๊ฒฝ๊ณ ์ํ๋ฅผ ๋ชจ๋ํฐ๋งํ๊ฑฐ๋ ์๊ณ์น ์์ค ์ดํ๋ก ์ํ๊ฐ ๋ณ๊ฒฝ
๋ ๊ฒฝ์ฐ ์๋ ค ์ค๋๋ค.
๊ฐ๊ฐ์ ์ธก์ ๋ ๊ฒฝ๋ณด ๋ฉ์์ง๋ฅผ ํด๋ฆญํ๋ฉด ์ธ๋ถ ์ ๋ณด๋ฅผ ๋ณด์ฌ ์ค๋๋ค.
Oracle 10g EM Grid Control
- 51 -
4.2. Host Performance
4.2.1. Performance Summary
ํธ์คํธ์ ์ฑ๋ฅ ํญ์์๋ ํธ์คํธ์ ์ฑ๋ฅ๊ณผ ๊ด๋ ฆ๋ ์งํ๋ฅผ ๋ณด์ฌ ์ค๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก CPU ํ์ฉ๋ฅ , ๋ฉ๋ชจ๋ฆฌ
ํ์ฉ๋ฅ , ๋์คํฌ I/O ํ์ฉ๋ฅ , ์์ ํ๋ก์ธ์ค๋ฅผ ๋ณด์ฌ์ฃผ๋ฉฐ, ๊ฐ๊ฐ์ ์ธ๋ถ ์ ๋ณด๋ ํ์ธ ํ ์ ์์ต๋๋ค.
4.2.2. Detail Information
ํธ์คํธ์ ์ฑ๋ฅ ํญ์์๋ ๊ธฐ๋ณธ์ ์ผ๋ก ํธ์คํธ์ ์ฑ๋ฅ์ ๋ํ ์์ฝ์ ์ธ ์ ๋ณด์ ๋๋ถ์ด ๊ฐ ๋ณด๊ธฐ ํญ๋ชฉ์์
CPU ์ธ๋ถ์ ๋ณด, ๋ฉ๋ชจ๋ฆฌ ์ธ๋ถ์ ๋ณด, ๋์คํฌ ์ธ๋ถ์ ๋ณด, ํ๋ก๊ทธ๋จ ๋ฆฌ์์ค ์ฌ์ฉ๋ฅ ์ ํ์ธํ ์ ์์ต๋๋ค.
๊ทธ๋ฆฐ - CPU, ๋ฉ๋ชจ๋ฆฌ ์ธ๋ถ์ ๋ณด
Oracle 10g EM Grid Control
- 52 -
๊ทธ๋ฆฐ - ๋์คํฌ ์ธ๋ถ์ ๋ณด
๊ทธ๋ฆฐ - ํ๋ก๊ทธ๋จ ๋ฆฌ์์ค ์ฌ์ฉ๋ฅ
4.3. Host Management
4.3.1. Required Installation
Enterprise Manager ์์ ๊ด๋ฆฌ๋ ์ ์๋ ํธ์คํธ๋ ๋ค์ Linux OS ๊ฐ ์ค์น๋์ด ์๋ ๋์์ ํํ์ฌ
๊ฐ๋ฅํฉ๋๋ค.
Enterprise Linux 4, Enterprise Linux 5
RedHat Enterprise Linux 4, RedHat Enterprise Linux 5
Suse Enterprise Linux 9, Suse Enterprise Linux 10
Enterprise Manager ๋ฅผ ํตํด ํธ์คํธ๋ฅผ ๊ด๋ฆฌํ๋ ค๋ฉด ๋ค์ ์คํฌ๋ฆฑํธ๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค
YAST(Yet Another Setup Tool) ๋ฐ EM ๋ํผ ์คํฌ๋ฆฝํธ ์ค์น (http://oss.oracle.com/projects/yast)
YAST ๋ Linux System ์ ๊ตฌ์ฑํ๊ณ ๊ด๋ฆฌํ๊ธฐ ์ฝ๊ฒ ํ๊ธฐ ์ํ ์ ํธ๋ฆฌํฐ๋ก ์ ๊ณต๋๊ณ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 53 -
YAST ์ค์น ๋ฐ ๊ตฌ์ฑ (RedHat Enterprise Linux 5 ์ฌ์ฉ์)
http://oss.oracle.com/projects/yast ์ฌ์ดํธ์์ yast_el5_x86_32.tar ๋ฅผ ๋ค์ด ๋ฐ์ต๋๋ค. ํธ์คํธ์ ์ ๋ก๋ํ ํ root ์ ์ ๋ก ์์ถ์ ํผ๋ค install.sh ๋ฅผ ์ํํฉ๋๋ค. [root@goodus yast_el5_x86_32]# ./install.sh Now checking the necessary rpms........... Checking dbus ....... found Checking hal ....... found Checking perl ....... found Checking coreutils ....... found Checking curl ....... found Checking unzip ....... found Checking tar ....... found Checking gzip ....... found Checking glibc-common ....... found Checking initscripts ....... found Checking cracklib ....... found Checking perl-Digest-SHA1 ....... not found Checking boost ....... found Now checking the necessary tools........... Checking /bin/bash ....... found Checking /bin/ln ....... found Checking /bin/mktemp ....... found Checking /bin/rm ....... found Checking /bin/sed ....... found Checking /bin/sh ....... found Checking /sbin/ldconfig ....... found Checking /usr/bin/env ....... found Checking /usr/bin/find ....... found Checking /usr/bin/host ....... found Checking /usr/bin/perl ....... found Checking /usr/bin/python ....... found Checking /usr/bin/xargs ....... found Checking /usr/sbin/lsof ....... found The following requirements aren't found. perl-Digest-SHA1 Some requirements are not statisfied, please install them first. Or use system-config-packages to adjust OS installation and make sure that Development Tools, Authoring and Publishing, Server, Legacy Software Development are selected! # ์์ ๊ฐ์ด ์ฌ์ ์๊ตฌ์ฌํญ์์ ํ์ํ package ๊ฐ ์๋ ๊ฒฝ์ฐ OS ์ค์น์ฉ CD ๋ ์ธํฐ๋ท์ผ๋ก๋ถํฐ ํด๋น RPM ์ ๊ตฌํด ์ค์นํด์ผ ํฉ๋๋ค ์์ ๊ฐ์ ๊ฒฝ์ฐ perl-Digest-SHA1 ํจํค์ง๊ฐ ์๋ ์ํ์ ๋๋ค. RHEL 5 CD ์ ๋ค์ rpm ์ด ์์ผ๋ ์ฐพ์์ upload ํ ํ ํจํค์ง๋ฅผ ์ค์นํฉ๋๋ค. perl-Digest-SHA1-2.11-1.2.1.i386.rpm [root@goodus yast]# rpm -Uvh perl-Digest-SHA1-2.11-1.2.1.i386.rpm warning: perl-Digest-SHA1-2.11-1.2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing... ########################################### [100%] 1:perl-Digest-SHA1 ########################################### [100%] # ์ฌ์ ์ ํ์ํ RPM ์ ๋ชจ๋ ๊ตฌ์ฑํ์๋ค๋ฉด, ๋ค์ install.sh ๋ฅผ ์ํํ์ฌ YAST ๊ด๋ ฆ ํจํค์ง๋ฅผ ๋ชจ๋ ์ค์นํฉ๋๋ค. [root@goodus yast_el5_x86_32]# ./install.sh Now checking the necessary rpms........... Checking dbus ....... found Checking hal ....... found Checking perl ....... found Checking coreutils ....... found Checking curl ....... found Checking unzip ....... found
Oracle 10g EM Grid Control
- 54 -
Checking tar ....... found Checking gzip ....... found Checking glibc-common ....... found Checking initscripts ....... found Checking cracklib ....... found Checking perl-Digest-SHA1 ....... found Checking boost ....... found Now checking the necessary tools........... Checking /bin/bash ....... found Checking /bin/ln ....... found Checking /bin/mktemp ....... found Checking /bin/rm ....... found Checking /bin/sed ....... found Checking /bin/sh ....... found Checking /sbin/ldconfig ....... found Checking /usr/bin/env ....... found Checking /usr/bin/find ....... found Checking /usr/bin/host ....... found Checking /usr/bin/perl ....... found Checking /usr/bin/python ....... found Checking /usr/bin/xargs ....... found Checking /usr/sbin/lsof ....... found Environment is OK. Now begin installing yast......... Environment is OK. Now begin installing yast......... Preparing... ########################################### [100%] 1:liby2util ########################################### [100%] Preparing... ########################################### [100%] 1:blocxx ########################################### [100%] Preparing... ########################################### [100%] 1:libxcrypt ########################################### [100%] Preparing... ########################################### [100%] 1:testutf8 ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-core ########################################### [100%] Preparing... ########################################### [100%] 1:hwinfo ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-hardware-detectio########################################### [100%] Preparing... ########################################### [100%] 1:libzypp ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-pkg-bindings ########################################### [100%] Preparing... ########################################### [100%] 1:yast2 ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-network ########################################### [100%] Preparing... ########################################### [100%] 1:perl-Parse-RecDescent ########################################### [100%] Preparing... ########################################### [100%] 1:perl-gettext ########################################### [100%] Preparing... ########################################### [100%] 1:perl-X500-DN ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-pam ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-perl-bindings ########################################### [ 14%] 2:yast2-mail-aliases ########################################### [ 29%] 3:yast2-ldap-client ########################################### [ 43%] 4:yast2-security ########################################### [ 57%] 5:yast2-country ########################################### [ 71%] 6:yast2-installation ########################################### [ 86%] 7:yast2-users ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-nfs-client ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-runlevel ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-ncurses ########################################### [100%] Preparing... ########################################### [100%] 1:yast2-EM ########################################### [100%] Finished. Use /sbin/yast or /sbin/yast2 to start it # ๋ฆฌ๋ ์ค OS ์ปค๋งจ๋ ์ํ์์ /sbin/yast ๋๋, /sbin/yast2 ๋ฅผ ์ ๋ ฅํ์ฌ System Administration ์ ํธ๋ฆฌํฐ๋ฅผ ์คํํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 55 -
YAST ์ค์น๊ฐ ์๋ฃ๋์์ผ๋ฉด Enterprise Manager์์ ํธ์คํธ์ ๊ด๋ฆฌ ํญ๋ชฉ์์ [์๋ฃ] ๋ฒํบ์
๋๋ฅด๋ฉด ๋ค์๊ณผ ๊ฐ์ด System ๊ด๋ฆฌ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์๋น์ค ํญ๋ชฉ์์ ํ์ฌ ๋ฆฌ๋ ์ค์ ๋ฑ๋ก๋ ์๋น์ค๋ค์ ๋ชฉ๋ก๊ณผ ์๋์ฌ๋ถ๋ฅผ ๊ฒฐ์ ํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 56 -
๊ธฐ๋ณธ ์์คํ ์คํ ๋ ๋ฒจ์ OS ๋ถํ ์ ๋ก๋ฉ๋ ๋ฐฉ์์ ๊ฒฐ์ ํฉ๋๋ค.
๋คํธ์ํฌ ์นด๋์ ๋ํ ์ค์ ๊ฐ์ ํ์ธํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 57 -
ํธ์คํธ ์กฐํ ํ ์ด๋ธ์ /etc/hosts๋ฅผ ๊ด๋ฆฌํ๋ ํ ์ด๋ธ๋ก Enterprise Manager ์์ root ์ธ์ฆ์๋ก
๋ฑ๋ก์ด ๋์ด ์๋ ๊ฒฝ์ฐ ์ถ๊ฐ/ํธ์ง/์ญ์ ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.
NFS ํด๋ผ์ด์ธํธ ๊ธฐ๋ฅ์ผ๋ก ์๊ฒฉ์ง ํ์ผ ์์คํ ์ ์ฌ์ฉํ์ค ์ ์์ต๋๋ค.
์ฌ์ฉ์ ๋ฐ ๊ทธ๋ฃน์ ๊ด๋ฆฌํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 58 -
5. Managing Database
5.1. Database Home Page
5.1.1. Database Home page
๋์ โ ๋ฐ์ดํฐ๋ฒ ์ด์ค ํญ๋ชฉ์์๋ ๋ค์๊ณผ ๊ฐ์ด ํธ์คํธ์ ๊ตฌ์ฑ๋์ด ์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ชฉ๋ก์ ๋ณด์ฌ
์ค๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ด๋ฆ์ ํด๋ฆญํ๋ฉด ์ ๋ฐ์ ์ธ DBMS ์ํ๋ฅผ ๋ณด์ฌ์ค๋๋ค.
Oracle 10g EM Grid Control
- 59 -
5.1.2. Database Home Components
๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์์๋ ํด๋น ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์คํด์ค์ ์ํ, ๊ตฌ์ฑ์ ๋ณด, ํธ์คํธ์ ๊ด๋ ฆ๋ ๋ฆฌ์์ค
์ฌ์ฉ๋ฅ , ์ฑ๋ฅ ๋ฐ ๊ฐ์ฉ์ฑ, ๊ณต๊ฐ์์ฝ, ๊ฒฝ๋ณด, ์์ ๋ฑ์ ํญ๋ชฉ์ด ์์ฝ๋์ด ํ์๋ฉ๋๋ค.
์ผ๋ฐ ์ฌํญ : ์ ์ฒด์ ์ธ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ํ ๋ฐ ๊ธฐ๋ณธ์ ์ธ ๊ตฌ์ฑ ์ ๋ณด๋ฅผ ๋ณด์ฌ์ค๋๋ค.
ํธ์คํธ CPU : ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ํด๋นํ๋ ํธ์คํธ์ CPU ์ฌ์ฉ๋ฅ ์ ๋ณด์ฌ์ค๋๋ค.
ํ์ฑ ์ธ์ : CPU ์๋ชจ๋, ๋๊ธฐ์ค์ธ ์ธ์ , ์ฌ์ฉ์ I/O์ ๋ํ ๋น์จ์ ๋ณด์ฌ์ค๋๋ค.โ
SQL ์๋ต ์๊ฐ : ์ฐธ์กฐ ๋ชจ์ ์๋ต ์๊ฐ์ ๋ํ ์ถ์ ๋ SQL ์งํฉ์ ํ์ฌ ์๋ต ์๊ฐ์ ๋ณผ
์ ์์ต๋๋ค. ํ์ฌ ์๋ต ์๊ฐ๊ณผ ์ฐธ์กฐ ๋ชจ์ ์๋ต ์๊ฐ์ด ๋์ผํ๋ฉด ์์คํ ์ด ์ ์์ ์ผ๋ก
์คํ๋๊ณ ์๋ ๊ฒ์ ๋๋ค. ํ์ฌ ์๋ต ์๊ฐ์ด ์ฐธ์กฐ ๋ชจ์ ์๋ต ์๊ฐ๋ณด๋ค ๊ธธ ๊ฒฝ์ฐ ํ๋
์ด์์ SQL ๋ฌธ์ด ์ ์ ์ํ๋ณด๋ค ๋๋ฆฌ๊ฒ ์ํ๋๊ณ ์๋ ๊ฒ์ ๋๋ค. ํ์ฌ ์๋ต ์๊ฐ์ด
์งง์์๋ก SQL ๋ฌธ์ด ๋ ํจ์จ์ ์ผ๋ก ์คํ๋๊ณ ์๋ ๊ฒ์ ๋๋ค.
์๋ต ์๊ฐ ๊ณ์ฐ
์ต๊ทบ ๋ชจ์์ ์๋ต ์๊ฐ์ ๋ค์ ๊ณต์์ ์ฌ์ฉํ์ฌ ๊ณ์ฐ๋ฉ๋๋ค.
์ต๊ทบ SQL ์๋ต ์๊ฐ = Sum i=1,N (ElapsedTimePerExec * BaselineExecCount)i
์ฐธ์กฐ ๋ชจ์์ ์๋ต ์๊ฐ์ ๋ค์ ๊ณต์์ ์ฌ์ฉํ์ฌ ๊ณ์ฐ๋ฉ๋๋ค.
SQL ์๋ต ์๊ฐ = Sum i=1,N (BaselineElapsedTime)i
SQL ๋ฌธ์ด ์ฐธ์กฐ ๋ชจ์์ ํฌํจ๋๋ ค๋ฉด ๋ค์ ์กฐ๊ฑด์ ์ถฉ์กฑํด์ผ ํฉ๋๋ค.
์ฐธ์กฐ ๋ชจ์์ด ์์ฑ๋ ๋ ์ ์ด๋ ๋ค์ฏ ๋ฒ ์คํ๋จ
SYS, SYSMAN ๋๋ DBSNMP ์ ์ํด ์คํ๋์ง ์์
ํด๋น ์๊ฐ ๊ฐ๊ฒฉ ๋์ ๋ธํ ์คํ ํ์๊ฐ ์ ์ด๋ 50 ํ์
๋ธํ ์คํ ํ์๊ฐ ์ถ์ ๋ SQL ๋ฌธ์์ ์์ 25 ์์ ์ํจ
9i ๋ฒ์ ์์ SQL ์ธก์ ๋จ์ ๋ณด๊ธฐ
9i ๋ฒ์ ์ ์ฌ์ฉ ์ค์ธ๋ฐ SQL ์์ ์ธก์ ๋จ์๋ฅผ ๋ณด๋ ค๋ ๊ฒฝ์ฐ ํด๋น ์ธก์ ๋จ์๋ฅผ ๊ตฌ์ฑํด์ผ ํฉ๋๋ค.
๊ตฌ์ฑํ์ง ์์ผ๋ฉด [SQL ์๋ต ์๊ฐ]์ด [๊ตฌ์ฑ๋์ง ์์]์ผ๋ก ํ์๋ฉ๋๋ค. ๊ทธ๋ฌ๋ฉด ๊ตฌ์ฑ์ ๋๋ฌ
๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ตฌ์ฑ ๋ง๋ฒ์ฌ๋ฅผ ํธ์ถํฉ๋๋ค. ๊ตฌ์ฑ ํ์๋ [SQL ์๋ต ์๊ฐ] ์ฐจํธ๊ฐ ํ์๋ฉ๋๋ค.
์ง๋จ ์์ฝ : Automatic Database Diagnostic Monitor(ADDM) ๊ณผ Alert Log ์ ๋ณด๋ฅผ
์ ๊ณตํฉ๋๋ค.
๊ณต๊ฐ ์์ฝ : ์ ์ฅ ๊ณต๊ฐ๊ณผ ๊ด๋ ฆํ ์ด์์ฌํญ, ์ฑ๋ฅ ํฅ์์ ์ฐํ ๊ถ์ฅ์ฌํญ ๋ฐ ๊ณต๊ฐ ๋ฌธ์ ์
๊ด๋ ฆ๋ ์ ๋ณด๋ฅผ ๋ณด์ฌ์ค๋๋ค.
๊ณ ๊ฐ์ฉ์ฑ : ๊ฐ์ฉ์ฑ์ ๋์ด๊ณ ๊ณํ๋ ์๋ ์ค์ง ์๊ฐ๊ณผ ๊ณํ๋์ง ์์ ์๋ ์ค์ง ์๊ฐ์
์์ ๊ฑฐ๋ ์ต์ํํจ์ผ๋ก์จ ์์ ์ฑ, ๋ณต๊ตฌ ๊ฐ๋ฅ์ฑ, ์๊ธฐ ์ ์ ํ ์ค๋ฅ ํ์ง ๋ฐ ์ง์์ ์ธ
์๋์ ๋ณด์ฅํ๋ ๋ช ๊ฐ์ง ์ ์ฉํ ๋ชจ๋ํฐ๋ง ๋๊ตฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
Oracle 10g EM Grid Control
- 60 -
์์ ์ค๋ช
์ฝ์ ์ด ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ๊ฐ์ฉ์ฑ ์์ฝ, ๋ฐฑ์ /๋ณต๊ตฌ ์์ฝ, Data Guard ์์ฝ ๋ฐ ๊ฐ์ฉ์ฑ ์ด๋ฒคํธ๋ฅผ
ํฌํจํ ๊ณ ๊ฐ์ฉ์ฑ ์ฝ์์ ์ํ๊ฐ ํ์๋ฉ๋๋ค.
Data Guard ๋๊ธฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ๊ฒฝ์ ์์ฑ, ๊ด๋ฆฌ ๋ฐ ๋ชจ๋ํฐ๋ง ์ธก๋ฉด์ ์๋ํํ์ฌ ์ค์ํ ๋ฐ์ดํฐ๋ฅผ
๋ณดํธํฉ๋๋ค. Data Guard ๋ ์ด์ฉ ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์์ค๋๊ฑฐ๋ ์์๋ ๊ฒฝ์ฐ์ ๋ณต๊ตฌํ ์
์๋๋ก ํธ๋์ญ์ ๋ฐฉ์์ด ๋์ผํ Oracle ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ณต์ฌ๋ณธ์ ์ ์ง ๊ด๋ฆฌํ๋
ํ๋ก์ธ์ค๋ฅผ ์๋ํํฉ๋๋ค.
Data Guard ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ์ค๋ฅ, ์ฅ์ ๋ฐ ์์์ผ๋ก๋ถํฐ ๋ฐ์ดํฐ๋ฅผ ๋ณดํธํ ์ ์๋ [Data
Guard] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์์๋ ์ ์์ต๋๋ค.
์ธ์คํด์ค
๋ณต๊ตฌ ์๊ฐ
๊ณ ์ฅ ๋ณต๊ตฌ์ ์์๋๋ ์์ ์๊ฐ(์ด)์ ํ์ํฉ๋๋ค.
์ธ์คํด์ค ๋ณต๊ตฌ ์๊ฐ ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด [์ธ์คํด์ค ๋ณต๊ตฌ] ์น์ ์ ์ ํฉํ ์๊ฐ(์ด)์ ์ค์ ํ ์
์๋ [๋ณต๊ตฌ ์ค์ ] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
๋ง์ง๋ง ๋ฐฑ์ ์ด์ Oracle 10g ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ง์ง๋ง ๋ฐฑ์ ์๊ฐ, ์ต๊ทบ ๋ฐฑ์ ์๊ฐ ๋ฐ Oracle 10g ๋๋
์ดํ ๋ฒ์ ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ๋ฐฑ์ ์ด ์ฑ๊ณต์ ์ด์๋์ง ์ฌ๋ถ๋ฅผ ํ์ํฉ๋๋ค. 10g ๋๋
์ดํ ๋ฒ์ ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ๋ฐฑ์ ์ ์คํจํ ๊ฒฝ์ฐ [๋ง์ง๋ง ๋ฐฑ์ ] ๋งํฌ์ ๋ฐฑ์ ๊ฒฐ๊ณผ๊ฐ
ํ์๋ฉ๋๋ค.
๋ฐฑ์ ์ ์ฑ๊ณตํ ๊ฒฝ์ฐ ๋ง์ง๋ง ๋ฐฑ์ ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ต๊ทบ ๋ฐฑ์ ์์ ๊ณผ ์ด์
๋ฐฑ์ ์์ ์ ํ์ธํ ์ ์๋ [๋ฐฑ์ ๋ณด๊ณ ์] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
์ฌ์ฉ๋
์์นด์ด๋ธ ์์ญ
์ด ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด [์์นด์ด๋ธ ์์ญ] ํ์ด์ง๊ฐ ํ์๋ฉ๋๋ค. [๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์คํด์ค ํ]
ํ์ด์ง์ [์ฌ์ฉ๋ ์์นด์ด๋ธ ์์ญ] ์์๋ฅผ ํ์ํ๋ ค๋ฉด [๋ณต๊ตฌ ์ค์ ] ํ์ด์ง์์
[ARCHIVELOG ๋ชจ๋]๋ฅผ ์ ํํด์ผ ํฉ๋๋ค. ์์นด์ด๋ธ ๋ก๊น ์ ์ฌ์ฉ์ผ๋ก ์ค์ ํ ์ํ์์
๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํด ํ๋์ ๋ณต๊ตฌ ์์ญ์ ๊ตฌ์ฑํ์ง ์์ ๊ฒฝ์ฐ, ์ฌ์ฉ๋ ์์นด์ด๋ธ ์์ญ
๋น์จ์ด ํ์๋ฉ๋๋ค.
์ฌ์ฉ ๊ฐ๋ฅํ
ํ๋์ ๋ณต๊ตฌ
์์ญ
[ํ๋์ ๋ณต๊ตฌ ์์ญ]์ ์ง์ ํ ๊ฒฝ์ฐ ์ด ์์๋ ์ฌ์ฉ ๊ฐ๋ฅํ ๋ณต๊ตฌ ์์ญ(์ฌ์ฉ ๊ฐ๋ฅํ ์์ญ๊ณผ
ํ๋ณด ๊ฐ๋ฅํ ์์ญ)์ ๋น์จ์ ํ์ํฉ๋๋ค.
ํ๋์ ๋ณต๊ตฌ ์์ญ์ Oracle ๊ด๋ฆฌ ๋๋ ํ ๋ฆฌ ๋๋ ๋ฐฑ์ ๋ฐ ๋ณต๊ตฌ ํ์ผ์ ๋ํด ์ค์ ์ง์ค์ ์ธ
๋์คํฌ ์์น๋ฅผ ์ ๊ณตํ๋ Automatic Storage Management ๋์คํฌ ๊ทธ๋ฃน์ ๋๋ค. Oracle ์
ํ๋์ ๋ณต๊ตฌ ์์ญ์ ์์นด์ด๋ธ๋ ๋ก๊ทธ๋ฅผ ์์ฑํฉ๋๋ค.
RMAN ์ ํ๋์ ๋ณต๊ตฌ ์์ญ์ ๋ฐฑ์ ์ ์ ์ฅํ ์ ์์ผ๋ฉฐ ๋งค์ฒด ๋ณต๊ตฌ ์ค ํ์ผ์ ๋ณต์ํ ๋
์ด ์์ญ์ ์ฌ์ฉํฉ๋๋ค. ํ๋์ ๋ณต๊ตฌ ์์ญ์ ํ ์ดํ์ ๋ํ ๋์คํฌ ์บ์๋ก๋ ์ฌ์ฉ๋ฉ๋๋ค.
์ฌ์ฉ ๊ฐ๋ฅํ ํ๋์ ๋ณต๊ตฌ ์์ญ ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ํ๋์ ๋ณต๊ตฌ ๊ฐ์ ์ค์ ํ ์ ์๋ [๋ณต๊ตฌ
์ค์ ] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
ํ๋์๋ฐฑ ์๊ฐ ํ๋์๋ฐฑ ๋ก๊น ์ ํ์ฑํํ ๊ฒฝ์ฐ ์ด ์์๋ ํ๋์๋ฐฑ ๋ฐ์ดํฐ์์ ์ตํ์ SCN ์ ์๊ฐ์
ํ์ํฉ๋๋ค.
ํ๋์๋ฐฑ ๋ก๊น ํ๋์๋ฐฑ ๋ก๊น ์ ํ์ฑํ ๋๋ ๋นํ์ฑํ ์ฌ๋ถ๋ฅผ ํ์ํฉ๋๋ค. ํ๋์๋ฐฑ ๋ก๊ทธ๋ ํ๋์๋ฐฑ
๋ฐ์ดํฐ๋ฒ ์ด์ค ์์ ์ ์ํํ๋ ๋ฐ ์ฌ์ฉ๋๋ Oracle ์์ ์์ฑํ๋ ๋ก๊ทธ์ ๋๋ค. Oracle ์
ํ๋์๋ฐฑ ๋ก๊ทธ๋ฅผ ํ๋์ ๋ณต๊ตฌ ์์ญ์๋ง ๊ธฐ๋กํ ์ ์๊ณ ๋์คํฌ์ ๋ฐฑ์ ํ ์๋ ์์ต๋๋ค.
ํ๋์๋ฐฑ ๋ก๊น ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ํ๋์๋ฐฑ ๋ก๊ทธ๋ฅผ ํ์ฑํํ๊ฑฐ๋ ๋นํ์ฑํํ ์ ์๋ [๋ณต๊ตฌ
์ค์ ] ํ์ด์ง์ [ํ๋์ ๋ณต๊ตฌ] ์น์ ์ผ๋ก ์ด๋ํฉ๋๋ค. ํ๋์๋ฐฑ ๋ก๊ทธ๋ฅผ ํ์ฑํํ๋ ค๋ฉด
ํ๋์ ๋ณต๊ตฌ ์์ญ์ ์ง์ ํด์ผ ํฉ๋๋ค.
์คํธ๋ฆฐ
๊ตฌ์ฑ ์์
ํ์ฌ ํ์ฑ ์คํธ๋ฆฐ ๊ตฌ์ฑ ์์ ์๋ฅผ ํ์ํฉ๋๋ค. ์ด ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ์คํธ๋ฆฐ ๊ตฌ์ฑ์ ๊ฐ์๋ฅผ
๋ณผ ์ ์๋ [์คํธ๋ฆฐ ๊ฐ์] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
Oracle 10g EM Grid Control
- 61 -
๊ฒฝ๋ณด : ๋ชจ๋ํฐ๋ง ์ธก์ ๋จ์ ์๊ณ๊ฐ์ ๋๋ฌํ๋ฉด ๊ฒฝ๋ณด๊ฐ ์์ฑ๋ฉ๋๋ค. ๊ฒฝ๋ณด๋ ๋ชจ๋ํฐ๋
์ธก์ ๋จ์์ ๋ํ ๊ฒฝ๊ณ ๋๋ ์๊ธฐ ์๊ณ๊ฐ์ ๋๋ฌํ๋ค๋ ์ ์ฌ์ ๋ฌธ์ ๋ฅผ ๋ํ๋ ๋๋ค.
๋ค์๊ณผ ๊ฐ์ ๋ค์ํ ๋์ ๊ฐ์ฉ์ฑ ์ํ์ ๋ํด์๋ ๊ฒฝ๋ณด๊ฐ ์์ฑ๋ ์ ์์ต๋๋ค.
๋์์ ์๋์ด ์ค์ง๋จ
๋์์ ๋ชจ๋ํฐํ๋ Oracle Management Agent ์ ์ฐ๊ฒฐํ ์ ์์
์์ ํ๋ : ์์ ํ๋์ ๋ํ ์์ ์คํ ์ํ๊ฐ ํ์๋ฉ๋๋ค.
5.1.3. Managing Databases
Grid Control ์์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์ ๋ฐ์ํ ์ ์๋ ์์ธ์ ์ธ ์ํฉ์ ๊ด๋ฆฌํ ์ ์์ต๋๋ค.
๊ฒฝ๋ณด(Alerts)๋ User ์๊ฒ ์ํฅ์ ๋ฏธ์น ์ ์๋ ๋ฌธ์ ์ ๋ํด ๋ฏธ๋ฆฌ ์๋ ค์ค๋๋ค.
์ธก์ (Metric ) ๋ ์ด๋ ฅ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ฑ๋ฅ์ ๋ํ ๊ฒฝํฅ์ ์๋ ค์ค๋๋ค.
Grid Control ์ Oracle 8i ๋ฐ 9i ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ ๊ด๋ฆฌํ ์ ์์ต๋๋ค.
๋งค์ผ ์ํํ ๊ด๋ฆฌ ์ ๋ฌด
์ฑ๋ฅ ๋ชจ๋ํฐ๋ง ( Statspack ๋ฐ Dynamic Performance Views ์ด์ฉ)
๋ฌธ์ SQL ๊ฒ์ถ
์ค์๊ฐ ์ฑ๋ฅ ๋ชจ๋ํฐ๋ง
์ฑ๋ฅ ๋ฐ์ดํฐ ์ด๋ ฅ ํ์ธ
Alert ๋ฐ Metric ์ค์
Oracle 10g EM Grid Control
- 62 -
5.2. Database Performance
5.2.1. Monitoring Database Performance
๋ฐ์ดํฐ๋ฒ ์ด์ค ๋์์ผ๋ก ์ฑ๋ฅ๊ณผ ํต๊ณ์ ๊ด๋ ฆ๋ ํญ๋ชฉ๋ค์ ๋ชจ๋ํฐ๋งํ์ฌ ๊ทธ๋ํ๋ก ๋ณด์ฌ์ค๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ ํ์ด์ง์์๋ ๋ค์๊ณผ ๊ฐ์ ์์ ์ ํ ์ ์์ต๋๋ค.
ํ์ฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ํ์ผ๋ก ์ ์ฌ๋์ด ์๋ ๋ฌธ์ ํ์ธ
๋ณ๋ชฉ ์์ธ ํ์
์ต์์ SQL, ์ต์์ ์ธ์ , ์ต์์ ํ์ผ ๋ฐ ์ต์์ ๊ฐ์ฒด์ ๋ํ ์ ๋ณด์ ์ก์ธ์ค
์ฑ๋ฅ ๋ถ์์ ์ํด ADDM ์คํ
์ธ์ ์ํ๋ง ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ฑ๋ฅ ์ง๋จ ๋ณด๊ณ ์ ์์ฑ
๋๋ฆฌ๊ฑฐ๋ ์ ์ง๋ ์์คํ ์ ๋ํด ๋ฉ๋ชจ๋ฆฌ ์ก์ธ์ค ๋ชจ๋๋ก ์ ํ
๊ธฐํ ๋ชจ๋ํฐ๋ง ๋งํฌ ์ก์ธ์ค
์ฐจํธ์ ํจ๊ป ๋ํ๋๋ ๋งํฌ ๋๋ ํ์ด์ง์ ํ๋จ์ ์๋ ๋งํฌ์์ ๋๋ฆฏ๋ค์ดํ์ฌ ๋ค์ ์์ ์
์ํํ ์ ์์ต๋๋ค.
์ฑ๋ฅ ๋ฌธ์ ์ ์์ธ ํ์ ๋ฐ ํด๊ฒฐ
์ฑ๋ฅ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๋ฆฌ์์ค๋ฅผ ์ถ๊ฐ ๋๋ ์ฌ๋ถ๋ฐฐํด์ผ ํ๋์ง ์ฌ๋ถ ๊ฒฐ์
์ต์ ์ ์ฑ๋ฅ์ ์ํด SQL ๊ณํ ๋ฐ ์คํค๋ง ํ๋
Oracle 10g EM Grid Control
- 63 -
ํธ์คํธ ์ฐจํธ - ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ๋ถ์์ ๋ฐ์ํ ์ ์๋ ๋ฌธ์ ๋ฅผ ๋ณด์ฌ ์ค๋๋ค. ๋ก๋ ํ๊ท ์
์คํ ๋๊ธฐ์ด ๊ธธ์ด์ ์ด๋ ํ๊ท ์ ๋๋ค. ์คํ ๋๊ธฐ์ด ๊ธธ์ด๋ CPU ์๊ฐ ๋์์ ๊ฒฝํฉ ๋ ๋ฒจ์
๋ํ๋ ๋๋ค. Windows์ ๊ฐ์ ํ๋ซํผ์์ ๋ก๋ ํ๊ท ์ ์ ๊ณตํ์ง ์์ ๊ฒฝ์ฐ์๋ CPU
ํ์ฉ๋ฅ ์ด ํ์๋ฉ๋๋ค. ์ฐจํธ ์ค๋ฅธ์ชฝ์ ์๋ [๋ก๋ ํ๊ท ] ๋ฒ๋ก๋ฅผ ๋๋ฅด๋ฉด [ํธ์คํธ ์ฑ๋ฅ]
ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
ํธ์คํธ ์ฐจํธ ํด์ - ๊ฐ์ด ๋๋ค๋ ๊ฒ์ ์์ฃผ ๋ง์ ์ฌ์ฉ์๊ฐ CPU ์๊ฐ ๋์ ๋๊ธฐํ๊ณ ์์์
๋ํ๋ ๋๋ค. ์ด ๊ฐ์ [์ธ์ ] ์ฐจํธ์ [์ฌ์ฉ๋ CPU]์ ๊ฐ๊ณผ ๋น๊ตํ์ญ์์ค. ์ธ์ ๊ฐ์ด ๋ฎ๊ณ ์คํ
๋๊ธฐ์ด ๊ธธ์ด ๊ฐ์ด ๋๋ค๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ์๋ ํธ์คํธ์ ๋ค๋ฅธ ๊ณณ์์ CPU๋ฅผ ์ฌ์ฉํ๊ณ
์์์ ๋ํ๋ ๋๋ค. [๋ฉ๋ชจ๋ฆฌ ์ก์ธ์ค] ๋ชจ๋๋ฅผ ์ ํํ ๊ฒฝ์ฐ [ํธ์คํธ] ์ฐจํธ๋ ํ๋ฉด์ด ์ต๊ทบ์
๋ก๋๋์๊ณ ์บ์์ ์ ์ฅ๋ ๋ด์ญ ๋ฐ์ดํฐ๊ฐ ์ฌ์ ํ ์ฌ์ฉ ๊ฐ๋ฅํ ๋๋ฅผ ์ ์ธํ๊ณ ์ฒ์์ ๋ด์ญ
๋ฐ์ดํฐ๋ฅผ ํ์ํ์ง ์์ต๋๋ค. ํธ์คํธ ๋ฐ์ดํฐ๋ ํ๋ฉด์ด ์ฒ์ ์ก์ธ์ค๋ ์๊ฐ๋ถํฐ ์บ์์
์ ์ฅ๋๊ณ ์ ์ฐจ์ ์ผ๋ก [ํธ์คํธ] ์ฐจํธ์ ๋ด์ญ์ ์ฐฟ์๋๋ค.
์ง๊ธ ADDM ์คํ - ์ด ๋จ์ถ๋ฅผ ๋๋ฅด๋ฉด ์ AWR ์ค๋ ์ท์ด ์์ฑ๋๊ณ ํ์ฌ ๋ฐ ์ด์ ์ค๋ ์ท์์
ADDM์ด ์คํ๋ฉ๋๋ค. ์์ด์ฝ์ ๋๋ฅด๋ฉด ADDM(์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ง๋จ ๋ชจ๋ํฐ)์ ์ก์ธ์คํ
์ ์๋๋ฐ, ์ฌ๊ธฐ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ฑ๋ฅ ๋ถ์๊ณผ ์ค๋ ์ท ์ธ๋ถ ์ ๋ณด๋ฅผ ๋ณด๊ฑฐ๋, ์ ์ฒด ๋ถ์
๋ณด๊ณ ์๋ฅผ ์ธ์ํ๊ฑฐ๋, ์๋ก์ด ์ฑ๋ฅ ๋ถ์์ ์ํด ์ฆ์ ADDM์ ์คํํ ์ ์์ต๋๋ค.
ASH ๋ณด๊ณ ์ ์คํ - ASH(ํ์ฑ ์ธ์ ๋ด์ญ) ๋ณด๊ณ ์๊ฐ ์์ฑ๋ฉ๋๋ค. ์ด ๋ณด๊ณ ์๋ ์ง์ ๋ ๊ธฐ๊ฐ
๋์์ ์ธ์ ์ํ๋ง ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ ์ง๋จ ๋ณด๊ณ ์์ ๋๋ค.
ํ๊ท ํ์ฑ ์ธ์ ์ฐจํธ - ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ด์์ ๋ฐ์ํ ์ ์๋ ๋ฌธ์ ๋ฅผ ๋ณด์ฌ ์ค๋๋ค. ๋๊ธฐ
ํด๋์ค ๋ฒ์ฃผ๋ CPU ๋๋ ๋์คํฌ I/O์ ๊ฐ์ ๋ฆฌ์์ค๋ฅผ ๊ธฐ๋ค๋ฆฌ๊ณ ์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์๋ฅผ
๋ํ๋ ๋๋ค. ์ฐจํธ๋ ์ธ์คํด์ค์ ๋ํ ๋ก๋๋ฅผ ํ์ํ๊ณ ์ฑ๋ฅ ๋ณ๋ชฉ์ ์๋ณํฉ๋๋ค. ๋ฌธ์ ์์ญ์
์์ํ๊ฒ ์๋ณํ ์ ์๋๋ก ๋ณด๋ค ์ฌ๊ฐํ ๋ฌธ์ ๋ ์ฐจํธ์ ๋ณด๋ค ํฐ ์์ ๋ธ๋ก์ผ๋ก ํ์๋ฉ๋๋ค.
์ต๊ณ ์ ์ ์๋ ๊ฐ์ฅ ํฐ ๋๊ธฐ ํด๋์ค๋ฅผ ๋๋ฅด๊ฑฐ๋ [์์ ์ธ๋ถ ์ ๋ณด] ์๋์ ํด๋น ๋๊ธฐ
ํด๋์ค(๋ ธ๋์์ผ๋ก ๊ฐ์กฐ ํ์)๋ฅผ ๋๋ฅด์ญ์์ค. ๊ทธ๋ฌ๋ฉด ์ ํํ ๋๊ธฐ ํด๋์ค์ ๋ํด ๋๊ธฐ
ํด๋์ค์ ์ต์์ SQL, ์ธ์ , ํ์ผ, ๊ฐ์ฒด ๋ฐ ์ฐ๊ด๋ ๋๊ธฐ ์ด๋ฒคํธ๋ฅผ ๋ณด์ฌ์ฃผ๋ [๋๊ธฐ ์ค์ธ ํ์ฑ
์ธ์ ] ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.
ํ๊ท ํ์ฑ ์ธ์ ์ฐจํธ ํด์ - [์ธ์ ์]๋ ๋ชจ๋ ํ์ฑ ์ธ์ ์ด ๋ง์ง๋ง ์ํ๋ง ๊ฐ๊ฒฉ์์ ์๋นํ
์๊ฐ์ ์ฌ๋ฌ ๋๊ธฐ ํด๋์ค๋ก ๋ถ๋ฅํ์ฌ ๊ฐ ๋๊ธฐ ํด๋์ค์ ์์ ํฉ์ฐํ ๋ค์ ์ด ๊ฐ์ ์ํ๋ง
๊ฐ๊ฒฉ์ผ๋ก ๋๋์ด ๊ณ์ฐ๋ฉ๋๋ค. ์๋ฅผ ๋ค์ด, ๋ง์ง๋ง ์ํ๋ง ๊ฐ๊ฒฉ(15์ด)์ ์ธ ๊ฐ์ ํ์ฑ ์ธ์ ์ด
์์ผ๋ฉฐ, ๊ฐ ์ธ์ ์ ์ ๋ฐ์ ์๊ฐ(๊ฐ๊ฐ 7.5์ด)์ CPU์์ ๋ณด๋ด๊ณ ๋๋จธ์ง ์ ๋ฐ์ ์๊ฐ์ ์ ํด
์ํ๋ก ๋ณด๋ด๋ ๊ฒฝ์ฐ ํด๋น ์ํ๋ง ๊ฐ๊ฒฉ ๋์ CPU์ ๋ํด 3 x 7.5 / 15 = 1.5๊ฐ์ ํ์ฑ ์ธ์ ์ด
๋ํ๋ฉ๋๋ค. ํ๊ท ํ์ฑ ์ธ์ ์ฐจํธ์ ์ต๊ณ ๊ฐ์ [์ธ์คํด์ค ์ฒ๋ฆฌ๋] ์ฐจํธ์ ์ต๊ณ ๊ฐ๊ณผ
๋น๊ตํ์ญ์์ค. [ํ๊ท ํ์ฑ ์ธ์ ] ์ฐจํธ์ ํ์๋ ๋๊ธฐ ์ค์ธ ์ธ์ ์๊ฐ ๋ง์ผ๋ฉด ๋ด๋ถ ๊ฒฝํฉ์
๋ํ๋ด๋ ๊ฒ์ด์ง๋ง ์ฒ๋ฆฌ๋์ด ๋์ผ๋ฉด ํ์ฉํ ๋งํ ์ํฉ์ ๋๋ค. ๋ํ ๋ด๋ถ ๊ฒฝํฉ์ ๋ฎ์ง๋ง
์ฒ๋ฆฌ๋์ด ๋์ผ๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค๊ฐ ํจ์จ์ ์ผ๋ก ์ํ๋๊ณ ์๋ ๊ฒ์ด์ง๋ง, ๋ด๋ถ ๊ฒฝํฉ์ ๋์ง๋ง
์ฒ๋ฆฌ๋์ด ๋ฎ์ผ๋ฉด ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ๋์ ๊ณ ๋ คํ์ญ์์ค.
Oracle 10g EM Grid Control
- 64 -
ํ๊ท ํ์ฑ ์ธ์ ๊ทธ๋ํ์์ ์ฐ์ธก์ ๋ชจ๋ํฐ๋ง ๋๋ ๊ฐ ํญ๋ชฉ์ ์ด๋ฆ์ ํด๋ฆญํ๋ฉด ๊ฐ๊ฐ ์ธ๋ถ์
์ธ ๋ด์ฉ์ ๋ณด์ฌ์ฃผ๋ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค. ์๋๋ ๋๊ธฐ์ค์ธ ํ์ฑ ์ธ์ ์ ๋ํ์ฌ User I/O ๋ฅผ
ํด๋ฆญํ์ ๋ ๋ณด์ฌ์ง๋ ํ์ด์ง์ ๋๋ค.
ํ๊ท ํ์ฑ ์ธ์ ๊ทธ๋ํ์์ Concurrency ํญ๋ชฉ์ ํด๋ฆญํ๋ฉด ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ ํ์ธ ํ ์
์์ต๋๋ค.
๋๊ธฐ ์ค์ธ ํ์ฑ ์ธ์ ๊ทธ๋ํ ๋ณด๊ธฐ
[์ฑ๋ฅ] ํ์ด์ง์์ ์ ํํ ๋๊ธฐ ํด๋์ค์ ๋ํ ๋๊ธฐ ์ด๋ฒคํธ ๋ณด๊ธฐ
๋ค์์ ์ธก์ ๋จ์์ ์ต์์ ํญ๋ชฉ ๋ณด๊ธฐ
์ต์์ SQL
์ต์์ ์ธ์
์ต์์ ์๋น์ค
์ต์์ ๋ชจ๋
์ต์์ ์์
์ต์์ ํด๋ผ์ด์ธํธ
์ต์์ ํ์ผ (RAC ์ ์ธ)
์ต์์ ๊ฐ์ฒด (RAC ์ ์ธ)
Oracle 10g EM Grid Control
- 65 -
์ฒ๋ฆฌ๋ ์ฐจํธ - ํ๊ท ํ์ฑ ์ธ์ ์ฐจํธ์ ํ์๋๋ ๊ฒฝํฉ๊ณผ ์ฌ์ฉ์๋ฅผ ์ํด ์ํ๋๋
๋ฐ์ดํฐ๋ฒ ์ด์ค ์์ ๋์ ํ์ํฉ๋๋ค.
[์ด๋น] ๋ณด๊ธฐ์๋ ์ด๋น ๋ก๊ทธ์จ, ์ด๋น ํธ๋์ญ์ , ์ด๋น ๋ฌผ๋ฆฌ์ ์ฝ๊ธฐ ๋ฐ ์ด๋น ๋ฆฌ๋ ํฌ๊ธฐ๊ฐ
ํ์๋ฉ๋๋ค.
[ํธ๋์ญ์ ๋น ์] ๋ณด๊ธฐ์๋ ํธ๋์ญ์ ๋น ๋ฌผ๋ฆฌ์ ์ฝ๊ธฐ ๋ฐ ํธ๋์ญ์ ๋น ๋ฆฌ๋ ํฌ๊ธฐ๊ฐ
ํ์๋ฉ๋๋ค.
I/O ์ฐจํธ โ I./O์ ๊ณผ๋ ฆํ ์์ ๋์ ์ ํ๋ณ๋ก ํ์ํฉ๋๋ค.
๋๊ธฐ์ ๋จ์ผ ๋ธ๋ก ์ฝ๊ธฐ์ ๋ํ ๋๊ธฐ ์๊ฐ - ์ด ์ฐจํธ์ ํ์๋๋ ๋๊ธฐ ์๊ฐ์ด 10๋ฐ๋ฆฌ์ด
๋ฏธ๋ง์ผ ๊ฒฝ์ฐ ๋๋ถ๋ถ์ ์์คํ ์ด ๋ฌธ์ ์์ด ์๋ํ๋ ๊ฒ์ ๋๋ค.
ํจ์ ์ฐจํธ - RMAN, ์ง์ ์ฝ๊ธฐ, ์ง์ ์ฐ๊ธฐ ๋ฑ์ ๊ตฌ์ฑ ์์๋ฅผ ํ์ํฉ๋๋ค. I/O MB ๋๋
I/O ์์ฒญ์ ์ธ๋ถ ์ ๋ณด์ ๋ํ ์ค์๊ฐ ๋ฐ์ดํฐ๋ ๋ด์ญ ๋ฐ์ดํฐ๋ฅผ ๋ณผ ์ ์๋ [I/O ์ธ๋ถ
์ ๋ณด] ํ์ด์ง๋ก ์ด๋ํ๋ ค๋ฉด ์ฐจํธ ์ค๋ฅธ์ชฝ์ ์๋ ๋ฒ๋ก ์ค ํ๋๋ฅผ ๋๋ฅด์ญ์์ค.
I/O ์ ํ ์ฐจํธ - ์๋ ์ฝ๊ธฐ, ์๋ ์ฐ๊ธฐ, ๋๋ ์ฝ๊ธฐ, ๋๋ ์ฐ๊ธฐ ๋ฑ์ ๊ตฌ์ฑ ์์๋ฅผ
ํ์ํฉ๋๋ค
์๋น์ ๊ทธ๋ฃน ์ฐจํธ -- ๋ฆฌ์์ค ์๋น์ ๊ทธ๋ฃน์ ํ์ํฉ๋๋ค.
๋ณ๋ ฌ ์คํ ์ฐจํธ - ๋ณ๋ ง ์ง์์ ๊ด๋ ฆ๋ ์์คํ ์ธก์ ๋จ์๋ฅผ ํ์ํฉ๋๋ค. ์ด ์ฐจํธ์๋
์ํ๋ง๋ ์ธ์ ์์ ์ ์ต๊ณ ๋ฐฑ๋ถ์จ์ ๋ํ๋ด๋ ํน์ ๋๊ธฐ ์ด๋ฒคํธ๋ฅผ ๊ธฐ๋ค๋ฆฌ๋ ๋ณ๋ ง ์ง์๊ฐ
ํ์๋ฉ๋๋ค.
์๋น์ค ์ฐจํธ - ํ์๋ ๊ธฐ๊ฐ ๋์ ํด๋น ๋๊ธฐ ์ด๋ฒคํธ๋ฅผ ๊ธฐ๋ค๋ฆฌ๋ ์ต์์ ์๋น์ค๋ฅผ ํ์ํฉ๋๋ค.
๋จ, ํ์ฑ ์๋น์ค๋ง ํ์๋ฉ๋๋ค. ์๋น์ค์ ์ฐ๊ด๋ ๋ชจ๋ ๋๊ธฐ ํด๋์ค์ ๋ํ ์ธ์ ๋ก๋๋ฅผ
ํ์ํ๋ ์ค์๊ฐ ๋ฐ์ดํฐ๋ฅผ ๋ณผ ์ ์๋ [์๋น์ค ์์ ] ํ์ด์ง๋ก ์ด๋ํ๋ ค๋ฉด ์ฐจํธ ์ค๋ฅธ์ชฝ์
์๋ ์๋น์ค ๋ฒ๋ก ์ค ํ๋๋ฅผ ๋๋ฅด์ญ์์ค.
5.2.2. Using Advisors in Grid Control
Grid Control์์๋ ์ฑ๋ฅ๊ณผ ๊ด๋ ฆ๋ ๋ช๊ฐ์ง ๊ถ๊ณ ์(Advisors)๋ฅผ ์ ๊ณตํฉ๋๋ค.
ADDM(Automatic Database Diagnostic Monitor)
Segment Advisor
Undo Management
Memory Advisor
SQL Access Advisor
SQL Tuning Advisor
MTTR Advisor
Oracle 10g EM Grid Control
- 66 -
5.2.3. ADDM(Automatic Database Diagnostic Monitor)
Oracle Database 10g ์์ ADDM ์ ์ฌ์ฉํ๋ฉด ์๋์ผ๋ก ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ ๋ฌธ์ ๋ฅผ ์ง๋จํ๊ณ , ์
์ธ์ ๊ท๋ช ํ๋ฉฐ, ํด๊ฒฐ์ฑ์ ์ ์ํฉ๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ ํญ ํ๋จ์ ๋งํฌ์์ ์ค์ ๊ถ๊ณ ์๋ฅผ ์ ํํ๋ฉด ๋ค์ํ ๊ถ๊ณ ์(Advisor)๋ฅผ
์ฌ์ฉํ ์ ์์ต๋๋ค.
ADDM ํญ๋ชฉ์ ์ ํํ๋ฉด ํ์ฌ ๋๋ ๊ณผ๊ฑฐ์์ ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ์ ๋ถ์ํ ์ ์์ต๋๋ค.
์ํฅ ํญ๋ชฉ์์๋ ADDM ์์ ๊ถํธํ๋ ๋ด์ฉ์ด ํ์๋ฉ๋๋ค.
์ํฅ์์ ๊ถ๊ณ ํ๋ ๋ด์ฉ์ ํด๋ฆญํ๋ฉด ์ธ๋ถ ์ ๋ณด๋ฅผ ๋ณผ ์ ์์ผ๋ฉฐ, ํนํ SQL Tuning ๊ณผ ๊ด๋ ฆํ
์ฌ ํน์ TOP SQL ์ ๋ํ ์ธ๋ถ์ ์ธ ๋ด์ฉ์ ์ฐธ๊ณ ํ์ค ์ ์์ต๋๋ค.
Statistics
SQL Activity
SQL Plan
Tuning Information
5.2.4. Top Consumers
์ต์์ ์๋น์ ํ์ด์ง์์๋ ์ต๊ทบ 5 ๋ถ ๋์์ด ์ต์์ ์๋น์ค, ๋ชจ๋, ํด๋ผ์ด์ธํธ, ์์ ์ ๋ํ ์
๋ณด๋ฅผ ์ ๊ณตํฉ๋๋ค.
Oracle 10g EM Grid Control
- 67 -
5.2.5. Instance Activity
์ฑ๋ฅ ํ์ด์ง์ ์ถ๊ฐ ๋ชจ๋ํฐ๋ง ๋งํฌ ํญ๋ชฉ์๋ ์ธ์คํด์ค ์์ ๋ฐ ํ๋์ ๊ดํ ํ์ด์ง๊ฐ ๋งํฌ๋์ด
์์ต๋๋ค. ์ปค์, ํธ๋์ญ์ , ์ธ์ , Logical I/O, Physical I/O, Network I/O, ํ ์ด๋ธ ๋ฑ์ ๋ํ ์์ ์ฐจ
ํธ๋ฅผ ๋ณด์ฌ์ค๋๋ค.
5.2.6. Historical SQL (AWR)
SQL ํ๋ ๊ถ๊ณ ์๋ ์ค๋ ์ท์ ํตํด ์ป์ด์ง ๋ฐ์ดํฐ๋ฅผ ๋ถ์ํ์ฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์คํด์ค์ ์ํ์
ํต๊ณ์น ํ์ธํ๊ณ , Top Event ๋ฐ Top SQL ์ ๋ํ ๋ถ์์ ํตํด ์ ๋ฐ์ ์ธ ํ๋์ ์ํ ์๋ฃ๋ก ํ
์ฉํ ์ ์์ต๋๋ค.
์ฑ๋ฅ ํ์ด์ง์ ์ถ๊ฐ ๋ชจ๋ํฐ๋ง ๋งํฌ ํญ๋ชฉ ์ค ์ค๋ ์ท์ ์ ํํ์ฌ ์ ์ฅ๋ ์ด๋ ฅ์ ํ์ธํ๊ณ , ์ด๊ฒ์
AWR ๋ณด๊ณ ์๋ฅผ ํตํด ์ผ๋ชฉ์์ฐํ๊ฒ ์์ฝ ์ ๋ฆฌ๋ ๋ด์ฉ์ ๋ณผ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 68 -
๋ฐ์ดํฐ๋ฒ ์ด์ค โ ์๋ฒ ํญ์ ํต๊ณ๊ด๋ฆฌ โ ์๋ ์์ ๋ก๋ ์ ์ฅ์(AWR)
AWR ๋ณด๊ณ ์
Oracle 10g EM Grid Control
- 69 -
5.2.7. Active Session History (ASH) Report
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฑ๋ฅ ๋ถ์ ๋ฆฌํฌํธ๋ ํน์ ์์ ์ ์ธ์ ๊ธฐ๋ฐ์ผ๋ก ์ถ์ถ๋ ๋ฐ์ดํฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ๊ณ ์
์ต๋๋ค. ์ง์ ๋ ๊ธฐ๊ฐ ๋์์ AWR ์ค๋ ์ท์์์ ์ฒ์๊ณผ ๋ ๋ ์์ ์ป์ด ๋ถ์ํ ๊ฒฐ๊ณผ์ ๋๋ค.
AWR ๋ณด๊ณ ์์๋ ๋ค์๊ณผ ๊ฐ์ ํญ๋ชฉ์ด ํฌํจ๋ฉ๋๋ค.
Top Events
Load Profile
Top SQL
Top Sessions
Top Objects/Files/Latches
Activity Over Time
Oracle 10g EM Grid Control
- 70 -
5.2.8. Top Jobs
์ต์์ ์์ ํ์ด์ง์์๋ ์ธ์ , ์๋น์ค, ๋ชจ๋, ์์ , ํด๋ผ์ด์ธํธ, ํ์ผ, ๊ฐ์ฒด, SQL, PL/SQL์
๋ํ ๋ชจ๋ ๋๊ธฐ ํด๋์ค ๋ฐ ๊ด๋ ฆ ํต๊ณ๋ฅผ ํ์ํ ์ ์์ต๋๋ค.
ASH(ํ์ฑ ์ธ์ ๋ด์ญ) ๋ณด๊ณ ์๋ฅผ ์คํํ ์ ์์ต๋๋ค.
SQL ํ๋ ๊ถ๊ณ ์ ์ผ์ ์ ์ค์ ํ ์ ์์ต๋๋ค.
SQL ํ๋ ์งํฉ์ ์์ฑํ ์ ์์ต๋๋ค.
์ต์์ SQL๊ณผ ์ธ์ ์ ๋ณด๋ฅผ ํตํด ์ํธ์ ์ผ๋ก ์ฑ๋ฅ ๋ฌธ์ ๋ฅผ ์กฐ์ฌํด ๋๊ฐ ์ ์์ต๋๋ค.
5.2.9. Hang Analysis
์ ์ง ๋ถ์ ํ์ด์ง์์๋ ๋ณ๋ชฉ์ ์์ธ์ด ๋๋ ์ธ์ ์ ํ์ธํ๊ณ , ํด๋น ์ธ์ ์ ์ฐจ๋จํ๊ฑฐ๋ ์ฐจ๋จ๋
์ธ์ ์ ๋ํ ์ธ์ ์ธ๋ถ ์ ๋ณด๋ฅผ ๊ฒํ ํ ์ ์์ต๋๋ค.
ํ ํด๋ก์ง ์ธ์ ID ํ์ธ โ ์ธ์ ์์ ์ ๋ถ์ํ์ฌ ํด๋น ์ธ์ ์ ์ข ๋ฃํ ์ง ์ฌ๋ถ๋ฅผ ํ๋จํ ์
์์ต๋๋ค. ํ ํด๋ก์ง ์ธ์ ID ๋ฅผ ํด๋ฆญํ๋ฉด ๋ค์๊ณผ ๊ฐ์ ์ธ๋ถ ์ ๋ณด๋ฅผ ํ์ธ ํ ์ ์์ต๋๋ค.
์ธ์ ID
์ธ์ ๊ฐ
์ฐจ๋จ ์ธ์ ID
์ผ๋ ฆ ๋ฒํธ
SQL ์ฃผ์
SQL ํด์ ๊ฐ
ํ์ผ ๋ฒํธ
Oracle 10g EM Grid Control
- 71 -
์ด๋ฒคํธ ์ด๋ฆ
์ฌ์ฉ์ ID
5.3. Database Management
5.3.1. Database Administration Features
Grid Control ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ํ ๊ธฐ๋ฅ๋ค์ ์ ๊ณตํฉ๋๋ค.
๋ณด์ ๊ด๋ฆฌ
์คํค๋ง ๊ด๋ฆฌ
์ ์ฅ ๊ณต๊ฐ ๊ด๋ฆฌ
์ธ์คํด์ค ๊ด๋ฆฌ
๋ฐฑ์ ๋ฐ ๋ณต๊ตฌ
์์ ์๋น ๊ทธ๋ฃน ๋ฐ ๊ณํ (Resource Consumer Groups and Plans)
ํ๋ก์์ , ํจ์, ํจํค์ง, ์๋ฐ ํด๋์ค ๋ฑ์ ์์ค ํ์ ์ ๊ณต
5.3.2. Database Availablity
Grid Control ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๊ฐ์ฉ์ฑ์ ์ํ ์ค์ ๋ฐ ๊ด๋ฆฌ๋ฅผ ์์ฝ๊ฒ ํ ์ ์์ต๋๋ค.
๋ฐฑ์ ๋ฐ ๋ณต๊ตฌ ๋ฅผ ์ํ ์ค์ ๋ฐ ๊ด๋ฆฌ๋ฅผ ํ ์ ์์ต๋๋ค.
์ค์ - ๋ฐฑ์ /๋ณต๊ตฌ ์ค์ , Recovery Catalog ์ค์
๊ด๋ฆฌ - ๋ฐฑ์ ์ผ์ ์ก๊ธฐ, ๋ฐฑ์ ๊ด๋ฆฌ, ๋ฐฑ์ ๋ณด๊ณ ์, ๋ณต์ ์ง์ ๊ด๋ฆฌ, ๋ณต๊ตฌ ์ํ, ํธ๋์ญ์ ๋ณด๊ธฐ
Data Guard ๋ฅผ ์์ฝ๊ฒ ๊ตฌ์ฑํ ์ ์์ต๋๋ค.
RAC ์ธ ๊ฒฝ์ฐ ์๋น์ค ๊ด๋ฆฌ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.
Oracle 10g EM Grid Control
- 72 -
5.3.3. Storage Management
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ ์ฅ ๊ณต๊ฐ๊ณผ ๊ด๋ ฆํ ์ ๋ณด ๋ณด๊ธฐ ๋ฐ ์ค์ ์ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
์ ์ฅ ์์ญ ๊ด๋ฆฌ๋ ๋ค์ ํญ๋ชฉ์ ํฌํจํ๊ณ ์์ต๋๋ค.
Control Files
Tablespaces
Temporary Tablespaces
Datafiles
Undo Segments(Rollback Segments)
Redo Log Groups
Archive Logs
Migrate ASM
Make Locally Managed Tablespace
ํ ์ด๋ธ์คํ์ด์ค ๊ด๋ฆฌ ํญ๋ชฉ์ ๋ณด์ฌ์ค๋๋ค. ๋ฐ์ดํฐ ํ์ผ ๋ณด๊ธฐ ๋ฐ ์ถ๊ฐ ๋ฑ์ ์์ ์ ํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 73 -
5.3.4. Database Configuration
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์คํด์ค๋ฅผ ๊ตฌ์ฑํ๋ ํญ๋ชฉ๋ค์ ๋์ดํ๊ณ ๊ทธ ๊ฐ์ ์์ ํ ์ ์์ต๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ตฌ์ฑ์๋ ๋ค์๊ณผ ๊ฐ์ ํญ๋ชฉ์ผ๋ก ๊ตฌ์ฑ๋์ด ์์ต๋๋ค.
๋ฉ๋ชจ๋ฆฌ ๊ถ๊ณ ์
์๋ ์คํ ์ทจ์ ๊ด๋ฆฌ
์ด๊ธฐํ ๋งค๊ฐ๋ณ์ (SPFILE)
๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ธฐ๋ฅ ์ฌ์ฉ๋ ๋ณด๊ธฐ
๋ฉ๋ชจ๋ฆฌ ๊ถ๊ณ ์ ํ์ด์ง์์๋ ํ ๋น๋ SGA์ PGA ๊ตฌ์ฑ์์ ๋ด์ญ์ ๋ณด์ฌ ์ค๋๋ค.
Oracle 10g EM Grid Control
- 74 -
์๋ ์คํ ์ทจ์ ๊ด๋ฆฌ ํ์ด์ง์์๋ ์ธ์คํด์ค์ ๋ํ ํ์ฌ ์คํ ์ทจ์ ์ค์ ์ ํ์ธํ๊ณ ์คํ
์ทจ์ ๊ถ๊ณ ์๋ฅผ ์ฌ์ฉํ์ฌ ์ธ๋ ํ ์ด๋ธ์คํ์ด์ค ์๊ตฌ ์ฌํญ์ ๋ถ์ํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 75 -
Oracle 10g EM Grid Control
- 76 -
์ด๊ธฐํ ๋งค๊ฐ๋ณ์ ํ์ด์ง์์๋ ํ์ฌ ์ธ์คํด์ค์ ์ค์ ๋ ๋งค๊ฐ๋ณ ์์ SPFile์ ์ค์ ๊ฐ์
ํ์ธํ๊ณ , ์ผ๋ถ๋ ๋ณ๊ฒฝ ํ ์ ์ฉ์ด ๊ฐ๋ฅํฉ๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ธฐ๋ฅ ์ฌ์ฉ๋ ํต๊ณ ํ์ด์ง์์๋ ๋ค์ํ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ธฐ๋ฅ์ด ์ฌ์ฉ๋๋
๋๋ต์ ์ธ ๋น๋๋ฅผ ์ ๊ณตํฉ๋๋ค.
Oracle 10g EM Grid Control
- 77 -
5.4. Data Management
๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์คํค๋ง ํญ๋ชฉ์์๋ ๋ฐ์ดํฐ ๋ฐ ๊ฐ์ข ์ค๋ธ์ ํธ์ ๊ด๋ฆฌ๋ฅผ ์ํ ๊ธฐ๋ฅ๋ค์ ์ ๊ณตํ๊ณ
์์ต๋๋ค.
5.4.1. Database Objects
๋ฐ์ดํฐ ๋ฒ ์ด์ค๋ฅผ ๊ตฌ์ฑํ๊ณ ์๋ ์ค๋ธ์ ํธ๋ฅผ ๊ด๋ฆฌํฉ๋๋ค. ํ ์ด๋ธ, ์ธ๋ฑ์ค, ๋ทฐ(View), ๋์์ด
(Synonym), ์ํ์ค(Sequence), ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋งํฌ(Database Link), ๋๋ ํ ๋ฆฌ ๊ฐ์ฒด(Directory) ์ ์
์ฑ ๋ฐ ๋ณ๊ฒฝ์ด ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ฐ ๊ฐ์ฒด์ ๋ํ ์ฌ๊ตฌ์ฑ ์์ ์ ์ํ ํ ์ ์์ต๋๋ค.
ํ ์ด๋ธ ๊ด๋ฆฌ โ ํ ์ด๋ธ ๋ชฉ๋ก ๋ณด๊ธฐ ๋ฐ ์์ฑ/๋ณ๊ฒฝ/์ญ์ ์ด ๊ฐ๋ฅํฉ๋๋ค.
ํ ์ด๋ธ์ ์์ฑํฉ๋๋ค.
Oracle 10g EM Grid Control
- 78 -
์ธ๋ฑ์ค ๊ตฌ์ฑ ๋ชฉ๋ก์ ์กฐํํฉ๋๋ค.
๋ทฐ ๊ตฌ์ฑ ๋ชฉ๋ก์ ์กฐํํฉ๋๋ค.
5.4.2. Objects Reorganization
๊ฐ์ฒด๋ฅผ ์ฌ๊ตฌ์ฑ ํฉ๋๋ค. ๋ค์์ ์ํด ์ฌ๊ตฌ์ฑ์ด ํ์ํฉ๋๋ค.
- ๋จํธํ๋ ์ธ๋ฑ์ค ์ฌ๊ตฌ์ถ
- ๋จํธํ๋ ํ ์ด๋ธ ์ฌ๊ตฌ์ถ
- ๋ค๋ฅธ ํ ์ด๋ธ์คํ์ด์ค์ ๊ฐ์ฒด ์ฌ๋ฐฐ์น
- ์ต์ ์ ์ ์ฅ ์์ญ ์์ฑ์ผ๋ก ๊ฐ์ฒด ์ฌ์์ฑ
1) ์ ํ์ ์ค์ ํฉ๋๋ค.
Oracle 10g EM Grid Control
- 79 -
2) ์ฌ๊ตฌ์ฑํ ๊ฐ์ฒด์ ์ ํํฉ๋๋ค.
3) ๊ฐ์ฒด ์ฌ๊ตฌ์ฑ๊ณผ ๊ด๋ ฆํ ์ต์ ์ ์ค์ ํฉ๋๋ค.
4) ๊ฐ์ฒด ์ฌ๊ตฌ์ฑ ์คํฌ๋ฆฑํธ ์์ฑ๋ฉ๋๋ค.
5) ๊ฐ์ฒด ์ฌ๊ตฌ์ฑํ ์ผ์ ์ ์ ํํฉ๋๋ค.
Oracle 10g EM Grid Control
- 80 -
6) ๊ฐ์ฒด ์ฌ๊ตฌ์ฑ ์ ์คํฌ๋ฆฑํธ๋ฅผ ๊ฒํ ํฉ๋๋ค.
7) ์์ ์ ์ ์ถํ๋ฉด ์ผ์ ์ด ๋ฑ๋ก๋๊ณ ์ฌ๊ตฌ์ฑ ์์ ์ ์์ํฉ๋๋ค.
5.4.3. Data Masking
๋ฐ์ดํฐ ๋ง์คํน์ ํ ์คํธ ๋๋ ๋น์ด์ฉ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ฏผ๊ฐํ ์ ๋ณด๋ฅผ ์์ ํ๊ฒ ํ๋ ํ๋ก์ธ์ค์
๋๋ค. ์ด ๊ธฐ๋ฒ์ ์ง์ง์ฒ๋ผ ๋ณด์ด๋ ์ ์ฌํ ์ ํ์ ๊ฐ์ง ๋ฐ์ดํฐ๋ก ์ ๋ณด๋ฅผ ๊ฒน์ณ์์ผ๋ก์จ ๋ฏผ๊ฐํ ์
๋ณด๋ฅผ ์์ฅํ๋ ๊ฒ์ ๋๋ค. ๋ง์คํน ์ ์๋ ๋ง์คํฌ๋ ์ด ๋ฐ ๋ง์คํฌ๋ ๋ฐ์ดํฐ์ ํ์์ ์ ์ํฉ๋๋ค.
๋ง์คํน ์์ ์ ๋ํด ์ ๋ง์คํน ์ ์๋ฅผ ์์ฑํ๊ฑฐ๋ ๊ธฐ์กฒ ์ ์๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ํ์ ๋ผ์ด
๋ธ๋ฌ๋ฆฌ๋ ๋ฐ๋ก ์ฌ์ฉ ๊ฐ๋ฅํ ๋ง์คํน ํ์ ๋ชจ์์ ํฌํจํฉ๋๋ค.
์ปฌ๋ผ์ ์ผ๋ถ ํญ๋ชฉ์ ๋ค๋ฅธ ๋ฌธ์์ด๋ก ๋์ฒดํ์ฌ ๋ฐ์ดํฐ๋ฅผ ๋ณดํธํ๊ณ ์ ํ ๋ ์ฃผ๋ก ์ฌ์ฉ๋ฉ๋๋ค.
Oracle 10g EM Grid Control
- 81 -
๋ง์คํน ์ ์๋ฅผ ์์ฑํ๊ธฐ ์ ์ ๋ค์ ๊ถ๊ณ ์ฌํญ ์ ๋ณด๋ฅผ ์์งํ์ญ์์ค.
์ ํํ ํ์์ด ๊ฒ์ฌ ์ ์ฝ ์กฐ๊ฑด์ ์๋ฐํ์ง ์๊ณ ๋ฐ์ดํฐ๋ฅผ ์ฌ์ฉํ๋ ์์ฉ ํ๋ก๊ทธ๋จ์
์ฐจ๋จํ์ง ์๋์ง ํ์ธํ์ญ์์ค.
ํธ๋ฆฌ๊ฑฐ, PL/SQL ๋ฑ์ ๊ฒฝ์ฐ ๋ฐ์ดํฐ ๋ง์คํน์ ๊ฐ์ฒด๋ฅผ ์ฌ์ปดํ์ผํฉ๋๋ค.
๋ถํ ํ ์ด๋ธ์ ๋ง์คํนํ๋ ๊ฒฝ์ฐ, ํนํ ๋ถํ ์์ญ ํค๋ฅผ ๋ง์คํนํ๋ ๊ฒฝ์ฐ ์ฃผ์ํ์ญ์์ค.
์ด๋ฌํ ๊ฒฝ์ฐ ํ์ด ๋ค๋ฅธ ๋ถํ ์์ญ์ผ๋ก ์ด๋ํ ์ ์์ต๋๋ค.
๋ฐ์ดํฐ ๋ง์คํน์ ํด๋ฌ์คํฐํ๋ ํ ์ด๋ธ์ ์ง์ํ์ง ์์ต๋๋ค. ๋ฐ์ดํฐ ๋ง์คํน์ ๊ฐ์ฒด
ํ ์ด๋ธ, XML ํ ์ด๋ธ, ๊ฐ์ ์ด ๋ฑ์์ ๋ง์คํน ์ ๋ณด๋ฅผ ์ง์ํ์ง ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๋ง์คํน์
๋ํด ๊ด๊ณํ ํ ์ด๋ธ์ด ์ง์๋ฉ๋๋ค.
๊ฐ์ฒด๊ฐ ๋ทฐ, ๊ตฌ์ฒดํ๋ ๋ทฐ, PL/SQL ๋ฑ๊ณผ ๊ฐ์ ํ ์ด๋ธ์ ๋งจ ์์์ ๊ณ์ธตํ๋ ๊ฒฝ์ฐ ์ ํจํ๋ฅผ
์ํด ์ฌ์ปดํ์ผ๋ฉ๋๋ค.
1) ์์ฑ์ ๋๋ฌ ๋ฐ์ดํฐ ๋ง์คํน ์์ฑ ๋จ๊ณ๋ฅผ ์์ํฉ๋๋ค.
2) ๋ง์คํนํ ํ ์ด๋ธ์ ์ด์ ์ ํํฉ๋๋ค.
3) ๋ง์คํน ์ ์๋ฅผ ์์ฑํฉ๋๋ค.
Oracle 10g EM Grid Control
- 82 -
4) ์์ฑ๋๋ฉด ์คํฌ๋ฆฑํธ ์์ฑ์ ๋๋ฌ ํด๋น ์ปฌ๋ผ์ ๋ํ ๋ง์คํน ์ต์ ์ ์ค์ ํฉ๋๋ค.
5.4.4. User Defined Types
์ฌ์ฉ์๊ฐ ์ ์ํ ๋ฐฐ์ด ์ ํ, ๊ฐ์ฒด ์ ํ, ํ ์ด๋ธ ์ ํ์ ๋ํ์ฌ ๊ด๋ฆฌํฉ๋๋ค.
๊ฐ ์ ํ ๋ชฉ๋ก์ ์ด๋ฆ์ ํด๋ฆญํ๋ฉด ์ ์๋ ์ ํ์ ํน์ฑ์ ํ์ธํ ์ ์์ต๋๋ค.
Oracle 10g EM Grid Control
- 83 -
6. Enterprise Manager Tip
6.1. Enterprise Manager Framework Security ํ์ฑํ
Enterprise Manager Framework Security ๋ฅผ ํ์ฑํ์ํค๊ธฐ ์ํด์๋ ์ถ๊ฐ์ ์ธ ์ค์ ์ด ํ์ํฉ๋๋ค.
์๋์ ๋ด์ฉ๋๋ก OMS ๋ฅผ ๋ณด์ํ์ํค๊ณ OMA ์ ๋ฐ์ดํฐ๋ฅผ ๋ค์ update ํ๋ฉด ๋ฉ๋๋ค.
1. OMS ๋ฅผ โopmnctl stopallโ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ง์ํต๋๋ค. ํด๋น ๋ช ๋ น์ด๋ก Oracle HTTP
Server ์ ๋ค๋ฅธ ๊ตฌ์ฑ์์๋ค์ด ์ ์ง๋ฉ๋๋ค.
2. โemctl secure omsโ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ OMS ์ ๋ณด์๋ชจ๋๋ฅผ ํ์ฑํ์ํต๋๋ค.
3. โopmnctl startallโ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ OMS ์ ์ ์ฒด ์๋น์ค๋ฅผ Restart ์ํต๋๋ค.
4. OMA ์๋น์ค๋ฅผ ๋ฉ์ถ ํ, โemctl secure agentโ ๋ช ๋ น์ด๋ก OMA ์ ๋ณด์์ค์ ์ ํ์ฑํ ์ํจ ํ,
์๋น์ค๋ฅผ ์ฌ์์ ํฉ๋๋ค.
5. OMA ์ ๋ณด์๋ชจ๋๊ฐ ๋ชจ๋ ํ์ฑํ ๋๋ฉด, OMS ์์ โemctl secure lockโ ๋ช ๋ น์ด๋ฅผ ์ํํ์ฌ,
HTTP ํฌํธ์ Lock ์ ๊ฑธ์ด๋์ต๋๋ค. ์ด๋ ๊ฒ ๋๋ฉด ๋ณด์๋ชจ๋์ธ HTTPS ๋ก๋ง ์๋น์ค๊ฐ ๋ฉ๋๋ค.
[์ฐธ๊ณ ] โemctl secureโ ๋ช ๋ น์ด์ ๋ํ ์๋ฌ๋ โ$ORACLE_HOME/sysman/log/secure.logโ๋ฅผ ์ฐธ๊ณ ํ
์ฌ ํด๊ฒฐํ๋ฉด ๋ฉ๋๋ค.
6.2. Grid Control์์ SYSMAN ์ ์ ์ ํจ์ค์๋ ๋ณ๊ฒฝ
Grid Control ์์ SYSMAN ์ ์ ์ ํจ์ค์๋๋ OMR ๋ฟ๋ง ์๋๋ผ OMS ์๋ ์ํธํ๋์ด ์ ์ ๋
์ด ์๊ธฐ ๋๋ฌธ์, OMS ์ OMR ์ SYSMAN ์ ์ ํจ์ค์๋๊ฐ ๋ค๋ฅผ ๊ฒฝ์ฐ OMS ๋ฅผ ์์์ํค๊ฑฐ๋ ๊ธฐ
๋ฅ์ ์ฌ์ฉํ ์ ์๊ฒ ๋ฉ๋๋ค. ๋ฐ๋ผ์ ์๋์ ๊ฐ์ ์ ์ฐจ๋ก SYSMAN ์ ์ ์ ํจ์ค์๋๋ฅผ ๋ณ๊ฒฝํ์ฌ
์ผ ํฉ๋๋ค.
1. SYSMAN ์ ์ ์ ํจ์ค์๋๋ฅผ ๋ณ๊ฒฝํ๋ ๋์ Lock ์ด ๋ฐ์ํ๋ ๊ฒ์ ๋ง๊ธฐ ์ํด, ๋ชจ๋ํฐ๋งํ๊ณ
์๋ Agent ๋ค์ ๋ชจ๋ Stop ์ํต๋๋ค. ( $emctl stop agent )
2. OMS ์๋น์ค๋ฅผ ์ ์ง์ํต๋๋ค. ( $OMS_HOME/opmn/bin/opmnctl stopall )
3. emoms.properties ํ์ผ์ ๋ฐฑ์ ํ๊ณ , ์๋์ ๊ฐ์ด ์์ ํฉ๋๋ค.
$OMS_HOME/sysman/config/cp emoms.properties emoms.properties.orig
$vi emoms.properties
oracle.sysman.eml.mntr.emdRepPwd=new_password
oracle.sysman.eml.mntr.emdRepPwdEncrypted=FALSE
Oracle 10g EM Grid Control
- 84 -
4. OMR ์ SYSMAN ์ ์ ์ ํจ์ค์๋๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค.
SQL> alter user sysman identified by <newpassword>;
5. OMS ์๋น์ค๋ฅผ ์ฌ์์ํฉ๋๋ค.
$OMS_HOME/opmn/bin/opmnctl startall
$OMS_HOME/sysman/config/vi emoms.properties
(oracle.sysman.eml.mntr.emdRepPwdEncrypted ์ ๊ฐ์ FALSE ์์ TRUE ๋ก ๋ณ๊ฒฝํฉ๋๋ค.)
6. Grid Control Console ์์ SYSMAN ์ ํจ์ค์๋๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค. ("OMS and Repository")
1) Grid Control Console ์ ๋ก๊ทธ์ธ
2) ํ์ด์ง ์ค๋ฅธ์ชฝ ์์ Setup ์ ํด๋ฆญ
3) Management Services and Repository ํญ์ ์ ํ
4) "Overview" ํ์ด์ง ๋ฐ์, "Monitoring Configuration" ๋งํฌ๋ฅผ ํด๋ฆญํ๋ฉด ์๋์ ๊ฐ์ ์๋ฌ๋ฉ์์ง
๊ฐ ๋ํ๋ฉ๋๋ค.
Communication from the Oracle Management Service host to the Agent host failed. Refer to
help for details.
IOException in sending Request :: Connection refused
์ด๊ฒ์ Agent ๊ฐ ์์๋์ง ์์๊ธฐ ๋๋ฌธ์ด๋ฉฐ, โOKโ๋ฅผ ์ ํํฉ๋๋ค.
5) ์ฒซ๋ฒ์งธ ๋จ๊ณ์์ ์ ์ง์์ผฐ๋ Agent ๋ฅผ ์ฌ์์ ์ํต๋๋ค. ($ emctl start agent )
6) Grid Control console ๋ก ๋์๊ฐ "Monitoring Configuration"๋ฅผ ๋ค์ํ๋ฒ ํด๋ฆญํ๋ฉด Agent ๊ฐ ์
์๋ฉ๋๋ค. Monitoring Configuration ํ์ด์ง์์ "Repository password" ํ๋์ ๋ณ๊ฒฝํ SYSMAN
์ ํจ์ค์๋๋ฅผ ์ค์ ํฉ๋๋ค.
7) โOKโ๋ฅผ ํด๋ฆญํ๋ฉด targets.xml ํ์ผ์ด ์ ๋ฐ์ดํธ ๋๋ฉด์ SYSMAN ์ ์ ์ ํจ์ค์๋๊ฐ ๋ณ๊ฒฝ๋ฉ๋๋ค.
Oracle 10g EM Grid Control
- 85 -
6.3. Oracle Management Service(OMS) ์๋ฌ์ ํ์ธ๋ก๊ทธ
OMS ์ logging ๊ด๋ ฆ ์ค์ ์ $OMS_HOME/sysman/config/emomslogging.properties ์์
์ค์ ํ ์ ์์ต๋๋ค.
log4j.category.em.ovm=DEBUG, emovmlogAppender
log4j.appender.emovmlogAppender=org.apache.log4j.RollingFileAppender
log4j.appender.emovmlogAppender.File=
/private/rahgupta/app/oracle/product/10.2.0/EMHomes/oms10g/sysman/log/emovm.log
log4j.appender.emovmlogAppender.Append=true
log4j.appender.emovmlogAppender.MaxFileSize =5000000
log4j.appender.emovmlogAppender.MaxBackupIndex=100
log4j.appender.emovmlogAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.emovmlogAppender.layout.ConversionPattern=%d [%t] %-5p %c{2} %M.%L -
%m\n
๋ํ log ๋ค์ ํ์ธํด์ผํ ๊ฒฝ์ฐ OMS ์์ ์ฃผ๋ก ํ์ธํด์ผํ log ๋ ์๋์ ๊ฐ์ต๋๋ค.
$OMS_HOME/sysman/log/emoms.log
$OMS_HOME/sysman/log/emoms.trc
$OMS_HOME/sysman/log/emovm.log*
$OMS_HOME/opmn/logs/OC4J~OC4J_EM~default_island~1
6.4. Oracle Management Agent(OMA) ์๋ฌ์ ํ์ธ๋ก๊ทธ
Grid Control Console ์ โVirtual Server Home Pageโ ํ์ด์ง์์ Agent ์ Alert ๊ณผ Agent ๋ก๊ทธ๋ฅผ
ํ์ธํ ์ ์์ต๋๋ค. ํด๋น ํ์ด์ง๋ ์๋์ ๊ฐ์ ๋ก๊ทธ๋ค์ ํ์ธํฉ๋๋ค.
$AGENT_HOME/sysman/log/emagent.log
$AGENT_HOME/sysman/log/emagent.nohup
$AGENT_HOME/sysman/log/emagent.trc
$AGENT_HOME/sysman/log/emagentfetchlet.log
$AGENT_HOME/sysman/log/emagentfetchlet.trc
- emagent.log = Agent process ๋ฅผ Logging ํ๋ฉฐ, ์ ์ฒด ๋ด์ฉ์ local language ๋ฅผ ์ฌ์ฉํฉ๋๋ค.
emagent.nohup = Agent watchdog ์ ์์ ๋ด์ญ๋ฑ์ Logging ํฉ๋๋ค.
- emagent.trc = Agent process ์ Trace ํ์ผ์ด๋ฉฐ, ์์ด๋ก๋ง ๊ธฐ๋ก๋ฉ๋๋ค.
- emagentfetchlet.log = Java Fetchlets ์ ๋ํด Logging ํฉ๋๋ค.
- emagentfetchlet.trc = Java Fetchlets ์ Trace ํ์ผ์ ๋๋ค.
Oracle 10g EM Grid Control
- 86 -
6.5. Debug๋ฅผ ์ํ Agent Logging ๋ ๋ฒจ ์กฐ์
Agent ์ Debug ๋ ๋ฒจ์ ์กฐ์ ํ๊ธฐ ์ํด์๋ ์๋์ ๊ฐ์ ์ ์ฐจ๊ฐ ํ์ํฉ๋๋ค.
1. $AGENT_HOME/sysman/config/emagentlogging.properties ํ์ผ์ ์๋ ๋ด์ฉ๋ค์ ๋ณ๊ฒฝํฉ๋๋ค.
log4j.rootCategory=DEBUG (๊ธฐ๋ณธ๊ฐ=WARN) , emagentlogAppender, emagenttrcAppender
2. $AGENT_HOME/sysman/config/emd.properties ํ์ผ์ ์๋ ๋ด์ฉ๋ค๋ ๋ณ๊ฒฝํฉ๋๋ค.
tracelevel.command=DEBUG
tracelevel.Dispatcher=DEBUG
3. ์ ๋ด์ฉ๋ค์ด ๋ชจ๋ ๋ณ๊ฒฝ๋์๋ค๋ฉด, ์ค์ ๋ด์ฉ์ ์ ์ฉํ๊ธฐ ์ํด์ฌ Agent ๋ฅผ ์ฌ์์ํฉ๋๋ค.
$AGENT_HOME/bin/emctl reload agent
Trace Level Level ๋ณ ๋ชฉ์
ERROR Trace ํ์ผ์ ์ค์ํ ์๋ฌ ๋ด์ฉ๋ค์ ํฌํจํฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก ๊ฐ์ฅ ์ ์
Tracing Data ์์ Logging ํฉ๋๋ค.
WARN ์ค์ํ ์๋ฌ ๋ด์ฉ๋ค๊ณผ ํจ๊ป ๊ฒฝ๊ณ ์ฑ ์ ๋ณด๋ฅผ ํฌํจํฉ๋๋ค. [๊ธฐ๋ณธ๊ฐ]
INFO ์ค์ํ ์๋ฌ ๋ด์ฉ๊ณผ ๊ฒฝ๊ณ ์ฑ ์ ๋ณด์ ํจ๊ป ์ถ๊ฐ ์ ๋ณด๋ค์ ํฌํจํฉ๋๋ค.
DEBUG ์ค์์๋ฌ ์ ๋ณด์ ๊ฒฝ๊ณ ์ฑ ๋ด์ฉ ๊ทธ๋ฆฌ๊ณ ์ถ๊ฐ์ ์ธ ์ ๋ณด๋ฅผ ํฌํจํ๋ฉฐ,
debugging ์ ๋ํ ์ ๋ณด๋ Logging ๋ฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก ๊ฐ์ฅ ๋ง์
Tracing Data ์์ Logging ํฉ๋๋ค.
Logging Level ๋น๊ต = ERROR < [WARN] < INFO < DEBUG
Oracle 10g EM Grid Control
- 87 -
7. Reference
01. OTN - Oracle Enterprise Manager 10g Grid Control Documentations
02. Oracle Enterprise Manager 10g Grid Control Books