Oacle 감청 설정

/etc/hosts
127.0.0.1               localhost.localdomain localhost  test3.china.net   test3

$ORACLE_HOME/network/admin/listener.ora
# listener.ora Network Configuration File: /opt/oracle/112/network/admin/listener.ora
# Generated by Oracle configuration tools.


LISTENER =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test3.china.net)(PORT = 1521))
  )
ADR_BASE_LISTENER = /opt/oracle

--      
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /home/oracle/product/10.2.0)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = ora10g)
      (ORACLE_HOME = /home/oracle/product/10.2.0)
      (GLOBAL_DBNAME = ora10g)
    )
  )


$ORACLE_HOME/network/admin/tnsnames.ora
ORACLE =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.0.200)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oracle)
    )
  )

ORACLE =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.0.200)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = oracle)
    )
  )

좋은 웹페이지 즐겨찾기