BookmarkSubscribeRSS Feed
bbaer
Calcite | Level 5

Hello everyone,

At my current position there are a variety of Oracle tables that I have to use. For the most part I am using reading these tables in and performing analysis based on them, but on occasion I need to make some edits or create new variables in the tables. Unfortunately the performance for any writing/modifications or creation of new Oracle tables using PROC SQL seems to be very slow. I have tried making some of the modifications suggested in this article: https://www.lexjansen.com/nesug/nesug05/io/io8.pdf such as setting readbuff and insertbuff in the libname statement, but that doesn't seem to have made much of a difference. Does anyone know any other settings I could change to try to improve the performance of PROC SQL, or alternatively if I could get better performance with a Data step or another technique?

Thank you!

1 REPLY 1
SASKiwi
PROC Star

So is it only updating Oracle tables that is slow, not reading? If so READBUFF isn't going to help. In my experience there is no magic bullet to speeding up database writes, you just have to experiment with different techniques to see what works best. We update SQL Server databases a lot and do get good performance typically using table appends. The INSERTBUFF and DBCOMMIT options are helpful for this.

 

You would be best to post the complete SAS log of an Oracle database update program that is slow so we can get a better idea of what you are doing.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 593 views
  • 0 likes
  • 2 in conversation