ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [20130320]升级oracle 11.2.0.1到11.2.0.3.txt

[20130320]升级oracle 11.2.0.1到11.2.0.3.txt

原创 Linux操作系统 作者:lfree 时间:2013-03-22 09:38:29 0 删除 编辑
[20130320]升级oracle 11.2.0.1到11.2.0.3.txt

一直想升级自己的测试环境从oracle 11.2.0.1到11.2.0.3。我的使用版本是
SQL> select * from v$version where rownum<=1;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

今天抽空做一个升级:
unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
unzip p10404530_112030_Linux-x86-64_3of7.zip 
--最后一个grid的盘,我没有使用它,不用解压。

关闭数据库以及监听。参考了。
http://blog.csdn.net/tianlesoftware/article/details/6833591

Cause  - no additional information available.  
Action - Reefers logs or contact Oracle Support Services  
Summary -[INS-07009] Unable to load bean store 
        -oracle.xml.parser.v2.XMLParseException: Invalid char in text. 
        -Invalid char in text.  

出现如上提示,继续。
选择skip software update,因为我们的patchset已经下载过了.

我的测试机器非常古老,使用的是 Red Hat Enterprise Linux AS release 4 (Nahant Update 3).
提示有两个rpm报太旧,必须升级,google很难找到。
http://ftp.riken.go.jp/Linux/cern/slc41/x86_64/yum/updates/glibc-common-2.3.4-2.41.x86_64.rpm
http://ftp.riken.go.jp/Linux/cern/slc41/x86_64/yum/updates/glibc-2.3.4-2.41.x86_64.rpm


# rpm -qip glibc-common-2.3.4-2.41.x86_64.rpm
warning: glibc-common-2.3.4-2.41.x86_64.rpm: V3 DSA signature: NOKEY, key ID 1d1e034b
Name        : glibc-common                 Relocations: (not relocatable)
Version     : 2.3.4                             Vendor: Scientific Linux CERN, http://cern.ch/linux
Release     : 2.41                          Build Date: Tue 29 Jul 2008 08:40:35 PM CST
Install Date: (not installed)               Build Host: lxcert-amd64.cern.ch
Group       : System Environment/Base       Source RPM: glibc-2.3.4-2.41.src.rpm
Size        : 59479787                         License: LGPL
Signature   : DSA/SHA1, Wed 30 Jul 2008 03:58:48 PM CST, Key ID 5e03fde51d1e034b
Packager    : CERN Linux Support 
Summary     : Common binaries and locale data for glibc.
Description :
The glibc-common package includes common binaries for the GNU libc
libraries, as well as national language (locale) support and timezone
databases.

--也许我选择不是rh自带的升级都是报错,我强制安装了。
rpm -Uvh --force glibc-2.3.4-2.41.x86_64.rpm glibc-common-2.3.4-2.41.x86_64.rpm

接着选择:
upgrade an existing database。
language: english
database edition:Enterprise Edition

另外,我安装选择了新的ORACLE_HOME=/u01/app/oracle11g/product/11.2.0/db_2,不覆盖原来的
/u01/app/oracle11g/product/11.2.0/db_2。跳过dbua升级,配置监听。

最后执行
 /u01/app/oracle11g/product/11.2.0/db_2/root.sh

修改/etc/oratab文件:
test:/u01/app/oracle11g/product/11.2.0/db_1:N
为
test:/u01/app/oracle11g/product/11.2.0/db_2:N

修改oracle用户的.bash_profile文件的db_1改为db_2.

拷贝原来dbs目录下的orapwtesthe和spfiletest.ora文件。

最后升级数据库,简单记录命令如下:

STARTUP UPGRADE
SPOOL patch.log
@?/rdbms/admin/catupgrd.sql
SPOOL OFF
 
SHUTDOWN
STARTUP

编译包,这步是可选!
SQL> @?/rdbms/admin/utlrp.sql

 

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

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969578