一、問題描述
使用 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)點擊“更改登錄”
- 修改用戶名以及密碼