Skip to content

Commit 4dfd61e

Browse files
Merge pull request #233906 from msaenzbosupport/patch-11
[Doc-A-THon] Adding a disclaimer for OL6
2 parents 99ba7ac + 9b03b4c commit 4dfd61e

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

articles/virtual-machines/workloads/oracle/configure-oracle-dataguard.md

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ To install Oracle Data Guard, you need to create two Azure VMs on the same avail
2929

3030
The Marketplace image that you use to create the VMs is Oracle:Oracle-Database-Ee:12.1.0.2:latest.
3131

32+
> [!NOTE]
33+
> Be aware of versions that are End Of Life (EOL) and no longer supported by Redhat. Uploaded images that are, at or beyond EOL will be supported on a reasonable business effort basis. Link to Redhat's [Product Lifecycle](https://access.redhat.com/product-life-cycles/?product=Red%20Hat%20Enterprise%20Linux,OpenShift%20Container%20Platform%204)
34+
35+
3236
### Sign in to Azure
3337

3438
Sign in to your Azure subscription by using the [az login](/cli/azure/reference-index) command and follow the on-screen directions.
@@ -65,6 +69,10 @@ Create a VM by using the [az vm create](/cli/azure/vm) command.
6569

6670
The following example creates two VMs named `myVM1` and `myVM2`. It also creates SSH keys, if they do not already exist in a default key location. To use a specific set of keys, use the `--ssh-key-value` option.
6771

72+
> [!NOTE]
73+
> Be aware of versions that are End Of Life (EOL) and no longer supported by Redhat. Uploaded images that are, at or beyond EOL will be supported on a reasonable business effort basis. Link to Redhat's [Product Lifecycle](https://access.redhat.com/product-life-cycles/?product=Red%20Hat%20Enterprise%20Linux,OpenShift%20Container%20Platform%204)
74+
75+
6876
Create myVM1 (primary):
6977
```azurecli
7078
az vm create \
@@ -157,7 +165,7 @@ az network nsg rule create --resource-group myResourceGroup\
157165
Use the following command to create an SSH session with the virtual machine. Replace the IP address with the `publicIpAddress` value for your virtual machine.
158166

159167
```bash
160-
$ ssh azureuser@<publicIpAddress>
168+
ssh azureuser@<publicIpAddress>
161169
```
162170

163171
### Create the database on myVM1 (primary)
@@ -167,13 +175,13 @@ The Oracle software is already installed on the Marketplace image, so the next s
167175
Switch to the Oracle superuser:
168176

169177
```bash
170-
$ sudo su - oracle
178+
sudo su - oracle
171179
```
172180

173181
Create the database:
174182

175183
```bash
176-
$ dbca -silent \
184+
dbca -silent \
177185
-createDatabase \
178186
-templateName General_Purpose.dbc \
179187
-gdbname cdb1 \
@@ -227,8 +235,8 @@ Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1/cdb1.log" for furthe
227235
Set the ORACLE_SID and ORACLE_HOME variables:
228236

229237
```bash
230-
$ ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
231-
$ ORACLE_SID=cdb1; export ORACLE_SID
238+
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
239+
ORACLE_SID=cdb1; export ORACLE_SID
232240
```
233241

234242
Optionally, you can add ORACLE_HOME and ORACLE_SID to the /home/oracle/.bashrc file, so that these settings are saved for future logins:
@@ -245,7 +253,7 @@ export ORACLE_SID=cdb1
245253
### Enable archive log mode on myVM1 (primary)
246254

247255
```bash
248-
$ sqlplus / as sysdba
256+
sqlplus / as sysdba
249257
SQL> SELECT log_mode FROM v$database;
250258

251259
LOG_MODE
@@ -338,30 +346,30 @@ ADR_BASE_LISTENER = /u01/app/oracle
338346
Enable Data Guard Broker:
339347

340348
```bash
341-
$ sqlplus / as sysdba
349+
sqlplus / as sysdba
342350
SQL> ALTER SYSTEM SET dg_broker_start=true;
343351
SQL> EXIT;
344352
```
345353

346354
Start the listener:
347355

348356
```bash
349-
$ lsnrctl stop
350-
$ lsnrctl start
357+
lsnrctl stop
358+
lsnrctl start
351359
```
352360

353361
### Set up service on myVM2 (standby)
354362

355363
SSH to myVM2:
356364

357365
```bash
358-
$ ssh azureuser@<publicIpAddress>
366+
ssh azureuser@<publicIpAddress>
359367
```
360368

361369
Log in as Oracle:
362370

363371
```bash
364-
$ sudo su - oracle
372+
sudo su - oracle
365373
```
366374

367375
Edit or create the tnsnames.ora file, which is in the $ORACLE_HOME\network\admin folder.
@@ -418,8 +426,8 @@ ADR_BASE_LISTENER = /u01/app/oracle
418426
Start the listener:
419427

420428
```bash
421-
$ lsnrctl stop
422-
$ lsnrctl start
429+
lsnrctl stop
430+
lsnrctl start
423431
```
424432

425433

@@ -443,14 +451,14 @@ mkdir -p /u01/app/oracle/admin/cdb1/adump
443451
Create a password file:
444452

445453
```bash
446-
$ orapwd file=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/orapwcdb1 password=OraPasswd1 entries=10
454+
orapwd file=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/orapwcdb1 password=OraPasswd1 entries=10
447455
```
448456

449457
Start the database on myVM2:
450458

451459
```bash
452-
$ export ORACLE_SID=cdb1
453-
$ sqlplus / as sysdba
460+
export ORACLE_SID=cdb1
461+
sqlplus / as sysdba
454462

455463
SQL> STARTUP NOMOUNT PFILE='/tmp/initcdb1_stby.ora';
456464
SQL> EXIT;
@@ -459,7 +467,7 @@ SQL> EXIT;
459467
Restore the database by using the RMAN tool:
460468

461469
```bash
462-
$ rman TARGET sys/OraPasswd1@cdb1 AUXILIARY sys/OraPasswd1@cdb1_stby
470+
rman TARGET sys/OraPasswd1@cdb1 AUXILIARY sys/OraPasswd1@cdb1_stby
463471
```
464472

465473
Run the following commands in RMAN:
@@ -497,7 +505,7 @@ export ORACLE_SID=cdb1
497505

498506
Enable Data Guard Broker:
499507
```bash
500-
$ sqlplus / as sysdba
508+
sqlplus / as sysdba
501509
SQL> ALTER SYSTEM SET dg_broker_start=true;
502510
SQL> EXIT;
503511
```
@@ -507,7 +515,7 @@ SQL> EXIT;
507515
Start Data Guard Manager and log in by using SYS and a password. (Do not use OS authentication.) Perform the following:
508516

509517
```bash
510-
$ dgmgrl sys/OraPasswd1@cdb1
518+
dgmgrl sys/OraPasswd1@cdb1
511519
DGMGRL for Linux: Version 12.1.0.2.0 - 64bit Production
512520

513521
Copyright (c) 2000, 2013, Oracle. All rights reserved.
@@ -579,7 +587,7 @@ cdb1_stby=
579587
Start SQL*Plus:
580588

581589
```bash
582-
$ sqlplus sys/OraPasswd1@cdb1
590+
sqlplus sys/OraPasswd1@cdb1
583591
SQL*Plus: Release 12.2.0.1.0 Production on Wed May 10 14:18:31 2017
584592

585593
Copyright (c) 1982, 2016, Oracle. All rights reserved.
@@ -598,7 +606,7 @@ SQL>
598606
To switch from primary to standby (cdb1 to cdb1_stby):
599607

600608
```bash
601-
$ dgmgrl sys/OraPasswd1@cdb1
609+
dgmgrl sys/OraPasswd1@cdb1
602610
DGMGRL for Linux: Version 12.1.0.2.0 - 64bit Production
603611

604612
Copyright (c) 2000, 2013, Oracle. All rights reserved.
@@ -625,7 +633,7 @@ Start SQL*Plus:
625633

626634
```bash
627635

628-
$ sqlplus sys/OraPasswd1@cdb1_stby
636+
sqlplus sys/OraPasswd1@cdb1_stby
629637
SQL*Plus: Release 12.2.0.1.0 Production on Wed May 10 14:18:31 2017
630638

631639
Copyright (c) 1982, 2016, Oracle. All rights reserved.
@@ -642,7 +650,7 @@ SQL>
642650
To switch over, run the following on myVM2:
643651

644652
```bash
645-
$ dgmgrl sys/OraPasswd1@cdb1_stby
653+
dgmgrl sys/OraPasswd1@cdb1_stby
646654
DGMGRL for Linux: Version 12.1.0.2.0 - 64bit Production
647655

648656
Copyright (c) 2000, 2013, Oracle. All rights reserved.
@@ -668,7 +676,7 @@ Start SQL*Plus:
668676

669677
```bash
670678

671-
$ sqlplus sys/OraPasswd1@cdb1
679+
sqlplus sys/OraPasswd1@cdb1
672680
SQL*Plus: Release 12.2.0.1.0 Production on Wed May 10 14:18:31 2017
673681

674682
Copyright (c) 1982, 2016, Oracle. All rights reserved.

0 commit comments

Comments
 (0)