Skip to content

Commit de5a317

Browse files
committed
Docs: DR update
Signed-off-by: junior <[email protected]>
1 parent 1318ee1 commit de5a317

File tree

1 file changed

+43
-43
lines changed
  • src/docs/content/disaster-recovery

1 file changed

+43
-43
lines changed

src/docs/content/disaster-recovery/setup.md

+43-43
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,40 @@ Do refer the autonomous database password criteria's [here](https://docs.oracle.
3333

3434
- Create the Source ADB (Autonomous Database)
3535

36-
```shell
37-
oci db autonomous-database create --compartment-id ${COMPARTMENT_ID} \
38-
--db-name ${DB_NAME} --admin-password ${DB_PASSWORD} --db-version 19c \
39-
--cpu-core-count 1 --data-storage-size-in-tbs 1 \
40-
--display-name ${DB_DISPLAY_NAME} --region ${PRIMARY_REGION}
41-
```
36+
```shell
37+
oci db autonomous-database create --compartment-id ${COMPARTMENT_ID} \
38+
--db-name ${DB_NAME} --admin-password ${DB_PASSWORD} --db-version 19c \
39+
--cpu-core-count 1 --data-storage-size-in-tbs 1 \
40+
--display-name ${DB_DISPLAY_NAME} --region ${PRIMARY_REGION}
41+
```
4242

4343
- Fetch the Source ADB (Autonomous Database) OCID
4444

45-
```bash
46-
DB_ID=$(oci db autonomous-database list -c ${COMPARTMENT_ID} \
47-
--region ${PRIMARY_REGION} --display-name $DB_NAME \
48-
--query "data[?\"db-name\"=='${DB_NAME}'].id | [0]" --raw-output)
49-
```
45+
```bash
46+
DB_ID=$(oci db autonomous-database list -c ${COMPARTMENT_ID} \
47+
--region ${PRIMARY_REGION} --display-name $DB_NAME \
48+
--query "data[?\"db-name\"=='${DB_NAME}'].id | [0]" --raw-output)
49+
```
5050

5151
- Create the DR ADB (Autonomous Database)
5252

53-
```bash
54-
oci db autonomous-database create-adb-cross-region-data-guard-details \
55-
--compartment-id ${COMPARTMENT_ID} --db-name ${DB_NAME} --source-id ${DB_ID} \
56-
--cpu-core-count 1 --data-storage-size-in-tbs 1 \
57-
--region ${FAILOVER_REGION} --db-version 19c
58-
```
53+
```bash
54+
oci db autonomous-database create-adb-cross-region-data-guard-details \
55+
--compartment-id ${COMPARTMENT_ID} --db-name ${DB_NAME} --source-id ${DB_ID} \
56+
--cpu-core-count 1 --data-storage-size-in-tbs 1 \
57+
--region ${FAILOVER_REGION} --db-version 19c
58+
```
5959

6060
- Download and extract autonomous database wallet from source ADB
6161

62-
```bash
63-
oci db autonomous-database generate-wallet --autonomous-database-id ${DB_ID}\
64-
--password ${WALLET_PW} --file ${WALLET_ZIP} --region $PRIMARY_REGION
65-
```
62+
```bash
63+
oci db autonomous-database generate-wallet --autonomous-database-id ${DB_ID}\
64+
--password ${WALLET_PW} --file ${WALLET_ZIP} --region $PRIMARY_REGION
65+
```
6666

67-
```bash
68-
unzip ${WALLET_ZIP} -d /tmp/wallet_source
69-
```
67+
```bash
68+
unzip ${WALLET_ZIP} -d /tmp/wallet_source
69+
```
7070

7171
{{% alert style="information" icon="information" %}}
7272
Keep this wallet handy as we will need to add it as OKE secret later on.
@@ -132,14 +132,14 @@ Follow the instructions provided [here](https://www.oracle.com/webfolder/technet
132132

133133
Sample Output:
134134

135-
```yaml
136-
global:
137-
ociAuthSecret: oci-credentials # OCI authentication credentials secret name
138-
ossStreamSecret: # Name of Stream Connection secret
139-
oadbAdminSecret: oadb-admin # Name of DB Admin secret created earlier
140-
oadbWalletSecret: oadb-wallet # Name of wallet secret created earlier
141-
oadbConnectionSecret: oadb-connection # Name of connection secret created earlier
142-
```
135+
```yaml
136+
global:
137+
ociAuthSecret: oci-credentials # OCI authentication credentials secret name
138+
ossStreamSecret: # Name of Stream Connection secret
139+
oadbAdminSecret: oadb-admin # Name of DB Admin secret created earlier
140+
oadbWalletSecret: oadb-wallet # Name of wallet secret created earlier
141+
oadbConnectionSecret: oadb-connection # Name of connection secret created earlier
142+
```
143143

144144
- Install MuShop
145145

@@ -224,9 +224,9 @@ section and create a OKE cluster at the DR region.
224224
225225
Extract the wallet
226226
227-
```bash
228-
unzip <wallet_zip_file> -d /tmp/wallet_remote
229-
```
227+
```bash
228+
unzip <wallet_zip_file> -d /tmp/wallet_remote
229+
```
230230
231231
- Create the secrets, set the region as `us-ashburn-1` in this case
232232
@@ -267,14 +267,14 @@ Extract the wallet
267267
268268
Sample Output:
269269
270-
```yaml
271-
global:
272-
ociAuthSecret: oci-credentials # OCI authentication credentials secret name
273-
ossStreamSecret: # Name of Stream Connection secret
274-
oadbAdminSecret: oadb-admin # Name of DB Admin secret created earlier
275-
oadbWalletSecret: oadb-wallet # Name of wallet secret created earlier
276-
oadbConnectionSecret: oadb-connection # Name of connection secret created earlier
277-
```
270+
```yaml
271+
global:
272+
ociAuthSecret: oci-credentials # OCI authentication credentials secret name
273+
ossStreamSecret: # Name of Stream Connection secret
274+
oadbAdminSecret: oadb-admin # Name of DB Admin secret created earlier
275+
oadbWalletSecret: oadb-wallet # Name of wallet secret created earlier
276+
oadbConnectionSecret: oadb-connection # Name of connection secret created earlier
277+
```
278278
279279
- Install MuShop
280280

0 commit comments

Comments
 (0)