Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8238431
  • 博文数量: 444
  • 博客积分: 10593
  • 博客等级: 上将
  • 技术积分: 3852
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-09 15:26
文章分类

全部博文(444)

文章存档

2014年(1)

2013年(10)

2012年(18)

2011年(35)

2010年(125)

2009年(108)

2008年(52)

2007年(72)

2006年(23)

分类: Oracle

2010-10-07 09:10:19

如何升级oracle10.2.0到oracle 10.2.0.4

关闭数据库及listener
SQL> shutdown immediate
lsnrctl stop

关闭ASM
[oracle@racdb1 ~]$ sqlplus "/ as sysdba"
SQL> shutdown immediate

[root@racdb1 ~]# $ORACLE_HOME/bin/crsctl stop crs
安装补丁
unzip p6810189_10204_Linux-x86.zip
runInstall

[root@racdb1 ~]# $ORACLE_HOME/root.sh

[root@racdb1 ~]# $ORACLE_HOME/bin/crsctl check cssd
CSS appears healthy

[oracle@racdb1 ~]$ echo $ORACLE_SID
+ASM
[oracle@racdb1 ~]$ sqlplus "/ as sysdba"
SQL> startup
ASM instance started

Total System Global Area   83886080 bytes
Fixed Size                  1265912 bytes
Variable Size              57454344 bytes
ASM Cache                  25165824 bytes
ASM diskgroups mounted

[oracle@racdb1 Disk1]$ echo $ORACLE_SID
orc1
[oracle@racdb1 Disk1]$ sqlplus "/ as sysdba"
SQL> startup upgrade
SQL> spool upgrade_info.log
SQL> @?/rdbms/admin/utlu102i.sql
SQL> spool off

Rem    DESCRIPTION
Rem      This script provides information about databases to be
Rem      upgraded to 10.2.
Rem
Rem      Supported releases: 8.1.7, 9.0.1, 9.2.0, and 10.1.0


SQL> spool patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> spool off

Rem    NAME
Rem      catupgrd.sql - CATalog UPGraDe to the new release
Rem
Rem    DESCRIPTION
Rem     This script is to be used for upgrading an 8.1.7, 9.0.1, 9.2
Rem     or 10.1 database to the new release.  This script provides a direct
Rem     upgrade path from these releases to the new Oracle release.


SQL> shutdown immediate
SQL> startup
SQL> @?/rdbms/admin/utlrp.sql

Rem    NAME
Rem      utlrp.sql - Recompile invalid objects
Rem
Rem    DESCRIPTION
Rem     This script recompiles invalid objects in the database.

SQL> select * from UTL_RECOMP_ERRORS; 

SQL> col comp_name format a30
SQL> col version format a20
SQL> col status format a20
SQL> set line 200
SQL> select comp_name, version, status from sys.dba_registry;

COMP_NAME                      VERSION              STATUS
------------------------------ -------------------- --------------------
Oracle Workspace Manager       10.2.0.4.3           VALID

阅读(2960) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~