一、问题描述
使用 Oracle Net Configuration Assistant设置服务监听时出现如下现象
一、问题解决
1、首先!确定Oracle监听器已经打开
lsnrctl status
:检查Oracle监听器是否有启动
[oracle@qiuhua root]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-APR-2020 23:45:56
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.163.128)(PORT=1521)))
TNS-12543: TNS:destination host unreachable
TNS-12560: TNS:protocol adapter error
TNS-00513: Destination host unreachable
Linux Error: 101: Network is unreachable
(1)通过上面的日志已经看到,监听并未启动
lsnrctl start
:打开监听
[oracle@qiuhua root]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-APR-2020 23:46:34
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/network/log/listener.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.163.128)(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: 99: Cannot assign requested address
Listener failed to start. See the error message(s) above...
- 核心报错:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.163.128)(PORT=1521)))
- 需要修改我的两个配置文件listener.ora和tnsnames.ora
(2)再次打开监听:lsnrctl start
2、输入正确的用户名、密码
(1)点击“更改登录”
- 修改用户名以及密码