oracle11gr2 监听服务不起作用
来源:互联网 发布:吐槽 程序员男友 编辑:程序博客网 时间:2024/04/28 18:16
1. 监听端口打开:
192.168.44.97:1521 0.0.0.0:* LISTEN
2. sqlplus 连不上,tnsping也失败
3. alter system set local_listener='(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.44.97)(PORT=1521))' scope=both;
alter system register;解决,但lsnrctl status发现push service有2条push instance 记录,一个为ready动态注册),另一个为unkown(静态注册)。
======================================================
oracle@uma1:~/product/11.2.0/dbhome_2/network/admin> cat listener.ora
# listener.ora Network Configuration File: /home/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.44.97)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = push)
(SID_NAME = push)
)
)
ADR_BASE_LISTENER = /home/oracle
=========================================================================
SQL> host lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 13-8月 -2012 11:28:16
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.44.97)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 25-6月 -2012 14:59:03
Uptime 48 days 20 hr. 29 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
Listener Log File /home/oracle/diag/tnslsnr/uma1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.44.97)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "push" has 2 instance(s).
Instance "push", status UNKNOWN, has 1 handler(s) for this service...
Instance "push", status READY, has 1 handler(s) for this service...
Service "pushXDB" has 1 instance(s).
Instance "push", status READY, has 1 handler(s) for this service...
The command completed successfully
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string
db_name string push
db_unique_name string push
global_names boolean FALSE
instance_name string push
lock_name_space string
log_file_name_convert string
service_names string push
SQL>
SQL> show parameter listen
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
listener_networks string
local_listener string (ADDRESS = (PROTOCOL = TCP)(HO
ST = 192.168.44.97)(PORT = 152
1))
remote_listener string
============================参考论坛帖子====================
http://www.itpub.net/forum.php?mod=viewthread&tid=1603547
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 19-APR-2012 10:18:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=vm1)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.2.0 - Production
Start Date 13-APR-2012 13:50:07
Uptime 5 days 20 hr. 28 min. 39 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vm1)(PORT=1521)))
Services Summary...
Service "PROD" has 1 instance(s).
Instance "PROD", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@vm1 ~]$ cd /u01/app/oracle/product/10.2.0/db_1/network/admin/
[oracle@vm1 admin]$ vi listener.ora
[oracle@vm1 admin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.2.0 - Production on Thu Apr 19 10:19:18 2012
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=tcp)(HOST=vm1)(PORT=1521))' scope=both;
System altered.
SQL> alter system register;
System altered.
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
[oracle@vm1 admin]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 19-APR-2012 10:20:01
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=vm1)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.2.0 - Production
Start Date 13-APR-2012 13:50:07
Uptime 5 days 20 hr. 29 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vm1)(PORT=1521)))
Services Summary...
Service "PROD" has 2 instance(s).
Instance "PROD", status UNKNOWN, has 1 handler(s) for this service...
Instance "PROD", status READY, has 6 handler(s) for this service...
Service "PROD_XPT" has 1 instance(s).
Instance "PROD", status READY, has 6 handler(s) for this service...
The command completed successfully
[oracle@vm1 admin]$
============================RAC 监听配置==========
SQL> show parameter listener
NAME TYPE VALUE
------------------------------------ --------------------------------- ------------------------------
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=222.
248.3.141)(PORT=1521))))
remote_listener string sc-cluster-scan:1521
- oracle11gr2 监听服务不起作用
- Oracle11gR2的服务简介
- 短信监听 不起作用
- Viewpager设置监听事件不起作用
- Oracle11gR2——RAC中的服务
- Windows平台中Oracle11gR2使用的服务
- 监听服务
- oracle11gR2单机设置开机自启动监听和数据库
- select的onChange监听不起作用问题
- Oracle11gR2的服务一键启动/停止脚本
- Oracle:删除监听服务
- ORACLE监听服务管理
- oracle 服务监听
- Oracle:删除监听服务
- 监听程序不支持服务
- android服务监听电话
- Oracle监听服务没有
- ZooKeeper监听服务
- Python's Decorator (Annotation)
- url中文乱码解决大全
- System.InvalidOperationException: The stream does not support reading
- GDI+往jpg图片文件里面添加属性值
- Linux下DNW的PC端USB驱动和写入工具【转】
- oracle11gr2 监听服务不起作用
- 将编译AS3区分Debug版本和Release版本
- 在linux上使用QEMU 进行系统仿真
- navigationController返回
- 如果是你你会如何重新设计和定义维基百科(wikipedia)?
- 在Xcode 4.2 IOS 5.0中为低版本IOS开发
- oracle对象的表空间迁移
- 电脑技巧
- C# Tips:将16进制形式的字符串转换成数值