1、了解opatch
opatch是用于维护"个别"补丁的,有人称其为interim path或是one-off patch
该命令的存放位置在$ORACLE_HOME下的OPatch目录下.

使用“-help”参数可以获得opatch命令的帮助信息

[oracle@ora OPatch]$ ./opatch -help
     Usage: opatch [ -help ] [ -r[eport] ] [ command ]
  
                command := apply
                           lsinventory
                           prereq
                           query
                           rollback
                           util
                           version
  
     <global_arguments> := -help       Displays the help message for the command.
                           -report     Print the actions without executing.
  
     example:
       'opatch -help'
       'opatch apply -help'
       'opatch lsinventory -help'
       'opatch prereq -help'
       'opatch rollback -help'
       'opatch util -help'
     
     
     [oracle@ora OPatch]$ ./opatch lsinventory -h

DESCRIPTION
         List the inventory for a particular $ORACLE_HOME or display all
         installations that can be found.
   
     SYNTAX
     opatch lsinventory [-all ] [-all_nodes] [-delay <value> ] [-detail ]
                        [-invPtrLoc <Path to oraInst.loc> ] [-jre <LOC> ]
                        [-oh] [-oh <ORACLE_HOME> ] [-patch]
                        [-ptlConnect  <portal connect string> ]
                        [-ptlPassword <portal password> ]
                        [-ptlSchema <portal schema> ]
                        [-property_file <path to property file>]
          [-retry <value> ]
   
     OPTIONS
            -all
                   Report the name and installation directory for each
                   $ORACLE_HOME found.
   
            -all_nodes
              Reports the patches installed on the given Oracle Home
                   in all nodes of the RAC system. It also prints the oracle
                   binary's size and checksum on all nodes. This option cannot
                   be used in conjunction with -all, -detail, -patch.
   
            -delay
                   If -retry is specified, this option tells OPatch how
                   many seconds it should wait before attempting to lock
                   inventory again in case of a previous failure.
   
            -detail(s)
                   Report installed products and other details. This
                   option cannot be used in conjunction with all option.
   
            -invPtrLoc
                   Used to locate the oraInst.loc file. When the
                   installation used the invPtrLoc flag. This should be
                   the path to the oraInst.loc file
   
            -jre
                   This option tells OPatch to use JRE (java) from the
                   specified location instead of the default location
                   under Oracle Home
   
            -oh
                   The oracle home to work on. This takes precedence over
                   the environment variable ORACLE_HOME
   
            -patch
                   Lists the patch IDs installed in the oracle home
   
            -ptlConnect
                   This option is used to specify the connect string credentials
                   of the portal schema
   
            -ptlPassword
                   This option is used to specify the password of the portal
                   schema
   
            -ptlSchema
                   This option is used to specify the schema of the portal
                   repository
   
            -property_file
                   The user defined property file for OPatch to use. The
                   path to the property file should be absolute. This
                   property file takes precedence over the one that is
                   supplied with OPatch
   
            -retry
                   This option tells OPatch how many times it should
                   retry in case of an inventory lock failure       
   
     PARAMETERS
            This operation does not have any required parameters.

2、下载补丁.
需要metalink的用户名口令

3、关闭数据库及监听.

4、安装补丁(可以参照metalink补丁说明)
     Patch Installation Instructions:                                                 
     --------------------------------                                                 
     Make sure that all instances running under the ORACLE_HOME being patched         
     are cleanly shutdown before installing this patch. Also ensure that              
     the tool used to terminate the instance(s) has exited cleanly.             
                                                                                  
     1. To apply the patch, unzip the PSE container file:                             
     p7650993_111070_Linux-x86.zip                                                    
                                                                                      
     2. PreInstall steps:                                                             
                                                                                      
     3. Set your current directory to the directory where the patch                   
     is located:                                                                      
                                                                                      
        % cd 7650993                                                                                            
                                                                                      
        Ensure that the directory containing the opatch script. appears in             
        your $PATH; then enter the following command:                                 
                                                                                      
        % opatch apply                             
                                                                                       
     4. PostInstall Steps:                                  
                                                                                       
     Note:                                                                            
        If the Oracle inventory is not setup correctly this utility will              
        fail. To check accessibility to the inventory you can use the                 
        command                                                                       
                                                                                      
        % opatch lsinventory                                                          
                                                                                      
        If you have any problem installing this PSE or are not sure                   
        about the inventory setup, please call Oracle support.
       
5、启动实例,运行相关脚本
     SQL> startup
     ORACLE instance started.
     Total System Global Area  281018368 bytes
     Fixed Size                  1218968 bytes
     Variable Size              83887720 bytes
     Database Buffers          192937984 bytes
     Redo Buffers                2973696 bytes
     Database mounted.
     Database opened.
    检查无效对象:
    SQL> SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE STATUS = 'INVALID'; 
                     
6、用inventory命令查看已经安装的patch
    opatch lsinventory
                                                         
7、卸载补丁.
     1.关闭数据库及监听
     2.卸载补丁.
                                                                                  
     Patch Deinstallation Instructions:                                               
     ----------------------------------                                               
     Use the following command:                                                       
                                                                                      
       % cd 7650993                                                                   
       % opatch rollback -id 7650993  
     检查无效对象:
     SQL> SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE STATUS = 'INVALID';

转载:http://blog.csdn.net/launch_225/article/details/7620811

oracle打补丁步骤简介的更多相关文章

  1. Windows下oracle打补丁步骤

    1.Oracle官网下载对应的补丁文件(需要oracle支持账号才能下载) 2.设置ORACLE_HOME set oracle_home=F:\oracle\product\11.2.0\dbhom ...

  2. oracle打补丁

    oracle 数据库补丁安装(单实例) ------------24006111 注:务必先安装24006111再安装24315821,否则无法进行正常的补丁安装流程.1.关闭数据库监听和数据库实例 ...

  3. Oracle中PL/SQL简介、基本语法以及数据类型

    Oracle中PL/SQL简介.基本语法以及数据类型 一.PL/SQL简介. Oracle PL/SQL语言(Procedural Language/SQL)是结合了结构化查询和Oracle自身过程控 ...

  4. ASP.NET连接Oracle数据库的步骤详解(转)

    ASP.NET连接Oracle数据库的步骤详解   本文我们主要介绍了ASP.NET连接Oracle数据库的步骤及每个步骤需要进行的设置,希望能够对您有所帮助.   在用ASP.NET开发应用程序时, ...

  5. Oracle SQL tuning 步骤

    Oracle SQL tuning 步骤 SQL是的全称是Structured Query Language(结构化查询语言).SQL是一个在80年代中期被使用的工业标准数据库查询语言.不要把SQL语 ...

  6. Windows7上完全卸载Oracle 12c操作步骤

    注:本文来源于:< Windows7上完全卸载Oracle  12c操作步骤 > 1.关闭Oracle所有的服务,按[win+R]运行[services.msc]找到所有Oracle开头的 ...

  7. Oracle 11g安装步骤以及Oracle11g创建表空间和用户,并授权

    Oracle 11g安装步骤详解 一.Oracle 下载 注意Oracle分成两个文件,下载完后,将两个文件解压到同一目录下即可. 路径名称中,最好不要出现中文,也不要出现空格等不规则字符. 官方下地 ...

  8. [转帖学习]Oracle的 SYS_CONTEXT 函数简介

    Oracle的 SYS_CONTEXT 函数简介 https://blog.csdn.net/IndexMan/article/details/48606369 1.什么是SYS_CONTEXT? S ...

  9. Oracle Golden Gate原理简介

    Oracle Golden Gate原理简介 http://www.askoracle.org/oracle/HighAvailability/20140109953.html#6545406-tsi ...

随机推荐

  1. Dom4j下载及使用Dom4j读写XML简介(转)

    Dom4j下载及使用Dom4j读写XML简介 要使用dom4j读写XML文档,需要先下载dom4j包,dom4j官方网站在 http://www.dom4j.org/目前最新dom4j包下载地址:ht ...

  2. [AirFlow]AirFlow使用指南一 安装与启动

    1. 安装 通过pip安装: xiaosi@yoona:~$ pip install airflow 如果速度比较慢,可以使用下面提供的源进行安装: xiaosi@yoona:~$ pip insta ...

  3. Java泛型常见面试题

    怀着崇拜的心情读完这篇文章,却发现作者不是原创,而不标注转载~所以转载地址不详~ 1. Java中的泛型是什么 ? 使用泛型的好处是什么? 这是在各种Java泛型面试中,一开场你就会被问到的问题中的一 ...

  4. 看完前任三,想起我的前任java女程序员,她曾教会我……

    前任三最近非常火了,票房蹭蹭往上升,昨天也去电影院看了,想起了我的前任,她是一名女程序员,为了让我学好java,她曾经亲自教我Java的算法,学算法是件非常重要的事,在这忍住回忆的悲伤,分享给你们. ...

  5. learn go ifelse

    package main // 参考文档: // https://github.com/Unknwon/the-way-to-go_ZH_CN/blob/master/eBook/05.1.md im ...

  6. 【剑指offer】输入一颗二叉树的根节点,判断是不是平衡二叉树,C++实现

    原创博文,转载请注明出处! # 题目 # 举例 # 思路 由平衡二叉树的定义可知,判断二叉树是否是平衡二叉树的关键在于判断任意结点是否是平衡结点.后序遍历二叉树,判断节点的子树是否平衡并计算节点的子树 ...

  7. BZOJ2303: [Apio2011]方格染色 【并查集】

    Description Sam和他的妹妹Sara有一个包含n × m个方格的表格.她们想要将其的每个方格都染成红色或蓝色.出于个人喜好,他们想要表格中每个2 × 2的方形区域都包含奇数个(1 个或 3 ...

  8. 基于 task 为 VSCode 添加自定义的外部命令

    我们有很多全局的工具能在各处使用命令行调用,针对某个仓库特定的命令可以放到仓库中.不过,如果能够直接为顺手的文本编辑器添加自定义的外部命令,那么执行命令只需要简单的快捷键即可,不需要再手工敲了.   ...

  9. 《DSP using MATLAB》示例Example 8.4

    代码: %% ------------------------------------------------------------------------ %% Output Info about ...

  10. win32鼠标和键盘相关函数

    键盘相关函数:http://msdn.microsoft.com/en-us/library/windows/desktop/ms645530%28v=vs.85%29.aspx 鼠标相关函数:htt ...