1. OEM12c Overview for DBA
Francisco Munoz Alvarez
LAOUC, CLOUG & NZOUG President
IOUC LA Spokesperson
8/9/10g/11g OCP, RAC OCE, AS OCA, E-Business OCP, SQL/PLSQL OCA, Oracle 7 OCM
Oracle 7, 11GR2 & OVM 3.1 Beta Tester
ITIL Certified
2010 Oracle Ace Director of the year by Oracle Magazine
5. Complete Cloud Lifecycle Management
Plan
Optimize
Meter &
Charge
Setup
Applications and
Business Services
Platform as a Service
DBaaS
Manage
MWaaS
Build
Infrastructure
as a Service
Test
Monitor
Deploy
6. Plan and Setup the Cloud Environment
• Discover IT assets
• Plan capacity and
consolidation
• Setup cloud services
• Define access rules and
controls
PLAN & SETUP
7. Package Multi-tier Enterprise
Applications
Oracle Virtual Assembly Builder
HTTP
HTTP
OVM
Package Into
Single Assembly
OVM
WLS
OVM
DB
OVM
Metadata
Upload to Software
Library
Deploy Self-Service
Oracle Enterprise Manager
Capture Complete
Application Topology
BUILT
8. Test Applications End-to-End
Automate Application, Middleware and Database Testing
Testing Application
Changes
Oracle Functional
Testing
Oracle Load
Testing
Oracle Test
Manager
Testing Infrastructure
Changes
SQL Performance
Analyzer
Database Replay
Application
Replay
Test Data and Lab
Management
Data Masking
Data Discovery
and Modeling
Data Subsetting
Synthetic Workload Production Workload Test Data Management
TEST
9. Self-Service Access
Self-Service Freedom, Professional Control
• Infrastructure-as-a-Service
(IaaS)
– x86 and SPARC
• Platform-as-a-Service
(PaaS)
– Database (DBaaS), Java,….
– Physical and virtual
environment support
• Out-of-box Portal and APIs
DEPLOY
15. Database Management
Extending Database Self-Management Leadership
• Advance Performance
Diagnostics
– Real-Time ADDM
– Compare Period ADDM
– Active Session History (ASH)
Analytics
• Mass Database Upgrade
Automation
• Minimal Downtime
Patching
16. Engineered Systems Management
• Integrated hardware and software
management
– Hardware schematics and alerts
– Integrated and deep software
management
– Hardware and software topology,
configuration management
• Proactive support
– “Phone home”
– Health checks
– Patch and best practices advisory
• Exadata and Exalogic
17. Proactive Support
My Oracle Support Integration
• Proactive Patch
Advisory
• Certification Checks
My Oracle Support
Knowledge
Management
Problem/SR
Management
Configuration
Management
Knowledge
Management
Problem/SR
Management
Configuration
Management
Performance
Management
Problem
Diagnosis
Provisioning &
Patching
– End-of-life advisory
• Upgrade Planning
and Automation
• Hardware Telemetry
and
Phone Home
Hardware
Databases
Middleware
Applications
18. New Massively Scalable Framework
Robust, Extensible, Secure
My Oracle Support
Host 1
Agent
Plug-Ins (Database, FMW, Fusion Apps, . .)
Monitoring
Configuration Management
Auto-Push
DB
Plug-In
Management Services
• Better performance
and scalability
• Self-update
• Enhanced security
• New web 2.0 user
interface
• Powerful
configuration
management
Database
FMW
Plug-In
Web Logic
Host 2
Task Automation
Agent
FMW
Plug-In
FA
Plug-In
Security
Oracle Enterprise Manager
Web Logic
Fusion Apps
20. When Installing OEM12c
• Read Installation Manual carefully
• Check environment minimum requirements
• Check if environment is certified by Oracle
(Hardware/OS)
• Install OEM12c (12.1.0.1) with the bundle Patch 1
• When running RunInstaller set the correct Host Name
to be used
./runInstaller ORACLE_HOSTNAME=example.com
60. Change Hostname or IP Address
1) Set $ORACLE_HOSTNAME to the old hostname:
[oracle]$ export ORACLE_HOSTNAME=oc-oracle-prod.com
2) De-configure the old DB Console by running the following command:
[oracle]$ $ORACLE_HOME/bin/emca-deconfig dbcontrol db
STARTED EMCA at Jul 20, 2012 10:27:25 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: COLD
Do you wish to continue? [yes(Y)/no(N)]: Y
log4j:WARN No appenders could be found for logger (emSDK.config). log4j:WARN
Please initialize the log4j system properly.
Jul 20, 2012 10:27:38 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at
/u01/app/oracle/cfgtoollogs/emca/COLD/emca_2012_07_20_10_27_24.log.
Jul 20, 2012 10:27:38 AM oracle.sysman.emcp.util.DBControlUtil stopOMS INFO:
Stopping Database Control (this may take a while) ...
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jul 20, 2012 10:27:53 AM
[oracle]$
61. Change Hostname or IP Address
(Cont.)
3) Un-set $ORACLE_HOSTNAME in the environment, in other words, set $ORACLE_HOSTNAME to the new
hostname:
[oracle]$ export ORACLE_HOSTNAME=oracle-prod.com
4) Configure the new DB Console:
[oracle]$ $ORACLE_HOME/bin/emca -config dbcontrol db -repos recreate
STARTED EMCA at Jul 20, 2012 10:28:49 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: COLD
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0.3/db_1 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
----------------------------------------------------------------You have specified the following settings
Database ORACLE_HOME................ /u01/app/oracle/product/11.2.0.3/db_1
Local hostname ................ col-oracle-prod.lakros.com
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0.3/db_1
Listener port number ................ 1521
Database SID ................ COLD
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
----------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode.
---------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: Y
62. Change Hostname or IP Address
(Cont.)
Jul 20, 2012 10:29:34 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at
/u01/app/oracle/cfgtoollogs/emca/COLDFX/emca_2012_07_20_10_28_49.log.
Jul 20, 2012 10:29:35 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Jul 20, 2012 10:31:10 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped Jul 20, 2012 10:31:11 AM
oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jul 20, 2012 10:37:48 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created Jul 20, 2012 10:37:52 AM
oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jul 20, 2012 10:39:32 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully Jul 20, 2012 10:39:37 AM
oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jul 20, 2012 10:40:03 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully. Jul 20, 2012 10:40:03 AM
oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jul 20, 2012 10:40:32 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully Jul 20, 2012 10:40:32 AM
oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://col-oracle-prod.lakros.com:5500/em
Jul 20, 2012 10:40:36 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be
encrypted. The encryption key has been placed in the file:
/u01/app/oracle/product/11.2.0.3/db_1/oracle-prod.com_COLD/sysman/config/emkey.ora.
Ensure this file is backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully FINISHED EMCA at Jul 20, 2012 10:40:36 AM
[oracle@col-oracle-prod bin]$
63. Change Hostname or IP Address
(Cont.)
If using Oracle RAC you need to replace the step s 2 and 4 for:
[oracle]$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db -cluster
[oracle]$ $ORACLE_HOME/bin/emca -config dbcontrol db -repos recreate -cluster