oracle patch step

--1. update patch version
     cd $ORACLE_HOME
     mv Opatch Opatch.bak
     unzip your_patch_path/p6880880_122010_Linux-x86-64.zip
     $ORACLE_HOME/Opatch version
 
 --2. apply psu
    --2.1 db soft patch
        --check conflict
            cd you_patch_dir
            unzip p30593149_122010_Linux-x86-64.zip
            export PATH=$ORACLE_HOME/Opatch:$PATH
            Opatch prereq CheckConfilictAgainstOHWithDetail -ph ./
        --shutdown db
            lsnrctl stop
            sqlplus / as sysdba
            shutdown immediate
        --patch
         Opatch apply
    --2.2 db patch
    --datapatch
        sqlplus / as sysdba
        startup
        quit
        cd $ORACLE_HOME/Opatch
        ./datapatch -verbose
    --utlrp
        cd $ORACLE_HOME/rdbms/admin
        sqlplus / as sysdba
        utlrp.sql
    
--3. check patch
    $ORACLE_HOME/Opatch/opatch lspatches
    $ORACLE_HOME/Opatch/opatch lsinventory
--4. start listener
    lsnrctl start
    alter system register

你可能感兴趣的:(oracle)