OceanBase Logo

license license stars forks English doc Chinese doc building status last commit Join Slack

**OceanBase Database** is a distributed relational database. It is developed entirely by Ant Group. OceanBase Database is built on a common server cluster. Based on the [Paxos](https://lamport.azurewebsites.net/pubs/lamport-paxos.pdf) protocol and its distributed structure, OceanBase Database provides high availability and linear scalability. OceanBase Database is not dependent on specific hardware architectures. # Key features * **Transparent Scalability** : An OceanBase cluster can be scaled out to 1,500 nodes transparently, handling petabytes of data and a trillion rows of records. * **Ultra-fast Performance** : The only distributed database that has refreshed both TPC-C record, at 707 million tmpC, and TPC-H record, at 15.26 million QphH @30000GB. * **Real-time Operational Analytics** : A unified system for both transactional and real-time operational analytics workloads. * **Continuous Availability** : OceanBase Database adopts Paxos Consensus algorithm to achieve Zero RPO and less than 8 seconds of RTO. * **MySQL Compatible** : OceanBase Database is highly compatible with MySQL, which ensures that zero or few modification is needed for migration. * **Cost Effeciency** : The cutting-edge compression technology saves 70%-90% of storage costs without compromising performance. The multi-tenancy architecture achieves higher resource utilization. See also [key features](https://en.oceanbase.com/product/opensource) for more details. # System architecture ![image.png](https://cdn.nlark.com/yuque/0/2022/png/25820454/1667369873624-c1707034-471a-4f79-980f-6d1760dac8eb.png) [Learn More](https://en.oceanbase.com/docs/community-observer-en-10000000000829641) # Quick start ## How to deploy ### 🔥 Deploy by all-in-one You can quickly deploy a standalone OceanBase Database to experience with the following commands. **Note**: Linux Only ```shell # download and install all-in-one package (internet connection is required) bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oceanbase-all-in-one/installer.sh)" source ~/.oceanbase-all-in-one/bin/env.sh # quickly deploy OceanBase database obd demo ``` ### 🐳 Deploy by docker 1. Pull OceanBase image (optional) ```shell docker pull oceanbase/oceanbase-ce ``` 2. Start an OceanBase Database instance ```shell # Deploy an instance with the maximum specifications supported by the container. docker run -p 2881:2881 --name obstandalone -e MINI_MODE=0 -d oceanbase/oceanbase-ce # Or deploy a mini standalone instance. docker run -p 2881:2881 --name obstandalone -e MINI_MODE=1 -d oceanbase/oceanbase-ce ``` 3. Connect to the OceanBase Database instance ```shell docker exec -it obstandalone ob-mysql sys # Connect to the root user of the sys tenant. docker exec -it obstandalone ob-mysql root # Connect to the root user of the test tenant. docker exec -it obstandalone ob-mysql test # Connect to the test user of the test tenant. ``` See also [Quick experience](https://en.oceanbase.com/docs/community-observer-en-10000000000829647) or [Quick Start (Simplified Chinese)](https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001692850) for more details. ## How to build See [OceanBase Developer Document](https://github.com/oceanbase/oceanbase/wiki/Compile) to learn how to compile and deploy a munually compiled observer. # Roadmap For future plans, see [Roadmap 2023](https://github.com/oceanbase/oceanbase/issues/1364). See also [OceanBase Roadmap](https://github.com/orgs/oceanbase/projects) for more details. # Case study OceanBase makes data management and use easier with technology innovation. It has been serving more than 400 customers upgrade their database from different industries, including Financial Services, Telecom, Retail, Internet and more. See also [success stories](https://en.oceanbase.com/customer/home) and [Who is using OceanBase](https://github.com/oceanbase/oceanbase/issues/1301) for more details. # Contributing Contributions are highly appreciated. Read the [Contribute to OceanBase](https://github.com/oceanbase/oceanbase/wiki/Contribute-to-OceanBase) guide to getting started. # License OceanBase Database is licensed under the Mulan Public License, Version 2. See the [LICENSE](LICENSE) file for more info. # Community Join the OceanBase community via: * [Slack Workspace](https://join.slack.com/t/oceanbase/shared_invite/zt-1e25oz3ol-lJ6YNqPHaKwY_mhhioyEuw) * [Chinese User Forum](https://ask.oceanbase.com/) * DingTalk Group: 33254054 ([QR code](images/dingtalk.svg)) * WeChat Group (Add the assistant with WeChat ID: OBCE666)