如何配置多個監聽器不同埠

paulyibinyi發表於2008-05-09

listener.ora 檔案內容如下:

# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER2 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = paultest)(PORT = 1523))
    )
  )
SID_LIST_LISTENER2 =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)

      (SID_NAME = ORCL)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = ORCL)

    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)

     (SID_NAME = ORCL)
      (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
      (PROGRAM = ORCL)

    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = paultest)(PORT = 1521))
    )
  )

tnsnames.ora 檔案內容如下:  對應不同埠

# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL1521 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = paultest)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

ORCL1523 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = paultest)(PORT = 1523))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-263400/,如需轉載,請註明出處,否則將追究法律責任。

相關文章