Oracle Start listener and Start OEM

Encountered SQL developer- the network adapter could not establish the connection, it is quite simple, the Oracle listener was not start up. Resolved by below command, after startup the listener, can connect through SQL developer with successful result.

Error 1: Oracle SQL Developer error - IO Error: The Network Adapter could not establish the connection.
Error 2: cannot connect through OEM, Oracle Enterprise Manager.

Below are two solutions,

Start listener

[tom@ocp admin]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-12月-2018 20:18:20

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

启动/u01/app/tom/product/11.2.0/dbhome_1/bin/tnslsnr: 请稍候...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
系统参数文件为/u01/app/tom/product/11.2.0/dbhome_1/network/admin/listener.ora
写入/u01/app/tom/diag/tnslsnr/ocp/listener/alert/log.xml的日志信息
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocp)(PORT=1521)))

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ocp)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名                      LISTENER
版本                      TNSLSNR for Linux: Version 11.2.0.1.0 - Production
启动日期                  21-12月-2018 20:18:20
正常运行时间              0 天 0 小时 0 分 0 秒
跟踪级别                  off
安全性                    ON: Local OS Authentication
SNMP                      OFF
监听程序参数文件          /u01/app/tom/product/11.2.0/dbhome_1/network/admin/listener.ora
监听程序日志文件          /u01/app/tom/diag/tnslsnr/ocp/listener/alert/log.xml
监听端点概要...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocp)(PORT=1521)))
监听程序不支持服务
命令执行成功
[tom@ocp admin]$

Start OEM, Oracle Enterprise Manager

[tom@ocp bin]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://ocp:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ..... started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log
[tom@ocp bin]$ pwd
/u01/app/tom/product/11.2.0/dbhome_1/bin
[tom@ocp bin]$

Use below link to access OEM, Oracle Enterprise Manager
https://192.168.26.130:1158/em/
username / password = sys/oracle, role as sysdba

Below command to check the EM port usage,

[tom@ocp ~]$ cd $ORACLE_HOME
[1]+  Exit 255                LANG=zh_CN.utf8 dbca  (wd: ~)
(wd now: /u01/app/tom/product/11.2.0/dbhome_1)
[tom@ocp dbhome_1]$ cd install/
[tom@ocp install]$ ls
chainedInstall  envVars.properties  make.log  portlist.ini  root_ocp_2018-12-19_21-20-28.log  utl
config          jlib                oratab    readme.txt    unix
[tom@ocp install]$ cat portlist.ini
Enterprise Manager Console HTTP 端口 (orcl) = 1158
Enterprise Manager 代理端口 (orcl) = 3938
[tom@ocp install]$ pwd
/u01/app/tom/product/11.2.0/dbhome_1/install
[tom@ocp install]$

Reference

SQL developer- the network adapter could not establish the connection


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值