Вы находитесь на странице: 1из 52

Upgrading Oracle DB 11.2.0.1 to 11.2.0.

PREPARED BY RAVI KUMAR LANKE

Page 1

There are various ways to upgrade to Oracle 11.2.0.3 and I will be performing an out-ofplace upgrade (best practice) using the Database Configuration Assistant (DBUA). Select values from v$version (Pre-install) -

PREPARED BY RAVI KUMAR LANKE

Page 2

One of the first steps before upgrading is to check any issues that you may encounter during the upgrade process. There is an Pre-Upgrade Information Tool that can be downloaded from the Oracle Support site. This is basically a pre-upgrade script that can be executed on the database and it gathers information about the database configuration and settings that might need to be modified/updated before the actual upgrade. There are various scripts depending upon from which version you are upgrading to Oracle 11.2.0.3, I will be using the utlu112i_5.sql. Log in to the system as the owner of the Oracle Home and connect to the database as SYSDBA and execute the above script and spool it to a file

PREPARED BY RAVI KUMAR LANKE

Page 3

PREPARED BY RAVI KUMAR LANKE

Page 4

PREPARED BY RAVI KUMAR LANKE

Page 5

PREPARED BY RAVI KUMAR LANKE

Page 6

PREPARED BY RAVI KUMAR LANKE

Page 7

PREPARED BY RAVI KUMAR LANKE

Page 8

Resolving errors and warnings 1.Emptying recycle bin

PREPARED BY RAVI KUMAR LANKE

Page 9

Gathering dictionary statistics

PREPARED BY RAVI KUMAR LANKE

Page 10

Download the Oracle Database Patch set (1040530) from the Oracle Support site. Go to the new installation downloads and run installation

PREPARED BY RAVI KUMAR LANKE

Page 11

PREPARED BY RAVI KUMAR LANKE

Page 12

PREPARED BY RAVI KUMAR LANKE

Page 13

PREPARED BY RAVI KUMAR LANKE

Page 14

PREPARED BY RAVI KUMAR LANKE

Page 15

PREPARED BY RAVI KUMAR LANKE

Page 16

PREPARED BY RAVI KUMAR LANKE

Page 17

PREPARED BY RAVI KUMAR LANKE

Page 18

PREPARED BY RAVI KUMAR LANKE

Page 19

PREPARED BY RAVI KUMAR LANKE

Page 20

PREPARED BY RAVI KUMAR LANKE

Page 21

PREPARED BY RAVI KUMAR LANKE

Page 22

When finished, set the environment variable for new home $export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_2 $export PATH=$ORACLE_HOME/bin:$PATH

PREPARED BY RAVI KUMAR LANKE

Page 23

PREPARED BY RAVI KUMAR LANKE

Page 24

PREPARED BY RAVI KUMAR LANKE

Page 25

PREPARED BY RAVI KUMAR LANKE

Page 26

PREPARED BY RAVI KUMAR LANKE

Page 27

PREPARED BY RAVI KUMAR LANKE

Page 28

PREPARED BY RAVI KUMAR LANKE

Page 29

PREPARED BY RAVI KUMAR LANKE

Page 30

PREPARED BY RAVI KUMAR LANKE

Page 31

PREPARED BY RAVI KUMAR LANKE

Page 32

PREPARED BY RAVI KUMAR LANKE

Page 33

PREPARED BY RAVI KUMAR LANKE

Page 34

PREPARED BY RAVI KUMAR LANKE

Page 35

PREPARED BY RAVI KUMAR LANKE

Page 36

PREPARED BY RAVI KUMAR LANKE

Page 37

PREPARED BY RAVI KUMAR LANKE

Page 38

PREPARED BY RAVI KUMAR LANKE

Page 39

PREPARED BY RAVI KUMAR LANKE

Page 40

PREPARED BY RAVI KUMAR LANKE

Page 41

PREPARED BY RAVI KUMAR LANKE

Page 42

PREPARED BY RAVI KUMAR LANKE

Page 43

PREPARED BY RAVI KUMAR LANKE

Page 44

PREPARED BY RAVI KUMAR LANKE

Page 45

PREPARED BY RAVI KUMAR LANKE

Page 46

PREPARED BY RAVI KUMAR LANKE

Page 47

PREPARED BY RAVI KUMAR LANKE

Page 48

PREPARED BY RAVI KUMAR LANKE

Page 49

PREPARED BY RAVI KUMAR LANKE

Page 50

Copy the init/spfile and password files from the 11.2.0.1 to 11.2.0.3. Copy the listener.ora, sqlnet.ora and tnsnames.ora files from 11.2.0.1 to 11.2.0.3.

Start the services and

PREPARED BY RAVI KUMAR LANKE

Page 51

Check the latest version with select * from v$version;

PREPARED BY RAVI KUMAR LANKE

Page 52