Book Image

Modernizing Oracle Tuxedo Applications with Python

By : Aivars Kalvans
Book Image

Modernizing Oracle Tuxedo Applications with Python

By: Aivars Kalvans

Overview of this book

Despite being developed in the 1980s, Oracle Tuxedo still runs a significant part of critical infrastructure and is not going away any time soon. Modernizing Oracle Tuxedo Applications with Python will help you get to grips with the most important Tuxedo concepts by writing Python code. The book starts with an introduction to Oracle Tuxedo and guides you in installing its latest version and Python bindings for Tuxedo on Linux. You'll then learn how to build your first server and client, configure Tuxedo, and start running an application. As you advance, you'll understand load balancing and work with the BBL server, which is at the heart of a Tuxedo application. This Tuxedo book will also cover Boolean expressions and different ways to export Tuxedo buffers for storage and transmission, before showing you how to implement servers and clients and use the management information base to change the configuration dynamically. Once you've learned how to configure Tuxedo for transactions and control them in application code, you'll discover how to use the store-and-forward functionality to reach destinations and use an Oracle database from a Tuxedo application. By the end of this Oracle Tuxedo book, you'll be able to perform common Tuxedo programming tasks with Python and integrate Tuxedo applications with other parts of modern infrastructure.
Table of Contents (18 chapters)
1
Section 1: The Basics
6
Section 2: The Good Bits
12
Section 3: Integrations

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."

A block of code is set as follows:

import tuxedo as t
_, _, res = t.tpcall(
    ".TMIB",
    {
        "TA_CLASS": "T_DOMAIN",
        "TA_OPERATION": "GET",
    },
)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

GROUP1 LMID=tuxapp GRPNO=1 TMSNAME=TMS TMSCOUNT=2
*SERVERS
"ping.py" SRVGRP=GROUP1 SRVID=1
    REPLYQ=Y MAXGEN=2 RESTART=Y GRACE=0
    MIN=1 MAX=1
"api.py" SRVGRP=GROUP1 SRVID=20
    REPLYQ=Y MAXGEN=2 RESTART=Y GRACE=0
    MIN=1 MAX=1

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

tmloadcf -y ubbconfig
echo crdl -z `pwd`/tlog -b 200 | tmadmin
echo crlog -m tuxapp | tmadmin

Tips or important notes

Appear like this.