Oracle Startup error Message---hostname cause

Source: Internet
Author: User

#刚开始直接root用户登录, in the ETC directory, switch to Oracle, enter LSNRCTL start to start Oracle prompt "Lsnrctl:command not found" [[Email Protected]_test etc]# Su oracle[[email protected]_test etc]$ lsnrctl startbash:lsnrctl:command not found
#切换回root用户, cd /root directory,  again su - oracle , input lsnrctl start start Oracle, this time it's OK. [[Email protected]_test ~]$ cd /[[email protected]_test /]$ su -rootsu : invalid option --  ' R ' try  ' Su --help '  for more information. [[Email protected]_test /]$ su - rootpassword: [[email protected]_test  ~]# su - oracle[[email protected]_test ~]$ [[email protected]_test  ~]$ lsnrctl startLSNRCTL for Linux: Version 11.2.0.3.0 -  production on 04-jul-2016 22:06:57copyright  (c)  1991, 2011, Oracle.   all rights reserved. Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait ... Tnslsnr for linux: version 11.2.0.3.0 - productionlog messages written  to /u01/app/oracle/diag/tnslsnr/loveyao_test/listener/alert/log.xmlerror listening on:  (ADDRESS= (PROTOCOL=tcp) (HOST=) ( port=1521)) tns-12545: connect failed because target host or object  does not exist tns-12560: tns:protocol adapter error  tns-00515:  connect failed because target host or object does not exist    linux error: 25: inappropriate ioctl for devicelistener failed  to start. see the error message (s)  above ... [[email protected]_test ~]$  #如上所示:  oracle boot failed with prompt "error listening on:  ( Address= (PROTOCOL=TCP) (host=) (port=1521)) tns-12545: connect failed because target  Host or object does not exist "#hosts文件导致, switch root to modify the Hosts file, restart Oracle to start normally .  The operation is as follows: [[EMAIL PROTECTED]_TEST ALERT]$ SU&Nbsp;- rootpassword: [[email protected]_test ~]# [[email protected]_test ~]#  [[email protected]_test ~]# vi /etc/hosts127.0.0.1   localhost  localhost.localdomain localhost4 localhost4.localdomain4::1          localhost localhost.localdomain localhost6 localhost6.localdomain6~# Change the Hosts file localhost  to the name of the hostname hostname, note that: vi /etc/sysconfig/network  file can modify hostname's name ( The system needs to be restarted after this modification). [[email protected]_test ~]# vi /etc/hosts127.0.0.1   loveyao_test  localhost.localdomain localhost4 localhost4.localdomain4::1          localhost localhost.localdomain localhost6 localhost6.localdomain6~[[email  protected]_test ~]# su - oracle[[email protected]_test ~]$ lsnrctl  startLSNRCTL for Linux: version 11.2.0.3.0 - production on 04-jul-2016 22:23:22copyright   (c)  1991, 2011, oracle.  all rights reserved. Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait ... Tnslsnr for linux: version 11.2.0.3.0 - productionlog messages written  to /u01/app/oracle/diag/tnslsnr/loveyao_test/listener/alert/log.xmlListening on:  ( Description= (address= (protocol=tcp) (host=loveyao_test) (port=1521)) connecting to  (ADDRESS= (PROTOCOL= TCP) (host=) (port=1521)) Status of the listener------------------------alias                       listenerversion                    tnslsnr for linux: version 11.2.0.3.0 - productionstart date                 04-JUL-2016 22:23:22Uptime                     0 days 0 hr. 0  min. 0 secTrace Level                offSecurity                   ON: Local OS AuthenticationSNMP                        offlistener log file         /u01/app/oracle/diag/ tnslsnr/loveyao_test/listener/alert/log.xmllistening endpoints summary...   (DESCRIPTION= ( Address= (protocol=tcp) (Host=loveyao_test) (port=1521)) the listener supports no servicesthe command completed  successfully[[email protected]_test ~]$  #查看oracle监听端口1521 [[email protected]_test ~]$  ss -tanlRecv-Q Send-Q                Local Address:Port                  Peer Address:Port 0      128                               :::111                              :::*      0      128                                *:111                              *:*      0      128                               :::1521                            :::*       0      128                               :::25493                           :::*      0       128                              :::22                               :::*      0       128                               *:22                                *:*      0      128                        127.0.0.1:631                              *:*       0      128                             : :1:631                             :::*      0       100                             ::1:25                               :::*      0      100                        127.0.0.1:25                               *:*       0      128                                *:39108                            *:*      [[email  protected]_test ~]$


This article is from "Love_ Yao" blog, please be sure to keep this source http://20161215.blog.51cto.com/2276215/1795750

Oracle Startup error Message---hostname cause

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.