Skip to content

Commit

Permalink
WMS ID #5241: fix some issues (#179)
Browse files Browse the repository at this point in the history
* upgrade to 23ai RAFT

* invisible the compartment

* add new tasks

* add more tasks

* fix some typo

* fix some issues
  • Loading branch information
minqiaowang authored Oct 9, 2024
1 parent d5b9d60 commit 82c2503
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 32 deletions.
8 changes: 4 additions & 4 deletions sharding/create-sample-schema/create-sample-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this lab, you will perform the following steps:
### Prerequisites

This lab assumes you have already completed the following:
- Deploy the Globally Distributed Database with RAFT
- Deploy the Globally Distributed Database with Raft
- Set up the non sharded database


Expand Down Expand Up @@ -47,7 +47,7 @@ This lab assumes you have already completed the following:
2. Download the SQL scripts `create-sample-schema.sql`.
```
[oracle@gsmhost ~]$ <copy>wget https://c4u04.objectstorage.us-ashburn-1.oci.customer-oci.com/p/EcTjWk2IuZPZeNnD_fYMcgUhdNDIDA6rt9gaFj_WZMiL7VvxPBNMY60837hu5hga/n/c4u04/b/livelabsfiles/o/create-sample-schema.sql</copy>
[oracle@gsmhost ~]$ <copy>wget https://github.com/minqiaowang/globally-distributed-database-with-raft/raw/refs/heads/main/create-sample-schema/create-sample-schema.sql</copy>
```
Expand Down Expand Up @@ -1046,7 +1046,7 @@ Loading the data directly into the database shards is much faster, because each
13. Now all the data from normal instance migrate to the sharded tables.
## Task 5: Setup and Run the Application for Globally Distribute Database
## Task 5: Setup and Run the Application for Globally Distributed Database
1. In the gsm host with **oracle** user, change the directory to ```sdb_demo_app/sql```.
Expand Down Expand Up @@ -1129,7 +1129,7 @@ Loading the data directly into the database shards is much faster, because each
name=demo
connect_string=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=on)(ADDRESS=(HOST=localhost)(PORT=1522)(PROTOCOL=tcp)))
monitor.user=dbmonuser
monitor.pass=TEZiPP4MsLLL
monitor.pass=TEZiPP4_MsLLL_1
#app.service.write=oltp_rw_srvc.cust_sdb.oradbcloud
app.service.write=oltp_rw_svc.orasdb.oradbcloud
#app.service.readonly=oltp_rw_srvc.cust_sdb.oradbcloud
Expand Down
14 changes: 7 additions & 7 deletions sharding/deploy-raft-replication/deploy-raft-replication.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Deploy the RAFT Replication
# Deploy the Raft Replication

## Introduction

In this lab, you will provision a Globally Distributed Database with RAFT replication.
In this lab, you will provision a Globally Distributed Database with Raft replication.

Estimated Lab Time: 60 minutes.

Expand All @@ -12,7 +12,7 @@ In this lab, you will perform the following steps:

- Install the GSM Software in the gsmhost Compute Instance.
- Configure the Catalog DB and Shard DB.
- Deploy the GDD with RAFT replication.
- Deploy the GDD with Raft replication.

### Prerequisites

Expand Down Expand Up @@ -256,7 +256,7 @@ This lab assumes you have already completed the following:
15. Exit from the terminal.
## Task 2: Execute Prep Scripts for Oracle Sharding on Catalog
## Task 2: Execute Prep Scripts for Oracle Sharding on Catalog Host
**Remember we use shardhost0 as catalog host.**
Expand Down Expand Up @@ -376,7 +376,7 @@ This lab assumes you have already completed the following:
10. Exit and back to the gsmhost **opc** user.
## Task 3: Execute Prep Scripts for Oracle Sharding on each shard
## Task 3: Execute Prep Scripts for Oracle Globally Distributed Database on each shard
**Note: You need to connect to each shard to execute the following commands to prepare shards**
Expand Down Expand Up @@ -570,7 +570,7 @@ This lab assumes you have already completed the following:
3. Create shard catalog, the `-repl NATIVE` for native RAFT replication.
3. Create shard catalog, the `-repl NATIVE` for native Raft replication.
```
<copy>create shardcatalog -database shardhost0:1521/shard0 -user mysdbadmin/WelcomePTS_2024# -repl native -repfactor 3 -chunks 18</copy>
Expand Down Expand Up @@ -920,7 +920,7 @@ This lab assumes you have already completed the following:
Now the RAFT replication environment is ready.
Now the Raft replication environment is ready.
You may now proceed to the next lab.
Expand Down
26 changes: 13 additions & 13 deletions sharding/explore-raft-replication/explore-raft-replication.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Explore the RAFT replication Features
# Explore the Raft replication Features

## Introduction

In this lab, you will explare the RAFT replication features
In this lab, you will explare the Raft replication features

Estimated Lab Time: 30 minutes.

### Objectives

In this lab, you will perform the following steps:

- Check the current RAFT replication configure
- RAFT Replication Failover
- Manager the RAFT RU
- Check the current Raft replication configure
- Raft Replication Failover
- Manager the Raft RU

### Prerequisites

Expand All @@ -21,7 +21,7 @@ This lab assumes you have already completed the following:
- Globally Distributed Database Deployment
- Create Demo Sample Schema

## Task 1: Explore RAFT Replication Configure
## Task 1: Explore Raft Replication Configuration

1. Log into gsmhost , switch to **oracle** user

Expand All @@ -38,7 +38,7 @@ This lab assumes you have already completed the following:
2. Connect to GDSCLT
2. Connect to GDSCTL
```
[oracle@gsmhost ~]$ <copy>gdsctl</copy>
Expand Down Expand Up @@ -161,7 +161,7 @@ This lab assumes you have already completed the following:
## Task 2: RAFT Replication Failover
## Task 2: Raft Replication Failover
1. Open antoher terminal, from gsmhost **opc** user, connec to the shardhost1
Expand Down Expand Up @@ -347,7 +347,7 @@ This lab assumes you have already completed the following:
## Task3: Manager the RAFT Replication RU
## Task3: Manager the Raft Replication Units
1. From GDSCTL, check current RU Leaders
Expand Down Expand Up @@ -511,10 +511,10 @@ This lab assumes you have already completed the following:
You may now proceed to the next lab.
## Acknowledgements
## Acknowledgements
* **Author** - Minqiao Wang, Oracle China
* **Contributor** - Satyabrata Mishra, Database Product Management
* **Last Updated By/Date** - Minqiao Wang, Sep 2024
* **Author** - Minqiao Wang, Oracle China
* **Contributor** - Satyabrata Mishra, Database Product Management
* **Last Updated By/Date** - Minqiao Wang, Sep 2024
10 changes: 6 additions & 4 deletions sharding/introduction/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## About this Workshop

In this workshop you will learn how to deploy Oracle Globally Distributed Database with RAFT replication. You will also deploy an application base on the RAFT with high availability.
In this workshop you will learn how to deploy Oracle Globally Distributed Database with Raft replication. You will also deploy an application base on the Raft with high availability.

Estimated Lab Time: 4 hours.

Expand All @@ -13,9 +13,9 @@ Oracle Globally Distributed Database disperses segments of a data set across man



## About RAFT Replication
## About Raft Replication

RAFT Replication enables rapid failover within seconds and zero data loss during node or data center outages, facilitating an Active-Active-Active symmetric distributed database architecture that enhances availability, simplifies management, and optimizes resource utilization globally.
Raft Replication enables rapid failover within seconds and zero data loss during node or data center outages, facilitating an Active-Active-Active symmetric distributed database architecture that enhances availability, simplifies management, and optimizes resource utilization globally.

**Replication Unit**

Expand Down Expand Up @@ -54,7 +54,9 @@ In Oracle Globally Distributed Database , the replication factor is specified fo

In this workshop, you will

- Deploy a Globally Distributed Database with RAFT replication.
- Deploy a Globally Distributed Database with Raft replication.
- Migrate a single instance application to the Globally Distributed Database.
- Explore the Raft replication features



Expand Down
4 changes: 2 additions & 2 deletions sharding/setup-nonshard-app/setup-nonshard-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ This lab assumes you have already completed the following:
grant shard_monitor_role, gsmadmin_role to app_schema;
create user dbmonuser identified by TEZiPP4MsLLL;
create user dbmonuser identified by TEZiPP4_MsLLL_1;
grant connect, alter session, shard_monitor_role, gsmadmin_role to dbmonuser;
grant all privileges on app_schema.products to dbmonuser;
Expand Down Expand Up @@ -719,7 +719,7 @@ This lab assumes you have already completed the following:
name=demo
connect_string=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=on)(ADDRESS=(HOST=shardhost3)(PORT=1521)(PROTOCOL=tcp)))
monitor.user=dbmonuser
monitor.pass=TEZiPP4MsLLL
monitor.pass=TEZiPP4_MsLLL_1
app.service.write=nspdb
app.service.readonly=nspdb
app.user=app_schema
Expand Down
4 changes: 2 additions & 2 deletions sharding/workshops/freetier/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"filename": "../../setup-environment/setup-environment.md"
},
{
"title": "Lab 2: Deployment the RAFT replication Sharded Database",
"title": "Lab 2: Deployment the Globally Distributed Database with Raft replication",
"filename": "../../deploy-raft-replication/deploy-raft-replication.md"
},
{
Expand All @@ -29,7 +29,7 @@
"filename": "../../create-sample-schema/create-sample-schema.md"
},
{
"title": "Lab 5: Explore the RAFT Replication Features",
"title": "Lab 5: Explore the Raft Replication Features",
"filename": "../../explore-raft-replication/explore-raft-replication.md"
},
{
Expand Down

0 comments on commit 82c2503

Please sign in to comment.