oracle启动错误提示---hostname原因导致
发表于:2025-02-13 作者:千家信息网编辑
千家信息网最后更新 2025年02月13日,#刚开始直接root用户登录,在etc目录,切换到oracle,输入lsnrctl start启动oracle时提示"lsnrctl: command not found"[root@loveyao_
千家信息网最后更新 2025年02月13日oracle启动错误提示---hostname原因导致
#刚开始直接root用户登录,在etc目录,切换到oracle,输入lsnrctl start启动oracle时提示"lsnrctl: command not found"[root@loveyao_test etc]# su oracle[oracle@loveyao_test etc]$ lsnrctl startbash: lsnrctl: command not found
#切换回root用户,cd /根目录, 再次su - oracle ,输入lsnrctl start启动oracle,这次正常啦.[oracle@loveyao_test ~]$ cd /[oracle@loveyao_test /]$ su -rootsu: invalid option -- 'r'Try `su --help' for more information.[oracle@loveyao_test /]$ su - rootPassword: [root@loveyao_test ~]# su - oracle[oracle@loveyao_test ~]$ [oracle@loveyao_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...[oracle@loveyao_test ~]$ #如上所示: oracle启动失败,提示"Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))TNS-12545: Connect failed because target host or object does not exist"#hosts文件导致,切换root修改hosts文件,重新启动oracle可以正常启动. 具体操作如下:[oracle@loveyao_test alert]$ su - rootPassword: [root@loveyao_test ~]# [root@loveyao_test ~]# [root@loveyao_test ~]# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6~#将hosts文件localhost 修改成主机名hostname的名字,注意: vi /etc/sysconfig/network 文件可以修改hostname的名字(这里修改后需要重启系统).[root@loveyao_test ~]# vi /etc/hosts127.0.0.1 loveyao_test localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6~[root@loveyao_test ~]# su - oracle[oracle@loveyao_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[oracle@loveyao_test ~]$ #查看oracle监听端口1521[oracle@loveyao_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 *:* [oracle@loveyao_test ~]$
文件
切换
提示
名字
用户
输入
主机
再次
如上
根目录
目录
端口
系统
登录
监听
原因
错误
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
深圳创客联盟网络技术有限公司
更换电脑数据库
幻想家园服务器
手机服务器链接失败
校园信息网络安全
安利软件开发有限公司
网络安全等级测评机构申请
服务器机房跑路了
网络技术教学合同
服务器密码机部署在什么位置
和为顺网络技术有限公司工资
mysql数据库以两个端口
软件开发错误怎么办
校园网络安全宣传日手抄报
联想服务器面板出现黄色感叹号
数据库快速查找关键字源码
天象网络技术重庆分公司
js上传文件到服务器
数据库中有什么约束
数据库sql源码
软件开发企业节税思路
系统镜像服务器在哪
秀目网络技术公司
服务器整修
数据库系统的内模式
asp操作数据库的技术
联想服务器面板出现黄色感叹号
如何找到服务器端口
APPLOC下载软件开发
我的世界海贼王服务器大战