Book Image

Oracle Goldengate 12c Implementers Guide

Book Image

Oracle Goldengate 12c Implementers Guide

Overview of this book

Table of Contents (21 chapters)
Oracle GoldenGate 12c Implementer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
GGSCI Commands
GoldenGate Installed Components
Acronyms
Index

Preface

In recent years, data replication has been an important part of many database systems. The growing trend for data integration is due to today's demand for real-time access and real-time information. GoldenGate is Oracle's strategic data synchronization solution that has become integrated with many sister products to address the most demanding business requirements. Until now, very little has been written about the end-to-end implementation of GoldenGate in a production enterprise-wide environment, irrespective of whether it is the traditional point-to-point replication or on-premise to cloud, performance, scalability, data integrity, and security, which is always paramount.

Welcome to Oracle GoldenGate 12c Implementer's Guide, a comprehensive book that delivers a practical approach in a clear and concise style. Whether you are new to GoldenGate or an advanced user, this book helps you get up to speed quickly. Based on the author's own experience, this long-awaited second edition book has all the information that is required to install, design, configure, and tune data integration solutions suited to every environment. Expert users can dive into key topic areas, such as performance tuning or troubleshooting, and seek desired solutions from the numerous tips and tricks, whereas novice users can go through the early installation and configuration chapters, later progressing to the advanced chapters.

This book helps you master data integration techniques to empower your organizations' readiness to migrate to cloud technologies quickly and easily. Covering both noncontainer and multitenant container database architecture, the book will appeal to the Oracle 11g and 12c database administrator, implementing GoldenGate for the most demanding business requirements.

This book is more than an implementation guide. It offers detailed real-life examples, encouraging additional thought and discussion that goes beyond the manual.

With Oracle GoldenGate 12c Implementer's Guide in hand, you'll be designing, installing, and configuring high-performance solutions with GoldenGate within minutes.

What this book covers

Chapter 1, Getting Started, provides an introduction to Oracle GoldenGate by describing the key components, processes, and considerations required to build and implement a GoldenGate solution. The topics covered include the evolution of the GoldenGate software, including the architecture behind the technology, followed by the solutions GoldenGate can provide along with its effective design. You will become accustomed with the concepts of the data replication and how GoldenGate provides robust enterprise-wide solutions.

Chapter 2, Installing and Preparing GoldenGate, helps you quickly learn the individual tasks needed to complete an end-to-end GoldenGate installation, including downloading, installing, and configuring the Oracle GoldenGate 12c software, the preinstallation steps for the OS and database, apart from the software and hardware requirements. The steps include the Oracle database setup and the configuration of GoldenGate, providing an overview that allows you to swiftly get up and running.

Chapter 3, Design Considerations, tells you how to address some of the issues that influence the decision-making process when you design a GoldenGate solution. This includes design considerations for performance, security, backup and recovery, and high availability. This chapter also helps you choose the appropriate hardware and topology to deliver a fast, robust, and scalable solution.

Chapter 4, Configuring Oracle GoldenGate, initially discusses the main GoldenGate configuration parameters and provides a methodical approach to the configuration process, stepping through each task to give in-depth information necessary to successfully implement Oracle GoldenGate 12c. In this chapter, you will learn the basic steps necessary to configure one-way replication in a GoldenGate environment, including data synchronization between the source and target.

Chapter 5, Configuration Options, focuses on the additional configuration options available in Oracle GoldenGate 12c. The powerful options discussed in this chapter allow you to extend your configuration to increase functionality and performance. Starting with a performance enhancing option to exploring the security features, data compression and encryption, heterogeneous environments, and finally discussing the DDL support and the tools available to monitor the DDL replication, this chapter covers an extensive array of configuration topics.

Chapter 6, Configuring GoldenGate for HA, explores how to configure GoldenGate in a RAC environment and talks about the various components that effectively enable HA for data replication and integration. The discussion topics include shared storage options, load balancing, and failover, apart from GoldenGate on Exadata.

Chapter 7, Advanced Configuration, gives you a deeper understanding about how to configure GoldenGate. By the time you are done with this chapter, you will be able to explore and realize each parameter specification and further develop your GoldenGate configuration. You will also learn how GoldenGate is used with Oracle Data Integrator to deliver real-time data synchronization solutions.

Chapter 8, Managing Oracle GoldenGate, focuses on the management features already built-in the GoldenGate Command Interpreter (GGSCI). This chapter discusses and implements a number of utilities, including tips and tricks that allow you to manage your GoldenGate environment effectively at no extra cost. This includes a step-by-step guide to configure a Metric Extension in Oracle Enterprise Manager 12c to monitor your GoldenGate Enterprise.

Chapter 9, Performance Tuning, covers the main areas that lend themselves to tuning, especially parallel processing and load balancing, enabling high data throughput and very low latency. In this chapter, you will learn how to leverage the performance enhancing new features that are available in GoldenGate 12c, including batch replication latency reduction and data delivery optimization through integrated processes.

Chapter 10, Troubleshooting GoldenGate, tells you how to investigate and resolve some of the common issues faced by the GoldenGate administrator. This chapter has captured some of the most common failure scenarios, offering help and guidance to wards a successful resolution. From using LOGDUMP to drilling into the GoldenGate trail files to automatic exception handling, you will quickly understand the importance of a methodical approach to troubleshooting.

Chapter 11, The Future of GoldenGate, takes you through the new technology and concepts where GoldenGate plays a role. It discusses cloud computing, Software as a Service (SaaS), and advances in integration, such as on-premise to cloud migrations and big data as well.

Appendix A, GGSCI Commands, provides a quick reference guide to all the available GGSCI commands.

Appendix B, GoldenGate Installed Components, lists the GoldenGate-installed components and their descriptions.

Appendix C, Acronyms, lists the acronyms with their fully qualified names that have been used throughout this book.

What you need for this book

At the minimum, you will require the following elements to run the code featured in this book. Starting with the hardware, you can configure a simple GoldenGate solution on just one personal computer that acts as a database server, running Oracle or Red Hat Enterprise Linux x86 Version 5.2. These can be native Linux or Linux virtual machines hosted on Microsoft Windows 7 or 8.

The same PC may be used as a client that supports terminal emulation software for logging in to the database server.

The following list provides the minimum hardware specification for the PC that will host the virtual machines:

  • 1 x 2.3 GHz Core i7 Intel-based 64-bit architecture CPU

  • 8 GB of physical memory

  • 500 GB hard disk drive

  • 1 x 1Gb/s Ethernet adapter

  • Oracle VM VirtualBox 64-bit for Windows (version 4.3.26)

The virtual machine specification is as follows; for 2VMs, each has:

  • 4 CPU cores

  • 4 GB RAM

  • 30 GB filesystem storage

To implement a simple point-to-point data replication solution, you will need two Oracle 12c Release 1 databases. Both source and target databases can reside on the same machine.

Refer to the preinstallation requirements found on the Oracle website at https://docs.oracle.com/database/121/LADBI/pre_install.htm#LADBI7487.

The following list provides the software requirements:

  • Oracle or Red Hat Enterprise Linux Server Release 6.4 64 bit

  • Oracle Server 12.1.0 on Oracle Enterprise Linux 6.4 64 bit (This is required for the 2 Oracle databases: source and target)

  • Oracle GoldenGate Version 12.1.2.x for Oracle 12c on Oracle Enterprise Linux 6 64 bit

  • Microsoft Windows 7 or 8

  • Perl v5.10.1 (included with OEL/RHEL 6.4)

  • PuTTY 0.64 for MS Windows (the terminal emulation software that supports the SSH protocol)

  • WinSCP Version 5.7.2 for MS Windows (the file transfer software that supports the SFTP protocol)

Who this book is for

This book is for solution and database architects, who wish to learn about the functionality and efforts required in implementing a data replication, migration, or integration solution using GoldenGate. It is also designed for system administrators and database administrators, who want to implement, or who have already implemented GoldenGate, and who want to explore its advanced features. An intermediate understanding of Oracle's database technology is assumed.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

pdb2=
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db12server02)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = pdb2)
    )
  )

Any command-line input or output is written as follows:

[oracle@db12c ogg_src]$ oerr ora 1466
01466, 00000, "unable to read data - table definition has changed"
// *Cause: Query parsed after tbl (or index) change, and executed
//         w/old snapshot
// *Action: commit (or rollback) transaction, and re-execute

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "This provides all GoldenGate INFO, WARNING, and ERROR messages."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.