1.查看当前系统版本

[oracle@std Disk1]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.1. - Production on Thu Jan  :: 

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

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1. - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options SQL> select * from v$version; BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1. - Prod
PL/SQL Release 10.2.0.1. - Production
CORE 10.2.0.1. Production
TNS for Linux: Version 10.2.0.1. - Production
NLSRTL Version 10.2.0.1. - Production

可以通过以下命令查看数据库位数

[oracle@std Disk1]$ file $ORACLE_HOME/bin/oracle
/u02/app/product/10.2./db_1/bin/oracle: setuid setgid ELF 32-bit LSB executable, Intel , version (SYSV), for GNU/Linux 2.6., dynamically linked (uses shared libs), for GNU/Linux 2.6., not stripped

2.升级前请仔细阅读升级文档

在此我们把升级包p6810189_10204_Linux-x86.zip上传到数据库服务器 并执行 unzip p6810189_10204_Linux-x86.zip

注意:升级之前备份数据

3.停掉ORACLE所有服务

[oracle@std Disk1]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.1. - Production on Thu Jan  :: 

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

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1. - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
[oracle@std Disk1]$ lsnrctl stop
[oracle@std Disk1]$ isqlplusctl stop
[oracle@std Disk1]$ emctl stop dbconsole

4.执行升级程序包

[oracle@std 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, UnitedLinux-1.0, asianux-1, asianux-2 or asianux-3
Failed <<<< Exiting Oracle Universal Installer, log for this session can be found at /u02/oraInventory/logs/installActions2015--15_04--21PM.log

对上面的问题   http://blog.csdn.net/huashnag/article/details/8528829

调出图形界面升级界面:

以root身份执行脚本:

[root@std ~]# /u02/app/product/10.2./db_1/root.sh
Running Oracle10 root.sh script... The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u02/app/product/10.2./db_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]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ... 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.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized Adding to inittab
Startup will be queued to init within seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within seconds.
CSS is active on these nodes.
std
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)

5.执行升级后续脚本

[oracle@std Disk1]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.4. - Production on Fri Jan  :: 

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

Connected to an idle instance.

SQL> startup upgrade
ORACLE instance started. Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
Database mounted.
Database opened.
SQL> @?/rdbms/admin/catupgrd.sql
。。。。。。。。。。。。。。。。。。。。。。

执行完脚本正常关闭数据库重启查看版本:

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started. Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
Database mounted.
Database opened.
SQL> select * from v$version; BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> show parameter compati    

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
compatible string 10.2.0.1.
plsql_v2_compatibility boolean FALSE SQL> alter system set compatible='10.2.0.4.0' scope=spfile;
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started. Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
Database mounted.
Database opened.
SQL> show parameter compat NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
compatible string 10.2.0.4.
plsql_v2_compatibility boolean FALSE

升级的一个总过程顺序:

示例Oracle 10.2.0.1.0升级到10.2.0.4.0一例的更多相关文章

  1. oracle数据库psu升级(本实验是将10.2.0.3.12升级到10.2.0.3.15)

    psu升级(本实验是将10.2.0.3.12升级到10.2.0.3.15) 一.解压安装包自定义存放路径为/home/oracle/yjb/psu/10.2.0.3.15cd /home/oracle ...

  2. CENTOS 6.4 安装oracle 10g,手工建库及升级到10.2.0.5

    一. 数据库软件安装 参照官方手册 1.安装rpm包 注这里的yum直接用163的yum yum -y install binutils compat-libstdc++-33 compat-libs ...

  3. oracle 之 安装10.2.0.1 且 升级到 10.2.0.4

    一. centos 6.5 安装 oracle 10.2.0.1 1.安装操作系统,选择桌面环境 2.配置本地yum源 , 可参考 http://blog.csdn.net/zhang12345645 ...

  4. Linux下Oracle 10.2.0.1升级到10.2.0.4总结

    最近部署测试环境时,将测试环境ORACLE数据库从10.2.0.1升级到了10.2.0.4,顺便整理记录一下升级过程. 实验环境: 操作系统:Oracle Linux Server release 5 ...

  5. ORACLE 10升级到10.2.0.5 Patch Set遇到的内核参数检测失败问题

    在测试ORACLE 10.2.0.4升级到10.2.0.5 Patch Set的过程中,遇到一个内核参数检查失败的问题,具体错误信息如下所示   实验环境: 操作系统:Oracle Linux Ser ...

  6. Oracle数据库版本10.2.0.1升级到10.2.0.3(转)

    Oracle数据库版本10.2.0.1升级到10.2.0.3 1.停止OEM/isqlplus/监听/DB实例 $ emctl stop dbconsole $ isqlplusctl stop $ ...

  7. 升级_开阔视野之Oracle图形化升级(dbca建库后升级)—10.2.0.1.0升为10.2.0.5.0

    ***********************************************声明*************************************************** ...

  8. 【Oracle】10.2.0.1升级到10.2.0.5

    升级数据库到10.2.0.5   因是测试环境,不需要备份:如是生产系统,建议进行全备份后再进行升级操作,预防数据丢失造成不必要的影响.   步骤: 上传并解压补丁,安装前准备,安装补丁,预升级检查, ...

  9. WEBLOGIC 11G (10.3.6) windows PSU 升级10.3.6.0.171017(Java 反序列化漏洞升级)

    10.3.6版本的weblogic需要补丁到10.3.6.0.171017(2017年10月份的补丁,Java 反序列化漏洞升级),oracle官方建议至少打上2017年10月份补丁. 一.查看版本 ...

随机推荐

  1. 廖雪峰js教程笔记9 json

    JSON是JavaScript Object Notation的缩写,它是一种数据交换格式. 在JSON出现之前,大家一直用XML来传递数据.因为XML是一种纯文本格式,所以它适合在网络上交换数据.X ...

  2. 读取接口XML和批量导入数据SqlBulkCopy

    首先是C#处理xml文档 string urlStr = string.Format("http://……?timeBeg={0}&timeEnd={1}", timeBe ...

  3. bash脚本中的普通数组和关联数组

    1. 普通数组 bash支持一维数组(不支持多维数组),并且没有限定数组的大小.类似与C语言,数组元素的下标由0开始编号.获取数组中的元素要利用下标,下标可以是整数或算术表达式,其值应大于或等于0. ...

  4. MACD 基本用法

    基本用法 1. MACD 金叉:DIFF 由下向上突破 DEA,为买入信号. 2. MACD 死叉:DIFF 由上向下突破 DEA,为卖出信号. 3. MACD 绿转红:MACD 值由负变正,市场由空 ...

  5. adams/car 怎么进入template builder模块

    打开C:\Documents and Settings\Administrator文件夹下的acar.cfg文件,将 Desired user mode (standard/expert)ENVIRO ...

  6. 2017亚洲VR&AR博览会暨高峰论坛

    2017亚洲VR&AR博览会暨高峰论坛 2017 Asia VR&AR Fair & Summit(VR&AR Fair 2017) 活动介绍活动时间: 2017年3月 ...

  7. CentOS 6.4 查看每个进程的网络流量

    所需工具nethogs 安装:yum install -y nethogs 使用:nethogs eth0

  8. topcoder SRM 618 DIV2 WritingWords

    只需要对word遍历一遍即可 int write(string word) { ; ; i < word.length(); ++ i){ cnt+=word[i]-; } return cnt ...

  9. Codeforces Round #216 (Div. 2)A. Valera and Plates

    #include <iostream> using namespace std; int main(){ int n, m , k; cin >> n >> m & ...

  10. codeforces round #234B(DIV2) A Inna and Choose Options

    #include <iostream> #include <string> #include <vector> using namespace std; ; ,,, ...