下面为您介绍的是oracle服务端和客户端之间的网络监听设置,如果您在oracle服务端和客户端之间的网络监听设置方面遇到过类似的问题,不妨一看。
创新互联建站是网站建设专家,致力于互联网品牌建设与网络营销,专业领域包括网站建设、成都网站建设、电商网站制作开发、成都小程序开发、微信营销、系统平台开发,与其他网站设计及系统开发公司不同,我们的整合解决方案结合了恒基网络品牌建设经验和互联网整合营销的理念,并将策略和执行紧密结合,且不断评估并优化我们的方案,为客户提供全方位的互联网品牌整合方案!
oracle服务端和客户端之间的网络监听设置
假如我现在有两个数据库kkman和orcl,现在我想在服务端设立两个监听来处理从客户端发过来的连接请求。
-----------------------------------------------------------------
***种多端口监听
1.服务端listener.ora配置
- # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
- # Generated by Oracle configuration tools.
- SID_LIST_LISTENERORCL =
- (SID_LIST =
- (SID_DESC =
- (GLOBAL_DBNAME = ORCL)
- (SID_NAME = ORCL)
- )
- (SID_DESC =
- (GLOBAL_DBNAME = KKMAN)
- (SID_NAME = KKMAN)
- )
- )
- LISTENER =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = rac02)(PORT = 1521))
- (ADDRESS = (PROTOCOL = TCP)(HOST = rac02)(PORT = 1522))
- )
- )
2.服务端和客户端tnsnames.ora配置
- # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
- # Generated by Oracle configuration tools.
- KKMAN =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1522))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = KKMAN)
- )
- )
- ORCL =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = orcl)
- )
- )
3.重新启动监听
在服务端打开cmd运行:lsnrctl stop和lsnrctl start
--------------------------------------------------------------------------------
2.多监听单端口
1.服务端listener.ora配置
- # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
- # Generated by Oracle configuration tools.
- SID_LIST_LISTENERORCL =
- (SID_LIST =
- (SID_DESC =
- (GLOBAL_DBNAME = ORCL)
- (SID_NAME = ORCL)
- )
- (SID_DESC =
- (GLOBAL_DBNAME = KKMAN)
- (SID_NAME = KKMAN)
- )
- )
- LISTENER =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = rac02)(PORT = 1521))
- )
- )
2.服务端和客户端tnsnames.ora配置
- # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
- # Generated by Oracle configuration tools.
- KKMAN =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = KKMAN)
- )
- )
- ORCL =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = orcl)
- )
- )
3.重新启动监听
在服务端打开cmd运行:lsnrctl stop和lsnrctl start
分享名称:oracle服务端和客户端之间的网络监听设置
当前网址:http://www.shufengxianlan.com/qtweb/news43/13143.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联