> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 복제 데이터베이스의 정보와 상태를 담고 있는 시스템 테이블입니다.

# system.database_replicas

<div id="description">
  ## 설명
</div>

각 Replicated 데이터베이스 복제본에 대한 정보가 포함됩니다.

<div id="columns">
  ## 컬럼
</div>

* `database` ([String](/ko/reference/data-types/index)) — 복제된 데이터베이스의 이름입니다.
* `is_readonly` ([UInt8](/ko/reference/data-types/index)) — 데이터베이스 레플리카가 읽기 전용 모드인지 여부입니다.
* `max_log_ptr` ([Int32](/ko/reference/data-types/index)) — 일반 활동 로그의 최대 항목 번호입니다.
* `replica_name` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper에 있는 레플리카 이름입니다.
* `replica_path` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper에 있는 레플리카 데이터 경로입니다.
* `zookeeper_path` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper에 있는 데이터베이스 데이터 경로입니다.
* `shard_name` ([String](/ko/reference/data-types/index)) — cluster 내 세그먼트의 이름입니다.
* `log_ptr` ([Int32](/ko/reference/data-types/index)) — 레플리카가 실행 큐에 복사한 일반 활동 로그의 최대 항목 번호에 1을 더한 값입니다.
* `total_replicas` ([UInt32](/ko/reference/data-types/index)) — 이 데이터베이스에 대해 알려진 전체 레플리카 수입니다.
* `zookeeper_exception` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper에서 정보를 가져오는 중 오류가 발생했을 때 받은 마지막 예외 메시지입니다.
* `is_session_expired` ([UInt8](/ko/reference/data-types/index)) — ClickHouse Keeper와의 세션이 만료되었는지 여부입니다. 기본적으로 `is_readonly`와 같습니다.

<div id="example">
  ## 예시
</div>

```sql theme={null}
SELECT * FROM system.database_replicas FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:            db_2
is_readonly:         0
max_log_ptr:         2
replica_name:        replica1
replica_path:        /test/db_2/replicas/shard1|replica1
zookeeper_path:      /test/db_2
shard_name:          shard1
log_ptr:             2
total_replicas:      1
zookeeper_exception: 
is_session_expired:  0
```
