ORA-00119: invalid specification for system parameter LOCAL_LISTENER
前一段時間修改了主機的hostname,重啟oracle是提示錯誤ORA-00119: invalid specification for system parameter LOCAL_LISTENER。
分析原因可能在于hostname進行了修改。
解決方法:
首先仍然是了解錯誤信息:oerr ora 00119
00119, 00000, "invalid specification for system parameter %s"
// *Cause: The syntax for the specified parameter is incorrect.
// *Action: Refer to the Oracle Reference Manual for the correct syntax.
既然參數(shù)出現(xiàn)錯誤,那么需要調(diào)整參數(shù)LOCAL_LISTENER
1、創(chuàng)建pfile:SQL>create pfile from spfile
2、修改pfile,pfile的命名方式為init$ORACLE_SID.ora,存儲位置為$ORACLE_HOME/dbs,檢查LOCAL_LISTENER這個參數(shù),如果沒有,則在最后一行添加:
*.local_listener='(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ip)))',此處的ip就是oracle數(shù)據(jù)庫所在服務(wù)器的ip
3、修改完成后,保存退出
4、SQL>startup pfile='$ORACLE_HOME/dbs/init$ORACLE_SID.ora';
可以看到,數(shù)據(jù)庫啟動成功
5、重新創(chuàng)建spfile SQL>create spfile from pfile
分析原因可能在于hostname進行了修改。
解決方法:
首先仍然是了解錯誤信息:oerr ora 00119
00119, 00000, "invalid specification for system parameter %s"
// *Cause: The syntax for the specified parameter is incorrect.
// *Action: Refer to the Oracle Reference Manual for the correct syntax.
既然參數(shù)出現(xiàn)錯誤,那么需要調(diào)整參數(shù)LOCAL_LISTENER
1、創(chuàng)建pfile:SQL>create pfile from spfile
2、修改pfile,pfile的命名方式為init$ORACLE_SID.ora,存儲位置為$ORACLE_HOME/dbs,檢查LOCAL_LISTENER這個參數(shù),如果沒有,則在最后一行添加:
*.local_listener='(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ip)))',此處的ip就是oracle數(shù)據(jù)庫所在服務(wù)器的ip
3、修改完成后,保存退出
4、SQL>startup pfile='$ORACLE_HOME/dbs/init$ORACLE_SID.ora';
可以看到,數(shù)據(jù)庫啟動成功
5、重新創(chuàng)建spfile SQL>create spfile from pfile
posted on 2013-04-15 19:49 gdufo 閱讀(606) 評論(0) 編輯 收藏 所屬分類: Database (oracle, sqlser,MYSQL)