遇到一個非常奇怪的問題,linux5.8 + oracle 11.2.0.3
啟動數據庫時候報錯:
[oracle@tivoli02 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 23 21:23:16 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected.
SQL> startup nomount pfile='/tmp/a.ora';
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=tivoli02.***.com.cn)(PORT=1521))'
SQL> exit
Disconnected
[oracle@tivoli02 dbs]$ cat /tmp/a.ora
processes=150
sga_target=4432M
control_files="/u01/app/oracle/oradata/orcl/control01.ctl"
control_files="/u01/app/oracle/oradata/orcl/control02.ctl"
db_block_size=8192
compatible="11.2.0.0.0"
undo_tablespace="UNDOTBS1"
remote_login_passwordfile="EXCLUSIVE"
db_domain=""
audit_file_dest="/u01/app/oracle/admin/orcl/adump"
audit_trail="NONE"
db_name="orcl"
open_cursors=300
pga_aggregate_target=1477M
diagnostic_dest="/u01/app/oracle"
LOCAL_LISTENER='' <<<<<盡管置空也無濟於事
然後嘗試DBCA創建數據庫時報錯ORA-21561:
在操作過程中發現有異樣,檢查服務器啟動運行時間
[oracle@tivoli02 dbs]$ uptime
21:54:40 up 5:07, 5 users, load average: 2.18, 2.12, 1.91
說明五個小時前操作系統重啟過,再檢查/etc/hosts發現主機條目被人修改過,本機IP所對應的主機名域名部分被刪除.
新增一個別名,且該別名帶有域名
如 tivoli02.robo.com
後來上MOS查了一下,ORA-21561其實是ORACLE未公開的BUG:
Bug 12597261: "ORA-21561 IF HOSTNAME ENVIRONMENT VARIABLE IS NOT FULLY QUALIFIED"
因此,在服務器上做任何改動都需要謹慎,尤其是運行時間長的服務器,存在即有原因。
-------------------------------------------------------------------------------------------------
本文來自於我的技術博客 http://blog.csdn.net/robo23
轉載請標注源文鏈接,否則追究法律責任!