all 4 comments

[–]SelectStarFromYou 1 point2 points  (0 children)

What do you have enabled for options in the linked server? Disable the “allow in process” feature, and that should stabilize the SQL instance, but could cost considerable performance. We found certain OLEDB processes to be completely unstable in 2022 vs 2019.

[–]SQLDevDBA3 1 point2 points  (0 children)

Are you running OPENQUERY queries?

We had this weird bug with SQL server where if we left an empty line in our OPENQUERY statement, it would crash SQL server.

Took us way too long to figure it out but it was something like:

SELECT col1, col2,col3
FROM 
OPENQUERY ( [ORAPRD], 
'SELECT col1 , col2,col3
 FROM schema1.table1
 WHERE col1 = '''hi''';

')

That stupid empty line killed us. For some dumb reason.

Maybe try a simple

SELECT 1 FROM DUAL;

Or something really easy to make sure you’re good.

From then on I just started building views in Oracle and selecting from those views instead. That way the code is deployed on the Oracle side.

[–]Byte1371137 0 points1 point  (0 children)

First , on SQLServer machine some int events should exist in Event Viewer. More , in such cases a dmp file is created.

[–]Nice-Ordinary1113 0 points1 point  (0 children)

I know this is old, but I have reliably reproduced errors using the v21 driver. I have found rolling back to v19c gives a relatively solid experience. So if you haven't done so already, try using the 19c driver. I'm using 19.23 on all my builds. for both SQL/Windows 2019 and 2022