본문 바로가기
Database/Oracle

[Oracle] 포트포워딩후 외부접속 허용

by Youngs_ 2021. 12. 17.

C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN

필자와같은 경우는 위의 경로이고 사람마다 경로가 다 다를수있다.

 

아래 파일들의 HOST를 컴퓨터 이름으로 변경

 

listener.ora

# listener.ora Network Configuration File: F:\private\oracle11G\oracle11GPath\software\network\admin\listener.ora

# Generated by Oracle configuration tools.



SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = CLRExtProc)

      (ORACLE_HOME = F:\private\oracle11G\oracle11GPath\software)

      (PROGRAM = extproc)

      (ENVS = "EXTPROC_DLLS=ONLY:F:\private\oracle11G\oracle11GPath\software\bin\oraclr11.dll")

    )

  )



LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

      (ADDRESS = (PROTOCOL = TCP)(HOST = 서버IP)(PORT = 1521))

    )

  )



ADR_BASE_LISTENER = F:\private\oracle11G\oracle11GPath

 

tnsnames.ora

 

# tnsnames.ora Network Configuration File: F:\private\oracle11G\oracle11GPath\software\network\admin\tnsnames.ora

# Generated by Oracle configuration tools.



LISTENER_ORCL =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 서버IP)(PORT = 1521))





ORACLR_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

      (SID = CLRExtProc)

      (PRESENTATION = RO)

    )

  )



ORCL =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 서버IP)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = orcl)

    )

  )

 

 

cmd를 관리자권한으로 실행한후에

lsnrctl stop

lsnrctl start

명령어를 순서대로 실행해준다.

댓글