使用dbca刪除數(shù)據(jù)庫或配置數(shù)據(jù)庫選件時會遇到無法找到或找不了一個不是當(dāng)前啟動的數(shù)據(jù)庫實例,如下所示:
十堰鄖陽網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)等網(wǎng)站項目制作,到程序開發(fā),運營維護。創(chuàng)新互聯(lián)公司2013年成立到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)。
[oracle@prodb-s ~]$ ps -ef |grep pmon oracle 2002 32138 0 22:49 pts/3 00:00:00 grep pmon oracle 32247 1 0 22:21 ? 00:00:00 ora_pmon_pro
dbca想要刪除的實例名為pro,顯示的卻是prodb:
通常是因為沒有規(guī)范的安裝數(shù)據(jù)庫導(dǎo)致/etc/oratab沒有或信息不正確。
解決辦法:
直接修改/etc/oratab中的實例和路徑為正確的名稱并重新執(zhí)行dbca:
[oracle@prodb-s ~]$ cat /etc/oratab # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # 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. # # prodb:/u01/app/oracle/product/11.2.0/dbhome_1:N