【upgrade】oracle10.2.0.1.0升级10.2.0.5.0 for linux


Oracle upgrade  version: 10.2.0.1.0à10.2.0.5.0   for  Oracle Linux Server release 6.4

 

1.         检查数据库状态与版本信息:

[oracle@sam ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 27 15:40:46 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and D

SQL> select * from v$version;

 BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

PL/SQL Release 10.2.0.1.0 - Production

CORE    10.2.0.1.0      Production

TNS for Linux: Version 10.2.0.1.0 - Production

NLSRTL Version 10.2.0.1.0 – Production

SQL> select open_mode from v$database;

 OPEN_MODE

----------

READ WRITE

 

2.         关闭数据库:

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>

 

3.         对数据库软件进行备份

tar -zcvf /10g/app/oracle/product/10.2.0/dbhome_1.tar /10g/app/oracle/product/10.2.0/*

 

4.         安装 Oracle 10.2.0.5.0 软件:

[oracle@test Disk1]$ ./runInstaller

Starting Oracle Universal Installer...

 Checking installer requirements...

 Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 or SuSE-11

                                      Passed

 

 All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-12-27_03-51-42PM. Please wait ...[oracle@test Disk1]$ Oracle Universal Installer, Version 10.2.0.5.0 Production

Copyright (C) 1999, 2010, Oracle. All rights reserved.

 



 


 

此报错处理方法,有程序未关闭,重启动再安装不出现此报错。

 

 

 


 

5.         执行root.sh脚本(用户root执行):

[root@test ~]# /10g/app/oracle/product/10.2.0/dbhome_1/root.sh

Running Oracle 10g root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /10g/app/oracle/product/10.2.0/dbhome_1

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]:

 

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

[root@test ~]#

  


 

6.         升级数据字典:

[oracle@test ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5.0 - Production on Mon Dec 27 17:50:44 2013

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to an idle instance.

 

SQL> startup upgrade;

ORACLE instance started.

 

Total System Global Area  419430400 bytes

Fixed Size                  2096728 bytes

Variable Size             121635240 bytes

Database Buffers          289406976 bytes

Redo Buffers                6291456 bytes

Database mounted.

Database opened.

SQL> spool /tmp/upgrade.log    

SQL> @?/rdbms/admin/catupgrd.sql

..........日志略过,完成后可以查看/tmp/upgrade.log日志文件

 

SQL> select instance_name,status from v$instance;

 

INSTANCE_NAME    STATUS

---------------- ------------

OCM10G           OPEN MIGRATE

 

7.         重新启动到OPEN状态并检查版本信息:

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

 

SQL> startup

ORACLE instance started.

 

Total System Global Area  419430400 bytes

Fixed Size                  2096728 bytes

Variable Size             171966888 bytes

Database Buffers          239075328 bytes

Redo Buffers                6291456 bytes

Database mounted.

Database opened.

SQL> select instance_name,status from v$instance;

 

INSTANCE_NAME    STATUS

---------------- ------------

OCM10G           OPEN

 

SQL> select * from v$version;

 

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi

PL/SQL Release 10.2.0.5.0 - Production

CORE    10.2.0.5.0      Production

TNS for Linux: Version 10.2.0.5.0 - Production

NLSRTL Version 10.2.0.5.0 - Production

SQL>

到此升级到此结束,后继还将分享OPatch打补丁方法。


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

转载于:http://blog.itpub.net/26148431/viewspace-1066641/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目录 第1章 RED HAT ENTERPRISE LINUX AS 4 Update 2 X86_64系统安装 1 1.1 安装准备(在所有节点上执行) 1 1.2 操作系统安装(在所有节点上执行) 2 1.3 关闭smartd、启动telnet和vsftpd(在所有节点上执行) 15 1.4 将缺省语言转为简体中文(在所有节点上执行) 17 1.5 配置Xmanager的使用(在所有节点上执行) 17 1.6 IBM DS 400 光纤磁盘阵列配置(只需从单个节点运行) 18 第2章 ORACLE 10.2.0.1 X86_64 Real Application Cluster (RAC) for RED HAT ENTERPRISE LINUX AS 4 Update 2 X86_64系统安装 24 2.1 检查软件环境需求的程序包(在所有节点上执行) 24 2.2 检查物理内存和交换空间(在所有节点上执行) 26 2.3 配置系统参数(在所有节点上执行) 28 2.4 创建Oracle帐户(在所有节点上执行) 28 2.5 创建Oracle目录(在所有节点上执行) 29 2.6 设置Oracle用户登录配置文件(在所有节点上执行) 29 2.7 配置网络设置(在所有节点上执行) 32 2.8 为用户等效性配置 SSH (在所有节点上执行) 34 2.9 配置 hangcheck-timer 内核模块(在所有节点上执行) 36 2.10 计划Oracle数据存储(只需从单个节点运行) 37 2.11 设置Oracle数据存储(只需从单个节点运行) 38 2.12 安装cvuqdisk包(在所有节点上执行) 42 2.13 安装和配置 OCFS(在所有节点上执行) 42 2.14 安装并配置自动存储管理和磁盘(在所有节点上执行) 46 2.15 安装 Oracle ClusterWare 10g软件(只需从单个节点运行) 49 2.16 安装 Oracle Database 10g 软件(只需从单个节点运行) 52 2.17 安装 Oracle Client 10g 软件(只需从单个节点运行) 55 2.18 安装 Oracle Companion 10g 软件(只需从单个节点运行) 56 2.19 创建 TNS 监听器进程(只需从单个节点运行) 57 2.20 创建 Oracle 集群数据库(只需从单个节点运行) 58 2.21 核实 TNS 联网文件(在所有节点上执行) 60 2.22 创建表空间和用户(只需从单个节点运行) 62 2.23 核实 RAC 集群/数据库配置(在所有节点上执行) 62 2.24 启动和停止集群(只需从单个节点运行) 66 2.25 远程管理集群(只需从单个节点运行) 67 2.26 ORACLE 透明故障切换 67 第3章 附录 70 3.1 操作系统版本升级 70 3.2 系统参数 73 3.2.1 共享内存参数 73 3.2.2 信号量参数 74 3.2.3 最大文件句柄数 75 3.2.4 网络参数 76 3.2.5 Oracle用户能够打开的文件句柄的最大数 77 3.2.6 Oracle用户能够执行的进程的最大数 78 3.3 磁盘管理 79 3.3.1 磁盘分区 79 3.3.2 逻辑盘卷管理 80 3.3.3 LVM术语 80 3.3.4 安装LVM 81 3.3.5 命令列表 82 3.3.6 创建分区 83 3.3.7 创建物理卷 83 3.3.8 创建卷组 83 3.3.9 激活卷组 83 3.3.10 添加新的物理卷到卷组中 83 3.3.11 从卷组中删除一个物理卷 84 3.3.12 创建逻辑卷 84 3.3.13 创建文件系统 84 3.3.14 删除一个逻辑卷 85 3.3.15 扩展逻辑卷大小 86 3.3.16 减少逻辑卷大小 86 3.4 Ifconfig 命令详解 87
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值