> For the complete documentation index, see [llms.txt](https://docs.sysout.co.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sysout.co.kr/database/oracle/structure-query-language/admin-query/service-port.md).

# 서비스 포트 설정

## 오라클 서비스 포트 설정

오라클 설치 시 기본 포트는 `8080`으로 설정되어 있다. 하지만 `Apache Tomcat` 등의 프로그램과 충돌이 발생하기 때문에 포트 변경 작업이 필요한 경우가 있다.

### 오라클 서비스 포트 확인

서비스 포트를 확인하는 명령은 다음과 같다.

```sql
select dbms_xdb.gethttpport() from dual;
```

### 오라클 서비스 포트 변경

서비스 포트를 변경하는 명령을 사용할 때에는 현재 사용 중이지 않은 포트 번호를 지정해야 한다.

```sql
exec dbms_xdb.sethttpport(포트번호);
```
