locking - New table into Oracle db via SAS, lock table while writing -


can lock access (including oracle based queries) table in oracle db via sas odbc connection?

i running script in sas drops , replaces table in oracle db via odbc sas library.

my issue there automated routines (running queries) run independently of script , deny them access particular table whilst being updated, ensure not run queries on incomplete dataset.

if table has been dropped, there no way of tagging locked. in case exclusive table lock not prevent table being read.

a better approach table accessed through synonym, , instead of dropping , recreating it, this:

  1. create new table , load it.
  2. redefine synoynym point new table.
  3. wait couple of minutes
  4. drop old table.

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -