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

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

上传安装介质并解压

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

然后查看数据库信息

  1. [oracle@localhost database]$ sql
  2.  
  3. SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 15:19:39 2019
  4.  
  5. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  6.  
  7. Connected to:
  8. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  9. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  10.  
  11. 15:19:39 SYS@orcl> show parameter name
  12.  
  13. NAME TYPE VALUE
  14. ------------------------------------ ----------- ------------------------------
  15. db_file_name_convert string
  16. db_name string orcl
  17. db_unique_name string orcl
  18. global_names boolean FALSE
  19. instance_name string orcl
  20. lock_name_space string
  21. log_file_name_convert string
  22. service_names string orcl
  23. 15:19:49 SYS@orcl>

清空回收站

  1. 15:19:49 SYS@orcl> purge dba_recyclebin;
  2.  
  3. DBA Recyclebin purged.
  4.  
  5. Elapsed: 00:00:00.02
  6. 15:21:23 SYS@orcl> select count(1) from dba_recyclebin;
  7.  
  8. COUNT(1)
  9. ----------
  10. 0
  11.  
  12. Elapsed: 00:00:00.01
  13. 15:21:36 SYS@orcl>

查看无效对象

  1. 15:21:36 SYS@orcl> select count(*) from dba_objects where status<>'VALID';
  2.  
  3. COUNT(*)
  4. ----------
  5. 0

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

关闭数据库,关闭监听

  1. 15:31:52 SYS@orcl> shutdown immediate;
  2. Database closed.
  3. Database dismounted.
  4. ORACLE instance shut down.
  5. 15:34:01 SYS@orcl> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  6. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  7. [oracle@localhost database]$ lsnrctl stop
  8.  
  9. LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-MAR-2019 15:35:13
  10.  
  11. Copyright (c) 1991, 2009, Oracle. All rights reserved.
  12.  
  13. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
  14. The command completed successfully
  15. [oracle@localhost database]$

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

  1. [oracle@localhost database]$ mkdir -p /u01/app/oracle/product/11.2.0/dbhome_2/
  2. [oracle@localhost database]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2
  3. [oracle@localhost database]$ ./runInstaller

接着图形操作,i wish to receive ..这个勾去掉
然后选择Skip software updates,选择update an existing database选择语言,选择企业版,选择目录确认组预检查后忽略错误继续,中间遇到报错也continue继续执行root脚本

  1. [root@localhost ~]# /u01/app/oracle/product/11.2.0/dbhome_2/root.sh
  2. Performing root user operation for Oracle 11g
  3.  
  4. The following environment variables are set as:
  5. ORACLE_OWNER= oracle
  6. ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_2
  7.  
  8. Enter the full pathname of the local bin directory: [/usr/local/bin]:
  9. The contents of "dbhome" have not changed. No need to overwrite.
  10. The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
  11. [n]: y
  12. Copying oraenv to /usr/local/bin ...
  13. The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
  14. [n]: y
  15. Copying coraenv to /usr/local/bin ...
  16.  
  17. Entries will be added to the /etc/oratab file as needed by
  18. Database Configuration Assistant when a database is created
  19. Finished running generic part of root script.
  20. Now product-specific root actions will be performed.
  21. Finished product-specific root actions.
  22. [root@localhost ~]#

配置完监听后下一步不移动数据文件选择闪回恢复区及其大小点击finish后,界面出现一个小竖条,不过可以拉开 如下设置下sqlplus

  1. [oracle@localhost admin]$ vim glogin.sql
  2. Define _editor='vi'
  3. Set sqlprompt "_user'@'_connect_identifier> "
  4. set time on
  5. set timing on
  6. set pagesize 40
  7. set linesize 120
  1. [oracle@localhost admin]$ sql
  2.  
  3. SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 19 16:53:47 2019
  4.  
  5. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  6.  
  7. Connected to:
  8. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
  9. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  10.  
  11. 16:53:47 SYS@orcl> select * from v$version;
  12.  
  13. BANNER
  14. --------------------------------------------------------------------------------
  15. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
  16. PL/SQL Release 11.2.0.4.0 - Production
  17. CORE 11.2.0.4.0 Production
  18. TNS for Linux: Version 11.2.0.4.0 - Production
  19. NLSRTL Version 11.2.0.4.0 - Production
  20.  
  21. Elapsed: 00:00:00.01
  22. 16:53:55 SYS@orcl>

have fun

LINUX中ORACLE 11.2.0.1 升级到11.2.0.4的更多相关文章

  1. Oracle11.2.0.1升级到11.2.0.3

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

  2. 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 $ ...

  3. rac 10g 10.2.0.1升级到10.2.0.5具体解释

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

  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.2.0.3升级到11.2.0.4

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

  6. 【Oracle】10.2.0.1升级到10.2.0.5

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

  7. hadoop2.3.0cdh5.0.2 升级到cdh5.7.0

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

  8. CDH 版本 6.0.1 升级到 6.2.0 当前最新版本(CentOS 7.x)

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

  9. Linux中Oracle启动侦听报错TNS:permission denied的解决方法

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

随机推荐

  1. JDOJ 1775: 求N!中0的个数

    JDOJ 1775: 求N!中0的个数 JDOJ传送门 Description 求N!结果中末尾0的个数 N! = 1 * 2 * 3 ....... N Input 输入一行,N(0 < N ...

  2. JDOJ 1946 求最长不下降子序列个数

    Description 设有一个整数的序列:b1,b2,…,bn,对于下标i1<i2<…<im,若有bi1≤bi2≤…≤bim 则称存在一个长度为m的不下降序列. 现在有n个数,请你 ...

  3. Computer Network Chapter3 solution

    1.校验和:各数值相加,将溢出位加到最低位,之后将结果取反.若校验和全为0,则说明接收数据正确. 2.停等协议及计算信道利用率:利用率=(L/C)/(L/C+2*传输时延) 3.回退N帧协议(协议5) ...

  4. [LeetCode] 902. Numbers At Most N Given Digit Set 最大为 N 的数字组合

    We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}.  (Not ...

  5. SpringCloud微服务实现生产者消费者以及ribbon负载均衡

    一.SpringCloud_eureka_server 1.导入依赖 <dependencies> <dependency> <groupId>junit</ ...

  6. java 获取用户输入

    import java.util.Scanner; public class Sample { public static void main(String[] args) { int num; Sc ...

  7. jquery + node 通过 CORS 实现跨域访问,支持cookie和自定义header

    跨域有多种方式,现在的情况看来还是CORS更适合一些,有很多优点,比如浏览器正式支持.支持post.可以控制跨域访问的网站等. 我们来看看node如何实现cors方式的跨域.在网上找到了一些代码,考过 ...

  8. IntelliJ IDEA最新版2019年注册码,可激活至2099年 激活 破解

    IntelliJ IDEA最新版2019年注册码,可激活至2099年 激活 破解 特别说明:图中的IDEA是2017版本,不过方法对2019版本的IDEA同样适用! 最近笔者测试了好多破解Idea的方 ...

  9. Visual Studio 调试系列3 断点

    系列目录     [已更新最新开发文章,点击查看详细] 断点是开发人员的工具箱中最重要的调试技术之一. 若要暂停调试程序执行所需的位置设置断点. 例如,你可能想要查看代码变量的状态或查看调用堆栈的某些 ...

  10. 浏览器console中加入jquery方便调试

    var jquery = document.createElement('script'); jquery.src = "http://apps.bdimg.com/libs/jquery/ ...