BookmarkSubscribeRSS Feed
nickspencer
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.));
            data=have;
run;

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.

4 REPLIES 4
SASKiwi
PROC Star

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.

Bhushan15
Calcite | Level 5

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

SASKiwi
PROC Star

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 : https://support.sas.com/kb/16/328.html

 

Patrick
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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 4 replies
  • 1028 views
  • 2 likes
  • 4 in conversation