连linux下lsnrctl start命令启动oracle监听时候报错 我是新手 求高人指点 希望尽可能详细些
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了连linux下lsnrctl start命令启动oracle监听时候报错 我是新手 求高人指点 希望尽可能详细些相关的知识,希望对你有一定的参考价值。
报如下错误
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Log messages written to /opt/oracle/product/10.2/db_1/network/log/listener.log
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use
如何修改listener.ora或者netca重建步骤 解决问题就好 追加20分
netstat -ntulp|grep 1521查询看看,如果有的话那就是呗占用了。 参考技术B 首先用lsnrctl status检查你的监听状态,看看什么情况,把结果贴出来,然后看看寻找原因 参考技术C 重启猫 路由 查线 参考技术D 请将你的HOST的localhost改为你所使用的IP地址,然后重新启动再试试,前提是你的环境变量配置正确。祝福你!
操作错误: lsnrctl启动报错(lsnrctl start),Linux Error: 29: Illegal seek
文章目录
错误
刚装了一个数据库,启动lsnrctl 报错:
[oracle@server1 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 26-MAY-2019 07:34:15
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
诊断
尝试使用tnslsnr确认
[oracle@server1 admin]$ tnslsnr
Unable to resolve address for localhost:6100
ONS runtime exiting
查看/ect/hosts 文件
[oracle@server1 admin]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server1.oracle.com server1 ★
::1 localhost6.localdomain6 localhost6
192.168.56.11 server1.oracle.com server1
192.168.56.12 server2.oracle.com server2
解决
原来是在修改/ect/hosts 文件时把127.0.0.1这一行给改错了。
[oracle@server1 admin]$ su - root
Password:
[root@server1 ~]# vi /etc/hosts
[root@server1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.11 server1.oracle.com server1
192.168.56.12 server2.oracle.com server2
再次启动成功。
[oracle@server1 admin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 26-MAY-2019 07:44:40
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/oracle/diag/tnslsnr/server1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server1.oracle.com)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 26-MAY-2019 07:44:40
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/server1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server1.oracle.com)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@server1 admin]$
版权声明:本文为博主原创文章,转载必须注明出处,本人保留一切相关权力!http://blog.csdn.net/lukeunique
欢迎关注微信订阅号:TeacherWhat
以上是关于连linux下lsnrctl start命令启动oracle监听时候报错 我是新手 求高人指点 希望尽可能详细些的主要内容,如果未能解决你的问题,请参考以下文章
操作错误: lsnrctl启动报错(lsnrctl start),Linux Error: 29: Illegal seek
oracle监听启动,为啥会有这样错误,我在命令行输入lsnrctl start
lsnrctl start 命令未找到 数据库连接报错“ORA-12541: TNS: 无监听程序”