HP NonStop AutoTMF Software User’s Guide Abstract HP NonStop™ AutoTMF™ Software enables programs that are not configured to use the HP NonStop™ Transaction Management Facility (TMF) product to access and update audited databases. This manual describes the uses, installation, and all other operational aspects of NonStop AutoTMF Software.
Document History ) Part Number Product Version Published 429952-013 NonStop AutoTMF AAR (Update 11) October 2010 429952-014 NonStop AutoTMF AAS (Update 12) June 2011 429952-015 NonStop AutoTMF AAV (Update 14) January 2013 429952-016 NonStop AutoTMF AAW(TCF) April 2013 429952-017 NonStop AutoTMF AAX (Update 15) December 2013
Legal Notices © Copyright 2013 Hewlett-Packard Development Company, L.P. Legal Notice Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor’s standard commercial license. The information contained herein is subject to change without notice.
HP NonStop AutoTMF Software User’s Guide Glossary Index Tables . Legal Notices 1. Introduction to HP NonStop AutoTMF Software Capabilities of NonStop AutoTMF Software 1-2 Base24 1-2 Limitations 1-2 2.
Preparing TNS/R Programs 3-4 COBOL and C Programs 3-5 pTAL Programs 3-6 C++ Programs 3-6 Programs referencing other SRLs 3-6 Preparing TNS/E Programs 3-7 Preparing Privileged TNS/E programs 3-7 Preparing Programs that Have a User Library 3-8 TNS and TNS/R Programs 3-9 TNS/E Programs 3-9 Preparing a User Library 3-9 Intercept Libraries 3-10 Combining a User Library with the NonStop AutoTMF Runtime 3-10 TNS Library 3-10 TNS/R Library 3-10 TNS/E Library 3-11 Changing the User Library with Prepare 3-11 Preservi
Handling TMF Environmental Errors 4-10 Suppressing Inherited Transactions 4-11 UNLOCKFILE Optimization 4-11 Record-Level Transactions 4-12 Exceptions 4-12 Considerations 4-13 Changing Nowait IO to Waited IO 4-13 Configuration 4-13 Considerations: 4-14 Unstructured Access 4-14 Large-Transfer Writing 4-15 Transaction File (TFILE) 4-16 Unilateral Aborts 4-16 Forced Transaction Commit 4-17 Setting Transaction Time Out 4-18 Automatic Transaction Limitations 4-19 Program Logic 4-19 SQL tables 4-19 Number of concu
Auditing Enscribe Queue Files 5-7 NonStop AutoTMF and Process Pairs 5-7 How AutoTMF works with Process Pairs 5-8 6.
INFO ATMFFILESET 6-62 INFO ATMFPROGRAMS 6-63 INFO GLOBALS 6-63 INFO LIBRARY 6-63 INFO LOCALS 6-64 INFO MAPDB 6-64 INFO PREPARE 6-64 INFO PROGRAM 6-65 LABELDISPLAY (LD) 6-68 LISTFILEOPENS (LFO) 6-69 LISTLOCKS (LL) 6-70 LOG 6-72 MODIFY AUTOTMF 6-73 MODIFY GLOBALS 6-73 MODIFY MAPDBS 6-73 MONITOR 6-74 NSKFIXUP 6-74 OBEY 6-76 OCACHECK 6-76 OPEN 6-76 OUT 6-77 PREPARE 6-77 PROGINFO (PI) 6-80 PID file-set 6-81 PURGEDATA 6-81 RESET 6-81 RESET GLOBAL 6-81 RESET LOCAL 6-81 RUN[D] 6-82 START MONITOR 6-83 STATS 6-84 STA
UPGRADE MAPDB 6-96 VOLUME 6-96 Monitor Commands 6-96 LOG 6-96 STATUS 6-97 SECURITY 6-98 BACKUPCPU 6-98 SWITCH 6-98 A.
Host-language Runtimes in the Runtime Library A-12 TNS Host Runtime Language Libraries A-12 Host Language Runtime Library Versions A-13 TNS/R Host Runtime Language Libraries A-14 TNS/R Host Language Runtime Library Versions A-14 TNS/E Host Language Runtime DLLs A-15 New Versions of DLLs and Operating System Upgrades A-15 Transporting Applications A-17 Version Checking A-17 Security and Availability A-18 Overview A-18 Data File Access Security A-18 Object File Access Security A-19 Configuration Security A-19
=_ESCORT_MONITOR B-6 =_ESCORT_OPTIMIZEUNLOCKS B-6 =_ESCORT_OPTMZUNLOCKSOFF B-7 =_ESCORT_READ_NULL_RECS B-7 =_ESCORT_SKIP_NULL_RECS B-7 =_ESCORT_STATEMENT_DATA B-8 =_ESCORT_STATEMENT_KEYS B-8 =_ESCORT_STATEMENT_TRACE B-8 =_ESCORT_SUPPRESS_AUDIT B-9 =_ESCORT_SUPPRESS_INHRTX B-9 Command Interpreter DEFINEs B-10 =_ESCORT_SYSDB B-10 =_ESCORT_MONITOR B-10 C.
Trace Files C-8 Tracing Time Limit C-9 Trace Interpretation C-9 Reporting Problems C-12 AutoTMF Component Failures C-12 Prepared Program Incorrect Behavior or Failure C-12 Locking Problems, Long Running Transactions, Errors 35 or Performance Problems C-13 D. Error Messages Informational Messages D-1 101 D-1 Critical Event Messages D-4 Action Event Messages D-9 E.
HP NonStop AutoTMF Software User’s Guide—429952-017 x
What’s New in This Manual Manual Information HP NonStop AutoTMF Software User’s Guide Abstract HP NonStop™ AutoTMF™ Software enables programs that are not configured to use the HP NonStop™ Transaction Management Facility (TMF) product to access and update audited databases. This manual describes the uses, installation, and all other operational aspects of NonStop AutoTMF Software.
What’s New in This Manual New and Changed Information XCALLS: lists all external procedure calls executed by a specified set of procedures. The meaning of the OCA option in the PREPARE and UNPREPARE commands has changed. It now causes PREPARE to unconditionally accelerate the prepared object file if the OCA region has been updated in any way. The meaning of NOOCA is unchanged. The NOPURGEUNTIL time-and-date specification in ALTER FILE may now be specified as a Julian Timestamp.
About This Manual This manual describes the uses, installation, and all other operational aspects of the HP NonStop™ AutoTMF™ software. This software product enables programs that are not written to use the HP NonStop™ Transaction Management Facility (TMF) product to access and update audited databases. It automatically manages TMF transactions required to access audited data and enables a rapid migration to an audited database.
General Syntax Notation About This Manual each side of the list, or horizontally, enclosed in a pair of brackets and separated by vertical lines. For example: FC [ num ] [ -num] [ text] K [ X | D ] address-1 { } Braces. A group of items enclosed in braces is a list from which you are required to choose one item. The items in the list may be arranged either vertically, with aligned braces on each side of the list, or horizontally, enclosed in a pair of braces and separated by vertical lines.
Change Bar Notation About This Manual Line Spacing. If the syntax of a command is too long to fit on a single line, each continuation line is indented three spaces and is separated from the preceding line by a blank line. This spacing distinguishes items in a continuation line from items in a vertical list of selections. For example: ALTER [ / OUT file-spec / ] LINE [ , attribute-spec ]...
Change Bar Notation About This Manual HP NonStop AutoTMF Software User’s Guide—429952-017 xvi
1 Introduction to HP NonStop AutoTMF Software This section of the manual discusses the following topics: An overview of HP NonStop AutoTMF software (AutoTMF) A description of the facilities that are enabled by NonStop AutoTMF software, both immediately and through a migration process HP NonStop AutoTMF software enables programs that are not programmed to use the HP NonStop Transaction Management Facility (TMF) product to access and update audited data.
Introduction to HP NonStop AutoTMF Software Capabilities of NonStop AutoTMF Software Because NonStop AutoTMF software provides transactions only when needed, you can migrate your application, incrementally, to one that manages business-level transactions for maintaining a consistent database.
2 Installation and Basic Management Prerequisites Installing NonStop AutoTMF Software Updating NonStop AutoTMF Software Upgrading the Operating System Disabling NonStop AutoTMF Software Removing NonStop AutoTMF Software Shortcut to Run ESCORT CI Prerequisites Read the softdoc before you install NonStop AutoTMF software. AutoTMF generates transactions on behalf of application programs. The TMF product views AutoTMF like any other transactional program.
Installation and Basic Management Installing NonStop AutoTMF Software Installing NonStop AutoTMF Software Have your AutoTMF licensing instructions available. Consult the softdoc file for any changes to the installation procedures. Then proceed as follows: 1. Move Files from the Product Media to the Installation Subvolume. 2. Install NonStop AutoTMF Software Files. 3. (Optional) Start an EMS distributor. 4. Create the System Database 5. Install the NonStop AutoTMF Software License. 6.
Installation and Basic Management Install NonStop AutoTMF Software Files all NonStop servers. The INSTALL macro determines which runtime library files to install depending on the processor type of the server. Table 2-2.
Install NonStop AutoTMF Software Files Installation and Basic Management TNS and TNS/R Installation In the example below, AutoTMF is installed in subvolume $TOOLS.AUTOTMF: 24> install $TOOLS.AUTOTMF HP Nonstop(tm) AutoTMF(tm) Software File Installer UNPAK - File decompression program - T1255G06 - (2008-06-03) Archive version: 1 File Mode RESTORE Program - T9074G08 (21JUL2008) (AFO) (C)2000 Compaq (C)2006 Hewlett Packard Development Company, L.P. Drives: (\SIERRA.
Start an EMS distributor Installation and Basic Management In the example below, NonStop AutoTMF software is installed on $TOOLS.AUTOTMF: 71> install $tools.autotmf HP Nonstop(tm) AutoTMF(tm) Software File Installer UNPAK - File decompression program - T1255H01 - (2009-09-25) Archive version: 1 File Mode RESTORE Program - T9074H01 (04FEB2009) (AFN) (C)2000 Compaq (C)2007 Hewlett-Packard Development Company, L.P. Drives: (\ATOM.
Installation and Basic Management Create the System Database The EMS distributor will display NonStop AutoTMF events. Create the System Database The System Database (SysDB) is created using ESCORT CI. When starting ESCORT CI during the initial installation, a warning message appears directing you to create a SysDB. 1. Invoke ESCORT by using a RUN command: 19> run $tools.autotmf.escort HP Nonstop(tm) AutoTMF(tm) Command Interpreter(T0581H01) - System \ATOM (C)2013 Hewlett Packard Development Company, L.P.
Installation and Basic Management Install the NonStop AutoTMF Software License Install the NonStop AutoTMF Software License Follow the licensing procedure described in the documentation that accompanies your NonStop AutoTMF software. The license is installed by using an Escort CI command. If you move the NonStop AutoTMF software to a different system, you must request a license for that system.
Installation and Basic Management Update System Coldload Procedures When the monitor process is started, the following messages are displayed in the EMS log: 15:15 20NOV13 099,06,974 $ZESC 100 ESCMON starting Version 1.9.
Installation and Basic Management Install EMS templates stopped. You should include the start of the monitor process with the other operational steps that normally follow a system cold load. You should start the monitor process after TMF has been started but before starting Pathway or any application processes. Start the NonStop AutoTMF monitor process by using the following TACL command: RUN $TOOLS.AUTOTMF.
Installation and Basic Management Running Different Versions of NonStop AutoTMF on the Same System Running Different Versions of NonStop AutoTMF on the Same System If you need to run different versions of NonStop AutoTMF on the same system, for example to test a newer version of the product, you must configure an alternate AutoTMF environment (Monitor and MapDB) and install the test software in a different location than the subvolume currently in use.
Installation and Basic Management Shortcut to Run ESCORT CI 4. Use SQLCI to purge the SysDB and MapDB tables. 5. Use SQLCI to drop any catalog created during installation. 6. Update your startup and shutdown procedures to remove the commands that start and stop the monitor process. Shortcut to Run ESCORT CI NonStop AutoTMF software is placed in its own subvolume, not $SYSTEM.SYSTEM. You can create a shortcut for the RUN command that allows you to type ESCORT at the TACL prompt.
Installation and Basic Management Shortcut to Run ESCORT CI HP NonStop AutoTMF Software User’s Guide—429952-017 2-12
3 Preparing Programs Program Preparation Overview Preparing Programs Preparing Programs that Have a User Library Preserving Mod Timestamp, License and Progid Setting Tips for Preparing Programs Diagnosing Preparation Errors Program Preparation Overview You must prepare programs to use AutoTMF. Preparation changes object files to invoke the NonStop AutoTMF runtime library instead of making direct calls to operating system procedures.
Preparing Programs Preparing Programs change the modification timestamp of the object file, to the time the file was prepared, revoke the LICENSE attribute of a privileged program. delete the PROGID setting of the object file, if the user executing the prepare command is not the owner of the file, or the owner’s manager or SUPER.SUPER. You can preserve these attributes by configuring a licensed Escort CI and using it to prepare the object files.
Using the PREPARE Command Preparing Programs The following sample terminal session shows PREPARE used on a single object file: 9> escort HP Nonstop(tm) AutoTMF(tm) Command Interpreter(T0581V03) - System \RDF10 Copyright Hewlett-Packard Company 2000-2004 Copyright Carr Scott Software Incorporated 1996-2004 AutoTMF 1? prepare data.myobj.batchobj; --- $DATA.MYOBJ.BATCHOBJ preparation complete --- AutoTMF runtime library $SYSTEM.ESCORT.
Preparing TNS Programs Preparing Programs To view the prepared status of a collection of object files, use INFO PROGRAM. For example: AutoTMF 1? info program $data.srvobj.*; $DATA.SRVOBJ Type ...
Preparing TNS/R Programs Preparing Programs TNS/R language runtime libraries are implemented in Shared Runtime Libraries (SRLs). When a TNS/R object is made executable, each external reference is assigned to the system library, a user library, or to a system SRL. Once a reference is assigned to an SRL, the reference cannot be changed.
Preparing TNS/R Programs Preparing Programs pTAL Programs Programs written exclusively in pTAL do not reference any SRL. (A pTAL program that uses the CRE SRL will be prepared in the same way as a COBOL or C program.) ESCRUNNT is an executable user library that contains only the GPLIB libraries. Specifically, ESCRUNNT does not contain initialization routines for CRE data structures.
Preparing TNS/E Programs Preparing Programs Preparing TNS/E Programs In TNS/E programs, the retargeting of system procedure calls is performed in the same manner as it is for TNS and TNS/R objects. However, since the NonStop AutoTMF runtime for TNS/E programs is implemented as a DLL instead of as a user library, the PREPARE command simply sets the NonStop AutoTMF runtime DLL (ESCRUNDL) as a DLL of the program. The example below shows the preparation of program $data.testobj.
Preparing Programs that Have a User Library Preparing Programs The example below shows the preparation of a copy of a TNS/E version of FUP that was copied into $TOOLS.AUTOTMF.MYFUP: $TOOLS AUTOTMF 1> fup dup (escrundl,z*dll),$tools.autotprv.* FILES DUPLICATED: 7 ...log on as SUPER.SUPER $TOOLS AUTOTMF 3> v $tools.autotprv $TOOLS.AUTOTPRV 4> fup File Utility Program - T6553H02 - (25JUL2012) System \SYS (C)1981 Tandem (C)2006 Hewlett Packard Development Company, L.P.
Preparing a User Library Preparing Programs This error occurs because a program cannot be successfully prepared if it references a user library that does not contain the NonStop AutoTMF runtime library. If any of your programs refer to a user library, the user library should be prepared. TNS and TNS/R Programs Once the user library has been prepared, the NonStop AutoTMF runtime library must be bound into the user library object file.
Combining a User Library with the NonStop AutoTMF Runtime Preparing Programs Intercept Libraries Certain third-party software products use a user library to intercept NonStop OS procedure calls, much like AutoTMF does. In that case, the user library should not be prepared prior to binding the NonStop AutoTMF runtime to the user library. If a user library contains both intercept procedures and ordinary application procedures, special processing is required; contact product support for assistance.
Changing the User Library with Prepare Preparing Programs 3. Use nld to combine ESCRUNN and ESCRUNNL into two versions of the user library corresponding to the two classes of TNS/R programs: For use with PTAL and C++ TNS/R programs: nld ESCRUNN mynatlb -o mynatlbt -ul For use with COBOL and C TNS/R programs: nld ESCRUNNL mynatlb -o mynatlbc -ul 4. If the NonStop AutoTMF EMS message template file (ZESCTMPL) has not been installed, move a copy of it into the same subvolume as the user library.
Tips for Preparing Programs Preparing Programs The License attribute of a privileged program. Note that a warning message is displayed if the license is revoked: *Warning* * 1667 * * * * * The LICENSE for your-object was disabled. SUPER.SUPER must issue a FUP LICENSE command to restore it. See the AutoTMF documentation for a method to automatically preserve the license when preparing programs.
Diagnosing Preparation Errors Preparing Programs starting the NonStop AutoTMF preparation process, subsequent errors are more likely caused by the preparation and not by the application’s setup. Also, you should prepare all programs that are part of the application, even if you know that some programs will not require automatic transactions. This configuration is simple to manage and causes fewer errors when the application is run.
Preparing Programs Diagnosing Preparation Errors unprepared objects, use the ALLOWDUPLICATES option (causing duplicate externals), then rebind the object file. Duplicate Externals – The program has duplicate names in the external procedure list, resulting in unresolved externals when the program is run, probably leading to program failure. Re-bind the object file. To avoid duplicate externals, build programs using only unprepared object files, then prepare them.
4 Configuring Automatic Transaction Processing Configuration Commands You can configure AutoTMF features using commands to set global options and to specify file names and program names that use AutoTMF options. See ALTER GLOBAL on page 6-35, ADD ATMFFILESET on page 6-6, and ADD ATMFPROGRAMS on page 6-13 for complete use and syntax descriptions of these commands. The ADD commands have corresponding INFO, ALTER and DELETE commands.
Command Options Configuring Automatic Transaction Processing 3. Wild-card in subvolume (but not volume) part of file name ($DATA.FIRM*.PAY*) 4. Wild-card in volume part of file name ($D*.FIRM01.PAY*) Wild-card names in the same part are also ordered by the location of the first wild-card character. For example, PAY* would precede P*. To display the file sets in the defined search order for the current configuration, use the INFO ATMFFILESET and INFO ATMFPROGRAMS command.
Command Options Configuring Automatic Transaction Processing Table 4-1.
Automatic Transactions Configuring Automatic Transaction Processing Table 4-1.
Configuring Automatic Transaction Processing Separate Transactions when a transactional application has some previously unaudited files that are to be audited using automatic transactions. You may also use the ALTER GLOBAL ATMFCOMMONTX command to disable automatic transactions for all files that are not explicitly configured for those transactions. Note. Do not configure files that were previously audited as COMMONTX, since configuring such files can cause locking problems.
Configuring Automatic Transaction Processing Transaction Commit Transaction Commit To commit an automatic transaction, AutoTMF analyzes all file- access operations. File locking, record locking, and update operations are the primary factors that determine when automatic transactions may be committed.
Configuring Automatic Transaction Processing Transaction Isolation Excessive lock contention can be reduced through proper NonStop AutoTMF configuration, but changes in the configuration may cause more frequent transactions and a corresponding increase in processing requirements. Transaction Isolation Transaction isolation influences the duration of automatic transactions to reduce the effect of automatic transactions outside the process that started them.
Configuring Automatic Transaction Processing Hiding the Audited Attribute Once a nowait transaction commit has begun, only a system-level failure can cause the transaction to abort. Even if the process terminates or is stopped externally, a nowait transaction commits successfully. The only drawback to using nowait transactions is that the process continues to perform work without knowing if a unilateral abort has occurred.
Configuring Automatic Transaction Processing Audited File Creation Audited File Creation Some programs create files, but the files are not audited. AutoTMF allows you to configure file names that will be created automatically as audited files. Note. The NonStop RDF product replicates the creation of an audited file on the backup node; the NonStop RDF product does not create a file on the backup node if a file is created as unaudited and is later altered to be audited.
Configuring Automatic Transaction Processing Requiring Files to Be Audited To prevent errors and deadlocks, AutoTMF automatically configures each file open for read-through-locks mode. This mode has no effect on locking operations such as READLOCK, only on non-locking access such as READ. You may disable this configuration by altering the ATMFREADTHRULOCK global or by specifying NO READTHRULOCK for a file set or program.
Configuring Automatic Transaction Processing Suppressing Inherited Transactions FEBEGINTRDISABLED (86) FENODEVBUFSPACE (89) FETRANSABRTOWNERDIED (90) FETRANSABRTBADDBID (91) FETRANSABRTNETDOWN (92) FETRANSABRTAUDOVFL (93) FETRANSABRTOPRCMD (94) FETRANSABRTDISCTKOVR (95) FETRANSABRTTIMEOUT (96) FEABORTEDTRANSID (97) FENOMORETCBS (98) Suppressing Inherited Transactions A non TMF-aware server may inherit a transaction from a TMF-aware requester when reading $RECEIVE.
Configuring Automatic Transaction Processing Record-Level Transactions Record-Level Transactions Certain programs use a complex record-locking and record-unlocking sequence such that at least one record is locked for long periods. AutoTMF will not commit an automatic transaction until a program releases all locks obtained under the transaction. If the processing contains no point where all locks are released, the automatic transaction is never committed.
Configuring Automatic Transaction Processing Considerations Considerations As mentioned above, record-level transactions increase transactional activity and processing complexity, and they are useful only in very specific situations. Users should configure record-level transactions when a careful analysis of a program’s locking behavior leaves no other option or after being instructed to do so by product support.
Configuring Automatic Transaction Processing Unstructured Access In addition to specifying WAITEDIO, use the WAITTIME option to specify the maximum number of seconds an operation will wait for record locks to be released. Considerations: When AutoTMF performs AWAITIO, it does not know the timeout value that will be specified in the application call to AWAITIO. Configure the WAITTIME option on a file basis. To avoid perpetual waits, AutoTMF uses the default wait time of 64 seconds.
Configuring Automatic Transaction Processing Large-Transfer Writing A structured audited file cannot be opened for write access. An attempt to perform such an open results in an error 80. TMF and the file system do not permit unstructured updates to an audited structured file. TMF auditing is based on the logical records of the file; unstructured access changes the physical structure of the file, so the changes cannot be properly reflected in the TMF audit.
Configuring Automatic Transaction Processing Transaction File (TFILE) Transaction File (TFILE) The TMF Application Programmers Guide describes the use of the TFILE ($TMP) to manage multiple transactions in a multi-threaded program. Because AutoTMF also manages multiple transactions and transactions in parallel with the program transactions, AutoTMF opens the TFILE. For this reason, the TFILE must be managed as a shared resource, even though the TFILE appears to the program as a dedicated resource.
Configuring Automatic Transaction Processing Forced Transaction Commit Providing transaction isolation controls to prevent a unilateral abort from affecting external users or database consistency; see the preceding subsection Transaction Isolation on page 4-7. Providing an AUTOCOMMIT option that allows you to force all outstanding automatic transactions to be committed before the process abends, to avoid reaching the TMF AutoAbort time limit.
Configuring Automatic Transaction Processing Setting Transaction Time Out While forcing a commit before a program has released locks is tantamount to altering the program’s logic and would leave the program in an uncertain state, failing to commit the transactions before reaching the unilateral abort is not an option. To prevent the loss of data in cases where the program’s behavior could cause a unilateral abort, AutoTMF uses a configurable AUTOCOMMIT timer.
Configuring Automatic Transaction Processing Automatic Transaction Limitations TXTIMEOUT is set as follows: value: n [ SEC[ONDS] | MIN[UTES] ], between 5 and 510 minutes. value overrides the TMF AutoAbort timer setting. A value entered as n SEConds is rounded up to minutes. NEVER: the transactions is never aborted by TMF due to a timeout. OFF: the default, specifies that the TMF AutoAbort is in effect. Note that the AutoTMF AUTOCOMMIT time limit always applies.
Configuring Automatic Transaction Processing Number of concurrent transactions Up to 1000 transactions on systems running the NonStop OS version G06.20 or later. To allow more than the default 100 transactions, you must configure the ATMFMAXTX global parameter or set the program attribute MAXTX.
5 Usage Guidelines This section describes typical uses and limitations of AutoTMF, drawn from the experiences of customers. Auditing Files Auditing Unstructured Files Preparing HP Utilities Preparing Third-party Applications Auditing Enscribe Queue Files NonStop AutoTMF and Process Pairs Auditing Files Once NonStop AutoTMF software is installed, the programs are prepared, and after NonStop AutoTMF configuration attributes have been specified, you can enable auditing of files.
Auditing Unstructured Files Usage Guidelines by the application. To ensure that AutoTMF generates transactions only for newly audited files, proceed as follows: 1. Create a list of all the files that are newly audited. 2. Set the global parameter ATMFCOMMONTX to OFF. 3. Configure the new audited files as COMMONTX or SEPARATETX. The choice of COMMONTX or SEPARATETX is determined by concurrency requirements.
Preparing HP Utilities Usage Guidelines Log files and SPOOLER files have been successfully replicated. Preparing HP Utilities Some HP products contain utility programs that create and update files, but do not provide the transactions required to access audited files. If you wish to audit and access these files using automatic transactions, you must prepare the programs.
ENFORM Usage Guidelines If you are not using a privileged Escort CI and are not logged on as SUPER.SUPER when issuing the PREPARE command, a warning notifies you that the prepared FUP is not licensed. You must then have the SUPER.SUPER user license your prepared copy of FUP. For example: 1. Prepare FUP specifying the “!”: ESCORT PREPARE test.fup!;EXIT; --- $DATA.TEST.FUP preparation complete --- AutoTMF User Library $DATA.ESCORT.ESCRUNTM *Warning* * 1667 * * * * * The LICENSE for $DATA.TEST.
EDIT, TEDIT, VS Usage Guidelines ENABLE checks the file attributes of database files; if a file is audited and the program has omitted SET TMF ON, ENABLE generates an error message and refuses to access the file. If you have existing ENABLE programs that do not specify TMF ON, you may configure HIDEAUDIT for files that will now be audited. Then, by preparing the ENABLGS server, you will be able to access audited files through an ENABLE application that assumes the files are not audited.
SORT and SORTPROG Usage Guidelines 1. Stop the Spooler. 2. Rebuild the control file by starting the Spooler with the REBUILD option. 3. Stop the Spooler once more. 4. Audit the new control file. 5. If the REBUILD is performed on the same system (if not required because of a takeover situation), move the control file to the backup system. 6. WARM START the Spooler. SORT and SORTPROG Do not prepare any FastSort components.
Preparing Third-party Applications Usage Guidelines Tracing shows the alteration of the open exclusion and the deblocking operations. Caution. Do not configure SEPARATETX for an audited file that is opened with the exclusion mode Process Exclusive.
How AutoTMF works with Process Pairs Usage Guidelines In the less typical case where a process pair directly accesses the database, and AutoTMF is used to manage audited access to the data, consider the following analysis of failure scenarios. In a primary process, AutoTMF operates in the normal way, creating and committing automatic transactions as required to perform audited database updates. When a primary process fails, some automatic transactions may be active.
6 NonStop AutoTMF Commands The command interpreter (CI) is the primary interface for installing, configuring, controlling and monitoring NonStop AutoTMF software. This chapter describes the command interpreter and is organized as follows: Running the Command Interpreter Command Syntax Command Summary Command Descriptions Monitor Commands Running the Command Interpreter Use this TACL RUN command to start the command interpreter: [RUN] $SYSTEM.ESCORT.
Command Syntax NonStop AutoTMF Commands Command Syntax The CI is a conversational-mode program. Most commands can be continued over many lines without a continuation character; therefore, use a semicolon (;) to terminate each command. Some commands, such as FC and RUN, are single-line commands and are terminated by the end of line; such commands can be continued by placing an ampersand (&) at the end of the line.
Command Summary NonStop AutoTMF Commands Table 6-1.
Command Summary NonStop AutoTMF Commands Table 6-1.
Command Summary NonStop AutoTMF Commands Command Name Description SECURITY Controls which users are permitted to issue monitor commands BACKUPCPU Alters the backup cpu of the monitor process SWITCH Causes primary and backup processes to exchange roles Table 6-3.
NonStop AutoTMF Commands Command Descriptions Command Descriptions ABEND MONITOR Causes the monitor to stop and produce a saveabend file. Use this command only when you are required to supply information about a monitor problem and are instructed to do so by product support. ABEND MONITOR [ * | process-name | mapdb ]; * (asterisk) stops all configured monitor processes. process-name the name of the AutoTMF monitor process to be stopped. The default is the current monitor for the session.
NonStop AutoTMF Commands ADD ATMFFILESET can be altered by using the ALTER ATMFFILESET and deleted by using the DELETE ATMFFILESET commands. ADD ATMFF[ILESET] file-set [ , attribute ] ...
NonStop AutoTMF Commands ADD ATMFFILESET DEFAULT: the AUTOCOMMIT value is the default, which is set by the global parameter ATMFAUTOCOMMIT. ATMFAUTOCOMMIT has a default of 115 minutes, based on the default TMF AutoAbort value of 120 minutes. If a program fails to unlock a record and prevents AutoTMF from committing automatic transactions, the non-committed updates are eventually lost because the TMF AUTOABORT timer will cause the abort of the long running transaction.
NonStop AutoTMF Commands ADD ATMFFILESET Be specific when defining the fileset. HIDEAUDIT hides the audit attribute for all files in the fileset, even if the audited file is not intended to be accessed under an AutoTMF automatic transaction. Note. If the program calls FILE_GETINFOLIST_ or FILE_GETINFOLISTBYNAME_, the audit attribute is only hidden if the check for audit is the first in the item list passed to the procedure.
NonStop AutoTMF Commands ADD ATMFFILESET To instruct the runtime to read null records for all audited entry-sequenced files, set the global parameter ATMFSKIPNULLRECS to OFF. To request this option for a specific program, use the =_ESCORT_READ_NULL_RECS define. If this option is specified, it overrides the value of the global parameter ATMFSKIPNULLRECS and of the =_ESCORT_SKIP_NULL_RECS define. READNULLRECS is the default.
NonStop AutoTMF Commands ADD ATMFFILESET If a record is inserted into an audited entry-sequenced file and subsequently backed out because a transaction is aborted, a zero length record is left in the file where the record had been inserted. This cannot occur if the file is not audited and can cause problems for programs that are not expecting to encounter such records. SKIPNULLRECORDS shelters the application programs from these unexpected records.
NonStop AutoTMF Commands ADD ATMFFILESET WAITTIME sets the maximum number of seconds an operation will wait for locks to be released. The value specified is from 1 to 4096 and rounded to the nearest power of 2 (1,2,4,8...). The default is 64 seconds. For this option to take effect, specify it both as an attribute of a program and as an attribute of the file using ADD ATMFPROGRAMS or ALTER ATMFPROGRAMS. For further details, see Changing Nowait IO to Waited IO on page 4-13.
NonStop AutoTMF Commands ADD ATMFPROGRAMS ADD ATMFPROGRAMS Configures automatic transactions for selected programs. Programs are specified by file pattern that may select a single program or all programs that match the pattern. The configuration for a program file set can be altered with the ALTER ATMFPROGRAMS and deleted with the DELETE ATMFPROGRAMS commands. ADD ATMFP[ROGRAMS] object-fileset [ , attribute ] ...
NonStop AutoTMF Commands ADD ATMFPROGRAMS commits all outstanding automatic transactions and abends the process if any automatic transaction exceeds the specified time. value: is n [ SEC[ONDS] | MIN[UTES] ], between 5 and 510 minutes. A value entered as n SEConds is converted to a minute value. NEVER: disables AUTOCOMMIT. AutoTMF never aborts the long running transaction. DEFAULT: the AUTOCOMMIT value is the default, which is set by the global parameter ATMFAUTOCOMMIT.
NonStop AutoTMF Commands ADD ATMFPROGRAMS the level of transaction isolation for automatic transactions: WEAK isolation commits outstanding transactions whenever a process replies to a request or waits for a new request. This is the default. NORMAL isolation commits outstanding transactions whenever a process sends a request to another process.
NonStop AutoTMF Commands ADD ATMFPROGRAMS commits automatic transactions after n updates and inserts, if the process is not holding locks on any of the participating records. This is an advisory setting for performance, not one that precisely controls management of automatic transactions. The value of n should be a power of 2 (1,2,4,8,16,32,...) in the range of 1 to 4096. If the value specified is not a power of 2, the value will be rounded to a power of 2. The default is 32.
NonStop AutoTMF Commands ADD ATMFPROGRAMS RECORDTX is used when a file is accessed by programs in which record locking sequences do not allow AutoTMF to commit automatic transactions (there is at least one lock held on a record in this file at any given time). For RECORDTX to take effect, it must be configured both as a program attribute and as a file attribute using ADD ATMFFILESET or ALTER ATMFFILESET.
NonStop AutoTMF Commands ADD ATMFPROGRAMS suppresses the use of TMF in programs. When specified, SUPPRESSUSERTX has the following effects: All BEGIN and ENDTRANSACTION operations requested by the application are ignored. All transactions inherited from requesters through messages on $RECEIVE are ignored. FILEINFO requests for audited files report that files are not audited. This facility is for testing only.
NonStop AutoTMF Commands ADD ATMFPROGRAMS For this option to take effect, specify it both as an attribute of a program and as an attribute of the file using ADD ATMFFILESET or ALTER ATMFFILESET. For further details, see Changing Nowait IO to Waited IO on page 4-13 WARNLONGTX { value | NEVER | DEFAULT } sets the frequency of the long transaction warning messages displayed in the EMS log. By default, the warnings are generated every 5 minutes.
NonStop AutoTMF Commands ALTER ATMFFILESET ALTER ATMFFILESET Alters the configuration of automatic transactions that were defined for a file set using the ADD ATMFFILESET command. ALTER ATMFF[ILESET] file-set [ , attribute ] ...
NonStop AutoTMF Commands ALTER ATMFFILESET value: is n [ SEC[ONDS] | MIN[UTES] ], between 5 and 510 minutes. A value entered as n SEConds is converted to a minute value. NEVER: disables AUTOCOMMIT. AutoTMF never aborts the long running transaction. DEFAULT: the AUTOCOMMIT value is the default, which is set by the global parameter ATMFAUTOCOMMIT. ATMFAUTOCOMMIT has a default of 115 minutes, based on the default TMF AutoAbort value of 120 minutes. NO AUTOCOMMIT is equivalent to DEFAULT.
NonStop AutoTMF Commands ALTER ATMFFILESET HIDEAUDIT | NO HIDEAUDIT requests that the audit attribute on a file be concealed from the application program when the program inquires about file attributes using procedure calls such as FILEINFO, FILERECINFO, FILEGETINFO, etc. Be specific when defining the fileset. HIDEAUDIT hides the audit attribute for all files in the fileset, even if the audited file is not intended to be accessed under an AutoTMF automatic transaction. Note.
NonStop AutoTMF Commands ALTER ATMFFILESET READNULLRECS (for entry-sequenced files only) reverses the effect of the SKIPNULLRECS option. See the description of SKIPNULLRECS below for details. To instruct the runtime to read null records for all audited entry-sequenced files, set the global parameter ATMFSKIPNULLRECS to OFF. To request this option for a specific program, use the =_ESCORT_READ_NULL_RECS define.
NonStop AutoTMF Commands ALTER ATMFFILESET to be generated even if the process has its own transaction and when the transaction must be managed separately from transactions for other files. SKIPNULLRECS (for entry-sequenced files only) ignores zero-length records when reading sequentially through an audited entry-sequenced file.
NonStop AutoTMF Commands ALTER ATMFFILESET READ and WRITE. After the AWAITIO completes, AutoTMF commits any outstanding transactions using the usual algorithms as directed by the configuration. AutoTMF saves the values returned by AWAITIO, and returns control to program as if the READ or WRITE operation were still in progress. For a READ, the data buffer contains the input data. WAITTIME sets the maximum number of seconds an operation will wait for locks to be released.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS ALTER ATMFPROGRAMS Alters the configuration of automatic transactions that were defined for programs with the ADD ATMFPROGRAMS command. ALTER ATMFP[ROGRAMS] object-fileset [ , attribute ] ...
NonStop AutoTMF Commands ALTER ATMFPROGRAMS value: is n [ SEC[ONDS] | MIN[UTES] ], between 5 and 510 minutes. A value entered as n SEConds is converted to a minute value. NEVER: disables AUTOCOMMIT. AutoTMF never aborts the long running transaction. DEFAULT: the AUTOCOMMIT value is the default, which is set by the global parameter ATMFAUTOCOMMIT. ATMFAUTOCOMMIT has a default of 115 minutes, based on the default TMF AutoAbort value of 120 minutes. NO AUTOCOMMIT is equivalent to DEFAULT.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS WEAK isolation commits outstanding transactions whenever a process replies to a request or waits for a new request. This is the default. NORMAL isolation commits outstanding transactions whenever a process sends a request to another process.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS advisory setting for performance, not one that precisely controls management of automatic transactions. The value of n should be a power of 2 (1,2,4,8,16,32,...) in the range of 1 to 4096. If the value specified is not a power of 2, the value will be rounded to a power of 2. The default is 32. NOTX | NO NOTX disables or enables the generation of automatic transactions for audited file access.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS For further details on the use of RECORDTX, see paragraph Record-Level Transactions on page 4-12. SEPARATETX | NO SEPARATETX enables or disables accesses to audited files in the program under separate automatic transactions. If specified, the program attribute overrides any setting of the COMMONTX file attribute. STOPONTMFERR | NO STOPONTMFERR stops a program that encounters a TMF environmental error.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS This facility is for testing only. Programs that make use of TMF may depend on the correct operation of the calls that are eliminated by this option. Enabling this option may cause program failures and data corruption. TMF operations for a program may also be suppressed by using the class map define =_ESCORT_SUPPRESS_AUDIT with a dummy file. The default is NO SUPPTRESSUSERTX.
NonStop AutoTMF Commands ALTER ATMFPROGRAMS The AutoTMF runtime generates periodic EMS messages to alert the operator of long running transactions, which are usually caused by a program holding locks and preventing AutoTMF from committing an automatic transaction. The EMS message displays the transaction identifier of the long running transaction, the name of the process holding the locks and the time remaining before the transaction reaches the AutoCommit limit.
NonStop AutoTMF Commands ALTER FILE ALTER FILE Utility command similar to the FUP ALTER command. Changes attributes of Enscribe files. Unlike the FUP ALTER command, the AutoTMF ALTER FILE command can alter a collection of files specified as a file set.
NonStop AutoTMF Commands ALTER FILE enables or disables buffered writes are performed. If NO BUFFERED is specified, writes are not buffered. The default is buffered mode for audited files and not buffered for non audited files. CLEARONPURGE | NO CLEARONPURGE erases disk free space when files are purged. CODE file-code a numeric file code of the file. file-code is an integer between 0 and 65535. Codes 100 to 999 are reserved for use by HP.
ALTER GLOBAL NonStop AutoTMF Commands VERIFIEDWRITES | NO VERIFIEDWRITES sets the mode of file writes: verified or not verified. The default is NO VERIFIEDWRITES. ALTER GLOBAL Sets or changes global configuration values for AutoTMF. Global parameters are the default for all environments.
NonStop AutoTMF Commands { { { { { { { { { { { { { { { { { { { ATMFTXHOLDOFF 0-to-n-seconds ATMFTXTIMEOUT { value | NEVER | OFF } ATMFWARNLONGTX { value | NEVER | DEFAULT } DYNAMICTRACE { ON | OFF } EMSCOLLECTOR collector-process SECURETRACE { ON | OFF } [SWAP]KMSF { ON | OFF } SWAPVOL[0] local-disk-volume SWAPVOL1 local-disk-volume SWAPVOL2 local-disk-volume SWAPVOL3 local-disk-volume ALTER GLOBAL } } } } } } } } } } } } } } } } } } } parameter-and-value ATMF { ON | OFF } enables or disables automatic
NonStop AutoTMF Commands ALTER GLOBAL If a program fails to unlock a record and prevents AutoTMF from committing automatic transactions, the non-committed updates are eventually lost because the TMF AUTOABORT timer will cause the abort of the long running transaction. To prevent such data loss, AUTOCOMMIT should be set to a value that is less than the TMF AUTOABORT timer value: AUTOABORT minus 5 minutes is recommended because there may be some latency in detecting the long transactions.
NonStop AutoTMF Commands ALTER GLOBAL STRONG isolation commits outstanding transactions whenever the process does one of the following: issues a READ or a WRITE to a device issues a WRITE to a non-audited disk file ISOLATION can also be set for selected programs using the ADD ATMFPROGRAMS command. ATMFMAXTIME 1-to-n-seconds commits automatic transactions after n seconds, if the process is not holding locks on any of the participating records.
NonStop AutoTMF Commands ALTER GLOBAL commits automatic transactions after n updates and inserts, if the process is not holding locks on any of the participating records. This is an advisory setting for performance, not one that precisely controls management of automatic transactions. The value of n should be a power of 2 (1,2,4,8,16,32,...) in the range of 1 to 4096. If the value specified is not a power of 2, the value will be rounded to a power of 2. The default value is 32 updates and inserts.
NonStop AutoTMF Commands ALTER GLOBAL The default is OFF. ATMFSKIPNULLRECS ignores zero-length records when reading sequentially through an audited entry-sequenced file. If a record is inserted into an audited entry-sequenced file and subsequently backed out because a transaction is aborted, a zero-length record is left in the file where the record had been inserted. This cannot occur if the file is not audited and can cause problems for programs that are not expecting to encounter such records.
NonStop AutoTMF Commands ALTER GLOBAL the process terminates (but not if the process is stopped). the transaction reaches the limits set by the MAXTIME and MAXUPDATES parameters. the server is waiting for a request and the time since the last request exceeds the specified value. Each transaction spans many server requests and updated records are kept locked between server requests.
NonStop AutoTMF Commands ALTER GLOBAL DEFAULT: sets the interval to 5 minutes. DYNAMICTRACE { ON | OFF } enables or disables dynamic tracing. When dynamic tracing is enabled, a prepared program periodically checks a signal file to see if tracing has been requested for that process. The checks are performed when the process calls READUPDATE on $RECEIVE, all forms of calls to OPEN, KEYPOSITION, WRITEREAD, DELAY and to SEVERCLASS_SEND_.
NonStop AutoTMF Commands ALTER LOCAL the extended-memory swap file volumes for the AutoTMF runtime library private segment. If local-disk-volume is omitted, the SWAPVOLn setting is deleted. When a program is launched an extended memory segment and its disk swap files are allocated. The specified volumes are used randomly: all are tried until one succeeds. If the volumes all fail, the process default swap volume is also tried. ALTER LOCAL Sets or changes a local parameter value.
NonStop AutoTMF Commands ALTER MONITOR BACKUP 0-to-15 cpu number of the backup monitor process. HOMETERM file-name the home terminal for the monitor process. If NONE or omitted, the home terminal is set to the default EMS collector. The default EMS collector is $0, or the EMS collector configured by setting the global parameter EMSCOLLECTOR. Note.
NonStop AutoTMF Commands CALC the AutoTMF monitor process. The name must have 5 characters, including the $. The default is the current CI session monitor. option BACKUP 0-to-15 the cpu number of the backup monitor process. HOMETERM file-name the home terminal for the monitor process. If omitted or NONE, the home terminal is set to the default EMS collector. The default EMS collector is $0, or the EMS collector configured by setting the global parameter EMSCOLLECTOR. Note.
NonStop AutoTMF Commands COMMENT (or “--”) expression constant a decimal constant with or without a decimal point, or a binary, octal, or hexadecimal integer prefixed by %b, % or %h respectively. operator the arithmetic operator +, -, * or / COMMENT (or “--”) Causes the AutoTMF CI to ignore the remainder of the current line. COMMENT may not appear within the lines of a multiline command.
COPY NonStop AutoTMF Commands COPY Similar to the FUP COPY command with enhancements. Copies records from an input file to an output file.
COPY NonStop AutoTMF Commands out-options is: { { { { { { { { { { { { { { { { { { { { { BLOCKOUT n } } BUFFERED } } EBCDICOUT } } FOLD } } PAD pad-character } } RECOUT n } } REWINDOUT | NO REWINDOUT } } UNLOADOUT | NO UNLOADOUT } } UNSTROUT } } UPDATE } } VAROUT } display-options { { { { { { { { { { { [O]CTAL [D]ECIMAL [H]EX [A]SCII BYTE NO HEAD } } } } } } } } } } } in-file the input file. in-file can be a process, tape, terminal, or disk file.
NonStop AutoTMF Commands COPY control-options COUNT num-records the number of records or rows to copy. If omitted, all records are copied. FIRST { ordinal-record-num } { KEY { record-spec | key-value } } { key-spec ALTKEY key-value [, key-value ] } the starting record of the input file to copy. If omitted, the copy starts at the first record or row in the input file. ordinal-record-num the number of records or rows from the beginning of the file that are to be skipped.
NonStop AutoTMF Commands COPY FROMLAST positions on the last record in the key range specified in the FIRST KEY option. UPSHIFT converts lowercase characters to uppercase. in-options BLOCKIN n the number of bytes in an input block, in the range of 1 to 32767, that are requested in a single physical read operation. If BLOCKIN is omitted, the RECIN value is used. The default is device dependent: 80 bytes for terminal, 132 bytes for process and unstructured files.
NonStop AutoTMF Commands COPY If NO REWINDIN is specified, the tape remains positioned without rewinding. The default is REWINDIN. This option also applies to labeled tapes. SHARE opens the input file in shared exclusion mode. The default is protected mode. SKIPMATCH positions the input file to the record immediately following the one whose key matches the specified key. The entire key must be supplied. If the file is not key sequenced, an error 46 is returned.
NonStop AutoTMF Commands COPY BUFFERED sets buffering on write operations to an unaudited out-file. EBCDICOUT translate output characters from ASCII to EBCDIC. FOLD divides output records longer than the output record length into as many output records as needed to copy the entire record. PAD pad-character pads the output records shorter than the output record length with padcharacter. pad-character is an ASCII character in quotation marks, or an integer in the range of 0 to 255.
NonStop AutoTMF Commands CPUS writes variable length blocked records. Each record is preceded by a one word indicator that contains the record length in bytes. Variable length records are word aligned in the output block. The last record in each block is followed by a terminator ( -1 ) if there is space in the block. The FOLD and PAD options are not supported when VAROUT is specified.
CREATE MAPDB NonStop AutoTMF Commands CREATE MAPDB Creates a set of SQL tables used to configure AutoTMF and configures the associated AutoTMF monitor process. See Monitor Process on page A-2 for guidelines about managing the monitor process. Because MapDB contains SQL tables, the MapDB subvolume must be created on an audited volume.
NonStop AutoTMF Commands CREATE MAPDB If omitted or NONE, the home terminal is set to the default EMS collector. The default EMS collector is $0, or the EMS collector configured by setting the global parameter EMSCOLLECTOR. Note. Internally, if the default collector is $0, the default hometerm of the monitor is $ZHOME, as displayed by the TACL command STATUS $monitorprocess-name, because $0 cannot be specified as the hometerm of a process when the process is launched.
NonStop AutoTMF Commands CREATE SYSDB CREATE SYSDB Creates the system database (SysDB). SysDB is a set of SQL tables in a subvolume named ESCSYSDB. These tables are updated with registration information and the list of MapDBs and associated monitor processes. SysDB must be created on an audited volume. CREATE SYSDB [ ON volume ] [, option ]; option is { CATALOG SQL-catalog } { } { EMSCOLLECTOR collector-process} { } { SECURE "rwep" } volume volume where SysDB will be created. The default is $SYSTEM.
NonStop AutoTMF Commands DEADLOCK DEADLOCK Creates a record lock deadlock on an Enscribe file. The command is used to test deadlock detection of the LISTLOCKS command. This command does not change the file. DEADLOCK file [,DEPTH 2-to-n] [,TIME 2-to-n-seconds]; file the Enscribe file on which the deadlock situation is created. DEPTH 2-to-n the number of lock holders (file opens or transactions) between 2 and 10 that participate in the deadlock.
NonStop AutoTMF Commands DELETE ATMFPROGRAMS DELETE ATMFPROGRAMS Removes the configuration of a program file set defined with the ADD ATMFPROGRAMS command. DELETE ATMFP[ROGRAMS] object-fileset; object-fileset TACL-style file name pattern specifying a collection of files. DEQUEUE Reads records from a source Enscribe queue file and writes them to a destination file. DEQUEUE syntax and functionality are is similar to the COPY command.
NonStop AutoTMF Commands ENV subvolume an existing MapDB subvolume. ENV Displays the current setting of all environmental variables. ENV; EXIT Terminates the CI session. A CTRL–Y has the same effect. EXIT The EXIT command does not require a semi-colon and cannot be followed by any text. FACTOR Calculates the prime factors of the integer part of the expression. Accepts any numeric expression.
NonStop AutoTMF Commands FILEINFO text selects the most recent command that starts with the specified text. FILEINFO Displays information about Enscribe files. FI[LEINFO] file-set [, DETAIL | AGG[REGATES] ]; or FID file-set; file-set a TACL-style file name pattern specifying a collection of files. If file-set is omitted, the current subvolume is assumed. DETAIL displays detailed information. If omitted, the CI displays one line of information per file in the file-set.
NonStop AutoTMF Commands HELP HELP Lists the help options for AutoTMF commands, MONITOR commands and the AutoTMF defines. HELP { ALL } { } { AUTOTMF-COMMAND } { } { autotmf-command [ DETAIL | EXAMPLE ]} { } { AUTOTMF-DEFINES } { } { autotmf-define [ USAGE ] } { } { GLOBALS } { } { MONITOR [ monitor-command ]} { } { TRACING [DETAIL | EXAMPLE]} ALL displays the list of all commands. AUTOTMF-COMMANDS lists all AutoTMF commands available. autotmf-command [ DETAIL | EXAMPLES ] an AutoTMF command.
NonStop AutoTMF Commands HISTORY If monitor-command is omitted, HELP displays a list of the commands as subtopics. AUTOTMF-DEFINES displays the list of DEFINEs for which HELP is available. define-name [ USAGE ] the name of the DEFINE. HELP displays the syntax and a description of the DEFINEs. USAGE displays information about the usage of the DEFINE. If USAGE is omitted, HELP displays USAGE as a possible subtopic. GLOBALS lists all the possible global parameters that can be set for AutoTMF.
NonStop AutoTMF Commands INFO ATMFPROGRAMS To view the AutoTMF configuration for specific files, use the INFO ATMFFILESET command with the DETAIL option. OBEYFORM displays the file set configuration as ADD ATMFFILESET commands. INFO ATMFPROGRAMS Displays information about special AutoTMF attributes that are configured for a program fileset using the ADD ATMFPROGRAMS command. INFO ATMFP[ROGRAMS] [ object-fileset ] [, OBEYFORM ]; object-fileset the file set configured with ADD ATMFPROGRAMS.
NonStop AutoTMF Commands INFO LOCALS Stops all running processes that use library-object-file as a user library. The processes is first listed and you are asked to confirm “Do you wish to stop n processes (Y[ES] or N[O])?” The command then displays the current process list, stopping each one. The two lists may not be the same if processes start or stop while awaiting confirmation Use this option with caution.
INFO PROGRAM NonStop AutoTMF Commands INFO PROGRAM Displays information about object files. If AutoTMF program attributes are configured for an object file in the file set specified, these attributes are also displayed.
NonStop AutoTMF Commands INFO PROGRAM prep-info-option used to analyze the prepared state of object files. See Preparing TNS Programs on page 3-4 for a description of the prepared state of a program. DETAIL displays an item-by-item analysis of each object file including: the type of the object file: TNS, TNS/R and so on. for SQL programs, whether the program is a valid SQL program, whether the program needs SQL compilation, and so on. the user library if there is one for this object.
NonStop AutoTMF Commands INFO PROGRAM CONFLICTS lists the procedures that duplicate intercepted procedures and external references to intercepted procedures that are in conflict. OCACHECK Performs the OCACHECK analysis of all TNS object files (code 100) in the fileset that have an OCA region. Other files in the file set are ignored.
NonStop AutoTMF Commands LABELDISPLAY (LD) lists the unresolved external references for each object file. If AXL is specified, the procedures listed include the procedures invoked as a result of acceleration (millicode). If OCA is specified, the procedures listed include information from the OCAgenerated region in the object file. XCALLS [ procedure-name | * ] lists all external procedure calls executed by a specified set of procedures.
NonStop AutoTMF Commands LISTFILEOPENS (LFO) LISTFILEOPENS (LFO) Displays all file opens like the FUP LISTOPENS command, with additional options. The command can be abbreviated to LFO. L[IST]F[ILE]O[PENS] file-set [, options ]; options is: { BYF[ILE] } { BYO[PENER] } { OUTP[UT] | WRIT[E] } file-set a TACL-style file name pattern specifying a collection of files. If file-set is omitted, all the opens for the local system are displayed ($* is assumed).
LISTLOCKS (LL) NonStop AutoTMF Commands LISTLOCKS (LL) Displays granted and waiting lock requests for a file set. This command differs from FUP LISTLOCKS: AutoTMF LISTLOCKS has a more compact display and more options and allows the user to show locks for the entire system with one command.
NonStop AutoTMF Commands LISTLOCKS (LL) DEADL[OCKS] [, RESOLVE ] display sets of granted and waiting lock requests that form a deadlock. Deadlocks might resolve themselves if the waiting requests are using timed I/O. Deadlocks usually involve multiple files on multiple volumes. Only deadlocks that are contained within the specified file-set are detected. Deadlocks that span multiple systems are not detected. RESOLVE allows the user to resolve the detected deadlock.
NonStop AutoTMF Commands LOG displays a summary of all transactions or processes that are holding locks displayed by LISTLOCKS. WAITING displays all the lock holders and waiters for files and/or records that have at least one wait request outstanding. display-format FULL displays the full key, wrapped to multiple lines. Unprintable characters are shown in ? format, similar to the way Inspect displays binary data. Sequences of identical characters are displayed as *"".
NonStop AutoTMF Commands MODIFY AUTOTMF MODIFY AUTOTMF Copies all entries of the tables that were defined for system nodename and creates the same entries for the local system. First move the ATMFFILE and ATMFPROG tables to the MAPDB and then issue the MODIFY AUTOTMF command. If a configuration entry is already defined on the local system, that configuration entry is not copied from the original system.
NonStop AutoTMF Commands MONITOR copy the actual MAPDB tables verify that those tables are present on the local system make any changes that may be required to migrate the content of MAPDB tables to the local system. MODIFY MAPDBS REPLACE NODENAME nodename [ , LISTALL ]; nodename the Expand node name of the original system. LISTALL displays the entries that are being modified in the MAPDBS table. Note.
NSKFIXUP NonStop AutoTMF Commands is required when a program is compiled, bound, prepared, or moved, after a system cold load or when the user library is changed. This command does not perform the functions of the PREPARE command. The file need not be prepared. NSKFIXUP object-fileset, option; option is: { AXCEL { } } { LIBRARY library-file { { OCA { { TNS | TNSR | TNSE } } } } } object-fileset a TACL-style file name pattern specifying a collection of object files.
NonStop AutoTMF Commands OBEY Specifying the LIBRARY option implicitly restricts the processing of the command to the file type of the library object and is equivalent to specifying TNS, TNSR, or TNSE. OBEY Reads and runs a sequence of commands from another device. The commands are run serially until end-of-file is detected. An OBEY file may not contain an OBEY command. OBEY filename; filename a file containing a sequence of commands.
NonStop AutoTMF Commands OUT the name of a configured monitor process. The monitor process does not need to be running to update or display information for the corresponding MapDB. OUT Directs the output of the CI session to another file. Interactive terminal prompts will continue to appear on the original input device. OUT [ filename ]; filename identifies an output file and directs CI session output to that file. If filename is omitted, output will be directed to the original process OUT file.
NonStop AutoTMF Commands PREPARE ! forces the preparation of an object file that is normally not prepared; such files include ESCMON, ESCORT, ESCRUNTM, ESCRUNNT, ESCRUNNM, ESCZIP, FUP, PATHTCP2, and SORTPROG. AFTER filename the starting file for the operation, which is the file that alphabetically follows filename. ALLOWDUPLICATES forces the preparation of an object file that contains a mixture of prepared and unprepared procedures and for which preparation will create duplicate external references.
NonStop AutoTMF Commands PREPARE TNS objects on all servers. Specifying this option overrides the default behavior. Specifying the LIBRARY option implicitly restricts the processing of the command to the file type of the library object and is equivalent to specifying TNS, TNSR, or TNSE. USERLIB | UL prepares object files that have no main procedure. By default, an object file that has no main is not prepared.
PROGINFO (PI) NonStop AutoTMF Commands PROGINFO (PI) Displays information about object files. If AutoTMF program attributes are configured for an object file in the file set specified, these attributes are also displayed. This information is also displayed by the INFO PROGRAM command.
NonStop AutoTMF Commands PURGEDATA the starting file to display. For a description of prep-info-option and object-info-option, see INFO PROGRAM entries. PID file-set Abbreviates PROGRAM INFO file-set DETAIL; PURGEDATA Clears data from a file. PURGEDATA file-name; file-name the name of a file. RESET Changes the AutoTMF CI environmental variables to their original settings. Environmental variables are variables such as the process completion code.
RUN[D] NonStop AutoTMF Commands parameter to reset. Local parameters are the same as global parameters. For a list of local and global parameters, see command description for ALTER GLOBAL on page 6-35. * resets all local parameters to their default (global) value. RUN[D] Runs a program during a CI session. When the program terminates, the session resumes. RUN[D] filename[/run-options/] [command] filename specifies a program file to be run.
START MONITOR NonStop AutoTMF Commands START MONITOR Starts a AutoTMF monitor process for one MapDB or all MapDBs. START MONITOR [ process | mapdb-subvol ] [, option ]; option is: { { { { { { { BACKUP 0-to-15 HOMETERM file-name PRIMARY 0-to-15 PRIORITY 1-to-199 } } } } } } } process the name of the AutoTMF monitor process to launch. mapdb-subvol the MapDB subvolume. This is an alternative method to specify the process to be started.
NonStop AutoTMF Commands STATS the priority of the monitor process. STATS Scans an Enscribe file to determine the record count and distribution of record lengths. STATS is useful to determine if file records conform to expected lengths. STATS file-name; file-name an Enscribe file name. STATUS MONITOR Determines the status of the monitor process by sending the monitor inquiries. STATUS MONITOR [ * | [\sys.]process-name | mapdb ]; * all configured monitor processes. [\sys.
NonStop AutoTMF Commands STOP MONITOR STOP MONITOR Performs an orderly shutdown of the monitor process. STOP MONITOR [ process-name | mapdb ]; process-name the name of the AutoTMF monitor process to stop. The default is the current monitor for the session. mapdb a MapDB subvolume. This is an alternative method to specify the process to be stopped. STOP PROCESS This command attempts to stop a process in a way that allows AutoTMF to commit all active automatic transactions.
TRACE NonStop AutoTMF Commands TRACE Traces the activity of prepared programs. If dynamic tracing is enabled, which is the default, the runtime periodically checks a signal file for a tracing request, at the point when it intercepts calls to READUPDATE on $RECEIVE, and all forms of KEYPOSITION, OPEN, DELAY, READ, WRITEREAD calls and SERVERCLASS_SEND_. If dynamic trace is not enabled, the trace is initiated when a prepared process initializes its Escort segment and asks the Monitor for global information.
NonStop AutoTMF Commands TRACE option is { { { { { { { { { { { { { { { { { { { CLEAR } } DEBUG { TERM term-name | MYTERM }} } EDIT } } EXT 1-to-65535 } } FOR n } } MAXEXTENTS 16-to-978 } } MAXFILESIZE } } PROTECTED } } SEPARATE } } TRANSID } trace-index a value from 0 to 31 to assign an index to the trace operation. If trace-index is omitted, the runtime assumes trace-index 0. When STOP is specified, trace-index may be entered as “*, to stop all active traces.
NonStop AutoTMF Commands TRACE collects and displays the same information as the EXECUTE option, in addition to a trace of the data sent to, and returned from, the execution of intercepted I/O procedures. Each entry is timestamped and contains the name (or CPU, PIN) of the calling process. The traced data is formatted as follows: Character values are enclosed in quotes. All numeric values are displayed in ASCII decimal form, with a decimal point for scaled items.
NonStop AutoTMF Commands TRACE PROGRAM object-file-name | file-set captures trace information for all instances of the running program or set of programs. If this option is used in conjunction with the DEBUG option, the program must be uniquely specified, not as a pattern. PROCESS process-name | process-namelist | * PROCESS cpu-pin PROCESS cpu,* captures trace information for the selected set of processes. If PROCESS is used with the DEBUG option, the process must be uniquely specified (not as a pattern).
NonStop AutoTMF Commands TRACE sets a time limit of n minutes for tracing, starting when the command is entered. If n is set to 0, then there is no time limit. When the time limit expires, the trace configuration is reset and processes currently tracing with the configuration cease tracing. The default is 60 minutes. MAXEXTENTS 16-to-978 the total number of primary and secondary extents for the trace file. The default is 128. MAXFILESIZE a shorthand for EXT 2048 MAXEXTENTS 512, which is a 2 gigabyte file.
NonStop AutoTMF Commands UNPREPARE If DYNAMICTRACE is enabled, which is the default, tracing stops the next time the process checks the trace signal file, or when the process stops. If DYNAMICTRACE is not enabled, tracing continues until the trace time limit expires or the process stops. Note that to take effect, DYNAMICTRACE must be enabled prior to starting the application programs. UNPREPARE The UNPREPARE command restores a prepared object file to its original state.
NonStop AutoTMF Commands UNPREPARE If ALLOWDUPLICATES is omitted and the UNPREPARE detects this condition, an error message is displayed and the file is not unprepared LIBRARY alternate-library | NONE the file to set as the user library of the object files in the file set. NONE removes the library pointer from the object file.
UPDATE NonStop AutoTMF Commands UPDATE Modifies records in an Enscribe file. The syntax for specifying records to update is the same as the COPY command. The command displays the record in the format that is specified and allows the user to modify the record values.
NonStop AutoTMF Commands UPDATE COMP[RELEN] n the compare length for generic positioning on the record key (primary or alternate) specified in the FIRST KEY option. n is a value between 1 and 255 that is less than or equal to the length of the FIRST KEY specified. COUNT num-records the number of records or rows to update. If omitted, all records are copied EXACT sets exact positioning on the record key (primary or alternate) specified in the FIRST KEY option.
NonStop AutoTMF Commands UPDATE where the integers represent the byte values. To specify a list of strings, enclose each string in quotation marks separated by a comma, and enclose the list in square brackets. key-spec the alternate key tag (a 2-byte string or a 16-bit integer) designating the alternate key to be used for positioning. ALTKEY key-value [, key-value ] the alternate key of the starting record or row. The format of key-value is described above.
NonStop AutoTMF Commands UPGRADE MAPDB displays the output in ASCII format. This option is ignored if combined with OCTAL, HEX, DECIMAL or BYTE display options. NO HEAD omits the heading preceding each record or row displayed, when one of the display-options is specified. UPGRADE MAPDB Creates additional tables in an existing MapDB. The tables are created if required for a new release of AutoTMF. The CI prompts you to issue the command when necessary.
STATUS NonStop AutoTMF Commands CLEAR empties the file before logging starts. If file already exists, information is appended to the end of the file unless CLEAR is specified. If file ends with a number (for example LOG001), additional files will be allocated with incrementing numbers when the first file becomes full. STOP terminates logging and closes the log file. Activities that are logged include: Starting and stopping the log.
NonStop AutoTMF Commands SECURITY SECURITY Instructs the monitor to accept further commands only from a specific set of process access ids. MONITOR SECURITY { N | C | U | A | G | O | - } N | C | U | A | G | O | the Guardian security specifier. The user issuing the command must match the monitor process access id at the specified security level. BACKUPCPU The BACKUPCPU command specifies the cpu for the monitor backup process.
A System Management System Database Map Database Monitor Process Configuring and Using an Alternate NonStop AutoTMF Environment Migrating the NonStop AutoTMF Software Configuration to a New System Runtime Library Host-language Runtimes in the Runtime Library Transporting Applications Version Checking Security and Availability Executing Prepared Applications System Database The System Database (SysDB) consists of two SQL tables: MAPDBS to store the description of map databases and associated monitor
Map Database System Management Map Database A Map Database (MapDB) contains AutoTMF configuration information for selected files and programs. In this release, the MapDB subvolume contains three SQL tables: ATMFATTR to store AutoTMF file configuration. ATMFPROG to store AutoTMF program configuration. REGISTRY to store NonStop AutoTMF default configuration parameter values referred to as locals. Locals are analogous to globals, but apply to one MapDB only.
Starting a Monitor System Management Configuring Monitor Priority All prepared programs will communicate with the monitor when a process is started. The monitor supplies all global configuration information and, if specified, any configuration for the program name. Further, all prepared programs will communicate with the monitor if an audited file is opened and there is some AutoTMF configuration for specific files.
System Management Configuring and Using an Alternate NonStop AutoTMF Environment In normal situations, the monitor process should be stopped only after all programs that access audited files have been stopped. The STOP MONITOR command should be used to stop the monitor. Configuring and Using an Alternate NonStop AutoTMF Environment You may configure an alternate AutoTMF environment for the following reasons: If you need to test or run different versions of AutoTMF on the same system.
Configuring an Alternate MapDB System Management product subvolume of your choice. In the example below, the user creates a product subvolume $DATA.ATMFAAO to test NonStop AutoTMF SPR labelled AAO 1> v y0581aao 2> INSTALL $data.atmfaao HP Nonstop(tm) AutoTMF(tm) Software File Installer UNPAK - File decompression program - T1255H01 - (2007-03-21) Archive version: 1 File Mode RESTORE Program - T9074H01 (20SEP2006) (AFJ) (C)2000 Compaq (C)2006 Hewlett-Packard Development Company, L.P. Drives: (\ATOM.
Configuring an Alternate MapDB System Management Create an alternate MapDB Use the CREATE MAPDB command specifying the alternate monitor process name. For example, to create a test MapDB that is called TSTMAPDB and uses the monitor $ZTST: AutoTMF 1? create mapdb tstmapdb,monitor $ztst; --- MapDB table $PRPC.TSTMAPDB.REGISTRY created. --- MapDB table $PRPC.TSTMAPDB.ATMFATTR created. --- MapDB table $PRPC.TSTMAPDB.ATMFPROG created. --- MapDB for AutoTMF created.
Configuring an Alternate SysDB System Management Issue the OPEN command after executing the CI: AutoTMF 2? open $ztst; Configuring an Alternate SysDB The SysDB has been engineered to be version-tolerant; multiple versions of AutoTMF can use the same SysDB concurrently. If however, you must completely segregate operating environments, you can also configure a separate SysDB and MapDB. To configure an alternate system database, the following steps are required: 1.
Migration Steps System Management The commands assume that SysDB tables, MapDB tables, configured object files and audited files are moved to same location on the new system. Only the system name and numbers are changed.
Runtime Library System Management 7. Issue MODIFY commands: MODIFY GLOBALS MODIFY AUTOTMF The object files or audited files reside in different locations The user first proceeds as describe above. The MODIFY AUTOTMF command makes the file and program attributes from source system visible to the INFO ATMFFILESET and INFO ATMFPROGRAMS commands. To complete the migration, proceed as follows: 1.
TNS/R Library System Management On NonStop S-series servers, use AXCEL and specify the UL option as follows: AXCEL $SYSTEM.ESCORT.ESCRUNTM, $SYSTEM.ESCORT.ESCRUNTM, UL; Note that the accelerator may produce a few warnings. On Integrity NonStop servers, use OCA as follows: OCA $SYSTEM.ESCORT.
HIGHPIN Attribute System Management HIGHPIN Attribute In order for a process to be run in a high pin (process number > 255), both the program object file and the user library file must have the HIGHPIN attribute set to ON. If either one is OFF, the process will occupy a low pin. The AutoTMF user library files are distributed with HIGHPIN ON. If you bind ESCRUNTM or link ESCRUNN or ESCRUNNL with another user library, the resulting user library loses the HIGHPIN attribute.
Updating the Runtime Library System Management 3. BIND and LINK the procedure into the runtime object files In Binder: select LIST * OFF SELECT CHECK PARAMETER STRONG SELECT SATISFY OFF ADD * FROM $DATA.ESCORT.ESCRUNTM ADD * FROM mnameo, DELETE SET LIKE $DATA.ESCORT.ESCRUNTM SET HIGHPIN ON BUILD ESCRUNTM ! nld mnamen $data.escort.escrunnl & -o $data.escort.escrunnm -ul -no_data_rearrange & -allow_duplicate_procs nld mnamen $data.escort.escrunn -o $data.escort.
TNS Host Runtime Language Libraries System Management Table A-1. HP Language Runtime Libraries included in the NonStop AutoTMF Software Runtime Product Product Number Release Subvol File COBOL 85 T9267 ZCOBOL85 C8LIB CRE T9280 ZCRERTL CFELIB CREKERN C T9549 ZC CLIB GPLIB T9600 ZGPLIB GPLIBXR GPLIBR (INITIALIZER only) COBOL 74 (T9251/T9261) is not currently supported.
TNS/R Host Runtime Language Libraries System Management TNS/R Host Runtime Language Libraries As described in Preparing TNS Programs, there are two classes of TNS/R AutoTMF runtime libraries: ESCRUNN/ESCRUNNT for PTAL only programs, ESCRUNNL and ESCRUNNM for COBOL and C programs. The following tables describe the host-language product release files that are included in the AutoTMF TNS/R runtime libraries: Table A-2.
TNS/E Host Language Runtime DLLs System Management 48> vproc escrunnm VPROC - T9617G03 - (07 AUG 2003) SYSTEM \NSKNED Date 20 JUL 2005, 16:38:39 Copyright 2003 Hewlett-Packard Development Company, L.P.
TNS/E Host Language Runtime DLLs System Management DLL Update Steps 1. Locate the DLL to install. The file ZREGPTR in $SYSTEM.SYSnn contains the name of the subvolume where the currently installed DLLs are running. 2. Use INFO PROGRAM (or PROGINFO (PI)) with the REBASE option to generate the ELD command that copies and rebases a public DLL to the AutoTMF operational subvolume. 3. Run the generated command. 4. Prepare the rebased DLL.
Transporting Applications System Management The macro displays the timestamp of the DLLs in the product subvolume and the timestamp of the system DLLs. It then prompts you to confirm you wish to proceed with the updates. The example below shows the execution of UPDDLLS in $SYSTEM.ESCORT: 13> volume $system.escort 14> run upddlls HP Nonstop(tm) AutoTMF(tm) DLL Update Installer Rebase and Prepare Public DLLs...
Security and Availability System Management 3. Whenever the CI opens a new monitor, the version checks are made for both the monitor process and the associated MapDB. 4. When a START MONITOR command is run, the monitor terminates if the CI version does not match the monitor’s version. The monitor also checks the version of MapDB. 5. When a prepared application process is running, each request from the AutoTMF runtime to the monitor contains a version number.
Object File Access Security System Management Object File Access Security Normally, only execute access authority is required to run a program. With AutoTMF, however, both read and execute access authority is required to run a prepared program. The AutoTMF runtime needs to determine if a program has embedded SQL and a few other important facts obtained by reading the object file.
Configuration Security System Management On the other hand, damage or destruction of the MapDB will also result in an outage of the application, so you might want to restrict update access of the MapDB to trusted users. Application programs have no need to access the MapDB; the monitor process provides all the MapDB information required by applications. Monitor Process Security The monitor process is an essential part of the application environment.
Executing Prepared Applications System Management The TRACE command can be secured to prevent exposure, as follows: The global setting for SECURETRACE should be ON, which is the default; use the ALTER GLOBAL command to configure SECURETRACE. The SysDB should be secured to prevent unauthorized users from altering this setting. When SECURETRACE is ON, the user who initiates a trace must be the process access ID of the processes that is being traced.
EMS Logging System Management ZESCTMPL: the EMS template file, to installed with the other system templates. ESCFLTR: the EMS filter file, which is used to configure an EMS distributor process to display only AutoTMF and TMF events. ZESCDDL: the DDL source for EMS definitions. To generate a DDL dictionary or an EMS definition file for a specific language, issue the following commands in the DDL compiler: ?NOLIST ?SOURCE $SYSTEM.ZSPIDEF.
B Special DEFINEs Introduction You can use Guardian DEFINEs to enable a number of AutoTMF optional features or to provide diagnostic and management information. Defines are useful to test an AutoTMF feature for a selected program, without altering the existing configuration. Configure AutoTMF features using the CI commands provided when possible, because this is easier and less error-prone than using DEFINEs.
DEFINE Types Special DEFINEs Table B-1. Runtime DEFINES (continued) DEFINE Name Description =_ESCORT_ATMF_TXHOLDOFF Specifies inter-request delay for holding transactions in active state. =_ESCORT_ATMF_WAITED Reverses the nowait mode set for completion of automatic transactions. =_ESCORT_AUDIT_RENAME Enables the renaming of audited files. =_ESCORT_DYNAMIC_TRC_OFF Disables dynamic tracing for a prepared program. =_ESCORT_DYNAMIC_TRC_ON Enables dynamic tracing of a prepared program.
Runtime DEFINES Special DEFINEs Runtime DEFINES =_ESCORT_ATMF_ISOLATION You can set the transaction isolation level for a program by specifying the =_ESCORT_ATMF_ISOLATION DEFINE. The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_ATMF_ISOLATION, CLASS MAP, FILE value where value is one of WEAK, NORMAL or STRONG =_ESCORT_ATMF_MAXTIME You can set the maximum duration for automatic transactions with the =_ESCORT_ATMF_MAXTIME DEFINE.
=_ESCORT_ATMF_NOWAIT Special DEFINEs =_ESCORT_ATMF_NOWAIT you can commit automatic transactions in a NOWAIT fashion with the =_ESCORT_ATMF_NOWAIT DEFINE. The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_ATMF_NOWAIT, CLASS MAP, FILE $X.Y.Z The FILE parameter is ignored. This DEFINE does not override the AUTOTMFFILESET parameter if a file is configured for SEPARATETX. =_ESCORT_ATMF_OFF You can disable AutoTMF for a process with the =_ESCORT_ATMF_OFF DEFINE.
=_ESCORT_ATMF_WAITED Special DEFINEs Automatic transactions are committed if: the process terminates (but not if the process is stopped), or the server is waiting for a request and the time since the last request exceeds the specified value, or the transaction has reached the limits set by the MAXTIME and MAXUPDATES parameters. Each transaction will span many server requests and updated records will be kept locked between server requests.
=_ESCORT_DYNAMIC_TRC_ON Special DEFINEs =_ESCORT_DYNAMIC_TRC_ON You can enable dynamic tracing of a program with the =_ESCORT_DYNAMIC_TRC_ON DEFINE. The program periodically checks the state of a signaling file to determine if tracing has been requested and will start tracing at that point. The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_DYNAMIC_TRC_ON, CLASS MAP, FILE $X.Y.Z The FILE parameter is ignored.
=_ESCORT_OPTMZUNLOCKSOFF Special DEFINEs =_ESCORT_OPTMZUNLOCKSOFF Specify this define to disable the optimization of UNLOCKFILE operations. ADD DEFINE =_ESCORT_OPTMZUNLOCKSOFF, CLASS MAP, FILE $X.Y.Z The file parameter is ignored. This define overrides the value of the global parameter ATMFOPTIMIZEUNLOCK or of the ATMFPROGRAMS attribute OPTIMIZEUNLOCKS.
=_ESCORT_STATEMENT_DATA Special DEFINEs =_ESCORT_STATEMENT_DATA You can request a process trace that includes data records with the =_ESCORT_STATEMENT_DATA DEFINE. The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_STATEMENT_DATA, CLASS MAP, FILE filename This define traces a superset of the information traced by the =_ESCORT_STATEMENT_TRACE. See the description of that DEFINE below.
=_ESCORT_SUPPRESS_AUDIT Special DEFINEs Edit trace files provide for the most efficient tracing, but an Edit trace file can only be opened by one process at a time. Tracing can be configured easily, and with more options, with the AutoTMF command interpreter; see TRACE on page 6-86. Using the TRACE command does not require changing the setup for executing the processes to be traced.
Command Interpreter DEFINEs Special DEFINEs Command Interpreter DEFINEs =_ESCORT_SYSDB This DEFINE is used for testing AutoTMF. It permits the user to establish an independent NonStop AutoTMF environment on the same system. In general, its use is not required and is not recommended in a production environment. In order to test a new version on AutoTMF in parallel with an existing version, you should use an alternate monitor and MapDB instead.
C Problem Resolution AutoTMF is designed to be invisible to an application program. AutoTMF is logically a layer that looks like the file system to the programs and like an application to the file system. Because the runtime is a library to the application programs, its operating environment is the application’s environment; thus, distinguishing between application problems and AutoTMF problems may be difficult.
Locking Problems Problem Resolution Other errors Program failures can be caused by configuration problems, by defects in the runtime library, or by defects in a program. If the runtime library detects a configuration problem or a version conflict, the runtime library sends a message to the home terminal of the program and to the EMS event log, commits the outstanding automatic transactions and abends the program.
Locking Problems Problem Resolution once locking is dictated by more stringent rules. Table C-1 below compares nonaudited and audited locking rules: Table C-1.
Incorrect Behavior Problem Resolution Long-running transactions result from locks that are not being released by the process, thus preventing AutoTMF from committing the automatic transaction. This situation is often found in cases where: Several files are updated under the common transaction and one file or another has a record locked at all times. A file managed under a separate transaction has at least one record locked at all times.
Diagnostic Tools Problem Resolution The home terminal for the monitor process is configured when the MapDB is created or when the monitor is started. See the description of the CI commands CREATE MAPDB, ALTER MONITOR and START MONITOR for details about configuring the monitor. The monitor activity can be logged to a file for cases where the monitor’s behavior is under suspicion.
EMS Log Problem Resolution EMS Log The AutoTMF monitor sends two classes of messages to the EMS log: Startup and shutdown information Critical events Events triggered by an application failure that is caused by AutoTMF are also sent to the EMS log. Consequently, the first place to look for the cause of a failure in the EMS log. To quickly view the NonStop AutoTMF events in the EMS log, start a distributor and use the ESCFLTR filter file to select the events.
Tracing Problem Resolution To list the values of system wide parameters, use the CI command INFO GLOBALS. To change any global parameter, use ALTER GLOBAL. To list the AutoTMF configuration for selected audited files (SEPARATEX, COMMONTX, and so on), use INFO ATMFFILESET. To configure files, use ADD ATMFFILESET. To list the AutoTMF configuration for selected programs, use INFO ATMFPROGRAMS. To configure programs, use ADD ATMFPROGRAMS.
Tracing Problem Resolution The CI TRACE command. By setting a tracing process DEFINEs: =_ESCORT_STATEMENT_TRACE, =_ESCORT_STATEMENT_DATA or =_ESCORT_STATEMENT_KEYS. You can trace a single process or all instances of a running program. Up to thirty two such traces, numbered 0 to 31, can be active simultaneously. To stop tracing, use TRACE STOP. Static vs. Dynamic Tracing You can trace a single process or a set of programs.
Tracing Problem Resolution Tracing to an Edit file is more efficient than the alternatives. However, an Edit file can only have one updater, so only one process at a time can be traced to an Edit file. Trace File Security Some restrictions on tracing may be applied for security reasons. The global parameter SECURETRACE is set to ON by default, which restricts tracing as described below.
Tracing Problem Resolution The trace shows the DEFINES that are active when the process begins execution and the operations to read the startup messages. The STARTUP and ASSIGN messages are formatted and displayed.. 14:44:03.782(8,102) *** Start Trace *** 14:44:03.823(8,102) Program $PRPC.RWCAWAIT.AWAIT, Term $Z31T (8,102) DEFINE =CAF,CLASS MAP,FILE=\FOXII.$PRPC.SOMEDATA.CAF (8,102) DEFINE =CAFKEYS,CLASS MAP,FILE=\FOXII.$PRPC.SOMEDATA.CAFKEYS (8,102) DEFINE =PBF,CLASS MAP,FILE=\FOXII.$PRPC.SOMEDATA.
Tracing Problem Resolution Audited - AutoTMF disabled or the file not configured for automatic transactions. OPEN($DATA.SOMEDATA.POSKEYS:1,RO/SH, ES) OPEN($DATA.SOMEDATA.CAF:2,RW/SH, KS, ATMF enabled) OPEN($DATA.SOMEDATA.PTDF:4,RW/SH, RL, ATMF common tx) OPEN($DATA.SOMEDATA.PBF:5,RW/SH, KS, ATMF common tx) OPEN($DATA.SOMEDATA.PRDF:6,RW/SH, KS, ATMF enabled) OPEN($DATA.SOMEDATA.
Reporting Problems Problem Resolution If a program abends or encounters unexpected errors and if the problem can be reproduced, trace the program to determine the sequence of procedure calls that lead to the failure. Reporting Problems To report a problem please collect supporting data and contact product support. This section lists the most commonly requested information to diagnose a problem. The user may be asked by the support specialist to collect additional information for specific problems.
Locking Problems, Long Running Transactions, Errors 35 or Performance Problems Problem Resolution If a prepared program fails, send the information listed above in addition to: The saveabend file (if applicable). The object file of the failing program. If the AutoTMF runtime has been combined with a user library, the object file of the user library. Locking Problems, Long Running Transactions, Errors 35 or Performance Problems The text of the message on the home terminal or EMS log.
Problem Resolution Locking Problems, Long Running Transactions, Errors 35 or Performance Problems HP NonStop AutoTMF Software User’s Guide—429952-017 C-14
D Error Messages In each message description, the following information appears: Message number Message text Cause—the condition or error that produced the message Effect—the effect of the condition or error on the system Recovery—the steps required to recover from a reported error Informational Messages 100 Monitor initialization Cause. The monitor process is initializing itself. Effect. The monitor process is not ready to service requests until initialization is completed. Recovery.
Informational Messages Error Messages 103 Monitor takeover Cause. The monitor primary process or its CPU has failed. Effect. The monitor backup process has taken over. The monitor is ready to service requests. Effect. Action: Informational message. No action is required. 104 Monitor backup created Cause. The monitor primary process has created a backup process. Effect. The monitor process is fault-tolerant. Recovery. Informational message. No action is required. 105 Monitor backup failed Cause.
Informational Messages Error Messages 107 Monitor status info Cause. The monitor process has displayed status information. Effect. Status information is placed in the EMS log. Recovery. Informational message only; no corrective action is needed. 141 Overdue commit on automatic transaction. Cause. A long-running automatic transaction has been detected. AutoTMF usually commits transactions after a short interval, but may not be able to do so if applications have long-lasting database locks.
Critical Event Messages Error Messages 150 AutoTMF message Cause. A message from AutoTMF has been generated. Effect. The nature of the problem is described in the message. Recovery. Corrective action depends on the message. Critical Event Messages 402 Monitor intentionally abended Cause. The monitor process has been intentionally abended to produce a saveabend file for problem diagnosis. Effect. The primary monitor process abends. The backup process takes over and continues processing. Recovery.
Critical Event Messages Error Messages 407 Version mismatch between the monitor and the runtime Cause. The Monitor process and the Runtime have incompatible versions. Effect. The program abends. Recovery. Verify that the runtime library and monitor are the same version. Contact product support for further assistance. 410 Error reading the object file Cause. The object file is secured to prevent reading by the user ID running the process. Effect. The program abends. Recovery.
Critical Event Messages Error Messages Effect. The process abends. Recovery. Since the product usually resizes the segment to satisfy memory requests, this error should not occur. Report this error to product support. 414 Allocate segment error Cause. Allocation of the extended segment failed. Effect. The process abends. Recovery. The error number is provided in the message. Determine the reason for the failure and correct it. 415 System operation failed Cause.
Critical Event Messages Error Messages 421 A file is not audited Cause. The AutoTMF global ATMFABENDNOAUDIT is enabled, the specified file is configured for automatic transactions, but the file is not audited. Effect. The process abends. Recovery. Audit the file or change the AutoTMF configuration. 422 Program calls unsupported SRL procedure Cause. Support for TNS/R native-mode programs required the elimination of a few public SRL procedures because linkable versions of the SRLs were not available.
Critical Event Messages Error Messages 430 Process was stopped by user request Cause. An authorized user requested a AutoTMF process stop. Effect. All automatic transactions were committed and the process has been abended. Recovery. Informational message only; no corrective action is needed. 433 System contains more logical processors than permitted by AutoTMF license. Cause. The referenced product is licensed for a maximum number of logical NSK processors (MAXCPUS).
Action Event Messages Error Messages 439 Error trying to write to trace file Cause. The runtime attempted to start tracing but was unable to write a trace file due to the specified file system error. Effect. The process continues without tracing. Recovery. Correct the cause of the file system error. For a dynamic trace, reissue the TRACE command. 600 Monitor start unauthorized Cause. An unauthorized user attempted to start the monitor process. Effect. The monitor process is not started. Recovery.
Action Event Messages Error Messages HP NonStop AutoTMF Software User’s Guide—429952-017 D-10
E Preparing Base24 Programs NonStop AutoTMF is frequently used with ACI’s BASE4 payment processing software. This appendix describes the steps required to enable Base24 applications for AutoTMF.
Initial AutoTMF Installation Preparing Base24 Programs Speciffy UL: AutoTMF 2?PREPARE $DATA.B24.SKELB,UL; *Warning* Object file $DATA.B24.SKELB contains Enscribe * 1650 * procedure names; references to these names * * will not be prepared: Procedure Name Count ------------------------------- ----AWAITIO 1 --- $DATA.B24.SKELB preparation complete, but has no MAIN; --- a prepared user library must be bound with --- the AutoTMF runtime library.
Preparing Base24 Programs Initial AutoTMF Installation Note that INFO PROGRAM now shows a number of intercepted and non intercepted procedure calls. This is an indication that the AutoTMF runtime has been bound into the user library:: AutoTMF 4? PID $data.b24.skelb; *Warning* The AutoTMF object file $DATA.B24.SKELB is not * 1659 * accelerated for TNS/E. For best performance, perform the * * following TACL command: * * * * OCA $DATA.B24.SKELB,UL * * $$DATA.B24.
Preparing Base24 Programs New Version of the BASE24 Library 6- Prepare BASE24 programs Programs that access audited database files must be prepared. In the example below, the objects are in $data.b24obj AutoTMF 6? PREPARE $data.b24obj.*; To verify that a specific program has been prepared: AutoTMF 7? PID $data.b24obj.; $DATA.B24OBJ. Jun 27 2013, 15:58 Accelerated TNS Program User Library: $DATA.B24.
Glossary automatic transaction. A transaction that has been generated by NonStop AutoTMF software. common transaction. An automatic transaction that is used for accesses on all file opens that are not configured for separate transactions. nontransactional program. A program that does not manage or inherit transactions. See transactional program. prepared program. An object file that has been prepared to use NonStop AutoTMF software. process transaction.
transactional program.
Index Symbols $ZESC 2-8 A AFTER option in INFO PROGRAM 6-65 option in PREPARE 6-78 option in PROGINFO 6-80 option in UNPREPARE 6-91 ALL option in HELP 6-61 ALLOWDUPLICATES option in PREPARE 6-78 option in UNPREPARE 6-91 Alternate swap volumes A-21 ATMF option in ALTER GLOBAL 6-36 ATMFABENDNOAUDIT option in ALTER GLOBAL 6-36 ATMFATTR A-2 ATMFAUDITRENAME option in ALTER GLOBAL 6-36 ATMFAUTOCOMMIT option in ALTER GLOBAL 6-36 ATMFCOMMONTX option in ALTER GLOBAL 6-37 ATMFISOLATION option in ALTER GLOBAL 6-37 AT
AXCEL option in NSKFIXUP 6-75 AXLCHECK option in INFO PROGRAM 6-66 B BACKUP option in ALTER MAPDB 6-44 option in ALTER MONITOR 6-45 option in CREATE MAPDB 6-54 option in START MONITOR 6-83 BLOCKIN option in COPY 6-50 BLOCKOUT option in COPY 6-51 BUFFERED option in ALTER FILE 6-33 BYFILE option in LISTLOCKS 6-70 BYHOLDER option in LISTLOCKS 6-70 C CATALOG option in CREATE MAPDB 6-54 option in CREATE SYSDB 6-56 CLEAR option in TRACE 6-89 CLEARONPURGE option in ALTER FILE 6-34 COBOL option in INFO PROGRAM 6-
EDIT option in TRACE 6-89 EMSCOLLECTOR option in ALTER GLOBAL 6-42 ENABLE Preparing 5-4 Entry-sequenced files 6-9, 6-10, 6-23, 6-24, 6-40 Error 49 Unstructured Access 4-15 Error 80 Unstructured Access 4-15 Error Handling errors returned from Enscribe C-1 Error handling CI failures C-5 diagnostic commands C-6 error 75 C-2 locking C-7 messages D-1–D-9 monitor error logging C-4 monitor failures C-5 reporting problems C-12 ESCERROR 2-3 ESCFLTR 2-3 EMS event management A-22, C-6 ESCHELP 2-3 ESCMON 2-3 ESCORT 2-3
I Installation creating MapDB 2-7 creating SysDB 2-6 disabling NonStop AutoTMF software 2-10 first time 2-2 INSTALL macro 2-2 ISV subvolume 2-2 licensing 2-7 new version of NonStop AutoTMF software 2-9 updating cold load procedures 2-8 ISOLATION option in ADD ATMFPROGRAMS 6-14 option in ALTER ATMFPROGRAMS 6-27 Isolation Normal 4-7 Strong 4-7 Weak 4-7 K KEYS option in TRACE 6-88 KMSF option in ALTER GLOBAL 6-42 L Large Transfer 4-15 LIBRARY option in NSKFIXUP 6-75 option in PREPARE 6-78 option in UNPREPARE
priority A-3 Moving prepared programs A-17 N NO VERIFIEDWRITES option in ALTER FILE 6-35 NOITENT option in LISTLOCKS 6-71 NOPROCESS option in LISTLOCKS 6-71 NOPURGEUNTIL option in ALTER FILE 6-34 NOTRANSACTION option in LISTLOCKS 6-71 NOTX option in ADD ATMFFILESET 6-9 option in ADD ATMFPROGRAMS 6-16 option in ALTER ATMFFILESET 6-22 option in ALTER ATMFPROGRAMS 6-29 option in LISTLOCKS 6-71 NOTX option in ALTER ATMFFILESET 6-22 Nowait transactions 4-7 NOWAITTX option in ADD ATMFFILESET 6-9 option in ADD AT
Queue Files 5-7 option in ADD ATMFFILESET 6-10 option in ADD ATMFPROGRAMS 6-16 option in ALTER ATMFFILESET 6-23 option in ALTER ATMFPROGRAMS 6-29 RECOUT option in COPY 6-52 REGISTRY In MapDB A-2 In SysDB A-1 RESETBROKEN option in ALTER FILE 6-34 RESOLVE option in LISTLOCKS 6-71 REVERSE option in COPY 6-50 option in UPDATE 6-95 REWINDIN option in COPY 6-50 REWINDOUT option in COPY 6-52 R S READNULLRECS option in ADD ATMFFILESET 6-9 option in ALTER ATMFFILESET 6-23 READTHRULOCK option in ALTER ATMFFILESET
SEPARATETX option in ALTER ATMFFILESET 6-23 SERIALWRITES option in ALTER FILE 6-34 SETMODE 141 Unstructured access 4-15 SHARE option in UPDATE 6-95 SHARE option in COPY 6-51 Shared Runtime Libraries 3-5 SKIPMATCH option in COPY 6-51 option in UPDATE 6-95 SKIPNULLRECS option in ADD ATMFFILESET 6-10 option in ALTER ATMFFILESET 6-24 Spooler preparing 5-5 spool data file creation 5-5 SPOOLER files 5-3 SRL 3-5 START option in INFO PROGRAM 6-65 option in PREPARE 6-78 option in PROGINFO 6-80 option in UNPREPARE 6-
option in HELP 6-62 Tracing C-7 security C-9 static and dynamic C-8 to edit file C-9 with debugging C-8 TRANSID option in TRACE 6-90 TRIM option in COPY 6-51 TXSTATUS option in LISTLOCKS 6-71 TXTIMEOUT option in ADD ATMFFILESET 6-11, 6-18 option in ALTER ATMFFILESET 6-24 option in ALTER ATMFPROGRAMS 6-31 U Unilateral Aborts 4-16 UNLOADIN option in COPY 6-51 UNLOADOUT option in COPY 6-52 UNPREPARED option in INFO PROGRAM 6-66 UNRESOLVED option in INFO PROGRAM 6-67 UNSTROUT option in COPY 6-52 UNSTRUCTURED o