Chapter Contents |
Previous |
Next |
SAS/ACCESS Software for Relational Databases: Reference |
If you want to lock the data pages of a table while the SAS System is reading the data to prevent other processes from updating the table, you can use the READLOCK_TYPE= option, as in the following example:
libname myoralib oracle user=testuser pass=testpass path='myoraserver' readlock_type=table; data work.mydata; set myoralib.mytable(where=(colnum > 123)); run;In this example, the SAS/ACCESS ORACLE engine obtains a TABLE SHARE lock on the table so that the data cannot be updated by other processes while your SAS program is reading it.
In the following example, ORACLE acquires row-level locks on rows read for update in the tables in the libref.
libname myoralib oracle user=testuser password=testpass path='myoraserver' updatelock_type=row;
Note: Each SAS/ACCESS interface supports specific options; see your DBMS chapter
to determine which options are supported for your DBMS.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.