在rhel5上啟動監聽器lsnrctl start報錯_Linux Error: 113: No route to host

wisdomone1發表於2010-07-11
-bash-3.1$ lsnrctl start  ######啟動監聽器報錯 LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 09-JUL-2010 02:03:46 Copyright (c) 1991, 2007, Oracle.  All rights reserved. Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521))) Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12560: TNS:protocol adapter error
 TNS-00530: Protocol adapter error
  Linux Error: 113: No route to host #####注意這行   -bash-3.1$ more /etc/hosts  ###檢視對應檔案
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.125.2   localhost.localdomain
-bash-3.1$ su - root ####切到root,修改以上檔案
Password:
[root@localhost ~]# vi /etc/hosts       # Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.125.3   localhost.localdomain
~ "/etc/hosts" 3L, 141C written
[root@localhost ~]# more /etc/sysconfig/network ###檢視所有與主機名相關的檔案
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
[root@localhost ~]# exit
logout -bash-3.1$ lsnrctl start  #######再次啟動仍報錯,看來問題不在這兒,但報錯與上面不一樣了,有點進步 LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 09-JUL-2010 02:04:31 Copyright (c) 1991, 2007, Oracle.  All rights reserved. Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521))) Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12547: TNS:lost contact
 TNS-12560: TNS:protocol adapter error
  TNS-00517: Lost contact
   Linux Error: 104: Connection reset by peer      
[root@localhost ~]# vi /etc/hosts  ###########查了點網上資料,改成這樣,保留原來的127.0.0.1原有行(安裝系統本身就有的記錄,新新增一行:真實ip) # Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
192.168.125.3   localhost.localdomain
~ "/etc/hosts" 4L, 184C written
[root@localhost ~]# exit
logout -bash-3.1$ lsnrctl start  #####再次啟動監聽器好了 LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 09-JUL-2010 02:09:10 Copyright (c) 1991, 2007, Oracle.  All rights reserved. Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521))) Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date                09-JUL-2010 02:09:10
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services  
小結:
     oracle監聽器啟動與redhat的主機配置檔案有密切關係
     主機配置檔案有影響關係,自己理解不到位,有空學習下

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

相關文章