oracle 监听启动问题 Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...

摘要:
相关说明:Oracle11g64位软件的安装位置为/u01/app/oracle/product/11.2.0/dbhome_1,数据库名为默认的orcl,Linux虚拟机的HOSTNAME为master。一、修改listener.ora文件内容命令:[oracle@gpdb~]$vi/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/lis

相关说明: Oracle11g64位软件的安装位置为/u01/app/oracle/product/11.2.0/dbhome_1 ,数据库名为默认的orcl,Linux虚拟机的HOSTNAME为master。

一、修改listener.ora文件内容

命令:[oracle@gpdb ~]$ vi /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
内容:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME= orcl)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=orcl)
)
)

LISTENER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=master)(PORT=1521)))
ADR_BASE_LISTENER = /u01/app/oracle

二、修改tnsnames.ora文件内容

命令:[oracle@gpdb ~]$ vi /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
内容:
orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = master)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
)
)

三、启动监听并更新注册

命令:[oracle@gpdb ~]$ lsnrctl start
输出:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-MAY-2014 10:13:32

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

Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/gpdb/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.121)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.121)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 13-MAY-2014 10:13:32
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/gpdb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.121)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

命令:[oracle@gpdb ~]$ sqlplus / as sysdba
SQL> startup
SQL> alter system register;
SQL> quit
[oracle@gpdb ~]$ lsnrctl status
输出:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-MAY-2014 10:19:18

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.121)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 13-MAY-2014 10:13:32
Uptime 0 days 0 hr. 5 min. 46 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/gpdb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.121)(PORT=1521)))
Services Summary...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully

如果注册了还是不识别,有几个解决办法

1./etc/hosts 文件问题,把127.0.0.1 改成localhost

oracle 监听启动问题 Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...第1张

重新查看lsnrctl status

2.去掉tnsnames.ora配置中SERVICE_NAME =后面的空格

https://www.linuxidc.com/Linux/2012-01/51930.htm

3.如果还不行,找到监听日志

https://blog.51cto.com/gaoshan/47728

免责声明:文章转载自《oracle 监听启动问题 Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇VCS学习(1)Android Monkey压力测试下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

用docker启动的oracle,重启后数据库访问失败

昨天更改了oracle数据库的最大连接数,然后手动重启了docker,以为数据库就直接启动了,没想到报错了 报错类似于一下文章 https://blog.csdn.net/h106140873/article/details/103251534 SQL>startup ORA-00821: Specified value of sga_target...

oracle数据库SQL收集整理

oralce数据库导入及导出某用户所有数据 前提:在CMD 命令下 导出命令:exp 用户名/密码@数据库 owner=用户名 file=文件存储路径(如:F:abcd.dmp) 导出服务器数据:exp sname/paw@192.60.25.102/orcl owner=sname file=d:sname.dmp 导入命令:imp 用户名/密码@数据库...

linux上安装Oracle 包括常见安装错误(centos8.1,oracle linux8,redhat 8)通过

谨记 关闭操作系统之前先关闭oracle数据库  oracle用户登录,执行lsnrctl start启动网络监听服务,执行dbstart启动数据库系统。  oracle用户登录,执行lsnrctl stop关闭网络监听服务,执行dbshut关闭数据库系统。 >>>>>>>>>>>>&...

Oracle 快照及 dblink使用 (两台服务器数据同步)

/*一、创建dblink:*/ --1、在目的数据库上,创建dblin drop database link dblink_anson; Create public database link dblink_anson Connect to lg identified by lg using 'SDLGDB'; --源数据库的用户名、密码、服务器名k...

Oracle中动态SQL详解

1.静态SQLSQL与动态SQL Oracle编译PL/SQL程序块分为两个种:其一为前期联编(early binding),即SQL语句在程序编译期间就已经确定,大多数的编译情况属于这种类型;另外一种是后期联编(late binding),即SQL语句只有在运行阶段才能建立,例如当查询条件为用户输入时,那么Oracle的SQL引擎就无法在编译期对该程序...

Oracle11g下载、安装、客户端安装、PLSQL远程连接数据库(即监听配置)及环境变量配置

一、oracle11g、oracle11g客户端下载 链接:https://pan.baidu.com/s/1mB7tukSiFPgF9Y9AfypaIQ 提取码:root Oracle11g安装包(解压缩后):已将两个压缩包解压到同一目录下,官网下载压缩包一般有两个。 ※注意:解压路径名称最好不要出现中文和空格等不规则符号,否则之后可能出现不可预知的...