我已经按照“http://technologylair.net/2013/08/oracle-11g-installation-linux/#comment-50”中提到的所有步骤在 RedHat6 linux 实例上安装了 Oracle 11g 我正在尝试使用 sql 开发人员从远程机器连接到数据库。但总是以 - “IO Error: The Network Adapter could not establish the connection
”结尾。
我使用的参数是
Username: sys as sysdba
Password: <oracle password>
Hostname: IP address of the server on which Oracle SQL is installed.
Port: 1521
SID: testdb
我还在“/oracle/product/11.2.0/db_1/network/admin”位置创建了一个 listener.ora 文件,因为它以前不存在。谁的内容是——
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/oracle/product/11.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_TESTDB))
(ADDRESS = (PROTOCOL = TCP)(HOST = 173.39.238.15)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (TESTDB)
我也在 dba.stackexchange 上发布了这个问题。但我需要尽快解决这个问题。并需要帮助。因此也把它贴在这里。
你能告诉我我可能做错了什么吗?
谢谢。
编辑 “lsnrctl status”的输出
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_TESTDB))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error
TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=173.39.238.15)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error
TNS-00511: No listener Linux Error: 111: Connection refused
最佳答案
看起来您的监听器没有运行。在数据库服务器上,ps -ef | grep lsnr
查看是否有 PID 正在运行 tnslsnr
.如果没有,那么您需要使用 lsnrctl start
启动监听器.
关于sql - IO 错误 : The Network Adapter could not establish the connection - with Oracle 11gR2. 与 SQL 开发人员连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24289096/