Select Journal - First Quarter 2013 - (Page 17)
Introduction to Oracle
Enterprise Manager Command
Line Interface
Figure 1
By Ray Smith
O
racle Enterprise Manager Command Line Interface
(EMCLI) performs OEM tasks without clicking through
the GUI console. This brief paper will introduce general
concepts of EMCLI and illustrate its use.
Technical Background
Architecture
Oracle Management Service (OMS) is the heart of OEM 12c Cloud Control.
The OMS is a J2EE application running on a dedicated Fusion server. An
EMCLI extension runs concurrently with the console and upload management
services to handle command-line calls to the OMS, acting as a headless OMS. It
performs the same tasks but returns text streams instead of pretty pictures.
Each EMCLI command is exercised in the EMCLI Java module through the use
of verbs.
The documentation clearly provides the list of required and optional
parameters for each verb, with an example for nearly all verbs. The trick, of
course, is turning this knowledge into something useful.
Working with EMCLI
The EMCLI utility is invoked by calling it by name, just like SQLPLUS, EXPDP,
RMAN and other Oracle utilities. Unlike sqlplus, EMCLI does not require a
subshell1 when used in a shell script. You simply call it by name like any other
UNIX utility (Figures 2 and 3).
Figure 2
Verbs
Today there are 333 EMCLI verbs, and Oracle continues to expose more of them
as users request them. Each verb is well-documented in Oracle Document
17786-02 and at the command line using this syntax:
EMCLI -help
EMCLI –help
You can also refer to the online reference through the setup drop-down in
OEM, as shown in Figure 1.
Figure 3
Login and Logout
Basic EMCLI verbs help, setup and status don’t require authentication with
OMS because they relate to the EMCLI utility itself. Any other commands
require a login and, of course, a logout when your session is complete.
oracle@myoemserver> emcli login –user=sysman –pass=abc123!
oracle@myoemserver> emcli logout
1
A Shell scripts run SQLPLUS calls in a subshell ( <Table of Contents for the Digital Edition of Select Journal - First Quarter 2013
Select Journal - First Quarter 2013
Table of Contents
From the Editor
From the IOUG President
Enterprise Manager 12c Cloud Control: What’s Changed, What’s New
Introduction to Oracle Enterprise Manager Command Line Interface
Users Group Calendar
Retrieving Large Volumes of Data
A Multilayered Approach to Oracle Database Availability
Advertisers’ Index
Ask an Oracle ACE
Select Journal - First Quarter 2013
https://www.nxtbook.com/nxtbooks/smithbucklin/ioug_bestpractices2013
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2013q2
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2013q1
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2012q4
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2012q3
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2012q2
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2012q1
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2011q4
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2011q3
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2011q2
https://www.nxtbook.com/nxtbooks/smithbucklin/selectjournal_2011q1
https://www.nxtbookmedia.com