The installer has not detected any Oracle 10.2.0.4.0

snowdba發表於2015-06-24
最近一直在研究Oracle10.2.0.4的Database Vault。 在圖形化安裝時經常遇到如下報錯,找不到資料庫。

我的系統中已經安裝並升級資料庫了,為什麼會找不到呢。
[oracle@snowlab ~]$ ps -ef|grep smon
oracle    1102   307  0 04:43 pts/5    00:00:00 grep smon
oracle   32507     1  0 04:25 ?        00:00:00 ora_smon_dv

[oracle@snowlab ~]$ sqlplus / as sysdba
SQL> select version,comments from registry$history;

VERSION                        COMMENTS
------------------------------ ------------------------------
10.2.0.4                       PSU 10.2.0.4.4
                               view recompilation
                               view recompilation
10.2.0.4                       PSU 10.2.0.4.8
                               view recompilation

其實原因很簡單,就是因為在/etc/oratab中沒有該資料庫的sid和ORACLE_HOME的記錄。可以手工新增黃色高亮部分的資料庫資訊,再次執行./runInstaller就順利通過了。 有時候我們的資料庫不是採用dbca安裝的,可能是使用rman恢復的等等,在這裡就不會有記錄。當使用dbca刪除資料庫時候同理,圖形工具來判斷已經安裝的資料庫也是通過/etc/oratab中的記錄來定位。

[oracle@snowlab ~]$ vi /etc/oratab
#



# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME::
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
dv:/u01/app/oracle/product/10.2.0/db_1:N

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1710426/,如需轉載,請註明出處,否則將追究法律責任。

相關文章