> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tibero-manuals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/sql-reference-guide/data-definition-language/alter-trigger.md).

# ALTER TRIGGER

데이터베이스 트리거를 컴파일하거나 트리거 이름을 변경합니다. 또한 트리거를 활성화하거나 비활성화합니다.

**ALTER TRIGGER**의 세부 내용은 다음과 같습니다.

* **문법**

<div align="left"><figure><img src="https://content.gitbook.com/content/evqs7Ne3nMyXQFkBSQWR/blobs/nrMiVSmzvV35UpmH7CRj/image.png" alt=""><figcaption></figcaption></figure></div>

* **특권**
  * 자신의 스키마에 포함된 트리거이거나 `ALTER ANY TRIGGER` 시스템 특권이 있어야 합니다.
* **구성요소**

– alter\_trigger

<table><thead><tr><th width="142">구성요소</th><th>설명</th></tr></thead><tbody><tr><td>RENAME</td><td><ul><li>트리거 이름을 변경</li><li>변경 후에도 기존 상태를 유지</li></ul></td></tr><tr><td>COMPILE</td><td><ul><li>트리거를 명시적으로 재컴파일</li><li>런타임에 발생할 수 있는 암묵적 재컴파일을 줄여 오버헤드와 컴파일 오류를 미리 확인</li><li>트리거가 참조하는 객체가 무효 상태이면 관련 상태를 확인한 뒤 트리거를 컴파일</li><li>컴파일에 성공하면 트리거는 유효 상태가 됨</li></ul></td></tr></tbody></table>

– enable\_option

<table><thead><tr><th width="143">구성요소</th><th>설명</th></tr></thead><tbody><tr><td>ENABLE</td><td>트리거를 활성화</td></tr><tr><td>DISABLE</td><td>트리거를 비활성화</td></tr></tbody></table>

* **예제**

다음은 트리거를 비활성화하는 예입니다.

```sql
SQL> ALTER TRIGGER tr1 DISABLE;
Trigger altered.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.tibero.com/tibero-manuals/7.2.6.manuals/sql-reference-guide/data-definition-language/alter-trigger.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
