Skip to content

Commit 7bb2ccf

Browse files
Merge pull request #233904 from msaenzbosupport/patch-14
[Doc-A-Thon] Added a disclaimer for EOL OL6
2 parents 6b4597b + 46a0fd2 commit 7bb2ccf

File tree

1 file changed

+58
-51
lines changed

1 file changed

+58
-51
lines changed

articles/virtual-machines/workloads/oracle/configure-oracle-golden-gate.md

Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ The following is a summary of the environment configuration:
3939
> | **Golden Gate owner/replicate** |C##GGADMIN |REPUSER |
4040
> | **Golden Gate process** |EXTORA |REPORA|
4141
42+
> [!NOTE]
43+
> 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)
44+
4245

4346
### Sign in to Azure
4447

@@ -164,6 +167,10 @@ az network nsg rule create --resource-group myResourceGroup\
164167

165168
### Connect to the virtual machine
166169

170+
> [!NOTE]
171+
> 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)
172+
173+
167174
Use the following command to create an SSH session with the virtual machine. Replace the IP address with the `publicIpAddress` of your virtual machine.
168175

169176
```bash
@@ -183,7 +190,7 @@ sudo su - oracle
183190
Create the database:
184191

185192
```bash
186-
$ dbca -silent \
193+
dbca -silent \
187194
-createDatabase \
188195
-templateName General_Purpose.dbc \
189196
-gdbname cdb1 \
@@ -237,9 +244,9 @@ Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/cdb1/cdb1.log" for more d
237244
Set the ORACLE_SID and ORACLE_HOME variables.
238245

239246
```bash
240-
$ ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
241-
$ ORACLE_SID=cdb1; export ORACLE_SID
242-
$ LD_LIBRARY_PATH=ORACLE_HOME/lib; export LD_LIBRARY_PATH
247+
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
248+
ORACLE_SID=cdb1; export ORACLE_SID
249+
LD_LIBRARY_PATH=ORACLE_HOME/lib; export LD_LIBRARY_PATH
243250
```
244251

245252
Optionally, you can add ORACLE_HOME and ORACLE_SID to the .bashrc file, so that these settings are saved for future sign-ins:
@@ -256,7 +263,7 @@ export LD_LIBRARY_PATH=$ORACLE_HOME/lib
256263
### Start Oracle listener
257264

258265
```bash
259-
$ lsnrctl start
266+
lsnrctl start
260267
```
261268

262269
### Create the database on myVM2 (replicate)
@@ -268,7 +275,7 @@ sudo su - oracle
268275
Create the database:
269276

270277
```bash
271-
$ dbca -silent \
278+
dbca -silent \
272279
-createDatabase \
273280
-templateName General_Purpose.dbc \
274281
-gdbname cdb1 \
@@ -290,9 +297,9 @@ $ dbca -silent \
290297
Set the ORACLE_SID and ORACLE_HOME variables.
291298

292299
```bash
293-
$ ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
294-
$ ORACLE_SID=cdb1; export ORACLE_SID
295-
$ LD_LIBRARY_PATH=ORACLE_HOME/lib; export LD_LIBRARY_PATH
300+
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1; export ORACLE_HOME
301+
ORACLE_SID=cdb1; export ORACLE_SID
302+
LD_LIBRARY_PATH=ORACLE_HOME/lib; export LD_LIBRARY_PATH
296303
```
297304

298305
Optionally, you can added ORACLE_HOME and ORACLE_SID to the .bashrc file, so that these settings are saved for future sign-ins.
@@ -309,8 +316,8 @@ export LD_LIBRARY_PATH=$ORACLE_HOME/lib
309316
### Start Oracle listener
310317

311318
```bash
312-
$ sudo su - oracle
313-
$ lsnrctl start
319+
sudo su - oracle
320+
lsnrctl start
314321
```
315322

316323
## Configure Golden Gate
@@ -319,7 +326,7 @@ To configure Golden Gate, take the steps in this section.
319326
### Enable archive log mode on myVM1 (primary)
320327

321328
```bash
322-
$ sqlplus / as sysdba
329+
sqlplus / as sysdba
323330
SQL> SELECT log_mode FROM v$database;
324331

325332
LOG_MODE
@@ -351,28 +358,28 @@ To download and prepare the Oracle Golden Gate software, complete the following
351358
2. After you download the .zip files to your client computer, use Secure Copy Protocol (SCP) to copy the files to your VM:
352359

353360
```bash
354-
$ scp fbo_ggs_Linux_x64_shiphome.zip <publicIpAddress>:<folder>
361+
scp fbo_ggs_Linux_x64_shiphome.zip <publicIpAddress>:<folder>
355362
```
356363

357364
3. Move the .zip files to the **/opt** folder. Then change the owner of the files as follows:
358365

359366
```bash
360-
$ sudo su -
361-
# mv <folder>/*.zip /opt
367+
sudo su -
368+
mv <folder>/*.zip /opt
362369
```
363370

364371
4. Unzip the files (install the Linux unzip utility if it's not already installed):
365372

366373
```bash
367-
# yum install unzip
368-
# cd /opt
369-
# unzip fbo_ggs_Linux_x64_shiphome.zip
374+
yum install unzip
375+
cd /opt
376+
unzip fbo_ggs_Linux_x64_shiphome.zip
370377
```
371378

372379
5. Change permission:
373380

374381
```bash
375-
# chown -R oracle:oinstall /opt/fbo_ggs_Linux_x64_shiphome
382+
chown -R oracle:oinstall /opt/fbo_ggs_Linux_x64_shiphome
376383
```
377384

378385
### Prepare the client and VM to run x11 (for Windows clients only)
@@ -397,9 +404,9 @@ This is an optional step. You can skip this step if you are using a Linux client
397404
4. In your VM, run these commands:
398405

399406
```bash
400-
# sudo su - oracle
401-
$ mkdir .ssh (if not already created)
402-
$ cd .ssh
407+
sudo su - oracle
408+
mkdir .ssh (if not already created)
409+
cd .ssh
403410
```
404411

405412
5. Create a file named **authorized_keys**. Paste the contents of the key in this file, and then save the file.
@@ -427,8 +434,8 @@ To install Oracle Golden Gate, complete the following steps:
427434
1. Sign in as oracle. (You should be able to sign in without being prompted for a password.) Make sure that Xming is running before you begin the installation.
428435

429436
```bash
430-
$ cd /opt/fbo_ggs_Linux_x64_shiphome/Disk1
431-
$ ./runInstaller
437+
cd /opt/fbo_ggs_Linux_x64_shiphome/Disk1
438+
./runInstaller
432439
```
433440

434441
2. Select 'Oracle GoldenGate for Oracle Database 12c'. Then select **Next** to continue.
@@ -460,8 +467,8 @@ To install Oracle Golden Gate, complete the following steps:
460467
1. Create or update the tnsnames.ora file:
461468

462469
```bash
463-
$ cd $ORACLE_HOME/network/admin
464-
$ vi tnsnames.ora
470+
cd $ORACLE_HOME/network/admin
471+
vi tnsnames.ora
465472

466473
cdb1=
467474
(DESCRIPTION=
@@ -497,7 +504,7 @@ To install Oracle Golden Gate, complete the following steps:
497504
>
498505
499506
```bash
500-
$ sqlplus / as sysdba
507+
sqlplus / as sysdba
501508
SQL> CREATE USER C##GGADMIN identified by ggadmin;
502509
SQL> EXEC dbms_goldengate_auth.grant_admin_privilege('C##GGADMIN',container=>'ALL');
503510
SQL> GRANT DBA to C##GGADMIN container=all;
@@ -509,8 +516,8 @@ To install Oracle Golden Gate, complete the following steps:
509516
3. Create the Golden Gate test user account:
510517

511518
```bash
512-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
513-
$ sqlplus system/OraPasswd1@pdb1
519+
cd /u01/app/oracle/product/12.1.0/oggcore_1
520+
sqlplus system/OraPasswd1@pdb1
514521
SQL> CREATE USER test identified by test DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP;
515522
SQL> GRANT connect, resource, dba TO test;
516523
SQL> ALTER USER test QUOTA 100M on USERS;
@@ -525,9 +532,9 @@ To install Oracle Golden Gate, complete the following steps:
525532
Start the Golden gate command-line interface (ggsci):
526533

527534
```bash
528-
$ sudo su - oracle
529-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
530-
$ ./ggsci
535+
sudo su - oracle
536+
cd /u01/app/oracle/product/12.1.0/oggcore_1
537+
./ggsci
531538
GGSCI> DBLOGIN USERID test@pdb1, PASSWORD test
532539
Successfully logged into database pdb1
533540
GGSCI> ADD SCHEMATRANDATA pdb1.test
@@ -555,8 +562,8 @@ To install Oracle Golden Gate, complete the following steps:
555562
6. Register extract--integrated extract:
556563

557564
```bash
558-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
559-
$ ./ggsci
565+
cd /u01/app/oracle/product/12.1.0/oggcore_1
566+
./ggsci
560567
561568
GGSCI> dblogin userid C##GGADMIN, password ggadmin
562569
Successfully logged into database CDB$ROOT.
@@ -571,7 +578,7 @@ To install Oracle Golden Gate, complete the following steps:
571578
7. Set up extract checkpoints and start real-time extract:
572579

573580
```bash
574-
$ ./ggsci
581+
./ggsci
575582
GGSCI> ADD EXTRACT EXTORA, INTEGRATED TRANLOG, BEGIN NOW
576583
EXTRACT (Integrated) added.
577584
@@ -594,7 +601,7 @@ To install Oracle Golden Gate, complete the following steps:
594601
In this step, you find the starting SCN, which will be used later, in a different section:
595602

596603
```bash
597-
$ sqlplus / as sysdba
604+
sqlplus / as sysdba
598605
SQL> alter session set container = pdb1;
599606
SQL> SELECT current_scn from v$database;
600607
CURRENT_SCN
@@ -604,7 +611,7 @@ To install Oracle Golden Gate, complete the following steps:
604611
```
605612

606613
```bash
607-
$ ./ggsci
614+
./ggsci
608615
GGSCI> EDIT PARAMS INITEXT
609616
```
610617

@@ -626,8 +633,8 @@ To install Oracle Golden Gate, complete the following steps:
626633
1. Create or update the tnsnames.ora file:
627634

628635
```bash
629-
$ cd $ORACLE_HOME/network/admin
630-
$ vi tnsnames.ora
636+
cd $ORACLE_HOME/network/admin
637+
vi tnsnames.ora
631638
632639
cdb1=
633640
(DESCRIPTION=
@@ -659,7 +666,7 @@ To install Oracle Golden Gate, complete the following steps:
659666
2. Create a replicate account:
660667

661668
```bash
662-
$ sqlplus / as sysdba
669+
sqlplus / as sysdba
663670
SQL> alter session set container = pdb1;
664671
SQL> create user repuser identified by rep_pass container=current;
665672
SQL> grant dba to repuser;
@@ -671,8 +678,8 @@ To install Oracle Golden Gate, complete the following steps:
671678
3. Create a Golden Gate test user account:
672679

673680
```bash
674-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
675-
$ sqlplus system/OraPasswd1@pdb1
681+
cd /u01/app/oracle/product/12.1.0/oggcore_1
682+
sqlplus system/OraPasswd1@pdb1
676683
SQL> CREATE USER test identified by test DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP;
677684
SQL> GRANT connect, resource, dba TO test;
678685
SQL> ALTER USER test QUOTA 100M on USERS;
@@ -684,8 +691,8 @@ To install Oracle Golden Gate, complete the following steps:
684691
4. REPLICAT parameter file to replicate changes:
685692

686693
```bash
687-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
688-
$ ./ggsci
694+
cd /u01/app/oracle/product/12.1.0/oggcore_1
695+
./ggsci
689696
GGSCI> EDIT PARAMS REPORA
690697
```
691698

@@ -727,8 +734,8 @@ To install Oracle Golden Gate, complete the following steps:
727734
#### 1. Set up the replication on myVM2 (replicate)
728735

729736
```bash
730-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
731-
$ ./ggsci
737+
cd /u01/app/oracle/product/12.1.0/oggcore_1
738+
./ggsci
732739
GGSCI> EDIT PARAMS MGR
733740
```
734741

@@ -752,8 +759,8 @@ Then restart the Manager service:
752759
Start the initial load and check for errors:
753760

754761
```bash
755-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
756-
$ ./ggsci
762+
cd /u01/app/oracle/product/12.1.0/oggcore_1
763+
./ggsci
757764
GGSCI> START EXTRACT INITEXT
758765
GGSCI> VIEW REPORT INITEXT
759766
```
@@ -763,8 +770,8 @@ GGSCI> VIEW REPORT INITEXT
763770
Change the SCN number with the number you obtained before:
764771

765772
```bash
766-
$ cd /u01/app/oracle/product/12.1.0/oggcore_1
767-
$ ./ggsci
773+
cd /u01/app/oracle/product/12.1.0/oggcore_1
774+
./ggsci
768775
START REPLICAT REPORA, AFTERCSN 1857887
769776
```
770777

@@ -815,4 +822,4 @@ az group delete --name myResourceGroup
815822
816823
[Create highly available virtual machines tutorial](../../linux/create-cli-complete.md)
817824
818-
[Explore VM deployment CLI samples](https://github.com/Azure-Samples/azure-cli-samples/tree/master/virtual-machine)
825+
[Explore VM deployment CLI samples](https://github.com/Azure-Samples/azure-cli-samples/tree/master/virtual-machine)

0 commit comments

Comments
 (0)