Sie sind auf Seite 1von 50

Introduction

Copyright © 2005, Oracle. All rights reserved.


Overview

• This course focuses on those features of Oracle


Database 11g that are applicable to database
administration.
• Previous experience with Oracle databases
(particularly Oracle Database 10g) is required for a
full understanding of many of the new features.
• Hands-on practices emphasize functionality rather
than test knowledge.

I-2 Copyright © 2005, Oracle. All rights reserved.

Overview
This course is designed to introduce you to the new features of Oracle Database 11g that are
applicable to the work usually performed by database administrators and related personnel.
The course does not attempt to provide every detail about a feature or cover aspects of a
feature that were available in previous releases (except when defining the context for a new
feature or comparing past behavior with current behavior). Consequently, the course is most
useful to you if you have already administered other versions of Oracle databases, particularly
Oracle Database 10g. Even with this background, you should not expect to be able to
implement all of the features discussed in the course without supplemental reading, especially
the Oracle Database 11g documentation.
The course consists of instructor-led lessons and demonstrations, plus many hands-on
practices that allow you to see for yourself how certain new features behave. As with the
course content in general, these practices are designed to introduce you to the fundamental
aspects of a feature. They are not intended to test your knowledge of unfamiliar syntax or to
provide an opportunity for you to examine every nuance of a new feature. The length of this
course precludes such activity. Consequently, you are strongly encouraged to use the provided
scripts to complete the practices rather than struggle with unfamiliar syntax.

Oracle Database 10g: New Features for Administrators I-2


Oracle Database Innovation

Audit Vault
30 years of Database Vault
sustained Grid Computing
Self Managing Database
innovation… XML Database
Oracle Data Guard
Real Application Clusters
Flashback Query
Virtual Private Database
Built in Java VM
Partitioning Support
Built in Messaging
Object Relational Support
Multimedia Support
Data Warehousing Optimizations
Parallel Operations
Distributed SQL & Transaction Support
Cluster and MPP Support
… continuing with
Multi-version Read Consistency
Client/Server Support
Platform Portability
Oracle Database 11g
Commercial SQL Implementation

I-3 Copyright © 2005, Oracle. All rights reserved.

Oracle Database Innovation


As a result of early focus on innovation, Oracle has maintained the lead in the industry with a
huge number of trend-setting products.
The continued focus on Oracle’s key development areas has lead to a number of industry
firsts, from the first commercial relational database, to the first portable tool set and UNIX-
based client–server applications, to the first multimedia database architecture.

Oracle Database 10g: New Features for Administrators I-3


Customer Testimonials

“Oracle customers are highly satisfied with its Real Application Clusters
and Automatic Storage Management when pursuing scale-out
strategies.”
Mark Beyer, Gartner December 2006

“By consolidating with Oracle grid computing on Intel/Linux, we are


witnessing about a 50% reduction in costs with increased
performance.”
Tim Getsay, Assistant Vice Chancellor
Management Information Systems
Vanderbilt University

I-4 Copyright © 2005, Oracle. All rights reserved.

Customer Testimonials
Managing service level objectives is an ongoing challenge. Users expect fast, secure access to
business applications 24x7, and Information Technology managers have to deliver without
increasing costs and resources. The manageability features in Oracle Database 11g are
designed to help organizations easily manage Infrastructure Grids and deliver on their users’
service level expectations. Oracle Database 11g introduces more self-management,
automation and advisors that help reduce management costs, while increasing the
performance, scalability and security of their business applications around the clock.

Oracle Database 10g: New Features for Administrators I-4


Enterprise Grid Computing

SMP RAC Grids of


Dominance Clusters low cost
for hardware and
Availability storage

I-5 Copyright © 2005, Oracle. All rights reserved.

Enterprise Grid Computing


Oracle Database 10g was the first database designed for grid computing. Oracle Database 11g
consolidates and extends Oracle’s unique ability to deliver the benefits of Grid computing.
Oracle Infrastructure Grids fundamentally changed the way data centers look and operate,
transforming data centers from silos of isolated system resources to shared pools of servers
and storage. Oracle’s unique Grid architecture enables all types of applications to scale-out
server and storage capacity on-demand. By clustering low cost commodity server and storage
modules on Infrastructure Grids, organizations are able to improve user service levels, reduce
downtime, and make more efficient use of their IT resources.
Oracle Database 11g furthers the adoption of Grid Computing by offering:
- Unique scale-out technology with single database image
- Lower server and storage costs
- Increased availability and scalability

Oracle Database 10g: New Features for Administrators I-5


Oracle Database 11g: Focus Areas

• Manageability
• Availability
• Performance
• Business Intelligence and Data Warehousing
• Security

I-6 Copyright © 2005, Oracle. All rights reserved.

Oracle Database 11g: Focus Areas


Oracle’s Infrastructure Grid technology enables Information Technology systems to be built
out of pools of low cost servers and storage that deliver the highest quality of service in terms
of manageability, high availability, and performance. Oracle’s existing Grid capabilities are
extended in the areas listed on the slide making your databases more manageable.
Manageability: New manageability features and enhancements increase DBA productivity,
reduce costs, minimize errors, and maximize quality of service through change management,
additional management automation and fault diagnosis.
Availability: New high availability features further reduce the risk of downtime and data loss
including further disaster recovery offerings, important high availability enhancements to
Automatic Storage Management, support for online database patching, improved online
operations, and more.
Performance: Many innovative new performance capabilities are offered including
SecureFiles, compression for OLTP, Real Application Clusters optimizations, Result Query
Caches, TimesTen enhancements, and more.

Oracle Database 10g: New Features for Administrators I-6


Oracle Database 11g: Focus Areas

• Information Management
– Content Management
– XML
– Oracle Text
– Spatial
– Multimedia and Medical Imaging
• Application Development
– PL/SQL
– .NET
– PHP
– SQL Developer

I-7 Copyright © 2005, Oracle. All rights reserved.

Oracle Database 11g: Focus Areas


Oracle’s Infrastructure Grid provides the additional functionality needed to manage all
information in the enterprise with robust security, information lifecycle management, and
integrated business intelligence analytics to support fast and accurate business decisions at the
lowest cost.

Oracle Database 10g: New Features for Administrators I-7


Management Automation

Auto-Tuning

Advisory

Instrumentation

Recovery

Replication
Memory

Schema

RAC
Apps/SQL
Backup
Storage

I-8 Copyright © 2005, Oracle. All rights reserved.

Management Automation
Oracle Database 11g continues the effort begun in Oracle9i and carried on through Oracle
Database 10g to dramatically simplify and ultimately fully automate the tasks that DBAs need
to perform. New in Oracle Database 11g is Automatic SQL Tuning with self-learning
capabilities. Other new capabilities include automatic, unified tuning of both SGA and PGA
memory buffers and new advisors for partitioning, database repair, streams performance, and
space management. Enhancements to the Oracle Automatic Database Diagnostic Monitor
(ADDM) give it a better global view of performance in Oracle Real Application Clusters
(RAC) environments and improved comparative performance analysis capabilities.

Oracle Database 10g: New Features for Administrators I-8


Self-managing Database: Oracle Database 10g

Manage Performance and Resources

I-9 Copyright © 2005, Oracle. All rights reserved.

Self-managing Database: Oracle Database 10g


Self-managing is an ongoing goal for the Oracle Database. Oracle Database 10g mark the
beginning of a huge effort to render the database more easy to use. With Oracle Database 10g, the
focus for self-managing was more on performance and resources.

Oracle Database 10g: New Features for Administrators I-9


Self-managing Database: The Next Generation

Manage Performance and Resources


Manage
Change
Manage Fault

I-10 Copyright © 2005, Oracle. All rights reserved.

Self-managing Database: The Next Generation


Oracle Database 11g adds two more important axes to the overall self-management goal: Change
management, and fault management.

Oracle Database 10g: New Features for Administrators I-10


Suggested Additional Courses

• Oracle Database 11g: Real Application Clusters


• Oracle Database 11g: Data Guard Administration
• Oracle Enterprise Manager 11g Grid Control

I-11 Copyright © 2005, Oracle. All rights reserved.

Suggested Additional Courses


For more information about key grid computing technologies used by Oracle products, you
can take additional courses (listed in the slide) from Oracle University.

Oracle Database 10g: New Features for Administrators I-11


Further Information

For more information about topics that are not covered


in this course, refer to the following:
• Oracle Database 11g: New Features eStudies
– http://www.oracle.com/education/library
A comprehensive series of self-paced online
courses covering all new features in great detail
• Oracle by Example series: Oracle Database 11g
– http://otn.oracle.com/obe/obe11gdb/index.html
• OracleWorld
– http://www.oracle.com/oracleworld/

I-12 Copyright © 2005, Oracle. All rights reserved.

Oracle Database 10g: New Features for Administrators I-12


Suggested Schedule

Topic Lessons Day

Installation & Upgrade I–1 1

Manage Storage 2 1

Manage Change 3–4–5 2

Manage Performance & Resources 6–7–8–9 3

Manage Availability 10–11–12–13 4

Manage Security 14–15 5

Miscellaneous 16 5

I-13 Copyright © 2005, Oracle. All rights reserved.

Suggested Schedule
The lessons in this guide are arranged in the order you will probably study them in class. The
lessons are grouped into topic areas, but they are also organized by other criteria, including
the following:
• A feature is introduced in an early lesson and then referenced in later lessons.
• Topics alternate between difficult and easy to facilitate learning.
• Lessons are supplemented with hands-on practices throughout the course to provide
regular opportunities for students to explore what they are learning.
If your instructor teaches the class in the sequence in which the lessons are printed in this
guide, then the class should run approximately as shown in the schedule. Your instructor may
vary the order of the lessons, however, for a number of valid reasons. These include:
• Customizing material for a specific audience
• Covering a topic in a single day instead of splitting the material across two days
• Maximizing the use of course resources (such as hardware and software)

Oracle Database 10g: New Features for Administrators I-13


Installation & Upgrade
Enhancements

Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 1


Objectives

After completing this lesson, you should be able to:


• Install Oracle Database 11g
• Upgrade your database to Oracle Database 11g
• Use online patching

1-2 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 2


Oracle Database 11g Installation Changes

• Minor modifications to the install flow. New screens for:


– Turning off secure configuration in the seed database
– Setting the out-of-box memory target
– Specifying the Database Character set
– Modifications to OS authentication to support SYSASM
• Addition of new products to the install
– SQL Developer
– Movement of APEX from companion CD to main CD
– Warehouse Builder (server-side pieces)
– Oracle Configuration Management (OCM)
– New Transparent Gateways

1-3 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g Installation Changes

Oracle Database 11g: New Features for Administrators 1 - 3


Oracle Database 11g Installation Changes

• Move to JDK/JRE 1.5


• Removal of certain products and features from the
installation:
– OEM Java Console
– Raw storage support for data files (installer only)
– Oracle Data Mining Scoring Engine
– Oracle Workflow
– iSQL*Plus
• Addition of new pre-requisite checks (largely feedback
from SAP and various other bugs)
• Changes to the default file permissions

1-4 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g Installation Changes


The following is a list of components that were part of Oracle Database 10g release 2 (10.2), and
are not available for installation with Oracle Database 11g:
iSQL*Plus
Oracle Workflow
Oracle Data Mining Scoring Engine
Oracle Enterprise Manager Java console

Oracle Database 11g: New Features for Administrators 1 - 4


Oracle Database 11g Installation Changes

• Minor changes to the clusterware installation


– Support for block devices for storage of OCR and Voting
Disks
– Ship “fix-up” scripts with the product
• Support for upgrade of XE databases directly to 11g
• Better conformance to OFA in the installation
– Prompt for ORACLE_BASE explicitly
– Warnings in the alert log when ORACLE_BASE isn’t set

1-5 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g Installation Changes


In Oracle Database 11g, Oracle Universal Installer prompts you to specify the Oracle base. The
Oracle base you provide during the installation gets logged in the local inventory. You can share
this Oracle base across all of the Oracle homes you create on the system. Oracle recommends that
you share an Oracle base for all of the Oracle homes created by a user. Each Oracle home has a
corresponding Oracle base.
Oracle Universal Installer has a list box where you can edit or select the Oracle base. The installer
derives the default Oracle home from the Oracle base location you provide in the list box.
However, you can change the default Oracle home by editing the location.
The following are the changes made in Oracle Database 11g with respect to Oracle base to make
it Optimal Flexible Architecture compliant:
ORACLE_BASE is a recommended environment variable. However, this variable will be made
mandatory starting in future releases.
By default, Oracle base and Oracle Clusterware home are at the same directory level during the
Oracle Clusterware installation. You should not create Oracle Clusterware home under Oracle
base. Specifying Oracle Clusterware home under Oracle base results in an error.
Oracle recommends that you create the flash recovery area and data file location under Oracle
base.
In Oracle Database 10g, the default locations for the flash recovery area and data file are one level
above the Oracle home directory. However, in Oracle database 11g, Oracle base is the starting
point to set the default locations for flash recovery and data file. However, Oracle recommends
that you keepOracle
the flashDatabase 11g:and
recovery area NewdataFeatures foron
file location Administrators
separate disks. 1 - 5
Oracle Database Upgrade Enhancements

• Pre-Upgrade Information Tool


• Simplified Upgrade
• Upgrade performance enhancement
• Post-Upgrade Status Tool

1-6 Copyright © 2007, Oracle. All rights reserved.

Oracle Database Upgrade Enhancements


Oracle Database 11g release 1 (11.1) continues to make improvements to simplify manual
upgrades, upgrades performed using Database Upgrade Assistant (DBUA), and downgrades.
DBUA provides the following enhancements for single-instance databases:
• Support for improvements to the pre-upgrade tool in the areas of space estimation,
initialization parameters, statistics gathering, and new warnings.
• The catupgrd.sql script performs all upgrades and the catdwgrd.sql script performs all
downgrades, for both patch releases and major releases.
• DBUA can automatically take into account multi-CPU systems to perform parallel object
recompilation.
• Errors are now collected as they are generated during the upgrade and displayed by the Post-
Upgrade Status Tool for each component.

Oracle Database 11g: New Features for Administrators 1 - 6


Pre-Upgrade Information Tool

• SQL script, utlu111i.sql, analyzes the database to be


upgraded
• Checks for parameter settings that may cause upgrade
to fail and generates warnings
• Utility runs in “old server” & “old database” context
• Provides guidance and warnings based on Oracle
Database 11g Release 1 upgrade requirements
• Supplies information to the DBUA to automatically
perform any required actions

1-7 Copyright © 2007, Oracle. All rights reserved.

Pre-Upgrade Information Tool


The pre-upgrade information tool analyzes the database to be upgraded. It is a SQL script that
ships with Oracle Database 11g release 1 (11.1), and must be run in the environment of the
database being upgraded. This tool displays warnings about possible upgrade issues with the
database. It also displays information about required initialization parameters for Oracle Database
11g release 1 (11.1).

Oracle Database 11g: New Features for Administrators 1 - 7


Pre-Upgrade Analysis

The Pre-Upgrade Information Tool checks for:


• Database version and compatibility
• Redo log size
• Updated initialization parameters (e.g.
shared_pool_size)
• Deprecated and obsolete initialization parameters
• Components in database (JAVAVM, Spatial, etc.)
• Tablespace estimates
– Increase in total size
– Additional allocation for AUTOEXTEND ON
– SYSAUX tablespace

1-8 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 8


Simplified Upgrade

• Upgrade driven from the contents of the component


registry (DBA_REGISTRY view)
• Single top-level script, catupgrd.sql, upgrades all
components in the database using the information in
the DBA_REGISTRY view
• Supports re-run of catupgrd.sql, if necessary

1-9 Copyright © 2007, Oracle. All rights reserved.

Simplified Upgrade

Oracle Database 11g: New Features for Administrators 1 - 9


Startup Upgrade

STARTUP UPGRADE mode will suppress normal upgrade


errors:
• Previously, STARTUP MIGRATE in Oracle Database 9i
R2
• Only real errors are spooled
• Automatically handles setting system parameters that
can otherwise cause problems during upgrade
– Turns off job queues
– Disables system triggers
– Allows AS SYSDBA connections only

1 - 10 Copyright © 2007, Oracle. All rights reserved.

Startup Upgrade
STARTUP UPGRADE enables you to open a database based on an earlier Oracle Database
release. It also restricts logons to AS SYSDBA sessions, disables system triggers, and performs
additional operations that prepare the environment for the upgrade (some of which are listed on
the slide).

Oracle Database 11g: New Features for Administrators 1 - 10


Upgrade Performance Enhancement

Parallel recompilation of invalid PL/SQL database objects


on multiprocessor CPUs:
• Utlrp.sql can now exploit multiple CPUs to speed up
the time required to recompile any stored PL/SQL and
Java code.

1 - 11 Copyright © 2007, Oracle. All rights reserved.

Upgrade Performance Enhancement


This script is a wrapper based on the UTL_RECOMP package.
UTL_RECOMP provides a more general recompilation interface, including options to recompile
objects in a single schema. Please see the documentation for package UTL_RECOMP for more
details.
By default this script invokes the utlprp.sql script with 0 as the degree of parallelism for
recompilation. This means that UTL_RECOMP will automatically determine the appropriate
level of parallelism based on Oracle parameters cpu_count and parallel_threads_per_cpu. If the
parameter is 1, sequential recompilation is used.

Oracle Database 11g: New Features for Administrators 1 - 11


Post-Upgrade Status Tool

Run utlu111s.sql to display the results of the upgrade


• Error logging now provides more information per
component
• Reviews the status of each component and lists the
elapsed time
• Provides information about invalid/incorrect
component upgrades
• Run this tool after the upgrade completes to see errors
and check the status of the components

1 - 12 Copyright © 2007, Oracle. All rights reserved.

Post-Upgrade Status Tool


The Post-Upgrade Status Tool provides a summary of the upgrade at the end of the spool log. It
displays the status of the database components in the upgraded database and the time required to
complete each component upgrade. Any errors that occur during the upgrade are listed with each
component and must be addressed.
Run utlu111s.sql to display the results of the upgrade.

Oracle Database 11g: New Features for Administrators 1 - 12


Rerun the Upgrade

Oracle Database 11.1 Upgrade Status Utility 03-18-2007 22:48:55


Component Status Version HH:MM:SS
Oracle Server VALID 11.1.0.4.0 00:19:31
JServer JAVA Virtual Machine VALID 11.1.0.4.0 00:03:32
Oracle Workspace Manager VALID 11.1.0.4.0 00:01:02
Oracle Enterprise Manager VALID 11.1.0.4.0 00:12:02
Oracle XDK VALID 11.1.0.4.0 00:00:42
Oracle Text VALID 11.1.0.4.0 00:01:02
Oracle XML Database VALID 11.1.0.4.0 00:04:24
Oracle Database Java Packages VALID 11.1.0.4.0 00:00:27
Oracle interMedia VALID 11.1.0.4.0 00:05:44
Spatial
ORA-04031: unable to allocate 4096 bytes of shared memory ("java
pool","java/awt/FrameSYS","joxlod exec hp",":SGAClass")
ORA-06512: at "SYS.DBMS_JAVA", line 704
INVALID 11.1.0.4.0 00:09:24

Total Upgrade Time: 02:08:24

1 - 13 Copyright © 2007, Oracle. All rights reserved.

Rerun the Upgrade


The Post-Upgrade Status Tool should report VALID status for all components at the end of the
upgrade. The following list shows and briefly describes other status values that you might see:
As shown on the slide, the report returns INVALID for the Spatial component. This is because of
the ORA-04031 error. In this case, you should fix the problem, then running utlrp.sql might
change the status to VALID without rerunning the entire upgrade. Check the DBA_REGISTRY
view after running utlrp.sql. If that does not fix the problem, or if you see UPGRADING status,
the component upgrade did not complete. Resolve the problem and rerun catupgrd.sql after you
shutdown immediate followed by a startup upgrade.

Oracle Database 11g: New Features for Administrators 1 - 13


Upgrade Process

1 - 14 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 14


Prepare to Upgrade

1. Become familiar with the features of the New Oracle


Database 11g Release 1
2. Determine the upgrade path
3. Choose an upgrade method
4. Choose an OFA compliant Oracle Home directory
5. Prepare a backup and recovery strategy
6. Develop a test plan to test your database, applications,
and reports

1 - 15 Copyright © 2007, Oracle. All rights reserved.

Prepare to Upgrade
Before you upgrade your database, you should perform the following steps:
1. Become familiar with the features of Oracle Database 11g release 1 (11.1).
2. Determine the upgrade path to the new release.
3. Choose an upgrade method.
4. Choose an Oracle home directory for the new release.
5. Prepare a backup and recovery strategy
6. Develop a testing plan.

Oracle Database 11g: New Features for Administrators 1 - 15


Oracle Database 11g Release 1 Upgrade Paths

• Direct upgrade to 11g is supported from 9.2.0.4 or


higher, 10.1.0.2 or higher, and 10.2.0.1 or higher.
• If you are not at one of these versions you need to
perform a “double-hop” upgrade
• For example:
– 7.3.4 -> 9.2.0.8 -> 11.1
– 8.1.7.4->9.2..0.8->11.1

1 - 16 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g Release 1 Upgrade Paths


The path that you must take to upgrade to Oracle Database 11g release 1 (11.1) depends on the
release number of your current database. It might not be possible to upgrade directly from your
current version of Oracle Database to the latest version. Depending on your current release, you
might be required to upgrade through one or more intermediate releases to upgrade to Oracle
Database 11g release 1 (11.1).
For example, if the current database is running release 8.1.6, then follow these steps:
1. Upgrade release 8.1.6 to release 8.1.7A using the instructions in Oracle8i Migration Release 3
(8.1.7).
2. Upgrade release 8.1.7A to 9.2.0.8 using the instructions in Oracle9i Database Migration
Release 2 (9.2).
3. Upgrade release 9.2.0.8 to Oracle Database 11g release 1 (11.1) using the instructions in this
lesson.

Oracle Database 11g: New Features for Administrators 1 - 16


Choose an Upgrade Method

• Database Upgrade Assistant (DBUA)


– Automated GUI tool that interactively steps the user
through the upgrade process and configures the
database to run with Oracle Database 11g Release 1
• Manual Upgrade
– Use SQL*Plus to perform any necessary actions to
prepare for the upgrade, run the upgrade scripts and
analyze the upgrade results
• Export-Import
– Use Data Pump or original Export/Import
• CREATE TABLE AS SQL statement

1 - 17 Copyright © 2007, Oracle. All rights reserved.

Choose an Upgrade Method


Oracle Database 11g release 1 (11.1) supports the following tools and methods for upgrading a
database to the new release:
• Database Upgrade Assistant (DBUA) provides a graphical user interface (GUI) that guides
you through the upgrade of a database. DBUA can be launched during installation with the
Oracle Universal Installer, or you can launch DBUA as a standalone tool at any time in the
future. DBUA is the recommended method for performing a major release upgrade or patch
release upgrade.
• Manual upgrade using SQL scripts and utilities provide a command-line upgrade of a
database, using SQL scripts and utilities.
• Export and Import utilities use the Oracle Data Pump Export and Import utilities, available as
of Oracle Database 10g release 1 (10.1), or the original Export and Import utilities to perform
a full or partial export from your database, followed by a full or partial import into a new
Oracle Database 11g release 1 (11.1) database. Export/Import can copy a subset of the data,
leaving the database unchanged.
• CREATE TABLE AS SQL statement copies data from a database into a new Oracle
Database 11g release 1 (11.1) database. Data copying can copy a subset of the data, leaving
the database unchanged.

Oracle Database 11g: New Features for Administrators 1 - 17


Database Upgrade Assistant Advantages and
Disadvantages

• Advantages
– Automates all tasks
– Performs both Release and Patch set upgrades
– Supports RAC, Single Instance and ASM
– Informs user and fixes upgrade prerequisites
– Automatically reports errors found in spool logs
– Provides complete HTML report of the upgrade process
– Command line interface allows ISVs to automate
• Disadvantages
– Offers less control over individual upgrade steps

1 - 18 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 18


Manual Upgrade Advantages and Disadvantages

• Advantages
– The DBA controls every step of the upgrade process
• Disadvantages
– More work
– Manually run utlu111s.sql to check for errors
– More error prone
– Harder to automate

1 - 19 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 19


Sample Test Plan

• Make a clone of your production system using


Enterprise Manager
• Upgrade test database to latest version
• Update COMPATIBLE to latest version
• Run your applications, reports, and legacy systems
• Ensure adequate performance by comparing metrics
gathered before and after upgrade
• Tune queries or problem SQL statements
• Update any necessary database parameters

1 - 20 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 20


Manual Upgrade

1 - 21 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 21


Performing a Manual Upgrade - 1

1. Install Oracle Database 11g Release 1 in new


ORACLE_HOME
2. Analyze the existing database
– Use rdbms/admin/utlu111i.sql with existing server
– SQL> spool pre_upgrade.log
– SQL> @utlu111i
3. Adjust redo logs and tablespace sizes if necessary
4. Copy existing initialization files to new ORACLE_HOME
and make adjustments as recommended
5. Shutdown immediate, backup, then switch to the new
ORACLE_HOME

1 - 22 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 22


Performing a Manual Upgrade - 2

6. Startup using the Oracle Database 11g Release 1


server
– SQL> startup upgrade
7. If you are upgrading from 9.2, then create a SYSAUX
tablespace
– SQL> create tablespace SYSAUX datafile
'e:\oracle\oradata\empdb\sysaux01.dbf'
size 500M reuse
extent management local
segment space management auto
online;
8. Run the upgrade (automatically shuts db down)
– SQL> spool upgrade.log
– SQL> @catupgrd.sql

1 - 23 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 23


Performing a Manual Upgrade - 3

9. Restart the database instance in normal mode


– SQL> startup
10. Run post-upgrade status utility to display the results
of the upgrade
– SQL>@utlu111s.sql
11. Run post upgrade actions
– SQL> @catuppst.sql
12. Recompile and revalidate any remaining application
objects
– SQL> @utlrp (will do parallel compile on multi-
processor system)

1 - 24 Copyright © 2007, Oracle. All rights reserved.

Note: catuppst.sql is the post-upgrade script that performs remaining upgrade actions that
do not require that the database be open in UPGRADE mode. It can be run at the same time
utlrp.sql is being run.

Oracle Database 11g: New Features for Administrators 1 - 24


Now you are ready to use Oracle Database 11g
Release 1!

• Perform any required post-upgrade steps


• Make additional post-upgrade adjustments to
initialization parameters
• Test your applications and tune performance
• Finally, set initialization parameter COMPATIBLE to 11.1
to make full use of Oracle Database 11g Release 1
features
• 10.0.0 is the minimum compatibility required for 11.1

1 - 25 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 25


Downgrading a Database

1 - 26 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 26


Downgrading a Database - 1

1. Major release downgrades are supported back to 10.2 and


10.1
2. Can only downgrade back to the release from which you
upgraded
3. Shutdown and start up the instance in DOWNGRADE mode
– SQL> startup downgrade
4. Run the downgrade script which automatically determines
the version of the database and calls the specific component
scripts
– SQL> SPOOL downgrade.log
– SQL> @catdwgrd.sql
5. Shutdown the database immediately after the downgrade
script ends
– SQL> shutdown immediate;

1 - 27 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 27


Downgrading a Database - 2

6. Move to the old ORACLE_HOME environment and startup the


database in upgrade mode
– SQL> startup upgrade
7. Reload the old packages and views
– SQL> SPOOL reload.sql
– SQL> @catrelod.sql
8. Shutdown and restart the instance for normal operation
– SQL> shutdown immediate;
– SQL> startup
9. Run utlrp.sql to recompile all existing packages,
procedures and types that were previously in an INVALID
state
– SQL> @utlrp
10. Perform any necessary post-downgrade tasks

1 - 28 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 28


Database Upgrade Assistant

1 - 29 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 29


Database Upgrade Assistant (DBUA)

• DBUA is a GUI and command line tool for performing


database upgrades
• Uses a Wizard Interface
– Automates the upgrade process
– Simplifies detecting and handling upgrade issues
• Supported Releases for 11g
– 9.2, 10.1 and 10.2
• Patchset Upgrades
– Supported 10.2.0.3 onwards
• Support the following database types
– Single instance
– Real Application Clusters
– Automatic Storage Management

1 - 30 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 30


Key DBUA Features - 1

• Upgrade Scripts
– Runs all necessary scripts to perform the upgrade
• Progress
– Displays upgrade progress at a component level
• Configuration Checks
– Automatically makes appropriate adjustments to
initialization parameters
– Checks for adequate resources such as SYSTEM
tablespace size, rollback segments size, redo log size
– Checks disk space for auto extended datafiles
– Creates mandatory SYSAUX tablespace
– Space Usage summary in SpaceUsage.txt

1 - 31 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 31


Key DBUA Features - 2

• Recoverability
– Performs a backup of the database before upgrade
– If needed can restore the database after upgrade
• Pre-Upgrade Summary
– Prior to upgrade provides summary of all actions to be
taken
– Wizard warns user about any issues found
– Provides space analysis information for backup
– Applies required changes to network configuration files

1 - 32 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 32


Key DBUA Features - 3

• Configuration files
– Creates init.ora and spfile in new ORACLE_HOME
– Updates network configurations
– Uses OFA compliant locations
– Updates database information on Oracle Internet
Directory
• Oracle Enterprise Manager
– Allows you to setup and configure EM DB Control
– Allows you to register database with EM Grid Control
– If EM is in use upgrades EM repository and makes
necessary configuration changes
• Logging and tracing
– Writes detailed trace and logging files
(ORACLE_BASE/cfgtoollogs/dbua/<sid>/upgradeNN)

1 - 33 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 33


Key DBUA Features - 4

• Real Application Clusters


– All nodes are upgraded
– All configuration files are upgraded
• Minimizing Downtime
– Speeds up upgrade by disabling archiving
– Recompiles packages in parallel
– User interaction is not required after upgrade starts
• Security features
– Locks new users in the upgraded database

1 - 34 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 34


Customizability

• Post-Upgrade Scripts
– ISVs can customize DBUA to run their upgrade scripts
• XML Driven
– XML files drive the DBUA engine
– Created by Pre-Upgrade Information Tool & Post-Upgrade
Status Tool
• Initialization Parameter Changes
– Accepts initialization parameters overrides from user
— dbua –initParam param1=value1,param2=value2
• Silent mode provides single command upgrade
– dbua –silent –sid ora9idb [-backup <location>]

1 - 35 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 35


Upgrade Results

• HTML Report
– Displays results of upgrade process
– Provides Post-Upgrade database information such as
Version and ORACLE_HOME
• Component Level Results
– Reports on the success / failure of each component
– Provides a report on errors or warnings categorized per
component
• Allows DBA to unlock new database users
• Allows DBA to restore the original database

1 - 36 Copyright © 2007, Oracle. All rights reserved.

Oracle Database 11g: New Features for Administrators 1 - 36

Das könnte Ihnen auch gefallen