网站建设资讯

NEWS

网站建设资讯

11.2.0.3升级到11.2.0.4-创新互联

1.备份/关库/关监听
rman 备份
shutdown immediate;
lsnrctl stop
2.安装  11.2.0.4 软件

图片略
mkdir 新目录
3.修改环境变量/监听文件/dbs内容
修改  .bash_profile 内容
cp   network/admin 下内容
cp   dbs/  下内容
4.数据库执行升级脚本
SQL> startup upgrade;
ORACLE instance started.
Total System Global Area 5044088832 bytes
Fixed Size                  2237048 bytes
Variable Size             922750344 bytes
Database Buffers         4110417920 bytes
Redo Buffers                8683520 bytes
Database mounted.
Database opened.
SQL> @?/rdbms/admin/utlu112i.sql          ---执行升级前检查
Oracle Database 11.2 Pre-Upgrade Information Tool 08-31-2017 22:39:24
Script Version: 11.2.0.3.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
--> name:          MYTEST
--> version:       11.2.0.3.0
--> compatible:    11.2.0.0.0
--> blocksize:     8192
--> timezone file: V14
.
Database already upgraded; to rerun upgrade use rdbms/admin/catupgrd.sql.
--这样显示是不正确的, 要把相关的 pmon kill 掉, 还要把  dbs 下的  lk 删除,然后再启库
SQL> @?/rdbms/admin/catupgrd.sql       ---执行脚本
SQL> startup;
ORACLE instance started.
Total System Global Area 5044088832 bytes
Fixed Size                  2237048 bytes
Variable Size             939527560 bytes
Database Buffers         4093640704 bytes
Redo Buffers                8683520 bytes
Database mounted.
Database opened.
SQL>  @?/rdbms/admin/utlrp       --统计无效对象

当前文章:11.2.0.3升级到11.2.0.4-创新互联
网址分享:http://njwzjz.com/article/dhpedo.html