Oracle Installation

    Oracle 安裝筆記

    查詢已安裝的 patch set

    方法一:

    $ORACLE_HOME/OPatch/opatch lsinventory
    
    Invoking OPatch 10.2.0.4.9
    
    Oracle Interim Patch Installer version 10.2.0.4.9
    Copyright (c) 2009, Oracle Corporation.  All rights reserved.
    
    
    Oracle Home       : /opt/oracle/product/10.2.0/db_1
    Central Inventory : /opt/oracle/oraInventory
       from           : /etc/oraInst.loc
    OPatch version    : 10.2.0.4.9
    OUI version       : 10.2.0.5.0
    OUI location      : /opt/oracle/product/10.2.0/db_1/oui
    Log file location : /opt/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2014-02-20_14-44-37PM.log
    
    Patch history file: /opt/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
    
    Lsinventory Output file location : /opt/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2014-02-20_14-44-37PM.txt
    
    --------------------------------------------------------------------------------
    Installed Top-level Products (3):
    
    Oracle Client                                                        10.2.0.1.0
    Oracle Database 10g                                                  10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 4                            10.2.0.5.0
    There are 3 products installed in this Oracle Home.
    
    
    There are no Interim patches installed in this Oracle Home.
    
    
    --------------------------------------------------------------------------------
    
    OPatch succeeded.
    

    方法二:

    ./opatch  lsinventory -bugs_fixed
    
    // 檢查 PSU - Patch Set Update
    ./opatch  lsinventory -bugs_fixed | grep -i -E 'DATABASE PSU|DATABASE PATCH SET UPDATE'

    如何查版本是 EE 或 SE ?

    SE 版

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.5.0 - 64bit Production   <=====
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    

    EE 版

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi <====
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    

    如何查出 Oracle 是 32 bit 或 64 bit?

    方法一:

    Go to $ORACLE_HOME/bin and see.
    
    # cd $ORACLE_HOME/bin
    # file oracle
    oracle: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped
    
    Here it comes 64 bit and hence oracle software is 64 bit. If the output of the "file oracle" command does not say 64-bit explicitly then you are running 32-bit Oracle.
    
    If you had 32 bit oracle software installed then output will be like,
    
    oracle@sol:/db/oracle/bin$ file oracle
    oracle: setuid setgid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

    方法二:

    [oracle@ora10g ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 10.2.0.5.0 - Production on Thu Jan 23 15:56:19 2014
    
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    

    方法三:

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production 
    
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core