啟動監聽報錯:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek

來源:互聯網
上載者:User

標籤:

啟動監聽程式報錯:

說明:在rhel5.8上安裝完成oracle11g資料庫後,使用netca建立完監聽,啟動監聽時報錯。還未使用dbca建立執行個體。

[[email protected] ~]$ lsnrctl startLSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:33:53Copyright (c) 1991, 2009, Oracle. All rights reserved.Starting /u01/app/oracle/product/11.2.0.1/db_1/bin/tnslsnr: please wait...TNS-12537: TNS:connection closedTNS-12560: TNS:protocol adapter errorTNS-00507: Connection closedLinux Error: 29: Illegal seek

處理方法:修改/etc/hosts檔案如下

[[email protected] ~]# cat /etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.#127.0.0.1 rusky-oracle11g.com rusky-oracle11g 把此行注釋,添加第二行如下,否則啟動監聽程式時報錯。127.0.0.1    localhost.domain    localhost 192.168.1.203 rusky-oracle11g.com rusky-oracle11g

/etc/resolve.con檔案預設如下,未做修改:

 

[[email protected] ~]$ cat /etc/resolv.conf search com

 

再次啟動監聽正常:

[[email protected] ~]$ lsnrctl startLSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:37:38Copyright (c) 1991, 2009, Oracle. All rights reserved.Starting /u01/app/oracle/product/11.2.0.1/db_1/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionSystem parameter file is /u01/app/oracle/product/11.2.0.1/db_1/network/admin/listener.oraLog messages written to /u01/app/oracle/diag/tnslsnr/rusky-oracle11g/listener/alert/log.xmlListening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rusky-oracle11g.com)(PORT=1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rusky-oracle11g.com)(PORT=1521)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionStart Date 02-APR-2015 08:37:38Uptime 0 days 0 hr. 0 min. 0 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /u01/app/oracle/product/11.2.0.1/db_1/network/admin/listener.oraListener Log File /u01/app/oracle/diag/tnslsnr/rusky-oracle11g/listener/alert/log.xmlListening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rusky-oracle11g.com)(PORT=1521)))The listener supports no servicesThe command completed successfully

參考資料:

http://blog.csdn.net/zengmuansha/article/details/22686231

http://blog.chinaunix.net/uid-24612962-id-3194611.html

啟動監聽報錯:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.