Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ Furthermore, for more detailed installation instructions, please refer to the [I
- [Rpm installation](https://docs.ivorysql.org/en/ivorysql-doc/v5.6/4.1#Rpm-installation)
- [Source code installation](https://docs.ivorysql.org/en/ivorysql-doc/v5.6/4.1#Source-code-installation)

## Connecting to an Oracle-mode cluster

A cluster initialized with `initdb -m oracle` accepts PostgreSQL and Oracle
syntax on separate ports. With the default configuration, port 5432 starts
sessions in PostgreSQL compatibility mode and port 1521 starts sessions in
Oracle compatibility mode. Use the Oracle port when running an Oracle SQL or
PL/iSQL example.

```sh
# Expected: pg
psql -X -p 5432 -d ivorysql -c 'SHOW ivorysql.compatible_mode'

# Expected: oracle
psql -X -p 1521 -d ivorysql -c 'SHOW ivorysql.compatible_mode'
```

For a cluster with custom ports, use the configured `port` and
`ivorysql.port` values. A cluster initialized with `initdb -m pg` exposes
only the PostgreSQL listener.

## Development with Docker

For a consistent development environment, we provide a Docker-based setup that includes all build dependencies.
Expand Down
17 changes: 17 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ IvorySQL 项目采用 Apache 2.0 许可协议发布,并鼓励各种形式的
- [RPM 安装](https://docs.ivorysql.org/cn/ivorysql-doc/v5.6/4.1#rpm安装)
- [源代码安装](https://docs.ivorysql.org/cn/ivorysql-doc/v5.6/4.1#源码安装)

## 连接 Oracle 模式集群

通过 `initdb -m oracle` 初始化的集群使用两个端口。默认配置下,连接
5432 端口时会话以 PostgreSQL 兼容模式启动,连接 1521 端口时会话以 Oracle
兼容模式启动。运行 Oracle SQL 或 PL/iSQL 示例时,请连接 Oracle 端口。

```sh
# 预期输出 pg
psql -X -p 5432 -d ivorysql -c 'SHOW ivorysql.compatible_mode'

# 预期输出 oracle
psql -X -p 1521 -d ivorysql -c 'SHOW ivorysql.compatible_mode'
```

如果集群使用自定义端口,请以 `port` 和 `ivorysql.port` 的配置值为准。
通过 `initdb -m pg` 初始化的集群只提供 PostgreSQL 监听端口。

## 为IvorySQL做贡献
有许多方式可以为 IvorySQL 做出贡献。您可以通过更新文档或提供文档翻译来贡献。如果您具备设计技能,还可以参与 IvorySQL 官网项目的建设。

Expand Down
Loading