lunes, 26 de agosto de 2013

Upgrade Oracle 10.2.0.2 a 10.2.0.3 or 10.2.0.5


1. Identify prior installation

Before installing this patch you must install oracle 10.2.0.1 (or later version)

2. Download Patch set

Download and extract the p5337014_10203_WINNT.zip (o el equivalente a 10.2.0.5) patch set installation archive to a directory that is not the Oracle home directory or under the Oracle home directory.

3. Stop all services
emctl stop dbconsole
lsnrctl stop

4. Backup your database and shutdown database


5. Connect sys user
$sqlplus /NOLOG

SQL> CONNECT SYS/SYS_password AS SYSDBA
6. Enter the following SQL*Plus commands:

SQL> STARTUP UPGRADE

SQL> SPOOL patch.log

SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catupgrd.sql

SQL> SPOOL OFF

Review the patch.log file for errors and inspect the list of components that is displayed at the end of catupgrd.sql script.

This list provides the version and status of each SERVER component in the database.

If necessary, rerun the catupgrd.sql script after correcting any problems.

7. Restart the database:

SQL> SHUTDOWN
SQL> STARTUP
8. Compile Invalid Objects

Run the utlrp.sql script to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.

SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\utlrp.sql

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0 - Production
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production