# Encoding 설정

## 오라클 인코딩 확인 및 설정

오라클은 기본적으로 설치시 `UTF-8` 인코딩 설정이 되어 있으며, 이를 확인하고 변경할 수 있다.

### 인코딩 확인 명령

```sql
select parameter, value from nls_database_parameters where parameter = 'NLS_CHARACTERSET'
```

### 인코딩 설정 명령

인코딩을 `MS949`로 변경하기 위한 명령은 다음과 같다.

```sql
update sys.props$ set value$='KO16MSWIN949' where name='NLS_CHARACTERSET';  
update sys.props$ set value$='KO16MSWIN949' where  name='NLS_NCHAR_CHARACTERSET';
update sys.props$ set value$='KOREAN_KOREA.KO16MSWIN949' where name='NLS_LANGUAGE';
commit;
```

설정을 마친 뒤 데이터베이스를 종료 후 재시작 해야 한다.

시작 메뉴의 `Start Database`, `Stop Database`를 이용하여 종료 및 재시작 하는 것이 간편하다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sysout.co.kr/database/oracle/structure-query-language/admin-query/encoding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
