Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle Goldengate 12c Implementers Guide

You're reading from   Oracle Goldengate 12c Implementers Guide Leverage the power of real-time data access for designing, building, and tuning your GoldenGate Enterprise

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781785280474
Length 422 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
John P Jeffries John P Jeffries
Author Profile Icon John P Jeffries
John P Jeffries
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Getting Started FREE CHAPTER 2. Installing and Preparing GoldenGate 3. Design Considerations 4. Configuring Oracle GoldenGate 5. Configuration Options 6. Configuring GoldenGate for HA 7. Advanced Configuration 8. Managing Oracle GoldenGate 9. Performance Tuning 10. Troubleshooting GoldenGate 11. The Future of GoldenGate A. GGSCI Commands
B. GoldenGate Installed Components
C. Acronyms
Index

User tokens


User tokens are GoldenGate environment variables that are captured and stored in the trail record for replication. They can be accessed via the @GETENV function, which we discussed in the Using and defining macros section. We can use token data in column maps, stored procedures called by SQLEXEC, and, of course, in macros.

Using user tokens to populate a heartbeat table

A vast array of user tokens exist in GoldenGate. Let's start by looking at a common method of replicating system information to populate a heartbeat table that can be used to monitor performance. We can use the TOKENS option of the Extract TABLE parameter to define a user token and associate it with the GoldenGate environment data.

The following Extract configuration code shows the token declarations for the heartbeat table:

TABLE GGADMIN.GG_HB_OUT, &
TOKENS (
EXTGROUP = @GETENV ("GGENVIRONMENT","GROUPNAME"), &
EXTTIME = @DATE ("YYYY-MM-DD HH:MI:SS.FFFFFF","JTS",@GETENV ("JULIANTIMESTAMP")), &
EXTLAG ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image