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 OR_UPD_NOWHERE= LIBNAME Option 1633 any SELECT SQL statement that was submitted by using the SELECT * FROMCONNECTION as a pass-through statement3 any statement other than the SELECT SQL statement that you submitted byusing the EXECUTE statement as a pass-through statementOR_UPD_NOWHERE= LIBNAME OptionSpecifies whether <strong>SAS</strong> uses an extra WHERE clause when updating rows with no locking.Alias: ORACLE_73_OR_ABOVE=Default value: YESValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: OracleSyntaxOR_UPD_NOWHERE=YES | NOSyntax DescriptionYESspecifies that <strong>SAS</strong> does not use an additional WHERE clause to determine whethereach row has changed since it was read. Instead, <strong>SAS</strong> uses the SERIALIZABLEisolation level (available with Oracle 7.3 and above) <strong>for</strong> update locking. If a rowchanges after the serializable transaction starts, the update on that row fails.NOspecifies that <strong>SAS</strong> uses an additional WHERE clause to determine whether each rowhas changed since it was read. If a row has changed since being read, the update fails.DetailsUse this option when you are updating rows without locking(UPDATE_LOCK_TYPE=NOLOCK).By default (OR_UPD_NOWHERE=YES), updates are per<strong>for</strong>med in serializabletransactions. It lets you avoid extra WHERE clause processing and potential WHEREclause floating point precision problems.Note: Due to the published Oracle bug 440366, an update on a row sometimes failseven if the row has not changed. Oracle offers the following solution: When creating atable, increase the number of INITRANS to at least 3 <strong>for</strong> the table. 4See AlsoTo apply this option to an individual data set or a view descriptor, see the“OR_UPD_NOWHERE= Data Set Option” on page 355.“Locking in the Oracle Interface” on page 728“UPDATE_LOCK_TYPE= LIBNAME Option” on page 196

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

Saved successfully!

Ooh no, something went wrong!