oracle11.1升级到11.2,LINUX中ORACLE 11.2.0.1 升级到11.2.0.4

11.2.0.4补丁号13390677,共7个文件,分别是

b22d51a3f144e4ec2e9e68b878fcb565.png

其中1&2是db,3是grid,4是client,5是gateways,6是example,7是deinstall

上传安装介质并解压

[oracle@localhost db]$ unzip -q p13390677_112040_Linux-x86-64_1of7.zip -d ~

[oracle@localhost db]$ unzip -q p13390677_112040_Linux-x86-64_2of7.zip -d ~

然后查看数据库信息

[oracle@localhost database]$ sql

SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 15:19:39 2019

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

15:19:39 SYS@orcl> show parameter name

NAME TYPE VALUE

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

db_file_name_convert string

db_name string orcl

db_unique_name string orcl

global_names boolean FALSE

instance_name string orcl

lock_name_space string

log_file_name_convert string

service_names string orcl

15:19:49 SYS@orcl>

清空回收站

15:19:49 SYS@orcl> purge dba_recyclebin;

DBA Recyclebin purged.

Elapsed: 00:00:00.02

15:21:23 SYS@orcl> select count(1) from dba_recyclebin;

COUNT(1)

----------

0

Elapsed: 00:00:00.01

15:21:36 SYS@orcl>

查看无效对象

15:21:36 SYS@orcl> select count(*) from dba_objects where status<>'VALID';

COUNT(*)

----------

0

备份数据库,因为是测试库没数据就算了

关闭数据库,关闭监听

15:31:52 SYS@orcl> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

15:34:01 SYS@orcl> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@localhost database]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-MAR-2019 15:35:13

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

The command completed successfully

[oracle@localhost database]$

创建新的home目录并设置环境变量

[oracle@localhost database]$ mkdir -p /u01/app/oracle/product/11.2.0/dbhome_2/

[oracle@localhost database]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2

[oracle@localhost database]$ ./runInstaller

接着图形操作,i wish to receive ..这个勾去掉

f83290d1f0278eb008ec6382ff9a37bb.png然后选择Skip software updates,

0ca3ce1a00fc25b824d01a289c7383fc.png选择update an existing database

ca98fce859cc80591ef7acb756d7d6f9.png选择语言,

332912d344006974767a26b7a272a3b1.png选择企业版,

39cc92b842b05d44e21ee2f8efa9082b.png选择目录

cb5e2db25754a0d494f0431e3ccdf5f5.png确认组

bf7258c2d3456d3317964f07e50ff903.png预检查后忽略错误继续,中间遇到报错也continue继续

75fab0298a04112ad683b3d7d30e7049.png

e695e99485f35ee076c194bee2780367.png

916874d86ba92d47aade9e810dc98350.png

4eb0e1a5a3c82a4319862f882daf2630.png

edc608eb925a2de743dced5a61aa2bad.png

c91a534b9803a048e7914bd034e6980e.png

02780a720b537619e8142d44e9e81282.png执行root脚本

637631bad18cf67e3456d6a6ea38a3ed.png

[root@localhost ~]# /u01/app/oracle/product/11.2.0/dbhome_2/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_2

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

The contents of "dbhome" have not changed. No need to overwrite.

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 script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

[root@localhost ~]#

23f49b0bbed5857dadaef0a649af6c05.png

25ee9b02dbdc0783c3992b87b02bf1b1.png配置完监听后

f4ae7fcac7d1401882f6b3c0a97970f5.png下一步

df789cdee9231c076d0bba3646b14cd2.png

16d9b8b8d56ebd21d18be585e8124182.png

d8df09d944ffb47942503962172b09a2.png

5c6c70d91c072f67a99fae4aabdc7221.png不移动数据文件

929e713fb71075d9250f1d346c7bc962.png选择闪回恢复区及其大小

b5422b7b8d0f3f484b6bab3549be17c0.png

62f930ea483fbd376a5d6e79c9b29ae9.png点击finish后,界面出现一个小竖条,不过可以拉开 如下

6e5ba5edea7663d76d22b7080c6c2f92.png

cee9fab010245e3140f7f1dbf27feab8.png

b11e4a12b8f25f6e0652e663b3b5c60a.png

d93f276454d9ae2a26198112c62639bd.png

7df4dbaa07bc405fe6421421e570710c.png

26e5eaa7fa218e192eafafc787643362.png

8a5f71976efe15dcf9450081ba62176b.png设置下sqlplus

[oracle@localhost admin]$ vim glogin.sql

Define _editor='vi'

Set sqlprompt "_user'@'_connect_identifier> "

set time on

set timing on

set pagesize 40

set linesize 120

[oracle@localhost admin]$ sql

SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 16:53:47 2019

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

16:53:47 SYS@orcl> select * from v$version;

BANNER

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

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

PL/SQL Release 11.2.0.4.0 - Production

CORE 11.2.0.4.0 Production

TNS for Linux: Version 11.2.0.4.0 - Production

NLSRTL Version 11.2.0.4.0 - Production

Elapsed: 00:00:00.01

16:53:55 SYS@orcl>

have fun

Oracle11&period;2&period;0&period;1升级到11&period;2&period;0&period;3

Oracle数据库升级也并非简单的事,这篇博客,博主对Oracle那点事做了较详细的介绍: http://blog.itpub.net/9599/viewspace-473003/ 我还属于Oracl ...

Oracle数据库版本10&period;2&period;0&period;1升级到10&period;2&period;0&period;3&lpar;转)

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

rac 10g 10&period;2&period;0&period;1升级到10&period;2&period;0&period;5具体解释

RAC 10.2.0.1 升级到 10.2.0.5 一. 准备: Patch 包:p8202632_10205_LINUX.zip   节点数:3个节点       RAC1    RAC2  ...

Linux下Oracle 10&period;2&period;0&period;1升级到10&period;2&period;0&period;4总结

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

oracle--10&period;2&period;0&period;3升级到11&period;2&period;0&period;4

一,环境 01,待升级的系统 升级仅支持10.2.0.2版本之后的系统,如果不是,请把10G升级至高版本! 本次实验环境10.2.0.3 02,挂载11G系统 03,升级须知 1) 做好备份 二,DB ...

hadoop2&period;3&period;0cdh5&period;0&period;2 升级到cdh5&period;7&period;0

后儿就放假了,上班这心真心收不住,为了能充实的度过这难熬的两天,我决定搞个大工程.....ps:我为啥这么期待放假呢,在沙发上像死人一样躺一天真的有意义嘛....... 当然版本:hadoop2.3. ...

CDH 版本 6&period;0&period;1 升级到 6&period;2&period;0 当前最新版本(CentOS 7&period;x)

前文「CDH CM版本 6.0.1 升级到 CM 6.2.0 当前最新版本(CentOS 7.x)」 承接上文,当我们完成 CM 6.2.0 的升级之后,我们已经相当于完成了80% minor 的升级 ...

Linux中Oracle启动侦听报错TNS&colon;permission denied的解决方法

最近在开发环境 oracle 启动侦听的时候,出现了 TNS:permission denied 的问题,通过网上和咨询朋友,最终找到了解决方案,现在共享出来给有需要的朋友. [oracle@orac ...

Linux 中 Oracle dmp 文件导入导出

a. 用户名 system 密码 manager 导出到D:/daochu.dmp中 exp system/manager@SID file=d:/daochu.dmp full=y b. 将数据库中 ...

随机推荐

Linux&lpar;Centos&rpar;快速搭建SVN

前言 项目中源码或者文档需要进行管理与版本记录,历数此类工具VSS.CVS.SVN.GIT等等,有非常多的版本控制系统.SVN现在还是很常见,把笔记总结搬上博客,SVN这个再不放以后估计只能写GIT的 ...

ie8 table td拆分宽度不适应问题

在table上加style="table-layout: fixed;"并在首行加一个高度为0且给定宽度的tr

UITableView 的横向滑动实现

UITableView 的横向滑动实现 概述 为了实现横向滑动的控件,可以继承类 UIScrollView 或类 UIView 自定义可以横向滑动的控件,这里通过 UITableView 的旋转,实现 ...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值