13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 READ_MODE_WAIT= LIBNAME Option 177PAGE [valid <strong>for</strong> Sybase]locks a page of data, which is a DBMS-specific number of bytes. (This value is validin the Sybase interface.)TABLE [valid <strong>for</strong> DB2 under UNIX and PC Hosts, DB2 under z/OS, Microsoft SQLServer, ODBC, Oracle, Sybase IQ, Teradata]locks the entire DBMS table. If you specify READ_LOCK_TYPE=TABLE, you mustalso specify CONNECTION=UNIQUE, or you receive an error message. SettingCONNECTION=UNIQUE ensures that your table lock is not lost—<strong>for</strong> example, dueto another table closing and committing rows in the same connection.NOLOCK [valid <strong>for</strong> Microsoft SQL Server, ODBC with Microsoft SQL Server driver,OLE DB, Oracle, Sybase]does not lock the DBMS table, pages, or rows during a read transaction.VIEW [valid <strong>for</strong> Teradata]locks the entire DBMS view.DetailsIf you omit READ_LOCK_TYPE=, the default is the DBMS’ default action. You can seta lock <strong>for</strong> one DBMS table by using the data set option or <strong>for</strong> a group of DBMS tablesby using the LIBNAME option. See the locking topic <strong>for</strong> your interface in theDBMS-specific reference section <strong>for</strong> details.ExampleIn this example, the libref MYDBLIB uses <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Oracle toconnect to an Oracle database. USER=, PASSWORD=, and PATH= are <strong>SAS</strong>/<strong>ACCESS</strong>connection options. The LIBNAME options specify that row-level locking is used whendata is read or updated:libname mydblib oracle user=testuser password=testpasspath=myorapth read_lock_type=row update_lock_type=row;See AlsoTo apply this option to an individual data set, see the “READ_LOCK_TYPE= DataSet Option” on page 362.“CONNECTION= LIBNAME Option” on page 108“READ_ISOLATION_LEVEL= LIBNAME Option” on page 175READ_MODE_WAIT= LIBNAME OptionSpecifies during <strong>SAS</strong>/<strong>ACCESS</strong> read operations whether Teradata should wait to acquire a lock orshould fail the request when a different user has already locked the DBMS resource.Default value: noneValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: Teradata

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!