Installation and Configuration
Installation and Configuration
Installation and Configuration
Page 1
1
Objectives
Page 2
2
Enterprise Manager Configuration
Assistant
• Supports creation of new database instance
for the repository
• Object support required for 9i repository
Migration
Before migrating or upgrading a Management Server and repository to
Release 9i, ensure that all Enterprise Manager products you intend to use with
the repository are of Release 9i.
For instance, do not upgrade the Management Server and repository to release
9i if you plan to use Release 2.2 Packs (e.g. Diagnostics Pack Release 2.2). If
you upgrade your Management Server and repository to Release 9i before
obtaining the Release 9i Pack software you intend to use, you will not be able
to use the older Pack product(s).
Page 4
4
Certifications
Certifications
Integrated Applications include the following:
•Oracle Forms Server Manager
•Oracle Policy Manager
•OLAP Services
•Oracle Cube Viewer
•Oracle Directory Manager
Thin client includes the folowing:
•Base Enterprise Manager Console (including database
applications, Data Guard Manager, LogMiner Viewer, Spatial
Index Advisor, SQL*Plus Worksheet and Text Manager)
•Enterprise Security Manager
•Entire Change Management Pack
•Performance Manager, Lock Monitor, Performance Overview,
Top SQL, and Top Sessions of Diagnostics Pack
•Tablespace Map, Reorg wizard, Outline Manager, and
Graphical Explain Plan of Tuning Pack
Note:
Refer to Oracle Enterprise Manager Configuration Guide and
Installation Guide for System and Hardware requirements.
Page 5
5
Certifications
Console Integ Thin OMS Mgt Other EM EM
Apps client Pack Packs Web Paging
for Site Server
SAP
R/3
Intel Yes Yes No Yes No Yes Yes No
Solaris
Certifications (continued)
Other Packs include the following:
•Tuning Pack
•Diagnostics Pack
•Change Management Pack
•Standard Management Pack
•Management Pack for Oracle Apps
Note
The following components of the Packs listed above (Other Packs) will
not be ported to UNIX platforms:
•SQL Analyze
•Expert
•Index Tuning Wizard
•Trace Data Viewer
Page 6
6
Intelligent Agent Installation
Installation
• Agent contains functionality previously
present in the Data Gatherer
• No separate service/process for Data Gatherer
Page 8
8
Startup and Shutdown the Agent
Page 9
9
Intelligent Agent – Log files
• Log Files
– dbsnmp.log (unless config parameter
points to another)
– dbsnmp.nohup (unless environment
variable points to another)
– dbsnmpj.log (unless config parameter
points to another)
– nmiconf.log
Example of dbsnmp.log
DBSNMP for Solaris: Version 9.0.0.0.0 – Development
on 23-Feb-2001 16:29:35
…..
System parameter file is
/private/app/ora9i/network/admin/ snmp_ro.ora
Log messages written to
/private/app/ora9i/network/log/ dbsnmp.log
Trace information written to
Page 10
/private/app/ora9i/network/trace/ dbsnmp.trc
Trace level currently 0 10
Summary
Page 11
11
Database Administration Using Enterprise Manager
1
Objectives
2
Enterprise Manager Support for
Oracle9i Database Features
• Persistent init.ora
• Automatic Undo Management
• Unicode
• Dynamic Memory Management and Buffer
Cache Sizing Advice
• Default temporary tablespace
• Multiple block sizes
• Mean Time to Recovery (MTTR)
• Backup and Recovery enhancements
• Advanced Queuing
3
Persistent Parameter File (SPFILE)
SPFILE
• stores instance parameters persistently by the
server
• is initially created from an init.ora file
• resides on the server side and is in binary
format
4
Creating the SPFILE
5
Creating init.ora file from SPFILE
6
Changing Parameters
Changing Parameters
The All Parameters page lists all initialization parameters.
•For 9i databases, you must be connected as SYSDBA to edit static initialization parameters. To edit
dynamic parameters SYSDBA privileges are not required.
•For non-9i databases you must be connected as SYSDBA to edit all parameters.
Changing Running and Configured Parameters
Running Parameters show the parameters that are currently running. If you change a dynamic
parameter, the change is effected immediately. If the database is restarted, you start up with the
original parameter value since it has not been saved to the spfile. If you change a static parameter,
the changes are saved to a pfile or spfile and the database is restarted.
Configured parameters are stored in the server-side persistent file (spfile). If you change a dynamic
parameter, the changes are saved to an SPFILE and take place immediately.
7
Startup Using the SPFILE
8
Undo Tablespace Support
Undo Tablespace
•In Oracle9i a new approach for undo space management called Automatic Undo Management is
introduced. With this new architecture undo segments are managed via an UNDO tablespace.
•The rollback mode is set by the initialization parameter UNDO_MANAGEMENT with the values
of {AUTO/MANUAL}
• If AUTO the instance is started in AUTOMATIC mode
• If MANUAL the instance is started in the default MANUAL mode
•For each Oracle instance, a DBA will allocate enough disk space for the workload of the instance in
the UNDO tablespace versus allocating a number of undo segments in different sizes.
Enterprise Manager allows you to determine if a database is in Automatic Undo
Management mode. You specify whether or not the database is using rollback segments or
an undo tablespace in the init.ora. You should also specify which tablespace is the undo
tablespace.
When you create a new tablespace, you can make it an undo tablespace by selecting the
Undo radio button in the Create Tablespace dialog. For an undo tablespace, all storage
options are disabled since they are handled automatically.
In addition, in Instance Management a new "Undo" tab displays all details about the undo
tablespace including the name of the current undo tablespace and retention time. The
retention time is the time of the longest transaction or the farthest back you want to go with
the server flashback feature.
9
Undo Tab
10
Unicode
Unicode
Unicode can represent characters in any language. You do not need to know whether the character
set is single-byte or multi-byte when defining columns.
With Unicode support you can specify the length of character columns in characters. In the Create
Table or Cluster dialog, the column length drop down list will allow you to specify the length in
characters or bytes.
By default, the column length will be as specified by the NLS_LENGTH_SEMANTICS init.ora
parameter.
11
Unicode
12
Buffer Cache Sizing Advice
13
Buffer Cache Size Advice View
14
Default Temporary Tablespace
15
Creating Default Temporary Tablespace
16
Multiple Block Size Support
17
Mean Time to Recovery
18
Mean Time to Recovery
19
Backup and Recovery Enhancements
20
Advanced Queuing
Advanced Queuing
Advanced Queuing support is provided by introducing a new topology map that displays individual
queues and their states on the database selected, including dblink status. You can see where there
are errors and drill down to additional diagnostic detail.
21
Topology Map
Topology Map
The topology map specifies whether the database link specified is valid, if the remote database is
available, or if the remote queue is enabled for enqueuing.
In the map shown above:
• A black arrow indicates a working database link between two destinations
• Broken red arrow indicates a broken database link
22
Replication Enhancements
Replication Enhancements
The new version of replication management introduces support for single master quiesce for
snapshots along with an improved "Templates" Wizard to help in setting up snapshot sites more
easily. In addition, replication management adds the capability to generate and save comprehensive
HTML reports on the replication environment status.
Replication management is now fully integrated with the Console. A new topology map of your
replicated environment is included. It shows error information to assist you in diagnosing and
resolving problems in your replication environment.
Replication management is integrated into the Navigator tree and structured to follow a typical
workflow.
23
Topology Map
Topology Map
A new topology map of your replicated environment is provided. It shows error information to assist
you in diagnosing and resolving problems in your replication environment.
In the slide shown above:
•The database IDDB1
• is functioning both as a master site and a materialized view site
• has one administrative request to process. The blue figure indicates administrative requests
• has one error. Red icon indicates errors
•Master databases IDDB2 and OREM have no administrative requests to process and no local errors
•IDDB1 has four deferred transaction in its deferred transaction queue that will be applied at OREM.
It has 17 registered materialized views and 1 registered materialized view group.
24
Error Investigation
Error Investigation
If a deferred transaction cannot execute properly, Oracle logs the transaction as a local error
transaction. An error may occur due to a database problem, such as lack of space in the table you
are attempting to update or may be the result of unresolved replication conflict.
Displaying error transactions
• Expand the replication folder under the database that contains errors
• Select Administration
• Select the Errors tab. All local errors are displayed in the right pane
• To obtain more information on a particular error transaction, select the individual error
transaction and click the Details button to open the Error Calls dialog box
Resolving Error Transactions
After correcting the error, perform the following steps:
1. Re-execute the error transaction – If the error transaction executes successfully, Oracle
automatically removes the transaction from the replication catalog at the local site.
2. Remove the error transaction
How to re-execute an error transaction
• Expand Replication folder from the database node that contains errors
• Select Administration and click on the Errors tab on the detail side of the Console
• Select the individual error transaction and click Retry
Removing Error Transactions – When you re-execute an error transaction, Oracle automatically
deletes the transaction from the local site. However, at times it may be necessary to manually
resolve an error transaction. In such cases, you must delete the error transaction from the local 25
site.
Materialized Views
Materialized Views
Enterprise Manager has a facility for explaining what aspects of Summary Management a particular
materialized view supports so that you know exactly what to expect from the materialized view.
Enhancements have been made to support materialized view DDL, such as:
•Pre-build tables
•Storage options
•Submit as a job
The Explain Materialized View feature provides detail regarding what aspects of a materialized
view are not complete.
26
Summary Advisor Wizard
27
Summary Recommendations
Summary Recommendations
This screenshot displays a chart showing the trade off between the space it would take to create
summaries vs. the performance gain you get. You can specify how much space you want to allocate
to summaries. Then Oracle will generate a script to create summaries that fix that space. It will
always create the most useful summaries for the space available. Hence you maximize the
performance gain for the amount of space you devote to the summary. You can move that slider
(triangle) to put yourself on the desired point on the graph.
28
OLAP Management
OLAP Management
Business decision makers need fast access to data, powerful computational, analytical capabilities
and the flexible viewing capabilities of analysis-based decision-oriented systems. These systems are
called OLAP systems. In Oracle9i, OLAP capabilities are seamlessly integrated with the database
server, using source and aggregated data from the relational source (ROLAP). Oracle now becomes
a single platform for OLTP, Warehousing and OLAP needs.
Enterprise Manager provides the graphical user interface that guides you in the definition and
management of metadata objects. You can generate pre-computed data elements of the OLAP model
using Oracle Summary Management.
29
OLAP Support - Cubes
30
Cube Topology Viewer
31
OLAP Support - Dimensions
32
HTML Database Reports
33
Database Configuration Report
34
Summary
Summary
35
Console
Page 1
1
Objectives
Page 2
2
New Console Look-and-Feel
Page 3
3
Groups
Groups
•Groups form part of the navigator tree
•To create a Group, either:
• Click Create from the Object menu, or
• Right-click on the Groups folder and click Create
•You can also create a Group from an existing Group by selecting Create Like
•When users select a created group in the navigator tree, it displays on the detail side
a window with View, General and Access tabs
•The View tab shows a graphical view of the network making it easy to locate,
diagnose, and act on encountered conditions
•From the General tab (shown in the screen shot), users can add or remove targets to
the group, change the background image, description and size of icons
•From the Access tab the current access levels can be viewed. The Super
Administrator can also change the access level for other administrators from this
page or the administrator who owns the Group can change access level on it. Access
levels assigned on this page supersede any default access levels assigned with
Administrator preferences.
Page 4
4
Launching Enterprise Manager Console
Page 5
5
Console launched Standalone
Page 6
6
Connections using OMS
Page 7
7
Standalone Connection Benefits
• Available out-of-the-box
• Does not require install/config of middle tier
Management Server
• Does not require install of Intelligent Agent on
administered database
• Connect directly to managed target (only
databases supported for Release 9i)
Page 8
8
Standalone Connection Restrictions
• Only supports direct administration of Oracle
databases (ie, no management of other target
types)
• No access to Events, Jobs and Groups
• Cannot share administrative information
• Cannot use web-enabled applications
• No Paging and Email blackouts
• Cannot store and access preferences (e.g.
enhanced notifications, schedule )
• Cannot use Backup and Data Management
Tools
• Cannot customize, schedule and Publish
reports
Page 9
9
Standalone Repository
Standalone Repository
Standalone repository is a single user database repository schema that stores
management information for the targets you are managing while using the Console
in standalone mode.
When launching the Console standalone and accessing certain Management Pack
applications (e.g. Oracle Change Manager, Oracle SQL Analyze, Oracle Index
Tuning Wizard, Oracle Tablespace Map, and Oracle Expert) for the very first time,
you will be prompted to create a single-user database repository schema to store
management information for targets being managed. Once this standalone repository
schema is created, it can be used by all five applications listed above; each
application does not require its own standalone repository schema.
This single-user database repository schema is separate from the repository that is
created when you install and configure a Management Server. This single-user
database repository schema is for a single administrator and does not require a
Management Server; while the repository used by a Management Server is for
multiple administrators and is required by the middle tier. Furthermore, interaction,
including migration or sharing of repository data, between the ‘standalone repository
schema’and the ‘Management Server repository’is not supported.
The following database versions are certified to contain a 9i standalone repository:
• Enterprise Edition or standard edition server release 9.0
• Enterprise Edition or standard edition server release 8.1.7 or 8.1.6
• Enterprise Edition server release 8.0.6
While releases 9.0, 8.1.7, and 8.1.6 all support objects by default; release 8.0.6 does
not. Prior to creating your 9i repository in an Enterprise Edition 8.0.6 database,
ensure that the Objects Option has been installed and enabled.
Refer to Enterprise Manager online help or documentation for further details.
Page 10
Before you create a standalone repository schema, Oracle recommends creating a
new tablespace for the standalone repository and a new database user who will own 10
the standalone repository. Oracle also recommends not using an existing tablespace
Connections using Oracle Management
Server
Page 11
11
Restricted Access to Node Discovery
Page 13
13
Grant Access to Targets
Demo:
Assigning Targets to Regular Administrators via the Discovery Wizard [http://stc-
sun07:7777/viewlet/assign_targets_discovery.html]
Super Administrators can also grant access to discovered nodes and targets via the
discovery wizard.
• Select Discover Nodes from the Navigator menu and click Next
• Enter the name of the node(s) to be discovered and click Next
• Click Next after discovering the nodes
Page 14
• Select the targets to be assigned to regular administrators and click Finish
14
Note: To grant access during discovery, you must have regular administrators
Management Regions
Management Regions
There can be multiple Management Regions defined in a single repository, but a particular node
is a member of one and only one management region. You can assign the Management Server to
be in one and only one management region. However, a Management Region may contain
multiple Management Servers as long as all Management Servers share the same repository.
Page 15
15
Benefits of Management Regions
Useful for:
• Global deployments of Enterprise Manager
framework
• Deployments across LANs and WANs
• Mapping nodes within firewall boundaries
Page 16
16
Create a Management Region
Page 17
17
Assign Management Servers
Page 18
18
Assign Nodes
Assign Nodes
Screen shot above shows how you assign discovered Nodes to Management Region.
Each node can only be in one Management Region. A node cannot be added to a
Management Region unless the Management Region has an active running
Management Server.
Demo:
Creating a Management Region [http://stc-
sun07:7777/viewlet/management_reg.html]
Page 19
19
Comprehensive Reporting
Comprehensive Reporting
The predefined reports bundled with base Enterprise Manager allow administrators to track the
health of their entire system.
Additional reports available with licensable Packs:
-Application Health Assessment reports allow administrators to see how their system is
performing in real-time, compare that to the past, and trend out to the future. Available
reports with separately licensable Oracle Diagnostics Pack includes
-Real-time System Performance reports such as
-System State at a Glance
-Processes at a Glance
-I/O at a Glance
-Wait Analysis Overview
-Trending reports such as
-Memory Sort Percentage
-Library Cache Hit Percentage
Page 20
20
Comprehensive Reporting
Page 21
21
Creating Custom Reports
Page 22
22
Creating Custom Reports
Page 23
23
Publishing Reports
Publishing Reports
Users should choose to publish a report on demand if it is critical that the reporting website
always contains up-to-date information. This on demand capability allows end users, via the
reporting website, to generate reports real-time. With on demand reports, users know that they
are viewing current information on their monitored enterprise.
Users should choose to publish a report on a scheduled basis if it isn’t critical that the reporting
website remain up-to-date. In addition, scheduling a report to run on a regular or repeated
schedule allows administrators to run time- and/or CPU-expensive reports during non-business
hours.
The Oracle HTTP Server is packaged with the OMS to act as a webserver to serve the published
reports on EM Reporting website.
Configuring Reporting Website
Enterprise Manager automatically installs a preconfigured Oracle HTTP Server with the
Management Server installation. This Oracle HTTP Server will act as the reporting webserver
for the Enterprise Manager Reporting Website. While the HTTP Server is preconfigured, there
are two additional steps that the user must perform in order to access published reports from the
Reporting Website.
Prior to accessing the EM reporting website, user must:
•Change the default password of the Enterprise Manager Administrator
REPORTS_USER
•From the machine running both the OMS and reporting webserver, manually run
oemctl configure rws script – providing the appropriate answers to its
questions.
Page 24
24
Navigating Published Reports
Page 25
25
Comprehensive Reporting - Example
Page 26
26
Discover Multiple Listeners
Page 27
27
Summary
Page 28
28
Events and Jobs
Page 1
1
Objectives
Page 2
2
Event Creation Enhancements
Page 3
3
Event Schedules
In EM 9i:
• Events can be evaluated at a specified time
• Resource-intensive events can be scheduled
at off-peak times
Event Schedules
Prior to Enterprise Manager 9i, users control event evaluations through time
intervals. The frequency of time intervals determines how often the event
condition is evaluated. In Enterprise Manager 9i, users have even greater
control over the frequency of event evaluations. Users can specify the
schedule on which the event is evaluated. This is helpful in cases wherein the
administrator may want some resource intensive event conditions to be
evaluated at off-peak times.
Page 4
4
Event Schedules
Event Schedules
The Schedule page allows you to schedule the evaluation of an event. This
could be one of the following:
•On Interval – This allows you to schedule an event evaluation either
immediately after registration or at a specific time. The interval can be a
combination of hours and minutes, or number of days
•On Day of Week – schedule an event on one or more multiple days of the
week (Monday, Tueday )
•On Day of Month – schedule an event on one or more multiple days (1-31)
of the month
Note: Event monitoring is done based on the system time of the Agent.
Page 5
5
Unsolicited Events
Unsolicited Events
Unsolicited events provide a way to integrate third party events into the
Enterprise Manager Event system. Such events could be monitoring
conditions that is specific to your environment. You might want to tie these
events into the Enterprise Manager event system in order to leverage its
lights-out, notification capabilities. You can accomplish this by using
Unsolicited Events.
Unsolicited Events are events that are checked by 3rd party scripts and are not
monitored by the Oracle Intelligent Agent. Once these conditions are
detected, the scripts can then send commands to the Agent to let it know that
an event occurred, thereby triggering an unsolicited event.
You can determine which unsolicited events you want to be notified about. To
do this, you should register an unsolicited event via the Console.
In EM9i, when creating the event, you should select the event test called
"Unsolicited Event Test". The parameter for this event test allows you to
specify a filter based on event name. Putting a wildcard value of "*" means
you want all unsolicited events (regardless of name) to be accepted and
passed through.
In EM9i, you can also associate a fixit job for unsolicited events.
This feature requires that you use the Intelligent Agent version 9i.
Page 6
6
Unsolicited Events
Unsolicited Events
In EM 2.x, the option to specify filters for unsolicited events was available as
a checkbox option in the General tab of the Create Event dialog. In EM 9i, the
option to specify filters for unsolicited events is now available as an event
test. The parameters for this unsolicited event test allow you to specify filters
on event name
Creating an unsolicited event
•From the Console’s event menu choose Create Event
•From the Tests page select Unsolicited Event under the Node folder
•Specify the event filter in the parameters page
•Complete the other property pages
•Register the Event
Page 7
7
Create Fixit Jobs From Events Dialog
Page 8
8
Create Fixit Jobs From Events Dialog
Page 9
9
Investigating Event Occurrences
Page 10
10
Investigating Event Occurrences- Example
Page 11
11
Dynamic Modification of Events
Page 12
12
Dynamic Modification of Events
Demo:
Dynamic Modification of Events [ http://stc-sun07:7777/viewlet/dynamic_mod_events.html]
Page 13
13
Event Attributes that can be modified
Page 14
14
Event Attributes that can be modified
Enabling/Disabl No Yes No
ing SNMP traps
Selecting or No Yes No
Creating Fixit
job for the
event
Page 16
16
User Defined Event Tests
Event Handler
Business practices may dictate that responses to event occurrences be performed in certain
ways. For example, if the database updown event triggers, administrators may want an
inhouse trouble-ticket be opened to respond to this event occurrence. The ability to provide
customized responses to event occurrences can be achieved by using the Event Handler.
In EM9i, the Event Handler is a component of the Oracle Management Server (OMS) and has
been pre-configured with some default parameters. In order to start up the default
configuration, you do the following:
• Enable the Event Handler
Make sure the OMS is not running.
% oemctl stop oms <superuser>/<password>
To enable the Event Handler:
% oemctl enable eventhandler
• Start the Event Handler by starting the OMS
Because the Event Handler is part of the OMS, it starts whenever the OMS is started
and it stops whenever the OMS is stopped.
% oemctl start oms
• To find out the configuration of the Event Handler, run the following:
% oemctl dump eventhandler
The default configuration will log all events to a file called eventhandler.log. This file is
located in the %ORACLE_HOME/sysman/log directory.
Page 18
Note:
18
Refer to the Enterprise Manager Administrator's guide for more details on changing the
Blackouts
Blackouts
Paging/Email blackout deactivates email and paging, thus preventing Administrators from being
flooded with email and pages if a managed service is brought down. Super administrator
privileges are required to schedule paging/email blackout.
Example
A managed node is brought down for scheduled maintenance. In such a case the super
administrator can schedule a paging/email blackout for that target to prevent paging/email
notification during the maintenance period.
From the user interface, users can only suspend email and paging with reference to a managed
target. Suspension of monitoring activity on targets is done from the command line.
Page 19
19
Enabling Paging/Email Blackouts
Page 20
20
Target Blackout Options
usage
agentctl start|stop|status blackout
[<target>][-d/uration <timefmt>]
[-s/ubsystem <subsystem>]
Usage
target – specifies the name of the target such as node, database, listener.
Default value is node
timefmt – duration is specified as [days] hh:mm
subsystem - jobs, events, collections are the subsystems. Defaults to all
subsystems if none is
specified
Page 22
22
Example
Start blackout
•agentctl start blackout
•agentctl start blackout wwed165-sun –d 1
2:15 –s events jobs
Stop blackout
•agentctl stop blackout
•agentctl stop blackout wwed165-sun
Show status of blackouts
•agentctl status blackout
•agentctl status blackout wwed165-sun
Example
•If you start a blackout without specifying a target or a subsystem, it implies blackout for all
subsystems for the entire node. A blackout on the node will apply to all discovered targets on
that node. The blackout will exist until you stop the blackout using the command, agentctl
stop blackout
•Specifying target and subsystems - blackout is started on a target database, wwed165-sun for a
time period of 1 day 2 hours and 15 minutes on events and jobs, as shown above.
Page 23
23
Compatibility
Page 24
24
Job System Enhancements
Page 25
25
Add Targets Dynamically
Demo:
Adding Job Targets Dynamically [http://stc-
sun07:7777/viewlet/dynamic_mod_jobs.html]
Page 26
26
Node Credentials Override
Page 27
27
Validation of Credentials
Validation of Credentials
Both the Job and the Event System require that preferred credentials be set for
the targets or services against which jobs are run or events are registered. If
preferred credentials are not set, the registration of jobs and events fail.
When a job is submitted and the required credentials are not set, then an error
is raised and an option is provided to set the required credentials.
Demo:
Validation of Credentials [ http://stc-sun07:7777/viewlet/valid_cre.html]
For this demo, Preferred Credentials are not set against database and node.
Administrator TOM creates a Job and submits it
•Select Create Job from the Job menu
•Supply the Job Name, select database as the Target Type and select the
targets to be monitored
•Click on the Tasks tab
•Select Run SQL*Plus script as the Job Task
•Click on the Parameters tab and enter a SQL script in the Script Text box
•Click Submit
•You get a message stating that Preferred Credentials are not set and you are
prompted to set credentials
•Click Set Credentials. Select the targets for which preferred credentials are to
be set and supply the username and password. Click OK
PageCredentials
•Click Close to close the Preferred 28 Not Set dialog box
•Click Submit to re-submit the job. 28
Skipped Job Notifications
Page 29
29
Summary
Page 30
30