40084_graves.ppt : Oracle Database Documentation

herryheryadi1 8 views 39 slides Feb 25, 2025
Slide 1
Slide 1 of 39
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39

About This Presentation

Oracle Database


Slide Content

Self-Managing Database: Easy
Upgrade
Tom Graves
Consulting Member of Technical Staff
Oracle Corporation
Session id: 40084

Oracle Database 10g Upgrade
Database upgrade is the process of
transforming the internal Oracle database
dictionary from one release to another
–Driven primarily through SQL and PL/SQL scripts
–Very careful ordering of execution and
dependencies
–Must complete cleanly and correctly before the
database can be used

Oracle Database 10g Upgrade:
Enhancements
Reduced Complexity
–Component integration
–Consolidation of steps
–Single script to upgrade all components
Enhanced GUI tool to assist the upgrade
–Database Upgrade Assistant (DBUA)

Oracle Database 10g Upgrade:
Enhancements
Analysis of database before upgrade to
increase likelihood of successful upgrade
–Pre upgrade information tool
Upgrade Performance Enhancement
–Parallel recompilation of invalid pl/sql database
objects on multiprocessor CPUs
Verification of database upgrade
–Post upgrade status tool

Reduced Complexity
•Automaticly determines what components
(e.g. Java, Spatial…) need to be upgraded
and then performs all necessary upgrades in
correct dependency order
•All components in DBMS_REGISTRY
•Prior to Oracle Database 10g, much of the
component script invocation was manual

Reduced Complexity
One measure of simplicity: Database Upgrade
Guide documentation size is decreasing
dramatically:
–8i 512 pages
–9i 484 pages – 111 steps total for RDBMS
with all 9 components!
–9iR2 344 pages
–10g 230 pages - 6 steps!

Prepare to Upgrade
Become familiar with the features of the new
Oracle Database 10g release
Determine the Upgrade Path to the new
release
Choose an upgrade Method
Choose an Oracle Home Directory
Prepare a Backup Strategy
Develop a test plan

10g Upgrade Paths
Direct upgrade from 9iR2 (9.2.0), 9i (9.0.1), 8i
(8.1.7), 8.0.6
If you are not at one of these versions you
need to perform a “double-hop” Upgrade
–E.g. 8.1.5 -> 8.1.7 -> 10.1.0
–7.3.4 -> 9.2.0 -> 10.1.0

Choose an Upgrade Method
Database Upgrade Assistant (DBUA)
–The Database Upgrade Assistant is a graphical
user interface (GUI) tool that interactively steps
the user through the upgrade process and
configures the database to run with the new
Oracle Database 10g release.
Manual Upgrade
–A manual upgrade consists of running SQL
scripts and utilities from the command line

Database Upgrade Assistant
Advantages
Performs all necessary steps for the upgrade
Interacts with the DBA if decisions need to be
made
Provides complete HTML report of the
upgrade process
Significantly reduces database downtime

Manual Upgrade Advantages &
Disadvantages
Advantage:
–Gives the DBA finer control over the upgrade
process
Disadvantage:
–More work
–More error prone

Pre Upgrade Analysis
Checks for certain known database, init.ora, etc
settings that may cause upgrade to fail, and
generates warnings
E.g. shared_pool_size init.ora parameter is too
low
•Utility runs in “old server” & “old database” context
•Based on “posterity” database knowledge + needs
of Oracle Database 10g
•DBUA automatically performs any required actions

Pre Upgrade Analysis
•Database version and compatibility
•Redo logs <4MB
•Updated Parameters e.g. shared_pool_size
•Deprecated (renamed) parameters
•Obsolete parameters
•Cluster check
•Account Check

Pre Upgrade Analysis
•Names of Components in database e.g. JAVAVM,
Spatial, etc
•Tablespaces
–Increase in size recommendations
–New SYSAUX tablespace
•Character set incompatibilities
•Installed options
•Upgrade time estimate

Key DBUA Features
•The Assistant automates the upgrade process
by performing all the tasks you normally
accomplish manually
–Invokes the Pre Upgrade Information Utility and
automatically makes appropriate adjustments (including
tablespace, redo logs, etc)
–Checks for adequate resources (disk space, rollback
segments)
–Creates mandatory tablespace SYSAUX
–Optionally, backs up all necessary files.
–Creates new configuration files (init.ora, spfile, listener) in
the new Oracle home

Key DBUA Features
•During the upgrade process, the DBUA:
–Runs all necessary scripts (pre-upgrade
information utility, “u” script, post upgrade status
utility)
–Shows upgrade progress
–Write detailed trace and logging files

Key DBUA Features
•Settings during upgrade Settings during upgrade
–DBUA disables archiving during upgrade phase DBUA disables archiving during upgrade phase
•Security featuresSecurity features
–DBUA locks new users in the upgraded database DBUA locks new users in the upgraded database
•RAC-DBUA
–RAC-DBUA facilitates upgrade of 8.1.7, 9.0.1, 9.2 to 10.1.0
–Upgrade done on the cluster. All database and
configuration files are upgraded on all the nodes in the
cluster.

Key DBUA Features
•Customizable
–ISV’s can customize DBUA to run their migration
scripts
–XML files driving the DBUA engine (created by
pre upgrade information utility & post upgrade
status utility)
•Silent mode for single command upgrade
dbua –silent –sid ora9idb
[-backup <location>]

Welcome Screen

Select the database to upgrade

Tablespace

Log Files

Create SYSAUX Tablespace

Parallel Recompilation

Database Backup

Pre-Upgrade Summary Page

Upgrade Progress

Upgrade Results

Upgrade Validation
New “Post Upgrade Status Utility” –
utlu101s.sql
–Queries component REGISTRY to determine
upgrade status
–Provides information about invalid/incorrect
component upgrades
–Provides script name to re-run if necessary
–DBUA calls this script to display status and then
takes corrective action

Upgrade Validation
“OPEN UPGRADE” mode will suppress certain spurious
and unnecessary errors
–Catch and handle ORA-00942 on DROP TABLE
–Automatically handles setting certain system
parameters that can otherwise cause problems during
upgrade (E.g. set job_queue_processes = 0)
DBMS_REGISTRY package and system table are used to record
and manage information about all the component upgrades
–E.g. SQL> select ... from dba_registry;
—COMP_ID COMP_NAME VERSION STATUS
—------- ---------------------- ------- ------
—CATALOG Oracle10g Catalog Views 10.1.0.1.0 VALID

Manual Upgrade
Install Oracle Database 10g
Analyze the existing database using pre
upgrade information tool
@rdbms/admin/utlu101i
Make necessary adjustments based on feedback
Shutdown database
Switch to New Oracle Home

Manual Upgrade
Startup Database
SQL> startup upgrade
Create SYSAUX tablespace
Invoke the proper upgrade “u” script
SQL> @rdbms/admin/u0801070
Shutdown database
Startup database
SQL> startup

Manual Upgrade
Run utlrp
SQL>@rdbms/admin/utlrp
Check upgrade status using post upgrade
status tool
SQL>@rdbms/admin/utlu101s

What’s Next…
Improve after-upgrade confirmation
Improve recovery options
Improve upgrade performance
Reduce downtime for upgrades

Next Steps….
Visit our demo ground
–“Self Managing Database: Easy Upgrade”
In the database area.

Reminder –
please complete the
OracleWorld online session
survey
Thank you.

A
Q
&
Q U E S T I O N SQ U E S T I O N S
A N S W E R SA N S W E R S