一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

oracle配置兩個listener(同一個service 注冊兩個Listener)

 pieryon_360doc 2013-04-22

設計為 oracle service 自動注冊到1522號端口上,靜態(tài)注冊到1521號端口上

1>在主機端修改tnsname.ora

  添加一行 cat tnsnames.ora
  LISTENER =
   (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = yysf)(PORT = 1522))
   )
2>netca 建立新的監(jiān)聽,名字為 csyh,端口為1522
  [oracle@~]$netca

Oracle Net Services Configuration:
Configuring Listener:csyh
Listener configuration complete.
Oracle Net Listener Startup:
    Running Listener Control: 
      /oracle/product/10.2.0/db_1/bin/lsnrctl start CSYH
    Listener Control complete.
    Listener started successfully.
Oracle Net Services configuration successful. The exit code is 0


3>進入想注冊的數(shù)據(jù)庫上,加入相應的信息


SQL> alter system set local_listener=listener;

系統(tǒng)已更改。

4>修改老的Listener,改為靜態(tài)注冊模式:
[oracle@/oracle/product/10.2.0/db_1/network/admin]$cat listener.ora
# listener.ora Network Configuration File: /oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

CSYH =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = yysf)(PORT = 1522))
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /oracle/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (ORACLE_HOME = /oracle/product/10.2.0/db_1)
      (SID_NAME = orcl)

    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = yysf)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

6、此時兩個監(jiān)聽都是好的,同時從客戶端用兩個監(jiān)聽都可以連接
C:/Documents and Settings/Administrator>tnsping listener2

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-8月
2010 21:42:42

Copyright (c) 1997, 2005, Oracle.  All rights reserved.

已使用的參數(shù)文件:
D:/oracle/product/10.2.0/client_1/network/admin/sqlnet.ora


已使用 TNSNAMES 適配器來解析別名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP
(HOST = 192.168.229.2)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
OK (0 毫秒)

C:/Documents and Settings/Administrator>sqlplus cx/cx@listener2

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 8月 6 21:55:44 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


連接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> quit


||||||||||


C:/Documents and Settings/Administrator>sqlplus cx/cx@192.168.229.2

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 8月 6 21:56:14 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


連接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select count(*) from tabs;

  COUNT(*)
----------
         1

SQL> exit

C:/Documents and Settings/Administrator>tnsping 192.168.229.2

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-8月 -
2010 22:02:48

Copyright (c) 1997, 2005, Oracle.  All rights reserved.

已使用的參數(shù)文件:
D:/oracle/product/10.2.0/client_1/network/admin/sqlnet.ora


已使用 TNSNAMES 適配器來解析別名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.229.2)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
OK (0 毫秒)

    本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多

    中文字幕亚洲在线一区| 欧美日韩一区二区综合| 国产欧美日韩不卡在线视频| 成年午夜在线免费视频| 国产精品伦一区二区三区四季 | 欧美日韩国产黑人一区| 亚洲精品国产福利在线| 久久这里只有精品中文字幕| 欧美黑人黄色一区二区| 日本91在线观看视频| 激情丁香激情五月婷婷| 亚洲中文在线观看小视频| 正在播放玩弄漂亮少妇高潮| 亚洲国产欧美久久精品| 粉嫩国产一区二区三区在线| 五月激情综合在线视频| 欧美日本道一区二区三区| 国产精品不卡高清在线观看| 老司机亚洲精品一区二区| 少妇特黄av一区二区三区| 美女露小粉嫩91精品久久久| 日韩特级黄色大片在线观看| 亚洲成人久久精品国产| 中文字幕日韩无套内射| 欧美日本亚欧在线观看| 欧美区一区二区在线观看| 成人精品国产亚洲av久久| 九九热在线视频观看最新| 欧美自拍系列精品在线| 欧美一级日韩中文字幕| 国产精品第一香蕉视频| 国产精欧美一区二区三区久久 | 久久国产精品热爱视频| 亚洲中文在线男人的天堂| 欧美亚洲国产日韩一区二区| 好吊色欧美一区二区三区顽频| 国产高清精品福利私拍| 中文字幕人妻一区二区免费 | 五月综合激情婷婷丁香| 中文字幕久久精品亚洲乱码| 久久天堂夜夜一本婷婷|