BookmarkSubscribeRSS Feed
blert
Calcite | Level 5

Hello!,

 

We have here a doubt with SAS/ACCESS Interface to ORACLE maybe someone over here could help us with. We have SAS 9.2.

 

When we run a explicit (something like "EXECUTE(statement)  by oracle;") INSERT statement we see in our SAS log a message like "ORACLE: XXX rows inserted/updated/deleted." We are using the SAS options:

 

           OPTIONS SASTRACE=',,,d' SASTRACELOC=SASLOG NOSTSUFFIX;

 

Nevertheless, for the Oracle native MERGE (not the SAS one) in a EXECUTE(), with the same trace options, we don't find any trace in the SAS log on how many rows where merged. But we receive something like "YYY rows merged." in Oracle SQLPLUS or SQL DEVELOPER.

 

Do you how can we show number of merged rows (no matter updates/inserts) in the SAS LOG?

 

Thanks

2 REPLIES 2
LinusH
Tourmaline | Level 20

The SASTRACE options only affects the logging when using a Libname connection. So it won't affect any explicit pass through operation logging.

Since you ave an explicit Oracle SQL statement, I would first run this in a native a Oracle client and see what kind of logs you get there. Then talk your Oracle DBA if he&she has any ideas how this information could be sent back to other clients. If not solved then, engage SAS tech support.

Data never sleeps
blert
Calcite | Level 5
We are in contact with our DBA.
 
We also have noticed that for the statements (for example UPDATE) we get trace in SAS LOG, it seems different and more general than the one provided by Oracle client. For example when running an INSERT in an EXECUTE():
 
ORACLE Client: "XXX rows updated"
 
EXECUTE: "XXX rows inserted/updated/deleted."
 
We dont know why this happens, maybe its related on how SAS connects to Oracle.
 
We still are looking for a way to show MERGE trace but this above maybe is related to that.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1103 views
  • 0 likes
  • 2 in conversation