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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 512 views
  • 0 likes
  • 2 in conversation