HP Deskpro EN FC 6550 Plus Manual de Serviço

Consulte online ou descarregue Manual de Serviço para Barebones PC/estação de trabalho HP Deskpro EN FC 6550 Plus. HP Deskpro EN FC 6550 Plus Technical data Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 0
Next
HP JDBC Driver for SQL/MP API and
Reference
Documentation on both NTL and the product CD:
HP JDBC Driver for SQL/MP Programmer's Reference
HP JDBC Driver for SQL/MP API Reference Pages
Documentation on the product CD only:
Software Release Documents
README File
Product Version
HP JDBC Driver for SQL/MP(JDBC/MP)V30 and H10
Supported Hardware
All HP NonStop™ all NonStop S-series servers except S700B and S70000 and all HP
NonstopNS-series servers
Supported Release Version Updates (RVUs)
This manual supports G06.20 and all subsequent G-series RVUs and H06.03 and all
subsequent H-series RVUs until otherwise indicated by its replacement publication.
Published
May 2005
HP JDBC Driver for SQL/MP Programmer's Reference (527401-003)
Copyright © 2005, Hewlett-Packard Development Company L.P. All rights reserved.
Vista de página 0
1 2 3 4 5 6 ... 127 128

Resumo do Conteúdo

Página 1 - Reference

NextHP JDBC Driver for SQL/MP API andReferenceDocumentation on both NTL and the product CD:HP JDBC Driver for SQL/MP Programmer's Reference❍ HP

Página 2 - Programmer's Reference

JDBC/MP Docs Home Page | Contents| Prev | Next | Index | Glossary About This DocumentThis section explains these subjects:New and Changed Information●

Página 3

setMaxIdleTimepublic void setMaxIdleTime(int maxIdleTime)The number of seconds that a physical connection should remain idle in the pool before the co

Página 4

the interval in seconds that the pool should wait before enforcing the current policy defined by thevalues of the connection pool properties.See Also:

Página 5 - JDBC/MP Doc Home Page

setDataSourceNamepublic void setDataSourceName(String dataSourceName)Sets the name of an underlying data source.Parameters:dataSourceName - - the name

Página 6 - JDBC Driver for SQL/MP

getReferencepublic javax.naming.Reference getReference() throws javax.naming.NamingExceptionReturns a javax.naming.

Página 7

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Uses of Classcom.tandem.sqlmp.SQLMPConnectionPoolDataSourc

Página 8

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAI

Página 9

StringgetDescription() Returns the description of this DataSource object ifone was set. StringgetJdbcPropfile() Returns the name of

Página 10 - Is This Document for You?

voidsetMaxPoolSize(int maxPoolSize) Sets the maximum number of physical connections thatthe pool (free and inuse pool) should contain. voids

Página 11 - Printing This Document

Returns:a Connection to the database.Throws:java.sql.SQLException - if a database-access error occurs.getConnectionpublic java.sql.Connection getConne

Página 12 - Related Reading

setLogWriterpublic void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLExceptionSets the log writer for this data source.Th

Página 13

Document StructureThis document is a set of linked HTML files (Web pages). Each file corresponds to one of the sections listed anddescribed in this ta

Página 14 - Notation Conventions

Returns:the data source login time limit; this value is ignored.Throws:java.sql.SQLException - if a database access error occurs.getDescriptionpublic

Página 15 - Abbreviations

mode - - a String containing either "INTERNAL" or "EXTERNAL".Throws:java.sql.SQLException - if setTransactionMode is called aftert

Página 16

setMaxStatementspublic void setMaxStatements(int max) throws java.sql.SQLExceptionSets the total number of statements that can be

Página 17

getMaxPoolSizepublic int getMaxPoolSize()Returns the maximum number of physical connections the pool (freeand inuse) should contain. A value of zero (

Página 18 - JDBC Driver Types

the number of physical connections the pool should maintain inthe free pool.See Also:setMinPoolSize(int), setMaxPoolSize(int)setPoolLoggingpublic void

Página 19 - JDBC/MP Architecture

PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Página 20 - JDBC/MP API Packages

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Uses of Classcom.tandem.sqlmp.SQLMPDataSourceNo usage of c

Página 21 - Limitation

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Deprecated APIPackage Class Use Tree Next Index Help H

Página 22 - Verifying the JDBC/MP Driver

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Serialized FormClasscom.tandem.sqlmp.SQLMPConnectionPoolDat

Página 23

maxPoolSize_int maxPoolSize_maxIdleTime_int maxIdleTime_minPoolSize_int minPoolSize_propertyCycleInterval_int propertyCycleInterval_description_String

Página 24

Related ReadingFor background information about the features described in this guide, see these documents:HP NonStop JDBC/MP Driver API and Reference

Página 25

userName_String userName_password_String password_url_String url_props_java.util.Properties props_needSetUp_boolean needSetUp_propfileName_String prop

Página 26 - Loading a Driver

logWriter_java.io.PrintWriter logWriter_loginTimeout_int loginTimeout_description_String description_transactionMode_String transactionMode_dataSource

Página 27 - Property

pool_com.tandem.sqlmp.SQLMPPool pool_maxPoolSize_int maxPoolSize_minPoolSize_int minPoolSize_needSetUp_boolean needSetUp_propfileName_String propfileN

Página 28 - Standard Driver Example

catalogName_String catalogName_log_boolean log_driver_com.tandem.sqlmp.SQLMPDriver driver_Package Class Use Tree Next Index Help HP JDBC Driver

Página 29

Package Class Use Tree Deprecated Index Help HP JDBC Driver for SQL/MP PREV NEXT C G SCcom.tandem.sqlmp - package com.tandem.sqlmp Gg

Página 30 - Referring to Database Objects

Retrieves the maximum time in seconds that this ConnectionPoolDataSourceobject will wait while attempting to connect to a database.getLogWriter() - Me

Página 31 - Creating and Using Aliases

getReference() - Method in class com.tandem.sqlmp.SQLMPConnectionPoolDataSourceReturns a javax.naming.Reference to this DataSource object.getTransacti

Página 32

wait while attempting to connect to a database.setLogWriter(PrintWriter) - Method in class com.tandem.sqlmp.SQLMPDataSourceSets the log writer for thi

Página 33

Sets the TransactionMode property.setTransactionMode(String) - Method in classcom.tandem.sqlmp.SQLMPConnectionPoolDataSourceSets the TransactionMode p

Página 34 - Connection Pooling

(ODBC) product to access SQL/MP databases. If the NonStop ODBC server is installed on a NonStop server,and an ODBC driver is installed on a client, th

Página 35

Introduces the concepts of transaction processing and the features of the HP NonStop TransactionManagement Facility (TMF) product.TMF Application Prog

Página 36 - Implementation

Brackets enclose optional syntax items. For example:jdb [options]A group of items enclosed in brackets is a list from which you can choose one item or

Página 37

COBOL. Common Business-Oriented LanguageCPU. central processing unitDCL. Data Control LanguageDDL. Data Definition LanguageDML. Data Manipulation Lang

Página 38 - Statement Pooling

HP JDBC Driver for SQL/MP Programmer's Reference (527401-003)Copyright © 2005, Hewlett-Packard Development Company L.P. All rights reserved.

Página 39 - Statement-Pooling Properties

JDBC/MP Docs Home Page | Contents | Prev | Next | Index | GlossaryIntroduction to JDBC/MP DriverThe HP JDBC Driver for SQL/MP (JDBC/MP) implements th

Página 40 - TransactionMode Property

1 JDBC-to-ODBC bridge Possibly Uses a JDBC-to-ODBC bridge totranslate JDBC calls to ODBC calls,which are handled by an ODBC driver.This requires an OD

Página 41 - Troubleshooting

JDBC/MP Doc Home Page | NextHP JDBC Driver for SQL/MPProgrammer's ReferenceAbstractThis document describes how to use the JDBC Driver for SQL/MP

Página 42 - Sample SQL/MP Program

Simplifies the deployment of applications● Can provide performance advantages● This figure illustrates a three-tier architecture for database acce

Página 43

LimitationIn TNS/E, applications cannot have their own embedded SQL code. An application using theJDBC/MP driver cannot have any other object with emb

Página 44 - JDBC/MP Compliance

JDBC/MP Docs Home Page | Contents | Prev | Next | Index | GlossaryInstalling and Verifying JDBC/MPThis section explains these subjects:JDBC/MP Driver

Página 45

HP JDBC Driver for SQL/MP Programmer's Reference (527401-003)Copyright © 2005, Hewlett-Packard Development Company L.P. All rights reserved.

Página 46 - Compliance Information

Java Docs Home Page | Contents | Prev | Next | Index | GlossaryAccessing SQL Databases with SQL/MPJava programs interact with NonStop SQL databases u

Página 47 - Metadata Support

primary key (empnum) ) organization key sequenced");and you want to insert a new foo row and to set deptnum to null (which is permissible beca

Página 48 - BLOBs and CLOBs

JDBC DriverManagerThe JDBC DriverManager maintains a list of available JDBC drivers. When a program calls the getConnectionmethod, the JDBC DriverMana

Página 49 - BlobMapFile Property

Specifying the JDBC Driver Class on the java CommandLineTo specify the JDBC driver class on the java command line, use the -Djdbc.drivers option. For

Página 50

Connecting a Program to a DatabaseAfter a driver is loaded, you can use it to connect your Java program to a database by passing the URL of the databa

Página 51

// Retrieve successive rows from the result set and// print the first column of each row, which is a String:while (r.next()) System.out.println

Página 52 - Removing Obsolete BLOB Files

527401-002JDBC Driver for SQL/MP(JDBC/MP) V30July 2004527401-003JDBC Driver for SQL/MP(JDBC/MP) V30 and H10May 2005Document DisclaimerInformation cont

Página 53 - JDBC 2.0 Standard Extensions

Timestampn n n n n n n n n n n n R RAsciiStreamn n n n n n s n R R n n n nUnicodeStreamn n n n n n n n n n n n n nBinaryStreamn n n n n n n n n n n n

Página 54 - HP Extensions

When You Can Use AliasesYou can use aliases for these SQL/MP database objects:Catalogs● Collations● Tables (including table qualifiers for columns

Página 55

Specifying Properties in a Properties FileThis program has the same effect as the preceding program, except that the properties are in the filejdbc-pr

Página 56 - JDBC Trace Facility

CONTROL TABLE❍ LOCK TABLE❍ UNLOCK TABLE❍ In the Data Definition Language (DDL):ALTER CATALOG❍ ALTER COLLATION❍ ALTER INDEX❍ ALTER PROGRAM❍

Página 57 - Within the Program

Note: Mapping parts to a fully qualified Guardian name (such as $sys1.vol.subvol.parts)results in an invalid SQL statement because the substitution pr

Página 58 - Programs

maxStatements int 0The maximum number ofPreparedStatement objectsthat the pool should cache. Avalue of 0 (zero) disablesstatement pooling.minPoolSize

Página 59

Context ctx = new InitialContext();ctx.bind("jdbc/pool/bookserver_pool", cpds);After this step is complete, the SQLMPConnectionPoolDataSourc

Página 60 - Glossary

maxStatements● maxPoolSize● minPoolSize● poolLogging● TransactionMode● jdbcPropfile● Note: The properties defined for the SQLMPDataSource

Página 61

in the pool. The pool also writes a message whenever the statement pool is full and a PreparedStatement isrequested that is not in the free pool. In t

Página 62

certain conditions are met. Some of these conditions are:A run-time version of a table has a different redefinition timestamp than the compile-time ve

Página 63

documentation and the OSF software to which it relates are derived in partfrom materials supplied by these:© 1987, 1988, 1989 Carnegie-Mellon Universi

Página 64

maxPoolSize PropertySets the maximum number of physical connections that the pool can contain. These connections include those in both thefree pool an

Página 65

TroubleshootingThis subsection explains these subjects:Tracing● No suitable driver error● Data truncation● Dangling statements● TracingThrough

Página 66

try { stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("drop table usertable");}catch (SQLException sqlex) {

Página 67

System.out.println("Col1 = " + res.getInt(1)); System.out.println("Col2 = " + res.getString(2));

Página 68

JDBC/MP Docs Home Page | Contents | Prev | Next | Index | GlossaryJDBC/MP ComplianceThe JDBC Driver for SQL/MP (JDBC/MP driver) conforms where applic

Página 69

CallableStatement.registerOutParameter(intparameterIndex, int scale)CallableStatement.wasNull()Connection.createStatement(intresultSetType, int result

Página 70

Statement.execute(String sql, intautoGeneratedKeys)Statement.execute(String sql, int[]columnIndexes)Statement.execute(String sql,String[] columnNames)

Página 71

All other areas of the JDBC Driver for SQL/MP are compliant with the JDBC specifications, including such optional featuresas BLOBs, CLOBs, and DataSou

Página 72

java.sql.DatabaseMetaData.getColumns(Stringcatalog, String schemaPattern, StringtableNamePattern, String columnNamePattern)These columns are added, bu

Página 73

Creating a BLOBA client JDBC application that needs to store a BLOB in an SQL/MP database table or retrieve a BLOB from an SQL/MPdatabase table provid

Página 74

AND IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCT WARRANTIESARE SET FORTH IN THE EXPRESS LIMITED WARRANTY STATEMENTSACCOMPANYING SUCH PRODUCTS. NOT

Página 75

Example Using BlobInfo Properties and the BlobMapFile PropertyThis example illustrates how to create BlobInfo properties. Two BlobInfo properties are

Página 76

public void setObject(int parameterIndex, Object x)where:parameterIndexis the parameter to be set.xis any serializable Java object.targetSqlTypeshould

Página 77

columnNameis the name of the BLOB column.columnIndexis the index of the BLOB column.Errors encountered during the retrieval of a BLOB from its BLOB fi

Página 78

utility to remove any obsolete BLOB files that have been created for the application from the file system. To maintain theintegrity of the application

Página 79

All these data source properties are of type String, and all are optional except the Description property, which isrequired to provide a description o

Página 80

Copyright © 2005, Hewlett-Packard Development Company L.P. All rights reserved.

Página 81

Java Docs Home Page | Contents | Prev | Next | Index | GlossaryJDBC Trace FacilityThe JDBC trace facility is designed to trace the entry point of all

Página 82

DriverManager.setLogWriter(new PrintWriter(newFileWriter("FileName")));Tracing Using the DataSourceImplementationThis is preferred way to es

Página 83

Tracing Using a Wrapper Data SourceEnable tracing by creating a wrapper data source around the data source to be traced. Thewrapper data source contai

Página 84

HP JDBC Driver for SQL/MP Programmer's Reference (527401-003)Copyright © 2005, Hewlett-Packard Development Company L.P. All rights reserved.

Página 85 - Class/Interface

JDBC/MP Doc Home Page | NextJDBC Driver for SQL/MPProgrammer's ReferenceContentsAbout This DocumentNew and Changed Information❍ Is This Documen

Página 86 - Prev/Next

JDBC/MP Docs Home Page | Contents | Prev | Next | IndexGlossaryA B C D E F G H I J L N O P R S T U V WAabstract classIn Java, a class designed only as

Página 87 - FRAMES NO FRAMES

autocommit modeA mode in which a JDBC driver automatically commits a transaction without theprogrammer's calling commit().BBLOBA data type used t

Página 88

perform other portions of the program logic. Also called a requester.commandThe operation demanded by an operator or program; a demand for action by,

Página 89

DriverManagerThe JDBC class that manages drivers.EexceptionAn event during program execution that prevents the program from continuing normally;genera

Página 90 - Class Summary

the HP Tandem Advanced Command Language (TACL) or another HP product'scommand interpreter. Compare to OSS.HHP JDBC Driver for SQL/MP (JDBC/MP)The

Página 91

The client-server Transmission Control Protocol/Internet Protocol (TCP/IP) used on theWorld Wide Web for the exchange of HTML documents.IIECSee Intern

Página 92

Guardian environment.interpreterThe component of the Java VM that interprets bytecode into native machine code.ISOSee International Organization for S

Página 93

Invocation API that invokes Java VM from a C program.Java Run-timeThe Java VM and the Core API. This is the standard Java environment that the Javacom

Página 94

A data communications network that is geographically limited (typically to a radius of 1kilometer), allowing easy interconnection of terminals, microp

Página 95

persistenceA property of a programming language where created objects and variables continue toexist and retain their values between runs of the progr

Página 96

Accessing SQL Databases with SQL/MPSetting a Column in an SQL Table to Null❍ Transactions and the JDBC Driver for SQL/MPAutocommit Mode and the Stan

Página 97

serverOne of these:An implementation of a system used as a stand-alone system or as a node in anExpand network.❍ The hardware component of a compute

Página 98

A local procedure in a remote procedure call (RPC). A client calls the stub toperform a task, not necessarily aware that the RPC is involved. The stub

Página 99

UUnicodeA character-coding scheme designed to be an extension of ASCII. By using 16 bits foreach character (rather than ASCII's 7), Unicode can r

Página 100

JDBC/MP Docs Home Page | Contents | Index | Prev | NextHP JDBC Driver for SQL/MP Programmer's Reference (527401-003)Copyright © 2005, Hewlett-Pac

Página 101

JDBC/MP Docs Home Page | Contents | Glossary | Prev | NextIndexA B C D E F G H I J K L M N O P Q R S T U V

Página 102

writing to a database writing to a database, exampleCcatalogs See database objectsCLOB (Character Large Object)columns, setting to nullco

Página 103

aliases, which SQL statements support names for setting columns to nulldatabases, connecting to example, standard driver example,

Página 104 - Uses of Class

extensions, HPFfiles, properties offloating point supportGgetConnection methodHHP extensionsIIEEE floating pointindexes See database objectsimplem

Página 105 - Method Summary

BLOBs and CLOBs See also BLOB (Binary Large Object) call exception summary metadata result sets standard extensionsJDBC/M

Página 106

Nname service, registering withNo suitable driver errornonautocommit mode, SQL/MP standard driver, autocommit mode standard driver transac

Página 107 - Constructor Detail

SQLMPConnectionPoolDataSourceStatement Pooling❍ JDBC/MP Connection-Pooling and Statement-Pooling PropertiesmaxStatements Property minPoolSize Pro

Página 108

result sets, JDBC 2.0Ssample programs SQL/MP, connecting and using SQL/MP programSQL/MP, accessing databasessqlmp driversqlmptxstandard extens

Página 109

tracingtruncation of dataUupdates, batchVverifying driver installationA B C D E F G H I J K L M N O P Q R S

Página 110

Java Docs Home Page | Contents | Index | Glossary | Prev | NextList of ExamplesSection Title Example Title(s)Accessing SQLDatabases withSQL/MPStandard

Página 111

Java Docs Home Page | Contents | Index | Glossary | Prev | NextList of FiguresSection Title Figure Title(s)Introduction to JDBC/MP Architecture of the

Página 112

Java Docs Home Page | Contents | Index | Glossary | Prev | Next List of TablesSection Title Table Title(s)About This Manual Document Sections● Intr

Página 113

Package Class Use Tree Index Help HP JDBC Driver for SQL/MP PREV NEXT How This API Document Is OrganizedThis API (Application Progra

Página 114

established by the programmer.UseEach documented package, class and interface has its own Use page. This pagedescribes what packages, classes, methods

Página 115 -

Frames/No FramesThese links show and hide the HTML frames. All pages are available with or without frames.Serialized FormEach serializable or external

Página 116 - PREV NEXT

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Hierarchy For All PackagesPackage Hierarchies:com.tandem.s

Página 117

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Hierarchy For Package com.tandem.sqlmpClass Hierarchyclass

Página 118 - Serialized Form

JDBC Trace Facility Demonstration Programs❍ Glossary● Index● List of Examples● List of Figures● List of Tables● JDBC/MP Doc Home PageHP JD

Página 119

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV PACKAGE NEXT PACKAGE Package com.tandem.sqlmpClass SummarySQLMP

Página 120 - Serialized Fields

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV NEXT Uses of Packagecom.tandem.sqlmpNo usage of com.tandem.sqlmpP

Página 121

Package Class Use Tree Next Index Help HP JDBC Driver for SQL/MP PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL:

Página 122

intgetLoginTimeout() Retrieves the maximum time in seconds that thisConnectionPoolDataSource object will wait whileattempting to connect to

Página 123 - HP JDBC Driver for SQL/MP

voidsetJdbcPropfile(String jdbcPropfile) Sets the name of the Properties file that provides for aliasnames for SQL/MP tables. voidsetLoginTi

Página 124

Constructor DetailSQLMPConnectionPoolDataSourcepublic SQLMPConnectionPoolDataSource()Method DetailgetPooledConnectionpublic javax.sql.PooledConnection

Página 125

getLogWriterpublic java.io.PrintWriter getLogWriter() throws java.sql.SQLExceptionRetrieves the log writer for this SQ

Página 126

setLoginTimeoutpublic void setLoginTimeout(int seconds) throws java.sql.SQLExceptionSets the maximum time in seconds that a Connec

Página 127

java.sql.SQLException - if the number of statements exceeds the maximum allowed by thedatabase.See Also:getMaxStatements()getMaxStatementspublic int g

Página 128

Sets the number of physical connections the pool should keep available at all times. 0 (zero) indicates thatconnections should be created as needed.Pa

Comentários a estes Manuais

Sem comentários