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-008 NonStop AutoTMF Software AAN June 2007 429952-009 NonStop AutoTMF Software AAN July 2007 429952-011 NonStop AutoTMF Software AAP April 2009 429952-012 NonStop AutoTMF Software AAQ January 2010 429952-013 NonStop AutoTMF Software AAR October 2010
Legal Notices © Copyright 2010 Hewlett-Packard Development Company L.P. 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 What’s New in This Manual ix Manual Information ix New and Changed Information About This Manual xi Notation Conventions ix xi 1. Introduction to HP NonStop AutoTMF Software Capabilities of NonStop AutoTMF Software Limitations 1-2 1-2 2.
3. Preparing Programs 3.
4. Configuring Automatic Transaction Processing (continued) 4. Configuring Automatic Transaction Processing (continued) Unstructured Access 4-13 Large-Transfer Writing 4-14 Transaction File (TFILE) 4-15 Unilateral Aborts 4-16 Forced Transaction Commit 4-17 Limitations 4-18 Program Logic 4-18 SQL tables 4-18 Number of concurrent transactions 4-18 5.
6. NonStop AutoTMF Software Commands 6.
6.
A. System Management A.
B. Special DEFINEs B.
D. Error Messages Diagnostic Tools (continued) CI Commands C-6 Tracing C-7 Problem Reporting C-11 NonStop AutoTMF Software Component Failures C-11 Prepared Program Incorrect Behavior or Failure C-12 Locking Problems, Long Running Transactions, Errors 35 or Performance Problems C-12 D. Error Messages Informational Messages D-1 Critical Event Messages D-4 Action Event Messages D-8 Glossary Index Tables Table 2-1. Table 2-2. Table 3-1. Table 4-1. Table 6-1. Table 6-2. Table 6-3. Table A-1. Table A-2.
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 HP NonStop AutoTMF Software User’s Guide—429952-013 x
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.
About This Manual General Syntax Notation 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.
About This Manual Change Bar Notation 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 ]...
About This Manual Change Bar Notation HP NonStop AutoTMF Software User’s Guide—429952-013 xiv
1 Introduction to HP NonStop AutoTMF Software This section of the manual discusses the following topics: • • An overview of HP NonStop AutoTMF software 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 Disabling NonStop AutoTMF Software Removing NonStop AutoTMF Software Shortcut to Run ESCORT CI Prerequisites Read the SOFTDOC before you install NonStop AutoTMF software. NonStop AutoTMF software generates transactions on behalf of application programs. The TMF product views NonStop AutoTMF software like any other transactional program.
Installation and Basic Management Installing NonStop AutoTMF Software Installing NonStop AutoTMF Software Have your NonStop AutoTMF software 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.
Installation and Basic Management Install NonStop AutoTMF Software Files TNS and TNS/R Installation In the example below, AutoTMF is installed in subvolume $TOOLS.AUTOTMF: volume $system.zautotmf $SYSTEM ZAUTOTMF 253> install $tools.autotmf HP Nonstop(tm) AutoTMF(tm) Software File Installer UNPAK - File decompression program - T1255G06 - (2003-09-22) Archive version: 1 File Mode RESTORE Program - T9074G08 (14OCT2004) (AFD) (C)2000 Compaq (C)2003 Hewlett Packard Development Company, L.P. Drives: (\NSKNED.
Installation and Basic Management Start an EMS distributor In the example below, NonStop AutoTMF software is installed on $TOOLS.AUTOTMF: $SYSTEM.ZAUTOTMF 1> install $TOOLS.AUTOTMF HP Nonstop(tm) AutoTMF(tm) Software File Installer UNPAK - File decompression program - T1255H01 - (1974-12-31) Archive version: 1 File Mode RESTORE Program - T9074H01 (01MAY2005) (H01) (C)2000 Compaq (C)2003 Hewlett-Packard Development Company, L.P. Drives: (\DRPSOC.
Installation and Basic Management Create the System Database 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 $system.escort.
Installation and Basic Management Create the Mapping Database If you are upgrading your NonStop AutoTMF software license from a limited license to a permanent license, simply install the new license received from the License Manager. Installing the new license is not disruptive and does not require any interruption of the running application.
Installation and Basic Management Update System Coldload Procedures When the monitor process is started, the following messages should be displayed by the EMS distributor: 16:33 08MAY07 099,01,130 AutoTMF Monitor $ZESC Starting Version 1.8.
Installation and Basic Management Install EMS templates 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 $SYSTEM.ESCORT.ESCORT START MONITOR; The user ID required to start the monitor also must have read access to SysDB and MapDB tables.
Installation and Basic Management Running Different Versions of NonStop AutoTMF Software on the Same System Running Different Versions of NonStop AutoTMF Software 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 NonStop AutoTMF software 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 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. Here are two suggestions: • Create an EDIT file $SYSTEM.SYSTEM.ESCORT that contains the following two lines of text: ?TACL MACRO RUN $SYSTEM.ESCORT.ESCORT %*% • Update the $SYSTEM.SYSTEM.
Installation and Basic Management Shortcut to Run ESCORT CI HP NonStop AutoTMF Software User’s Guide—429952-013 2-12
3 Preparing Programs Overview Preparing Programs Preparing Programs that Have a User Library Preserving the Modification Timestamp of Object Files Preserving License Attribute when Preparing Privileged Programs Tips for Preparing Programs Diagnosing Preparation Errors Overview Before preparing any programs, ensure that you have a working version of the application to be prepared. Read the suggestions at the end of this section before preparing any programs.
Preparing Programs Preparing Programs Preparation does not invalidate object-file acceleration or SQL compilation, nor does preparation change binder or linker attributes such as HIGHPIN, HIGHREQUESTERS, INSPECT, and so on, or the Binder time stamp or the size of the object file. However, preparation removes LICENSE attribute of an object file, unless one of 2 conditions are met: • • the PREPARE is performed by SUPER.
Preparing Programs Preparing TNS Programs Use the INFO PROGRAM command to verify the state of the object file, for example: AutoTMF 7? info program myobj.batchobj,detail; $DATA.MYOBJ.BATCHOBJ Apr 29 2004, 14:07 Accelerated TNS Program User Library $SYSTEM.ESCORT.
Preparing Programs Preparing TNS/R Programs calls made by those libraries. These libraries also exist in the “system library” created by SYSGEN, but you cannot intercept calls that are made to the system library. If a TNS program currently calls a procedure in the system library routine at run time, the calls are automatically retargeted to the ESCRUNTM user library if the ESCRUNTM user library contains the same procedure. Any COBOL, C, or TAL TNS program can use the ESCRUNTM library.
Preparing Programs Preparing TNS/R Programs Table 3-1. TNS/R Program Classes and NonStop AutoTMF Libraries: Program Class Runtime library Linkable library Preparation Processing COBOL/C ESCRUNNM ESCRUNNL SRLs references eliminated; all calls intercepted in NonStop AutoTMF UL.
Preparing Programs Preparing TNS/E Programs C++ Programs C++ programs reference both the C++ and C SRLs. However, the C++ and C libraries have conflicting externals and cannot be linked together in the same library; therefore, a NonStop AutoTMF user library cannot intercept calls from C++ programs. If a program references the C++ SRL, the PREPARE command: • • Will direct calls to Enscribe, causing GPLIB to be intercepted by the ESCRUNNT user library.
Preparing Programs Preparing Programs that Have a User Library AutoTMF runtime DLL (ESCRUNDL) as a DLL of the program. The example below shows the preparation of program $data.testobj.egetemp: AutoTMF 3? prepare egetemp; --- $DATA.TESTOBJ.EGETEMP preparation complete --- AutoTMF DLL $TOOL.AUTOTMF.ESCRUNDL AutoTMF 4? info program egetemp,detail; $DATA5.JOJOTEST.EGETEMP May Executable TNS/E Program Not Preset; Nonempty Liblist DLLs: escrundl Pre-public DLL path: $TOOL.
Preparing Programs Preparing a User Library Preparing a User Library By default, the PREPARE command only modifies executable object files. If you attempt to prepare a program that references a user library, the following message is displayed: AutoTMF 1? prepare $DATA.LIB.TINFOB; *Warning* Object file $DATA.LIB.TINFOB has no MAIN procedure. * 1658 * A user library must be prepared with the USERLIB option * * and then bound with the AutoTMF runtime library.
Preparing Programs • Changing the User Library with Prepare For NonStop S-series servers: AXCEL myuserlb,myuserlb; UL • For NonStop Integrity servers: OCA myuserlb; UL 4. If the NonStop AutoTMF EMS message template file ZESCTMPL has not been installed, move a copy of ZESCTMPL into the same subvolume as the user library. It might be needed to generate messages to the home terminal. TNS/R Library 1. Create or locate a linkable version of the user library. 2.
Preparing Programs Preserving the Modification Timestamp of Object Files To force PREPARE to change a library in an object file, use the LIBRARY option. The specified library must contain the NonStop AutoTMF runtime library. The LIBRARY option can be used when you need to change the location of a user library (even if the object file is already prepared). AutoTMF 1? prepare myobj.myprog,library newobj.myusrlib; --- $DATA.MYOBJ.MYPROG preparation complete --- AutoTMF runtime library $DATA.NEWOBJ.
Preparing Programs Tips for Preparing Programs 1. In binder, type the following commands: ADD * FROM escort SET LIKE escort ALTER CALLABLE^SET^LICENSE, CALLABLE ON BUILD escort! 2. At the TACL prompt, SQL compile escort: SQLCOMP/ IN escort/ NOREGISTER ON 3. Log on as SUPER.
Preparing Programs Diagnosing Preparation Errors Diagnosing Preparation Errors The INFO PROGRAM command displays the preparation status of each object file: • • • • • Unprepared Calls – Program calls to procedures that are normally intercepted by NonStop AutoTMF software are not retargeted. Either the program was not prepared, or was prepared using an earlier release of NonStop AutoTMF software. In either case, issue the PREPARE again. No User Library – The program has no user library.
4 Configuring Automatic Transaction Processing Configuration Commands You can configure NonStop AutoTMF software features using commands to set global options and to specify file names and program names that use NonStop AutoTMF software options. See ALTER GLOBAL on page 6-34, ADD ATMFFILESET on page 6-6, and ADD ATMFPROGRAMS on page 6-12 for complete use and syntax descriptions of these commands. The ADD commands have corresponding INFO, ALTER and DELETE commands.
Configuring Automatic Transaction Processing Command Options 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.
Configuring Automatic Transaction Processing Command Options Table 4-1.
Configuring Automatic Transaction Processing Command Options Table 4-1.
Configuring Automatic Transaction Processing Automatic Transactions Automatic Transactions NonStop AutoTMF software provides transactions when a program is not programmed to provide transactions. As needed, NonStop AutoTMF software starts and commits automatic transactions. Nontransactional programs are unaware that automatic transactions are being created and committed.
Configuring Automatic Transaction Processing • • Transaction Creation avoid long-running transactions in programs that have unusual locking behavior. force a single-transaction-per-update. Note that you also must specify MAXUPDATES 1 to force single-transaction-per-update. Each file configured through SEPARATETX and MAXUPDATES 1 uses its own separate transaction that is committed immediately after an update. Other options you can configure for a separate transaction are NOWAIT, AUTOCOMMIT and MAXTIME.
Configuring Automatic Transaction Processing Transaction Isolation Automatic transactions are committed by a proprietary set of processing rules, driven by the following activities and events: • • • • • • Process operations that lock, update, and unlock files and records; such information determines both the lock protocols that need to be preserved and the actual lock state of open files. Process operations that signal a requirement or an opportunity to commit an automatic transaction.
Configuring Automatic Transaction Processing Nowait Transactions where both requester and servers lock or update the same records. If processes coordinate access to the same database records (for example, one process inserts a database record, then sends a request to a server process to update the record), a record deadlock may occur. Coordinated access in an unaudited database requires a process to unlock a record before sending a server request to access that record.
Configuring Automatic Transaction Processing Audited Attribute Hiding NonStop AutoTMF software notifies you if any automatic transaction (nowait or waited) aborts by immediately abending the process with an explanatory message to the process home terminal and to the EMS log. Audited Attribute Hiding Most legacy programs are unaware of auditing and simply access the database as if the database were unaudited.
Configuring Automatic Transaction Processing Null Record Handling (Entry-Sequenced Files) Null Record Handling (Entry-Sequenced Files) Records can be inserted into an entry-sequenced file but they cannot be updated. If the file is not audited, all inserted records are written to the file. Programs expect to find a valid and complete record when reading the file.
Configuring Automatic Transaction Processing Handling TMF Environmental Errors You can enforce the requirement that a file be audited: 1. First set the global parameter ATMFABENDNOAUDIT to ON. 2. Then, configure the files for which auditing is critical with one of the following ATMFFILE options: COMMONTX, SEPARATETX, RECORDTX, or NOTX. When any of the configured files is opened by a program, NonStop AutoTMF software checks the audit flag.
Configuring Automatic Transaction Processing • • • Suppressing Inherited Transactions 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. The transaction has no effect on the program. However, if NonStop AutoTMF software is configured, the inherited transaction becomes visible to the program.
Configuring Automatic Transaction Processing Exceptions In such cases, you can configure NonStop AutoTMF software to generate one automatic transaction for each record lock and to commit each transaction as soon as the record is unlocked. This approach increases the transactional activity but prevents the occurrence of long-running transactions without changing the program’s locking behavior.
Configuring Automatic Transaction Processing Changing Nowait IO to Waited IO Changing Nowait IO to Waited IO To commit automatic transactions, AutoTMF must find a point where no records are locked by the application program. Most programs have such points, but others have complex algorithms that lock records on some files before unlocking records on other files, leaving no commit opportunity.
Configuring Automatic Transaction Processing • • • • • • Unstructured Access AutoTMF does not return file system errors 27 and 28 when a program performs an I/O operation without calling AWAITIO on the previous operation. Instead, AutoTMF signals an assertion failure which commits all outstanding transactions and terminates the program. Error 26 occurs in the normal manner.
Configuring Automatic Transaction Processing • Large-Transfer Writing Large transfer updates to unstructured audited files are now supported by the NonStop OS. The emulation of large transfers is described below in Large-Transfer Writing. Some third-party programs perform unstructured read/write opens of a structured file.
Configuring Automatic Transaction Processing Unilateral Aborts NonStop AutoTMF software manages TFILE sharing effectively, using the TFILE to support parallel and nowait automatic transactions, and to manage process transactions. Your programs can use the TFILE in the conventional manner, but you are bound by TMF limits on the number concurrent transactions in a single process described below in Number of concurrent transactions.
Configuring Automatic Transaction Processing Forced Transaction Commit Reducing causes of unilateral aborts To reduce other causes of unilateral aborts in production processing, perform these tasks: • • • Configure TMF to handle the projected transaction load. If programs hold record locks and file locks for long periods, alter the TMF AutoAbort parameter to avoid aborting long-running automatic transactions. If TMF version 3.
Configuring Automatic Transaction Processing Setting Transaction Time Out If there are outstanding automatic transactions when the AUTOCOMMIT time limit is reached, the NonStop AutoTMF runtime takes the following actions: 1. Forces the commit of all automatic transactions, 2. Issues an EMS message, 3. Terminates the process with an abend. The program has to be restarted but no data is lost.
Configuring Automatic Transaction Processing SQL tables program; this requirement is usually satisfied by the program’s initialization routines that OPEN $RECEIVE to read the startup message. If a procedure that requires a file number is called prior to the first call to OPEN, the program will trap because the NonStop AutoTMF data structures have not been allocated. • When calling I/O procedures such as READ and WRITE, a program must use a file number that was obtained from a call to OPEN or FILE_OPEN_.
5 Usage Guidelines This section describes typical uses and limitations of NonStop AutoTMF software, drawn from the experiences of customers. Auditing Files Auditing Unstructured Files Preparing HP Utilities Preparing Third-party Applications 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.
Usage Guidelines Auditing Unstructured Files by NonStop AutoTMF software and which files are managed by the application. To insure that NonStop AutoTMF software generates transactions for 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.
Usage Guidelines Preparing HP Utilities 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.
Usage Guidelines ENFORM For example: > ESCORT PREPARE test.fup!;EXIT; --- $DATA.TEST.FUP preparation complete --- AutoTMF User Library $DATA.ESCORT.ESCRUNTM • 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.
Usage Guidelines ENABLE ENABLE ENABLE is both a transactional and nontransactional program. ENABLE generates transactions if your ENABLE program specifies SET TMF ON. ENABLE checks the file attributes of database files; if a file is audited and the program has not specified 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.
Usage Guidelines SORT and SORTPROG file to the spooler control file. Because the rebuilt control file is first created as a temporary file, the CREATEAUDIT attribute is not applied and the rebuilt file is not created as an audited file. If for any reason a rebuild of the Spooler is necessary, proceed as follows: 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.
Usage Guidelines • • Preparing Third-party Applications The LOCKFILE operation is performed under one automatic transaction. Writes to the file do not acquire record locks when the entire file is locked. All writes to the file are performed under a single transaction, which is committed when the file is closed. If the file is not closed before the TMF AutoAbort time limit, the program fails. Tracing shows the alteration of the open exclusion and the deblocking operations. Caution.
Usage Guidelines NonStop AutoTMF and Process Pairs NonStop AutoTMF and Process Pairs If AutoTMF is used, no error 75 occurs on a takeover because AutoTMF creates new automatic transactions in the backup process to access audited files. However, when a primary process fails, automatic transactions may or may not have been aborted, depending on the cause of the failure.
6 NonStop AutoTMF Software 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.
NonStop AutoTMF Software Commands Command Syntax 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.
NonStop AutoTMF Software Commands Command Summary Table 6-1.
NonStop AutoTMF Software Commands Command Summary Table 6-1.
NonStop AutoTMF Software Commands Command Summary Table 6-1. NonStop AutoTMF Software Commands (continued) Command Name Description UPDATE Updates a file record UPGRADE MAPDB Creates additional MapDB tables when required VOLUME Sets the CI session volume and subvolume Table 6-2.
NonStop AutoTMF Software 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 specifies the name of the NonStop AutoTMF software monitor process to be stopped.
NonStop AutoTMF Software 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 Software Commands ADD ATMFFILESET If a program fails to unlock a record and prevents NonStop AutoTMF software 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, about 5 minutes or so.
NonStop AutoTMF Software 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 a NonStop AutoTMF software 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 Software Commands ADD ATMFFILESET IF NOWARNLONGTX is specified, SEPARATETX must also be specified 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 Software Commands ADD ATMFFILESET configures files to be accessed by the programs using separate automatic transactions. Specify SEPARATETX when automatic transactions for a file are always to be used (even if the process has its own transaction) and the transaction should be managed separately from transactions for other files.
NonStop AutoTMF Software Commands ADD ATMFPROGRAMS If WAITEDIO is specified for a NOWAIT file open, AutoTMF automatically performs an AWAITIO operation immediately following the various forms of 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.
NonStop AutoTMF Software Commands ADD ATMFPROGRAMS 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 Software Commands ADD ATMFPROGRAMS n is a number between 300 and 30000 but stored internally in minutes, so if specified in seconds some rounding of the value may occur. The default unit is minutes. If n = 0, AUTOCOMMIT is disabled for this program set.
NonStop AutoTMF Software Commands • ADD ATMFPROGRAMS 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 overrides the value of the global parameter ATMFISOLATION. MAXTIME 1-to-n-seconds specifies that transactions should be committed after n seconds. The value of n should be a power of 2 (1,2,4,8,16,32,...) in the range of 1 to 4096.
NonStop AutoTMF Software Commands ADD ATMFPROGRAMS NOWAIT[TX] returns control to the application without waiting for the transaction to be fully committed. Automatic transactions generated by the programs are committed in nowait mode. The status of a nowait transaction is checked by the runtime when the next transaction for the file is started or when the process terminates.
NonStop AutoTMF Software Commands ADD ATMFPROGRAMS 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. The RECORDTX program attribute can be specified in addition to other attributes, such as COMMONTX or SEPARATETX. The other attributes are ignored if RECORDTX is specified for both the file and the program.
NonStop AutoTMF Software Commands • • • ADD ATMFPROGRAMS 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. Programs that make use of TMF may depend on the correct operation of the calls that are eliminated by setting this option.
NonStop AutoTMF Software Commands ALTER ATMFFILESET For further details, see Changing Nowait IO to Waited IO on page 4-14 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 Software Commands ALTER ATMFFILESET instructs NonStop AutoTMF software to commit all automatic transactions if the separate transaction for this file exceeds the specified time limit. n is a number between 300 and 30000 but stored internally in minutes, so if specified in seconds some rounding of the value may occur. The default unit is minutes.If n = 0, AUTOCOMMIT is disabled for this file.
NonStop AutoTMF Software Commands ALTER ATMFFILESET 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 a NonStop AutoTMF software automatic transaction. Note.
NonStop AutoTMF Software Commands ALTER ATMFFILESET Users should exercise caution when suppressing the long transaction warning and do so only if the cause for the delayed commit is well understood. 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.
NonStop AutoTMF Software Commands ALTER ATMFFILESET enables or disables (NO SEPARATETX) the use of separate transactions by the programs to access an audited file. SEPARATETX is used when an automatic transaction is to be generated even if the process has its own transaction and when the transaction must be managed separately from transactions for other files.
NonStop AutoTMF Software Commands ALTER ATMFFILESET converts NOWAIT I/O operations to WAITED I/O operations. If WAITEDIO is specified for a NOWAIT file open, AutoTMF automatically performs an AWAITIO operation immediately following the various forms of READ and WRITE. After the AWAITIO completes, AutoTMF commits any outstanding transactions using the usual algorithms as directed by the configuration.
NonStop AutoTMF Software 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 Software Commands ALTER ATMFPROGRAMS n is a number between 300 and 30000 but stored internally in minutes, so if seconds is entered, some rounding of the value may occur. The default unit is minutes. If n = 0, AUTOCOMMIT is disabled for this program set.
NonStop AutoTMF Software Commands • ALTER ATMFPROGRAMS 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 overrides the value of the global parameter ATMFISOLATION. MAXTIME 1-to-n-seconds | NO MAXTIME specifies that transactions should be committed after n seconds. The value of n should be a power of 2 (1,2,4,8,16,32,...) in the range of 1 to 4096.
NonStop AutoTMF Software Commands ALTER ATMFPROGRAMS disables or enables (NO NOTX) the generation of automatic transactions for audited file access. NOWAIT[TX] | NO NOWAIT[TX] | WAITED[TX] Enables or disables (NO NOWAIT[TX] or WAITED[TX]) the use of nowait transactions. If enabled, separate transactions are committed in nowait mode and the status of a nowait transaction is checked by the runtime when the next transaction for the file is started or when the process terminates.
NonStop AutoTMF Software Commands ALTER ATMFPROGRAMS ignored if RECORDTX is specified for both the file and the program. If RECORDTX is specified for a program, but not the file, then the other options, such as COMMONTX or SEPARATETX, will be in effect. For further details on the use of RECORDTX, see paragraph Record-Level Transactions on page 4-12.
NonStop AutoTMF Software Commands • • ALTER ATMFPROGRAMS All transactions inherited from requesters through messages on $RECEIVE are ignored. FILEINFO requests for audited files reports that files are not audited. 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.
NonStop AutoTMF Software Commands ALTER FILE Note. Removing an option specifying NO is different from setting it to the default value. The default value setting overrides the global (or local) value. Removing the option adopts the setting from the global (or local) setting. ALTER FILE Utility command similar to the FUP ALTER command. Changes attributes of Enscribe files. Unlike the FUP ALTER command, the NonStop AutoTMF software ALTER FILE command can alter a collection of files specified as a file set.
NonStop AutoTMF Software Commands ALTER FILE AUDITCOMPRESS | NO AUDITCOMPRESS specifies whether or not compression of audit records is occurring for this file. BUFFERED | NO BUFFERED specifies whether 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 numeric file code of the file.
NonStop AutoTMF Software Commands ALTER FILE specifies whether serial writes to the mirrored disk are performed. If NO SERIALWRITES is specified, parallel writes are performed. The default is NO SERIALWRITES. VERIFIEDWRITES | NO VERIFIEDWRITES sets the mode of file writes: verified or not verified. The default is NO VERIFIEDWRITES.
NonStop AutoTMF Software Commands ALTER GLOBAL ALTER GLOBAL Sets or changes global configuration values for NonStop AutoTMF software. Global parameters are the default for all environments.
NonStop AutoTMF Software Commands { { { { { { { ALTER GLOBAL [SWAP]KMSF { ON | OFF } SWAPVOL[0] local-disk-volume SWAPVOL1 local-disk-volume SWAPVOL2 local-disk-volume SWAPVOL3 local-disk-volume } } } } } } } parameter-and-value ATMF { ON | OFF } enables or disables automatic transaction processing. The default is ON if the system has been licensed to use NonStop AutoTMF software.
NonStop AutoTMF Software Commands ALTER GLOBAL The runtime monitors automatic transactions to determine those that have been active for more than the selected time. The process must be active, either receiving messages on $RECEIVE or performing database positioning operations. Processes in a "wait" state are not monitored for long transactions. If any automatic transaction has exceeded the AUTOCOMMIT time, the NonStop AutoTMF software runtime will take the following actions: 1.
NonStop AutoTMF Software Commands ALTER GLOBAL specifies that transactions should be committed after n seconds. 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 16 seconds. MAXTIME can also be set for separate transactions and for selected programs. See ADD ATMFFILESET and ADD ATMFPROGRAMS for details.
NonStop AutoTMF Software Commands ALTER GLOBAL of a nowait transaction is checked by the runtime when the next transaction for the file is started or when the process terminates. The default is OFF. NOWAIT can also be set for separate transactions and for selected programs. See ADD ATMFFILESET and ADD ATMFPROGRAMS for details. ATMFNOWARNLONGTX { ON | OFF } suppresses the warning message that is normally displayed in the EMS log when an automatic transaction runs longer than 5 minutes.
NonStop AutoTMF Software Commands ALTER GLOBAL instructs the NonStop AutoTMF software runtime to ignore 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.
NonStop AutoTMF Software Commands • ALTER GLOBAL the transaction reaches the limits set by the MAXTIME and MAXUPDATES parameters. Each transaction spans many server requests and updated records are kept locked between server requests. If the batch process sends work to many server processes, the servers processes must access different database records or a deadlock may occur. The commit timer will not cause the current transaction to be committed if the process is deadlocked.
NonStop AutoTMF Software Commands ALTER MAPDB [SWAP]KMSF { ON | OFF } enables or disables KMSF swapfile allocation. If an error occurs on the swapfile allocation, the runtime reverts to the normal swapfile allocation, either using the SWAPVOLn global specification or the default swapfile. The default is OFF.
NonStop AutoTMF Software Commands ALTER MONITOR cpu (in the range of 0 to 15) of the backup monitor processes. Used when the monitor process is started. HOMETERM file-name home terminal for the monitor process. Used when the monitor process is started. If not specified, HOMETERM is set to EMS collector $0. MONITOR process-name NonStop AutoTMF software monitor process to associate with the MapDB subvolume. The name must be 5 characters long including the $. The default is $ZESC.
NonStop AutoTMF Software Commands ALTER LOCAL cpu (in the range of 0 to 15) of the backup monitor processes. Used when the monitor process is started. CACHEKB size specifies in kilobytes the amount of memory to be allocated for caching NonStop AutoTMF software file and program attributes. The size ranges from 100 kilobytes to 127 megabytes, the maximum extended segment size. Approximately 32K of this cache is reserved for internal uses. HOMETERM file-name home terminal for the monitor process.
NonStop AutoTMF Software Commands • • • COMMENT (or “--”) a constant expression operator expression expression constant specifies 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 command interpreter to ignore the remainder of the current line. COMMENT may not appear within the lines of a multiline command.
NonStop AutoTMF Software Commands COPY COPY Similar to the FUP COPY command with enhancements. Copies records from an input file to an output file.
NonStop AutoTMF Software Commands COPY out-options is: { { { { { { { { { { { { { { { { { { { BLOCKOUT n 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 file containing data to be copied; can be a process, tape, terminal, or disk file.
NonStop AutoTMF Software Commands COPY FIRST ordinal-record-num 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. The first record in a file is record zero. KEY { record-spec | key-value } the primary key value for the starting record or row of a structured disk file. record-spec is an integer on the range of 0 to 4294967295.
NonStop AutoTMF Software Commands COPY value is used. The default is device dependent: 80 bytes for terminal, 132 bytes for process and unstructured files. COMPACT | NO COMPACT zero length records should (or should not) be skipped when copied to the output file. The default is COMPACT. COMPACT applies only for copying relative files COMP[ARELEN] n use generic positioning for compare length n on the record key (primary or alternate) specified in the FIRST KEY option.
NonStop AutoTMF Software Commands COPY TRIM trim-character delete any trailing character matching the trim-character. The character is specified in ASCII using quotation marks or as an integer in the range 0 to 255. UNLOADIN | NO UNLOADIN (magnetic tapes only) input tape is unloaded (or not unloaded) after the tape has been rewound. The default is UNLOADIN. This also applies to labeled tapes. UNSTRUCTURED open and access the input file using the unstructured option.
NonStop AutoTMF Software Commands COPY without rewinding. The default is REWINDOUT. This option also applies to labeled tapes. UNLOADOUT | NO UNLOADOUT (magnetic tapes only) output tape is unloaded (or not unloaded) after rewinding. The default is UNLOADOUT. This option also applies to labeled tapes. UNSTROUT opens and writes the output file using the unstructured access option. This option is used for Enscribe unstructured files or structured files where the file structure is ignored.
NonStop AutoTMF Software Commands CPUS NO HEAD omit the heading preceding each record when one of the display-options is specified. CPUS Displays the CPU configuration of a node. CPUS [ node-name ]; node-name a node in the Expand network. The default is the local system CREATE MAPDB Creates a set of SQL tables used to configure NonStop AutoTMF software and configures the associated NonStop AutoTMF software monitor process.
NonStop AutoTMF Software Commands CREATE SYSDB option CATALOG SQL-catalog SQL catalog where MapDB tables are to be registered. The catalog may also be specified either by the VOLUME command or by specifying a catalog attribute for the =_DEFAULTS define. If omitted, the tables are registered in the catalog where SysDB tables are registered. SECURE "rwep" specifies the READ, WRITE, EXECUTE and PURGE security attributes of MapDB tables.
NonStop AutoTMF Software Commands DEADLOCK SysDB must be created on an audited volume. CREATE SYSDB [ ON volume ] [, option ]; option is { CATALOG SQL-catalog { { SECURE "rwep" } } } volume volume where SysDB will be created. The default is $SYSTEM. option CATALOG SQL-catalog SQL catalog where SysDB tables are to be registered. The catalog may also be specified either by the VOLUME command or by specifying a catalog attribute for the =_DEFAULTS define.
NonStop AutoTMF Software Commands DELAY by another holder, creating an n-way deadlock. Additional records are locked that are not material to the deadlock. The default depth is 2. TIME 2-to-n-seconds the duration of the deadlock in seconds where n is between 2 and 600. The deadlock can be stopped by entering the break key. The default is 60 seconds. Note. If any transactional activity has occurred in ESCORT CI before the DEADLOCLK command is issued, DEADLOCK fails with an error 13 on the OPEN of $TMP.
NonStop AutoTMF Software Commands DROP MAPDB difference between the commands is that instead of a READ of the source file, it uses READUPDATELOCK operations that dequeue (and therefore delete) each record as it is read from the queue file. Full transaction support is provided. If both input and output files are audited, one transaction provides consistency of dequeues and inserts. The DEQUEUE command terminates if the queue is empty.
NonStop AutoTMF Software Commands EXIT 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. FACTOR constant; constant an ordinary decimal constant with or without a decimal point, or a binary, octal, or hexadecimal integer prefixed by %b, %, or %h respectively.
NonStop AutoTMF Software Commands FILES file-set is a TACL-style file name pattern specifying a collection of files. If file-set is not specified, the current subvolume is assumed. DETAIL displays detailed information. If not specified, the CI displays one line of information per file in the file-set. FID file-set abbreviates FILEINFO DETAIL. FILES Displays the 8-character filename of the files in the file-set. FILES file-set; file-set is a TACL-style file name pattern specifying a collection of files.
NonStop AutoTMF Software Commands HELP requests the list of all NonStop AutoTMF software commands available. autotmf-command [ DETAIL | EXAMPLES ] is a NonStop AutoTMF software command. Help displays the syntax and description of the command. Multi-word commands are entered with hyphens. For example, to obtain help on ADD AUTOTMFFILESET, type: HELP add-autotmffileset; If DETAIL is specified, a description of the command parameters is displayed in addition to the syntax.
NonStop AutoTMF Software Commands HISTORY HISTORY Lists the saved commands in the history buffer. These commands can be run using the FC or bang (!) commands. HISTORY count; count the number of commands to display. The default is 10. If fewer commands are in the history buffer, all commands will be displayed. INFO ATMFFILESET Displays a configuration for a file set defined with the ADD ATMFFILESET command.
NonStop AutoTMF Software Commands INFO GLOBALS INFO GLOBALS Displays the list of configured NonStop AutoTMF software global parameters. INFO GLOBAL[S] [,OBEYFORM]; OBEYFORM displays a list of the ALTER GLOBAL commands that were entered to modify the default global values. See command ALTER GLOBAL above for a list of global parameters and values. INFO LIBRARY Displays a list of processes that use the specified file as a user library. INFO LIBRARY filename [, STOP ]; filename the name of a user library.
NonStop AutoTMF Software Commands INFO MAPDB INFO MAPDB Displays information about the MapDBs in SysDB. INFO MAPDB { * | subvolume } [, DETAIL ]; * displays information for all configured MapDBs. subvolume an existing MapDB subvolume. INFO PREPARE Lists the external procedure names that are retargeted by the PREPARE command and intercepted by the NonStop AutoTMF software runtime library.
NonStop AutoTMF Software Commands INFO PROGRAM INFO PROGRAM Displays information about object files. If NonStop AutoTMF software program attributes are configured for an object file in the file set specified, these attributes are also displayed.
NonStop AutoTMF Software Commands INFO PROGRAM used to analyze the prepared state of object files. See Preparing TNS Programs on page 3-3 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 Software Commands INFO PROGRAM PROC[EDURE]S [, OCA ] [, AXL ] lists the procedures in 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.
NonStop AutoTMF Software Commands LABELDISPLAY (LD) LABELDISPLAY (LD) Displays label information for the specified table or view, such as catalog name, audit compression, columns data types, primary and alternate key columns, partitions, allocated extents, and so on. The command can be abbreviated to LD. L[ABEL]D[ISPLAY] sql-table [ ALLP[ARTS] | ALLI[NDEXES] ] ; sql-table a SQL table or View. ALLP[ARTS] displays the labels of all partitions of the table.
NonStop AutoTMF Software Commands LISTLOCKS (LL) displays files opened for write or update access only LISTLOCKS (LL) Displays granted and waiting lock requests for a file set. This command differs from FUP LISTLOCKS: NonStop AutoTMF software 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 Software Commands LISTLOCKS (LL) 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.
NonStop AutoTMF Software Commands LOG H[EX] display the lock key is in hexadecimal. This is useful for cases where the key fields are not ASCII. NOI[TENT] eliminates the display of intent locks. Intent locks are generally used to prevent another process or transaction from gaining a file lock while a record lock is held. RESOLVE specified in conjunction with DEADLocks, allows the user to resolve a detected deadlock.
NonStop AutoTMF Software Commands MODIFY AUTOTMF clears the log file of existing data. STOP closes the current log file and stops logging. 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 Software Commands MODIFY MAPDBS MODIFY MAPDBS Copies all entries of MAPDBS that were defined for the system called nodename and creates the same entries for the local system. If the MAPDBS entry is already defined on the local system, the MAPDBS entry is not copied from the original system.
NonStop AutoTMF Software Commands NSKFIXUP NSKFIXUP Operates on a collection of object files to alter the user library, causing the operating system to perform an object file fixup. Prevents the “library conflict” error that can occur when multiple instances of the same program are started concurrently and an operating system fixup is required. The fixup is required when a program is compiled, bound, prepared, or moved, after a system cold load or when the user library is changed.
NonStop AutoTMF Software Commands OBEY restricts the processing of the command to the designated object file types: code 100 files for TNS, code 700 files for TNSR, and code 800 files for TNSE. 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.
NonStop AutoTMF Software Commands PREPARE Only complete programs are prepared. Object files with no main procedure are either user libraries or components to be bound with other object files; these are skipped by the command.
NonStop AutoTMF Software Commands PREPARE specifies an object file to set as the user library for the prepared object file. If the library does not contain the NonStop AutoTMF software runtime library, an error message is displayed and the object files are not prepared. If this parameter in omitted, the user library is one of: • • The program’s current user library which must be bound with the NonStop AutoTMF software runtime library.
NonStop AutoTMF Software Commands PROGINFO (PI) about how to combine the NonStop AutoTMF software runtime library with a user library. PREPARE preserves existing references to user libraries and checks that the references are properly prepared before preparing the programs. Note. Preparing a licensed privileged program removes the license attribute of the object file. You must re-license the program after it has been prepared. PROGINFO (PI) Displays information about object files.
NonStop AutoTMF Software Commands PURGEDATA AFTER filename specifies the starting file to display, which is the first file that alphabetically follows the specified filename. .START filename specifies 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.
NonStop AutoTMF Software Commands RESET LOCAL RESET LOCAL Resets the value of a local parameter to its default value, which is the value of the corresponding global parameter. RESET GLOBAL [ local-parameter | * ]; local-parameter 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-34. * resets all local parameters to their default (global) value. RUN[D] Runs a program during a CI session.
NonStop AutoTMF Software Commands START MONITOR START MONITOR Starts a NonStop AutoTMF software monitor process for one MapDB or all MapDBs. START MONITOR { process | mapdb } [, option ]; option is: { { { { { { { { PRIMARY cpu-number BACKUP cpu-number PRIORITY process-priority HOMETERM file-name } } } } } } } } process specifies the name of the NonStop AutoTMF software monitor process to be started. mapdb specifies the subvolume of a MapDB.
NonStop AutoTMF Software Commands STATS 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 is an Enscribe file name. STATUS MONITOR Determines the status of the monitor process by sending the monitor inquiries. STATUS MONITOR [ * | [\sys.]process-name | mapdb ]; * queries all configured monitor processes. [\sys.
NonStop AutoTMF Software Commands STOP PROCESS specifies the name of the NonStop AutoTMF software monitor process to be stopped. The default is the current monitor for the session. mapdb specifies the subvolume of a MapDB. 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 NonStop AutoTMF software to commit all active automatic transactions.
NonStop AutoTMF Software Commands TRACE Tracing is a diagnostic tool for NonStop AutoTMF software problems. The TRACE command should be used with caution in a production environment. Note that the user should not rely on the current format of the trace output remaining the same over time. The output format of the trace is subject to change.
NonStop AutoTMF Software Commands TRACE The trace file can be an Edit file. Edit files provide for the most efficient tracing, but an Edit trace file can be opened by only one process at a time. trace-index The runtime allows for 32 concurrent active traces. This value from 0 to 31 assigns an index to the tracing operation. If the option is omitted, the runtime assumes trace-index 0. When a user is allocated a trace index, the user owns the entry until the trace expires or is stopped.
NonStop AutoTMF Software Commands TRACE process-spec PROGRAM object-file-name | fileset restrict tracing to a selected 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,* restrict tracing to a selected set of processes. If PROCESS is used with the DEBUG option, the process must be uniquely specified (not as a pattern).
NonStop AutoTMF Software Commands UNPREPARE specifies that each process trace should be written to a separate trace file. Otherwise, all traces for a specific trace definition are written to the file specified in the command. When specifying SEPARATE, the trace file name must not have more than five characters, as a three-digit sequence number is appended to the file name to create unique file names (TRACE000, TRACE001, and so on). The collection of trace files is managed by the user.
NonStop AutoTMF Software Commands UNPREPARE a file pattern that describes a collection of application program files to be prepared. option AFTER filename specifies the starting file for the operation. The first file unprepared is the one that alphabetically follows the specified filename. ALLOWDUPLICATES forces the unprepare of an object file that contains a mixture of prepared and unprepared procedures and for which this operation will create duplicate external references.
NonStop AutoTMF Software Commands UNPREPARE By specifying NOOCA, UNPREPARE never processes a program using OCA. If the preparation invalidates the OCA region, the program runs in interpreted mode, unless you manually process the program using OCA. START filename specifies the starting file to unprepare in fileset. name, the current NonStop AutoTMF software runtime library will be used.
NonStop AutoTMF Software Commands UPDATE UPDATE Modifies records in an Enscribe file. The syntax for specifying records to update is the same as the COPY command.
NonStop AutoTMF Software Commands UPDATE sets the compare length for generic positioning on the record key (primary or alternate) specified in the FIRST KEY option. n is between 1 and 255 and must be less than or equal to the key specified. COUNT num-records is the number of records or rows to be copied. If omitted, all records are copied FIRST ordinal-record-num specifies the starting record of the input file to copy. If omitted, the copy starts at the first record or row in the input file.
NonStop AutoTMF Software Commands UPDATE ALTKEY key-value [, key-value ] specifies the alternate key of the starting record or row. The format of keyvalue is described above. EXACT requests exact positioning on the record key (primary or alternate) specified in the FIRST KEY option. FROMLAST positions on the last record in the key range specified in the FIRST KEY option. REVERSE reads the input file from the starting record in reverse order. SHARE opens the file in share exclusion mode.
NonStop AutoTMF Software Commands UPGRADE MAPDB UPGRADE MAPDB Creates additional tables in an existing MapDB. The tables are created if required for a new release of NonStop AutoTMF software. The CI prompts you to issue the command when necessary. UPGRADE MAPDB subvol; subvol the name of the MapDB subvolume to upgrade. VOLUME Changes the default volume and/or subvolume for filename expansion. VOLUME can be abbreviated to V. V[OLUME] [ volume | subvolume | volume.
NonStop AutoTMF Software Commands STATUS Activities that are logged include: • • • • • • • • Starting and stopping the log. Any errors obtaining configuration information from MapDB. Monitor opens and closes by requesting processes. The result of ATMFFILESET and ATMFPROGRAM configuration requests. Any mismatch between an NonStop AutoTMF software runtime library and the monitor or MapDB. Fault tolerance process events, such as a backup process takeover. Local CPU failures and reloads.
NonStop AutoTMF Software Commands BACKUPCPU The command option is a single character and is a Guardian security specifier. The command requestor must match the monitor process access id at the specified security level. BACKUPCPU The BACKUPCPU command specifies the cpu for the monitor backup process. MONITOR BACKUPCPU [ cpu ] cpu specifies the cpu number where the monitor backup process should be started. If omitted, the backup process is terminated.
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 System Database The System Database (SysDB) consists of two SQL tables: • • MAPDBS to store the description of map databases and associated monitor processes.
System Management Map Database Map Database A Map Database (MapDB) contains NonStop AutoTMF software configuration information for selected files and programs. In this release, the MapDB subvolume contains two SQL tables: • • • ATMFATTR to store NonStop AutoTMF software file configuration. ATMFPROG to store NonStop AutoTMF software program configuration. REGISTRY to store NonStop AutoTMF default configuration parameter values referred to as locals.
System Management Starting a Monitor 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 NonStop AutoTMF software configuration for specific files.
System Management Configuring and Using an Alternate NonStop AutoTMF Environment In general, processes executing when the monitor is stopped will operate as if NonStop AutoTMF software were not installed. No automatic transaction management will occur. If a program attempts to access an audited file without a transaction, it will typically encounter an error and fail. In normal situations, the monitor process should be stopped only after all programs that access audited files have been stopped.
System Management Configuring an Alternate MapDB alternate 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.
System Management Configuring an Alternate MapDB 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.
System Management • Configuring an Alternate SysDB 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 NonStop AutoTMF software 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.
System Management Migration Steps 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.
System Management Runtime Library 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.
System Management TNS/R Library 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.
System Management HIGHPIN Attribute 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 NonStop AutoTMF software 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.
System Management Updating the Runtime Library 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.
System Management TNS Host Runtime Language Libraries 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.
System Management TNS/R Host Runtime Language Libraries TNS/R Host Runtime Language Libraries As described in Preparing TNS Programs, there are to classes of TNS/R NonStop AutoTMF software runtime libraries: ESCRUNN/ESCRUNNT for PTAL only programs, ESCRUNNL and ESCRUNNM for COBOL and C programs. The following tables describes the host-language product release files that are included in the NonStop AutoTMF software TNS/R runtime libraries: Table A-2.
System Management TNS/E Host Language Runtime DLLs 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.
System Management Transporting Applications 3. Run the generated command. 4. Prepare the rebased DLL. The example below installs a new version of the COBOL DLL: AutoTMF 1?proginfo $SYSTEM.ZDLL044.ZCOBDLL,rebase; ELD -alf $SYSTEM.ZDLL044.ZCOBDLL -t 0 -d D0000 -o $SYSTEM.ESCORT.zcobdll AutoTMF 2? ELD -alf $SYSTEM.ZDLL044.ZCOBDLL -t 0 -d D0000 -o $SYSTEM.ESCORT.
System Management Security and Availability 1. When the CI is started, it obtains the version of SysDB and MapDB. If the versions do not match, you might be able to upgrade the affected tables. Consult the NonStop AutoTMF software SOFTDOC file if this occurs. 2. The CI also requests the version from the selected monitor process, which must match the expected version in the CI. 3. Whenever the CI opens a new monitor, the version checks are made for both the monitor process and the associated MapDB. 4.
System Management Data File Access Security Data File Access Security All application data access is performed using standard, non-privileged, operations from the application process. The form of access may be altered (such as to perform additional Enscribe operations), but these operations are subject to the same security control as provided for all application access to data. Object File Access Security Normally, only execute access authority is required to run a program.
System Management Configuration Security Mapping Database Security Security of the Mapping Database (MapDB) is less of an issue than the security of the SysDB as long as the personnel accessing and updating it can be expected to act responsibly. Often, personnel in operations, development, testing, and production control update the MapDB for their own file and program entities.
System Management • • Executing Prepared Applications A user issues a TRACE command that causes a selected process or processes to be traced or enter debug. Some other user starting a process may not know that the process is being traced or debugged. A user specifies DEFINEs, such as =_ESCORT_STATEMENT_TRACE when executing the process; in this case, the user has control over tracing and debugging.
System Management EMS Logging A template called ZESCTMPL is shipped with the product and can be combined with existing templates to use with Viewpoint or any EMS distributor. The EMS filter file ESCFLTR is supplied in the product subvolume to configure an EMS distributor process to display NonStop AutoTMF software events.
System Management EMS Logging HP NonStop AutoTMF Software User’s Guide—429952-013 A-22
B Special DEFINEs Introduction You can use Guardian DEFINEs to enable a number of NonStop AutoTMF software optional features or to provide diagnostic and management information. Defines are useful to test a NonStop AutoTMF software feature for a selected program, without altering the existing configuration. Configure NonStop AutoTMF software features using the CI commands provided when possible, because this is easier and less error-prone than using DEFINEs.
Special DEFINEs DEFINE Types Table B-1. Runtime DEFINES (continued) DEFINE Name Description =_ESCORT_ATMF_OFF Disables NonStop AutoTMF software for a prepared program. =_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_ON Enables dynamic tracing of a prepared program.
Special DEFINEs Runtime 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.
Special DEFINEs =_ESCORT_ATMF_NOWAIT =_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 NonStop AutoTMF software for a process with the =_ESCORT_ATMF_OFF DEFINE.
Special DEFINEs =_ESCORT_ATMF_WAITED 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.
Special DEFINEs =_ESCORT_DYNAMIC_TRC_ON =_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.
Special DEFINEs =_ESCORT_OPTMZUNLOCKSOFF Non TMF-aware applications sometimes issue a blanket call to UNLOCKFILE to release all locks rather than managing locks individually. When optimization is enabled: • • NonStop AutoTMF software eliminates the call to UNLOCKFILE.
Special DEFINEs =_ESCORT_STATEMENT_DATA 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 does occur if the file is not audited and can cause problems for programs that are not expecting to encounter such records. Specifying this define precludes the program from reading unexpected null records.
Special DEFINEs =_ESCORT_SUPPRESS_AUDIT Each entry is timestamped and contains the name (or CPU, pin) of the calling process. The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_STATEMENT_TRACE, CLASS MAP, FILE filename The file specified by this DEFINE is opened when the process is executed. The file should be a process, a terminal, an entry-sequenced file with a record length of at least 132 bytes, or an Edit file. If a disk file does not exist, the file is created.
Special DEFINEs =_ESCORT_SUPPRESS_INHRTX =_ESCORT_SUPPRESS_INHRTX This define causes NonStop AutoTMF software to ignore transactions inherited by a process through $RECEIVE, which is equivalent to configuring the ATMFPROGRAMS attribute SUPPRESSINHERITEDTX. ADD DEFINE =_ESCORT_SUPPRESS_INHRTX, CLASS MAP, FILE X The file specified is ignored. A non TMF-aware server may inherit a transaction from a TMF-aware requester when reading $RECEIVE.
Special DEFINEs =_ESCORT_MONITOR The DEFINE is added with the following TACL command: ADD DEFINE =_ESCORT_MONITOR, CLASS MAP, FILE $xxxx Alternate MapDBs are typically created to test a new version of NonStop AutoTMF software. By issuing the INFO MAPDB * or STATUS MONITOR * commands in the CI, you can determine the currently defined monitor process names. A monitor process name must contain exactly 5 characters, including the $. The default monitor process name is $ZESC.
Special DEFINEs =_ESCORT_MONITOR HP NonStop AutoTMF Software User’s Guide—429952-013 B-12
C Problem Resolution HP NonStop AutoTMF software is designed to be invisible to an application program. NonStop AutoTMF software 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 NonStop AutoTMF software problems may be difficult.
Problem Resolution Program Failures (ABEND) If NonStop AutoTMF software stops or aborts a program due to a TMF environmental error, a message describing the error sent to the EMS log to alert the operator of the failure. Other errors Program failures can be caused by configuration problems, by defects in the runtime library, or by defects in a program.
Problem Resolution Locking Problems Locking Problems Contention and Deadlocks Audited files are subject to different locking protocols than non-audited files. When accessing audited files, locking is enforced by TMF to maintain data integrity. An application that was not designed for audited files may incur concurrency problems once locking is dictated by more stringent rules. The table below compares nonaudited and audited locking rules: Table C-1.
Problem Resolution Incorrect Behavior Long-Running Transactions Long-running transactions can lead to unilateral aborts if the TMF AutoAbort time limit is reached. Unilateral aborts can have a severe impact on an application because all non-committed updates from a process are rolled back. Long-running transactions result from locks that are not being released by the process, thus preventing NonStop AutoTMF software from committing the automatic transaction.
Problem Resolution NonStop AutoTMF Software Errors NonStop AutoTMF Software Errors Monitor Process Errors The monitor is a fault-tolerant process pair designed to be continuously available. All warning and error messages reported by the monitor are displayed on the monitor’s home terminal or, if no home terminal has been configured explicitly, to the default EMS collector.
Problem Resolution • • • EMS Log Because Enscribe procedure calls are intercepted by the NonStop AutoTMF runtime, you can set a breakpoint on an Enscribe procedure such as OPEN, READ, WRITE, so on, and step into the procedure code. If this occurs, just step out of the procedure code and resume debugging. You can see the open of the TFILE ($TMP) when displaying the files opened by the program.
Problem Resolution Tracing parameters. Some attributes can be specified with DEFINEs. If a prepared program does not behave as expected, first check configuration parameters. 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 NonStop AutoTMF software configuration for selected audited files (SEPARATEX, COMMONTX, and so on), use INFO ATMFFILESET. To configure files, use ADD ATMFFILESET.
Problem Resolution Tracing Remember that tracing is a diagnostic tool. As such, tracing can generate large amounts of data. Tracing should be used with caution in any production environment and not at all in performance critical environments. Tracing is initiated in two ways: • • The CI TRACE command. DEFINEs You can trace a single process or all instances of a running program. Up to eight such traces, numbered 0 to 31, can be active simultaneously. Static vs.
Problem Resolution Tracing Trace Files The trace output can be written to a disk file or terminal. If the disk file specified does not exist, it as created as an entry-sequenced file. Tracing to an Edit file is more efficient than the alternatives; an Edit file can only have one updater, so only one process at a time can be traced to an Edit file. Some restrictions on tracing may be applied for security reasons.
Problem Resolution Tracing 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.
Problem Resolution • Problem Reporting Audited - NonStop AutoTMF software disabled or 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.
Problem Resolution Prepared Program Incorrect Behavior or Failure If ESCMON or ESCORT fail, send the following information: • • • • • A description of the problem, its repeatability, frequency (if applicable), how to recreate the problem, and so on. The saveabend file. The text of the message on the home terminal or EMS log. VPROC output of the failing ESCMON or ESCORT object file. The global parameter values output by INFO GLOBALS.
Problem Resolution • • • Locking Problems, Long Running Transactions, Errors 35 or Performance Problems The output of LISTLOCKS (LL) at the time of the problem occurred to identify which file is in contention. A trace of the programs that access the file in contention. The output of INFO ATMFFILESET, INFO ATMFPROGRAMS and INFO GLOBALS to understand the file and program attributes and global settings.
Problem Resolution Locking Problems, Long Running Transactions, Errors 35 or Performance Problems HP NonStop AutoTMF Software User’s Guide—429952-013 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.
Critical Event Messages Error Messages 150 AutoTMF message Cause. A message from NonStop AutoTMF software 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.
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 NonStop AutoTMF software 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 NonStop AutoTMF software configuration. 422 Program calls unsupported SRL procedure Cause.
Action Event Messages Error Messages 430 Process was stopped by user request Cause. An authorized user requested a NonStop AutoTMF software 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).
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.
Glossary transactional program.
Index Symbols $ZESC 2-8 A AFTER option in INFO PROGRAM 6-62 option in PREPARE 6-73 option in PROGINFO 6-76 option in UNPREPARE 6-85 ALL option in HELP 6-57 ALLOWDUPLICATES option in PREPARE 6-73 option in UNPREPARE 6-85 Alternate swap volumes A-20 ATMF option in ALTER GLOBAL 6-35 ATMFABENDNOAUDIT option in ALTER GLOBAL 6-35 ATMFATTR A-2 ATMFAUDITRENAME option in ALTER GLOBAL 6-35 ATMFAUTOCOMMIT option in ALTER GLOBAL 6-35 ATMFCOMMONTX option in ALTER GLOBAL 6-36 ATMFISOLATION option in ALTER GLOBAL 6-36 AT
AXCEL option in NSKFIXUP 6-71 AXLCHECK option in INFO PROGRAM 6-63 B BACKUP option in ALTER MAPDB 6-41 option in ALTER MONITOR 6-42 option in CREATE MAPDB 6-52 option in START MONITOR 6-78 BLOCKIN option in COPY 6-47 BLOCKOUT option in COPY 6-49 BUFFERED option in ALTER FILE 6-32 BYFILE option in LISTLOCKS 6-66 BYHOLDER option in LISTLOCKS 6-66 C CATALOG option in CREATE MAPDB 6-52 option in CREATE SYSDB 6-53 CLEAR option in TRACE 6-83 CLEARONPURGE option in ALTER FILE 6-32 COBOL option in INFO PROGRAM 6-
EDIT option in TRACE 6-83 EMSCOLLECTOR option in ALTER GLOBAL 6-40 ENABLE Preparing 5-5 Entry-sequenced files 6-10, 6-11, 6-22, 6-23, 6-38 Error 49 Unstructured Access 4-16 Error 80 Unstructured Access 4-16 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-8 monitor error logging C-5 monitor failures C-5 reporting problems C-11 ESCERROR 2-3 ESCFLTR 2-3 ESCHELP 2-3 ESCMON 2-3 ESCORT 2-3 ESCORT CI diagnostic commands
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-6 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-26 Isolation Normal 4-7 Strong 4-8 Weak 4-7 K KEYS option in TRACE 6-82 KMSF option in ALTER GLOBAL 6-41 L Large Transfer 4-16 LIBRARY option in NSKFIXUP 6-71 option in PREPARE 6-73 option in UNPREPARE 6-85 LICENSE M
N NO VERIFIEDWRITES option in ALTER FILE 6-33 NOITENT option in LISTLOCKS 6-68 NOPURGEUNTIL option in ALTER FILE 6-32 NOTX option in ADD ATMFFILESET 6-9 option in ADD ATMFPROGRAMS 6-15 option in ALTER ATMFFILESET 6-21 option in ALTER ATMFPROGRAMS 6-27 NOTX option in ALTER ATMFFILESET 6-21 Nowait transactions 4-8 NOWAITTX option in ADD ATMFFILESET 6-9 option in ADD ATMFPROGRAMS 6-16 option in ALTER ATMFFILESET 6-21 option in ALTER ATMFPROGRAMS 6-28 NOWARNLONGTX option in ADD ATMFFILESET 6-9 option in ADD ATM
invalid user library 3-12 library conflict 3-12 object code 3-1 privileged programs 3-2 size of the object file 3-2 status of an object file 3-12 user libraries 3-7 PROGRAMS option in INFO PROGRAM 6-64 Q option in ALTER FILE 6-32 RESOLVE option in LISTLOCKS 6-68 REVERSE option in COPY 6-48 option in UPDATE 6-89 REWINDIN option in COPY 6-48 REWINDOUT option in COPY 6-49 S Queue Files 5-7 R READNULLRECS option in ADD ATMFFILESET 6-10 option in ALTER ATMFFILESET 6-22 READTHRULOCK option in ALTER ATMFFILES
SKIPMATCH option in COPY 6-48 option in UPDATE 6-89 SKIPNULLRECS option in ADD ATMFFILESET 6-11 option in ALTER ATMFFILESET 6-23 Spooler preparing 5-5 spool data file creation 5-5 SPOOLER files 5-3 SRL 3-4 START option in INFO PROGRAM 6-62 option in PREPARE 6-74 option in PROGINFO 6-76 option in UNPREPARE 6-86 STATUS Monitor command 6-91 STOP option in TRACE 6-84 STOPONTMFERR option in ADD ATMFPROGRAMS 6-17 option in ALTER ATMFPROGRAMS 6-29 SUMMARY option in LISTLOCKS 6-68 SUPPRESSINHERITEDTX option in ADD
option in TRACE 6-84 TRIM option in COPY 6-49 TXSTATUS option in LISTLOCKS 6-68 TXTIMEOUT option in ADD ATMFFILESET 6-11, 6-18 option in ALTER ATMFFILESET 6-23 option in ALTER ATMFPROGRAMS 6-30 U Unilateral Aborts 4-17 UNLOADIN option in COPY 6-49 UNLOADOUT option in COPY 6-50 UNPREPARED option in INFO PROGRAM 6-63 UNRESOLVED option in INFO PROGRAM 6-64 UNSTROUT option in COPY 6-50 UNSTRUCTURED option in COPY 6-49 UPDATE option in COPY 6-50 UPSHIFT option in COPY 6-47 USERLIB option in PREPARE 6-74 option