HP NonStop G-Series Reference guide

  • Hello! I am an AI chatbot trained to assist you with the HP NonStop G-Series Reference guide. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
SQL/MX Connectivity
Service Administrative
Command Reference
Abstract
This manual describes the ODBC administrative commands running in the HP
NonStop™ SQL/MX Connectivity Service (MXCS) environment and accessed through
the SQL/MX conversational interface (MXCI). These commands support manipulation
of the logical objects that define the user-visible attributes of the SQL/MX connectivity
service (MXCS).
Product Version
MXCS ACL 1.1 APB
Supported Release Version Updates (RVUs)
This manual supports J06.03 and all subsequent J-series RVUs, H06.03 and all
subsequent H-series RVUs, and G06.23 ABA and all subsequent G-series RVUs until
otherwise indicated by its replacement publications.
Part Number Published
526350-005 July 2013
Document History
Part Number Product Version Published
526350-001 MXCS ACL 1.0 April 2004
526350-002 MXCS ACL 1.1 ABA August 2004
526350-003 MXCS ACL 1.1 ABO March 2005
526350-004 MXCS ACL 1.1 APB February 2013
526350-005 MXCS ACL 1.1 APB July 2013
Legal Notices
Copyright 2013 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. The only warranties for HP
products and services are set forth in the express warranty statements accompanying such products
and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be
liable for technical or editorial errors or omissions contained herein.
Export of the information contained in this publication may require authorization from the U.S.
Department of Commerce.
Microsoft, Windows, and Windows NT are U.S. registered trademarks of Microsoft Corporation.
Intel, Itanium, Pentium, and Celeron are trademarks or registered trademarks of Intel Corporation or its
subsidiaries in the United States and other countries.
Java is a registered trademark of Oracle and/or its affiliates.
Motif, OSF/1, UNIX, X/Open, and the "X" device are registered trademarks and IT DialTone and The
Open Group are trademarks of The Open Group in the U.S. and other countries.
Open Software Foundation, OSF, the OSF logo, OSF/1, OSF/Motif, and Motif are trademarks of the
Open Software Foundation, Inc.
OSF MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THE OSF MATERIAL PROVIDED
HEREIN, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
OSF shall not be liable for errors contained herein or for incidental consequential damages in
connection with the furnishing, performance, or use of this material.
© 1990, 1991, 1992, 1993 Open Software Foundation, Inc. This documentation and the software to
which it relates are derived in part from materials supplied by the following:
© 1987, 1988, 1989 Carnegie-Mellon University. © 1989, 1990, 1991 Digital Equipment Corporation.
© 1985, 1988, 1989, 1990 Encore Computer Corporation. © 1988 Free Software Foundation, Inc.
© 1987, 1988, 1989, 1990, 1991 Hewlett-Packard Company. © 1985, 1987, 1988, 1989, 1990, 1991,
1992 International Business Machines Corporation. © 1988, 1989 Massachusetts Institute of
Technology. © 1988, 1989, 1990 Mentat Inc. © 1988 Microsoft Corporation. © 1987, 1988, 1989,
1990, 1991, 1992 SecureWare, Inc. © 1990, 1991 Siemens Nixdorf Informationssysteme AG. © 1986,
1989, 1996, 1997 Sun Microsystems, Inc. © 1989, 1990, 1991 Transarc Corporation.
This software and documentation are based in part on the Fourth Berkeley Software Distribution
under license from The Regents of the University of California. OSF acknowledges the following
individuals and institutions for their role in its development: Kenneth C.R.C. Arnold,
Gregory S. Couch, Conrad C. Huang, Ed James, Symmetric Computer Systems, Robert Elz. © 1980,
1981, 1982, 1983, 1985, 1986, 1987, 1988, 1989 Regents of the University of California.
Printed in the US
Hewlett-Packard Company526350-005
i
SQL/MX Connectivity Service
Administrative Command
Reference
Index Figures
What’s New in This Manual
Manual Information v
New and Changed Information v
About This Manual vii
Audience vii
Related Documentation vii
Notation Conventions x
1. MXCS Architecture Overview
Features and Functionality 1-1
Architecture Overview 1-2
User Interface With MXCI 1-4
General Features 1-4
Software Installation 1-5
Starting, Leaving, and Ending MXCI 1-5
Complex System Configuration 1-5
Error Message Overview 1-7
2. MXCS Commands and Objects
MXCS Administrative Command Names 2-1
MXCS Object Types 2-2
Object Ownership Hierarchy
2-2
Object Ownership Complexity
2-2
Valid Command and Object Type Pairs 2-3
Command Rules and General Syntax
2-3
Command Termination
2-3
Fields or Tokens in Commands
2-4
General MXCS Administrative Command Syntax
2-5
Command Syntax Case 2-5
Object Name Components
2-5
DS Name and EVAR Name
2-7
Default Object Name 2-7
Contents
SQL/MX Connectivity Service Administrative Command Reference526350-005
ii
3. Object Service Commands
Command Size Limit 2-8
Single Quotes for Attribute Values 2-8
Double Quotes for Object Names 2-8
Empty Quoted Strings 2-8
Command Caveats 2-9
Output Report Syntax and Conventions 2-9
Security 2-10
Example MXCS Configuration 2-10
Related Commands 2-11
MXCI Mode Command 2-12
Session Variables 2-12
MXCI Comment 2-12
3. Object Service Commands
INFO SERVICE 3-2
Considerations—INFO SERVICE 3-2
Output Report States—INFO SERVICE 3-3
Examples—INFO SERVICE 3-3
START SERVICE 3-4
Considerations—START SERVICE 3-4
Example—START SERVICE 3-4
STOP SERVICE 3-5
Considerations—STOP SERVICE 3-6
Example—STOP SERVICE 3-6
VERSION SERVICE 3-7
Considerations—VERSION SERVICE
3-7
Example—VERSION SERVICE
3-7
4. Object Server Commands
INFO SERVER 4-2
Considerations—INFO SERVER 4-3
Output Report—INFO SERVER
4-3
Example—INFO SERVER
4-3
STOP SERVER 4-5
Considerations—STOP SERVER
4-5
Example—STOP SERVER
4-6
5. Object DS Commands
ADD DS 5-2
Considerations—ADD DS 5-6
Contents
SQL/MX Connectivity Service Administrative Command Reference526350-005
iii
6. Object EVAR Commands
Examples—ADD DS 5-7
ALTER DS 5-8
Considerations—ALTER DS 5-12
Examples—ALTER DS 5-12
DELETE DS 5-14
Considerations—DELETE DS 5-14
Example—DELETE DS 5-15
INFO DS 5-16
Considerations—INFO DS 5-17
Examples—INFO DS 5-17
START DS 5-20
Considerations—START DS 5-20
Example—START DS 5-20
STOP DS 5-21
Considerations—STOP DS 5-22
Examples—STOP DS 5-22
6. Object EVAR Commands
EVAR Types 6-1
EVAR Order 6-2
ADD EVAR 6-3
Considerations—ADD EVAR 6-4
Example—ADD EVAR 6-4
ALTER EVAR 6-6
Considerations—ALTER EVAR 6-7
Example—ALTER EVAR
6-8
DELETE EVAR
6-9
Considerations—DELETE EVAR
6-10
Example—DELETE EVAR 6-10
INFO EVAR 6-11
Considerations—INFO EVAR
6-12
Example—INFO EVAR
6-12
7. Object User Commands
ADD USER 7-2
Considerations—ADD USER
7-2
Example—ADD USER
7-2
ALTER USER
7-3
Considerations—ALTER USER 7-3
Example—ALTER USER
7-3
Contents
SQL/MX Connectivity Service Administrative Command Reference526350-005
iv
A. Example Commands and Objects
DELETE USER 7-4
Considerations—DELETE USER 7-4
Example—DELETE USER 7-4
INFO USER 7-5
Considerations—INFO USER 7-5
A.
Example Commands and Objects
Index
Figures
Figure 1-1. MXCS Architecture 1-3
Figure 1-2. Complex MXCS Configuration 1-6
Figure 2-1. MXCS Object Relations 2-3
SQL/MX Connectivity Service Administrative Command Reference526350-005
v
What’s New in This Manual
Manual Information
SQL/MX Connectivity Service Administrative Command Reference
Abstract
This manual describes the ODBC administrative commands running in the HP
NonStop™ SQL/MX Connectivity Service (MXCS) environment and accessed through
the SQL/MX conversational interface (MXCI). These commands support manipulation
of the logical objects that define the user-visible attributes of the SQL/MX connectivity
service (MXCS).
Product Version
MXCS ACL 1.1 APB
Supported Release Version Updates (RVUs)
This manual supports J06.03 and all subsequent J-series RVUs, H06.03 and all
subsequent H-series RVUs, and G06.23 ABA and all subsequent G-series RVUs until
otherwise indicated by its replacement publications.
Document History
New and Changed Information
Updated the initserver count in the ADD DS and ALTER DS section.
Part Number Published
526350-005 July 2013
Part Number Product Version Published
526350-001 MXCS ACL 1.0 April 2004
526350-002 MXCS ACL 1.1 ABA August 2004
526350-003 MXCS ACL 1.1 ABO March 2005
526350-004 MXCS ACL 1.1 APB February 2013
526350-005 MXCS ACL 1.1 APB July 2013
What’s New in This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
vi
New and Changed Information
SQL/MX Connectivity Service Administrative Command Reference526350-005
vii
About This Manual
This manual describes the administrative commands available to administer ODBC in
an SQL/MX connectivity service (MXCS) running on a single HP NonStop system.
These commands are implemented internally as the SQL/MX administrative command
library (MACL), are linked into the SQL/MX command interface (MXCI), and support
manipulation of logical objects defining the user-visible attributes of the ODBC facility
of SQL/MX Connectivity Service (MXCS).
Audience
This manual is intended for database administrators and programmers who:
Manage the ODBC facility of MXCS for connectivity to the NonStop SQL/MX.
Use the MXCS administrative commands on the MXCI command-line rather than
through the Web-based NSM/web product.
Use batch files to change or add to the MXCS configuration.
Commands in this manual run at the MXCI prompt.
Related Documentation
This manual is part of the SQL/MX library of manuals, which includes:
Introductory Guides
SQL/MX Comparison Guide
for SQL/MP Users
Describes SQL differences between SQL/MP and
SQL/MX.
SQL/MX Quick Start Describes basic techniques for using SQL in the
SQL/MX conversational interface (MXCI). Includes
information about installing the sample database.
Reference Manuals
SQL/MX Reference Manual Describes the syntax of SQL/MX statements, MXCI
commands, functions, and other SQL/MX language
elements.
DataLoader/MX Reference
Manual
Describes the features and functions of the
DataLoader/MX product, a tool to load SQL/MX
databases.
SQL/MX Messages Manual Describes SQL/MX messages.
SQL/MX Glossary Defines SQL/MX terminology.
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
viii
Related Documentation
Programming Manuals
SQL/MX Programming
Manual for C and COBOL
Describes how to embed SQL/MX statements in
ANSI C and COBOL programs.
SQL/MX Programming
Manual for Java
Describes how to embed SQL/MX statements in
Java programs according to the SQLJ standard.
Specialized Guides
SQL/MX Installation and
Management Guide
Describes how to plan for, install, create, and
manage an SQL/MX database. Explains how to use
installation and management commands and
utilities.
SQL/MX Query Guide Describes how to understand query execution
plans and write optimal queries for an SQL/MX
database.
SQL/MX Data Mining Guide Describes the SQL/MX data structures and
operations to carry out the knowledge-discovery
process.
SQL/MX Queuing and
Publish/Subscribe Services
Describes how SQL/MX integrates transactional
queuing and publish/subscribe services into its
database infrastructure.
SQL/MX Report Writer Guide Describes how to produce formatted reports using
data from a NonStop SQL/MX database.
SQL/MX Connectivity
Service Manual
Describes how to install and manage the SQL/MX
Connectivity Service (MXCS), which enables
applications developed for the Microsoft Open
Database Connectivity (ODBC) application
programming interface (API) and other connectivity
APIs to use SQL/MX.
SQL/MX Guide to Stored
Procedures in Java
Describes how to use stored procedures that are
written in Java within SQL/MX.
Online Help
The SQL/MX Online Help consists of:
Reference Help Overview and reference entries from the SQL/MX
Reference Manual.
Messages Help Individual messages grouped by source from the
SQL/MX Messages Manual.
Glossary Help Terms and definitions from the SQL/MX Glossary.
NSM/web Help Context-sensitive help topics that describe how to
use the NSM/web management tool.
Visual Query Planner Help Context-sensitive help topics that describe how to
use the Visual Query Planner graphical user
interface.
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
ix
Related Documentation
The NSM/web and Visual Query Planner help systems are accessible from their
respective applications. You can download the Reference, Messages, and Glossary
online help from the $SYSTEM.ZMXHELP subvolume or from the HP NonStop
Technical Library (NTL). For more information about downloading online help, see the
SQL/MX Installation and Management Guide.
These manuals are part of the SQL/MP library of manuals and are essential references
for information about SQL/MP Data Definition Language (DDL) and SQL/MP
installation and management:
Related SQL/MP Manuals
SQL/MP Reference Manual Describes the SQL/MP language elements,
expressions, predicates, functions, and statements.
SQL/MP Installation and
Management Guide
Describes how to plan, install, create, manage an
SQL/MP database. Describes installation and
management commands and SQL/MP catalogs
and files.
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
x
Notation Conventions
This figure shows the manuals in the SQL/MX library:
Notation Conventions
Hypertext Links
Blue underline is used to indicate a hypertext link within text. By clicking a passage of
text with a blue underline, you are taken to the location described. For example:
vst001.vsd
Introductory Guides
SQL/MX
Comparison
Guide for
SQL/MP
Users
SQL/MX
Quick Start
SQL/MX
Glossary
SQL/MX
Messages
Manual
SQL/MX
Reference
Manual
Reference Manuals
SQL/MX
Programming
Manual for C
and COBOL
SQL/MX
Programming
Manual for
Java
SQL/MX
Guide to
Stored
Procedures
in Java
Programming Manuals
SQL/MX
Query Guide
SQL/MX
Data Mining
Guide
Specialized Guides
Data-
Loader/MX
Reference
Manual
SQL/MX
Installation
and
Management
Guide
SQL/MX
Queuing
and Publish/
Subscribe
Services
SQL/MX
Report
Writer
Guide
SQL/MX
Connectivity
Service
Adminis-
trative
Command
Reference
NSM/web
Help
SQL/MX Online Help
Reference
Help
Messages
Help
Glossary
Help
Visual Query
Planner Help
SQL/MX
Connectivity
Service
Manual
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
xi
General Syntax Notation
This requirement is described under Backup DAM Volumes and Physical Disk
Drives on page 3-2.
General Syntax Notation
This list summarizes the notation conventions for syntax presentation in this manual.
UPPERCASE LETTERS. Uppercase letters indicate NSK keywords and reserved words.
Type these items exactly as shown. Items not enclosed in brackets are required. For
example:
MAXATTACH
lowercase italic letters. Lowercase italic letters indicate variable items that you supply.
Items not enclosed in brackets are required. For example:
file-name
[ ] Brackets. Brackets enclose optional syntax items. For example:
TERM [\system-name.]$terminal-name
INT[ERRUPTS]
A group of items enclosed in brackets is a list from which you can choose one item or
none. The items in the list can be arranged either vertically, with aligned brackets on
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
{ } 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 can 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. For example:
LISTOPENS PROCESS { $appl-mgr-name }
{ $process-name }
ALLOWSU { ON | OFF }
| Vertical Line. A vertical line separates alternatives in a horizontal list that is enclosed in
brackets or braces. For example:
INSPECT { OFF | ON | SAVEABEND }
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
xii
Notation for Messages
… Ellipsis. An ellipsis immediately following a pair of brackets or braces indicates that you
can repeat the enclosed sequence of syntax items any number of times. For example:
M address [ , new-value ]
[ - ] {0|1|2|3|4|5|6|7|8|9}
An ellipsis immediately following a single syntax item indicates that you can repeat that
syntax item any number of times. For example:
"s-char
"
Punctuation. Parentheses, commas, semicolons, and other symbols not previously
described must be typed as shown. For example:
error := NEXTFILENAME ( file-name ) ;
LISTOPENS SU $process-name.#su-name
Quotation marks around a symbol such as a bracket or brace indicate the symbol is a
required character that you must type as shown. For example:
"[" repetition-constant-list "]"
Item Spacing. Spaces shown between items are required unless one of the items is a
punctuation symbol such as a parenthesis or a comma. For example:
CALL STEPMOM ( process-id ) ;
If there is no space between two items, spaces are not permitted. In this example, no
spaces are permitted between the period and any other items:
$process-name.#su-name
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 ]
Notation for Messages
This list summarizes the notation conventions for the presentation of displayed
messages in this manual.
Bold Text. Bold text in an example indicates user input typed at the terminal. For example:
ENTER RUN CODE
?123
CODE RECEIVED: 123.00
The user must press the Return key after typing the input.
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
xiii
Notation for Messages
Nonitalic text. Nonitalic letters, numbers, and punctuation indicate text that is displayed or
returned exactly as shown. For example:
Backup Up.
lowercase italic letters. Lowercase italic letters indicate variable items whose values are
displayed or returned. For example:
p-register
process-name
[ ] Brackets. Brackets enclose items that are sometimes, but not always, displayed. For
example:
Event number = number [ Subject = first-subject-value ]
A group of items enclosed in brackets is a list of all possible items that can be
displayed, of which one or none might actually be displayed. The items in the list can
be arranged either vertically, with aligned brackets on each side of the list, or
horizontally, enclosed in a pair of brackets and separated by vertical lines. For
example:
proc-name trapped [ in SQL | in SQL file system ]
{ } Braces. A group of items enclosed in braces is a list of all possible items that can be
displayed, of which one is actually displayed. The items in the list can 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. For example:
obj-type obj-name state changed to state, caused by
{ Object | Operator | Service }
process-name State changed from old-objstate to objstate
{ Operator Request. }
{ Unknown. }
| Vertical Line. A vertical line separates alternatives in a horizontal list that is enclosed in
brackets or braces. For example:
Transfer status: { OK | Failed }
% Percent Sign. A percent sign precedes a number that is not in decimal notation.
The% notation precedes an octal number. The%B notation precedes a binary number.
The%H notation precedes a hexadecimal number. For example:
%005400
%B101111
%H2F
P=%p-register E=%e-register
About This Manual
SQL/MX Connectivity Service Administrative Command Reference526350-005
xiv
Change Bar Notation
Change Bar Notation
Change bars are used to indicate substantive differences between this manual and its
preceding version. Change bars are vertical rules placed in the right margin of changed
portions of text, figures, tables, examples, and so on. Change bars highlight new or
revised information. For example:
The message types specified in the REPORT clause are different in the COBOL85
environment and the Common Run-Time Environment (CRE).
The CRE has many new message types and some new message type codes for
old message types. In the CRE, the message type SYSTEM includes all messages
except LOGICAL-CLOSE and LOGICAL-OPEN.
SQL/MX Connectivity Service Administrative Command Reference526350-005
1-1
1 MXCS Architecture Overview
The NonStop SQL/MX connectivity service (MXCS) includes support for remote
connections to the SQL/MX database, such as ODBC and JDBC. An associated
MXCS configuration database allows creation of site-specific information to customize
the ODBC facility to a specific use or application. This guide describes the commands
for administrating the ODBC facility and the MXCS configuration database.
The MXCS administrative commands provide a command-line interface that can be
scripted to administer the SQL/MX ODBC features. The commands are packaged in
MXCI with SQL/MX commands and report writer commands. MXCI must be running to
access these commands. An operating mode within MXCI directs commands to the
proper command handlers.
If MXCS is installed on the system, the administrative commands are operational.
Because MXCS often requires setup before it accesses applications, use these
commands to configure MXCS initially (before it is started) and tune the configuration
while it is operational. Some of the commands are persistent through subsystem
shutdown, such as ADD DS, while others affect only currently running services or
servers, such as START SERVICE or STOP SERVER.
MXCS administrative commands use command-line format. You enter MXCS
administrative commands from a keyboard or from a command file after starting MXCI.
NSM/web, a Web-based GUI, administers the same objects that are administered
through the command-line and MXCS administrative commands. However, NSM/web
does not support command files, and it must first be installed on the system.
This section describes:
Features and Functionality on page 1-1
Architecture Overview on page 1-2
User Interface With MXCI on page 1-4
General Features on page 1-4
Software Installation on page 1-5
Complex System Configuration on page 1-5
Error Message Overview on page 1-7
Features and Functionality
Administers ODBC MXCS in NonStop SQL/MX Release 2.0 ABA and later
releases
Provides a scriptable command-line interface through MXCI on an HP NonStop
operating system (OS)
Reports if a command fails to supply requested information
Note. MXCS administrative commands do not administer the JDBC/MX product or the
SQL/MX database itself.
MXCS Architecture Overview
SQL/MX Connectivity Service Administrative Command Reference526350-005
1-2
Architecture Overview
Configures a new installation of MXCS or modifies an existing installation
Accesses objects only on the system where MXCI is running
Provides database security so that all users can view objects, but only specified
users can modify them
Displays attributes and states of the objects within the ODBC MXCS configuration
Displays and manages the ODBC MXCS configuration as five separate object
types:
Service (the MXOAS command starts each service)
Server
Data source (DS)
Environment variable (EVAR) for each DS user (for permissions)
User (for permissions)
Supports administrative commands:
INFO
ADD
DELETE
START
STOP
ALTER
VERSION
Reports errors if the ODBC facility of MXCS is not running when needed
Architecture Overview
The MXCS administrative command library (MACL) is the software component inside
MXCI that supports the MXCS administrative commands described in this guide.
MACL is discussed only to show how the MXCS administrative commands are
processed and to assist you in understanding error messages that might appear.
Figure 1-1
on page 1-3 shows how the MACL library fits in the system architecture with
MXCS, MXCI, and the SQL/MX database. MACL links with MXCI and uses many of
the existing generic features of the MXCI command-line interface. MXCI manages
command entry and passes commands to MACL for processing. MXCI also displays
report lines and error messages when a command is processed.
MXCI also supports execution of SQL statements through the SQL engine directly or
through the report writer.
When you start MXCI, some (but not all) administrative commands are available when
ODBC is not running on the system. Some of these commands require that the ODBC
association server be operational. However, you can always configure a DS, EVAR,
and user. MXCI is not required to be running while MXCS runs, so you can run MXCI
for only as long as you need to maintain a session. Before entering any MXCS
/