You`ve Got It - Flaunt It OEM Extensibility

You’ve Got It Flaunt It
OEM Extensibility
IOUG SIG Meetings at Open World
All meetings located in Moscone South - Room 208
Sunday, September 28
Cloud Computing SIG: 1:30 p.m. - 2:30 p.m.
Monday, September 29
Exadata SIG: 2:00 p.m. - 3:00 p.m.
BIWA SIG: 5:00 p.m. – 6:00 p.m.
Tuesday, September 30
Internet of Things SIG: 11:00 a.m. - 12:00 p.m.
Storage SIG: 4:00 p.m. - 5:00 p.m.
SPARC/Solaris SIG: 5:00 p.m. - 6:00 p.m.
Wednesday, October 1
Oracle Enterprise Manager SIG: 8:00 a.m. - 9:00 a.m.
Big Data SIG: 10:30 a.m. - 11:30 a.m.
Oracle 12c SIG: 2:00 p.m. – 3:00 p.m.
Oracle Spatial and Graph SIG: 4:00 p.m. (*OTN lounge)
Moscone South 208
3 Enhancing Value
•  Add value
–  Oracle software dollars
–  OEM infrastructure
–  Administrators (you)
•  Out of the Box
–  Centralized management
–  Enterprise insight
•  Packs
–  Diagnostic & Tuning Pack
–  Database Life Cycle Management Pack
OEM Modes of Extensibility
Modes of Extensibility
Create New Target
Type
Extend Existing Target
Type
Plug-ins
Config Extensions
EDK
Metric Extensions Plug-in Builder
Reports
Extend EM
Interface
EM CLI with
Scripting option
http://www.oracle.com/goto/emextensibility
Today
Modes of Extensibility
Create New Target
Type
Extend Existing Target
Type
Plug-ins
Config Extensions
EDK
Metric Extensions Plug-in Builder
Reports
Additional licensing is not required
Extend EM
Interface
EM CLI with
Scripting
option
Adding Value with Reports
Modes of Extensibility
Create New Target
Type
Extend Existing Target
Type
Plug-ins
Config Extensions
EDK
Metric Extensions Plug-in Builder
Reports
Extend EM
Interface
EM CLI with
Scripting
option
Database Software Summary
Custom Reports
•  You define the content
•  You determine the refresh frequency
•  You share reports for answers
“ How many Oracle 10g databases do we have right now ?”
“ What physical host is XYZ database on? ”
“ How can I compare memory settings for XYZA and XYZB ?”
Information Publisher Work-screen
Out-of-the-Box Reports Locked
Titles and Categories
Elements Tab: Add Element
Elements Tab: SQL Table
Refresh Scheduling
Distribution and Retention
Access Tab
Public Reports Page
•  http://yourconsole_url/public/reports
•  Title and Description from Input Screen
•  Notice the Category names
Saving Reports to a File
•  Reports can be sorted by any column
•  Data quickly downloads to a CSV file
Obfuscate Public Report URLs
22 Where do I get my data ?
Distill Oracle's Query
Read from SYSMAN schema
Uploaded to SYSMAN schema
sysman.MGMT$ views
Database Host Report
Tablespace Report
Flexibility
Avoid the Shell Game
SCOOP Schema
•  Procedure
–  Create an OEM Administrator
•  Grant EM_ALL_VIEWER role
–  Build your views as SCOOP
–  Create public synonym and MGMT_VIEW grants
–  Build your Report
NEVER change the SYSMAN schema
•  Information Publisher can't handle schema names
•  Public synonyms are required
•  Avoid any names Oracle may use now or later
•  MGMT_VIEW = The Information Publisher schema
•  Not in OEM console
•  Requires SELECT on your custom views
2
1
3
4
emcli get_answers
-accuracy=“Questionable”
-specificity=“Vague”
Extending Insight
Modes of Extensibility
Create New Target
Type
Extend Existing Target
Type
Plug-ins
Config Extensions
EDK
Metric Extensions Plug-in Builder
Reports
Extend EM
Interface
EM CLI with
Scripting
option
Metric Extensions
•  Wizard-driven process
•  Supplement Oracle default metrics
Finding Metric Extension Page
General | General Properties
General | Schedule Properties
Create New Adapter
Create the Columns
Test Screen
Promotion
Deployment Options
•  Add to Monitoring Template
•  Associate with an EM Group
•  Associate with a specific target
WARNING
•  Metric Extensions and Reports can be very expensive
–  Repository
–  Target
•  Temptation = Gather everything
•  Danger: Write it and forget it
•  Examples
–  Hourly log switch collection
–  User password aging
50 emcli get_answers
-accuracy=“Questionable”
-specificity=“Vague”
Improve Your Efficiency
Modes of Extensibility
Create New Target
Type
Extend Existing Target
Type
Plug-ins
Config Extensions
EDK
Metric Extensions Plug-in Builder
Reports
Extend EM
Interface
EM CLI with
Scripting
option
Agent Removal
•  Mistakes
•  Migration
•  Messes
Poof !
> emcli login -username=mydemouser
–password=zuper_zecret
>
emcli delete_target -name="myhost:3872"
-type="oracle_emd"
-delete_monitored_targets
-async;
Target “myhost:3872:oracle_emd" deleted successfully
EM CLI = Command Line Interface
•  Management Service is a java domain on WLS server
•  EM CLI verbs are Java extensions
Administrator Maintenance
3 mouse
clicks
7 mouse
clicks
2 mouse
clicks
2 mouse
clicks
1 mouse
click
15 mouse
clicks
EM CLI Scripting Option
•  Powerful automation
•  Jython and json
•  Interactive mode
•  Advanced scripting
65 #emcli_get_targets.py #Import all emcli verbs to current program from emcli import * def print_target_details(target): ''' print the target name and target type given a target tuple. ''' print target['Target Name'] + ' ' + target['Target Type'] #Set the OMS URL to connect to set_client_property('EMCLI_OMS_URL','hSps://host1.example.com:1234/em') #Accept all the cerXficates set_client_property('EMCLI_TRUSTALL','true') #Login to the OMS login(username='adminuser') #Invoke get_targets and loop over the targets array targets_array = get_targets().out()['data'] for target in targets_array: #Call print_target_details funcXon to print the target details print_target_details(target) #emcli_introspect_response.py #Import all emcli verbs to current program from emcli import * #Set the OMS URL to connect to set_client_property('EMCLI_OMS_URL','hSps://host1.example.com:1234/em') #Accept all the cerXficates set_client_property('EMCLI_TRUSTALL','true') #Login to the OMS login(username='sysman') res = get_targets() print 'Number of targets :'+str(len(res.out()['data'])) print 'Errors :'+res.error() print 'Exit code :'+str(res.exit_code()) print 'IsJson :'+str(res.isJson()) Resources
•  Preorder on Amazon
•  IOUG member discount
•  Great holiday gift idea
emcli get_answers
-accuracy=“Questionable”
-specificity=“Vague”
You’ve Got It – Now Flaunt It
•  Try these techniques next week!
•  Highlight the value
•  Reach out to the community
JOIN or
RENEW Did you know that IOUG Members
get up to 60% off of IOUG Press eBooks?
Oracle Enterprise Manager 12c Command-­‐Line Interface By Kellyn Pot'vin, Seth Miller, Ray Smith Releasing: Oct. 15 By Murali Vallath
Releasing: Sept. 30
Expert Oracle Database Architecture (3rd EdiXon) By Thomas Kyte, Darl Kuhn Releasing: Oct. 22