Oracle 動態監聽配置

beatony發表於2010-05-18

1. 修改hostname

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1          localhost
10.161.66.15 VM2UAT1

2.  configuation of listener.ora

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

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

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = VM2UAT1)(PORT = 1524))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

3. configuation of tnsnames.ora

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

LISTENER_UWEB =
  (ADDRESS = (PROTOCOL = TCP)(HOST = VM2UAT1)(PORT = 1524))

UWEB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = VM2UAT1)(PORT = 1524))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = UWEB)
    )
  )


EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

=== 完後上述步驟後,configuation of  instance parameter 'local_listener':

SQL:> alter system set local_listener='LISTENER_UWEB'  scope=spfile;

shutdown immediate

startup

lsnrctl status listener_uweb

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

相關文章