ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORACLE数据库升级:将10.2.0.1升级至10.2.0.4

ORACLE数据库升级:将10.2.0.1升级至10.2.0.4

原创 Linux操作系统 作者:q418441117 时间:2012-09-17 11:36:16 0 删除 编辑

系统环境:redhat linux 5.4  .rhel-server-5.4-x86_64

操作步骤如下:

1.停止所有oracle相关进程。

emctl stop dbconsole

isqlplusctl stop

lsnrctl stop

sql>shutdown immediate

 

2.下载安装p6810189_10204_Linux-x86

./runInstaller

 

3.进入root用户,执行脚本

/u01/app/oracle/product/10.2.0/db_1/root.sh

 

4.以升级模式启动数据库

(1)startup upgrade

(2)重建数据字典

 @ $ORACLE_HOME/rdbms/admin/catupgrd.sql

(3)shutdown immediate

(4)startup

(5)编译无效对象

@ ?/rdbms/admin/utlrp.sql

(6)检查所有组件的状态

SQL> select comp_name, version, status from sys.dba_registry;

显示值为VALID,则成功完成升级。

 (7)查看如下数据字典

   SQL> select tablespace_name,status from dba_tablespaces;

--表空间都在

SQL> select username from dba_users;

--用户都在

SQL> select object_name from dba_objects where wner='SCOTT';

--用户对象都在

 

 总结注意点:

1.  升级前最好将数据库设置为非归档模式,否则日志会很多。

Alter database noarchivelog

Alter system set db_recovery_file_dest_size=8G scope=both;

2.  如果接下来需要迁移,则需修改compatible参数

Alter system set compatible=’10.2.0.4.0’ scope=spfile;

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26655292/viewspace-743748/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: DROP VIEW后的恢复
请登录后发表评论 登录
全部评论

注册时间:2012-09-11

  • 博文量
    203
  • 访问量
    471920