BookmarkSubscribeRSS Feed
Obsidian | Level 7

I have been loading data from SAS to oracle table using the proc append with libref. I only had few thousand records before but now I have to load million records. I tried adding bulkload to increase the load performance but I am getting an error. It loads fine without bulkload but takes long time.


libname mylib oracle user="xxxxxx" password="xxxxxx" path="xxxxxxx" dbclient_max_bytes=1 schema="xxxxx";

proc append base=mylib.ora_table(bulkload=yes sasdatefmt=(mydate=date9.));

ERROR: Insufficient authorization to access /opt/sasconfig/xxxxxxxxxxxxx


Does bulkload not work with proc append? Are there any other options I can use to load data to oracle table from SAS.


Thanks. Any suggestion is highly appreciated.

Opal | Level 21

The error suggests that a particular config file (I assume you've put Xs over the actual name) your program is trying to access doesn't have the right permissions set. Show this error to your SAS adminstrator and get them to check and possibly fix the permissions.


An alternative explanation is that SAS is trying to write something to this folder when it shouldn't be. Perhaps there are other bulkload options you need to specify.

Calcite | Level 5

@nickspencer  Did you get any solution? I am also facing exact same error.

Opal | Level 21

If you are doing bulkloading into Oracle then SAS needs to write control files. By default SAS may write to a location that you don't have permission to write to. This SAS Note might help you to set a writable folder location :


Opal | Level 21

For a load not using bulk-load also investigate libname options insertbuff and dbcommit. Increasing the default values can increase performance quite a bit.


For bulk-load make sure that you've got write permission to the directory where the text file for bulk-load gets created. 

Data Set Options for Oracle



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 4 in conversation