Graceful Switchover fails with "Unable to load the shared library "orasrvmhas12.dll"or a dependent library"


Read our docs Graceful switchover fails with "Unable to load the shared library "orasrvmhas12.dll"or a dependent library"

Problem Details

Problem Statement

Graceful switchover fails

Applicable Error Code

Dbvisit Standby terminated command:"C:\app\database\product\12.2.0\dbhome_1\bin\srvctl.bat" status database -db "newrac"-verbosePRKN-1008 : Unable to load the shared library "orasrvmhas12.dll"or a dependent library, fromPATH="C:\app\database\product\12.2.0\dbhome_1\bin"[java.lang.UnsatisfiedLinkError:C:\app\database\product\12.2.0\dbhome_1\bin\orasrvmhas12.dll: The specified procedurecould not be found]

Affected Versions

V8 mainly but can happen in V9

Affected Platforms

Platform independent but seen in Windows


Graceful switchover terminates with an error: 

  • `Unable to load the shared library "orasrvmhas12.dll"or a dependent library`

This error might be seen with Oracle Database releases 12.2 and above on Windows based platforms.


The Oracle Instant Client libraries for Dbvisit Standby Version 8 and 9 are 12.1

This is to cater for Oracle Database version 10.2 and above.

If you encounter this error, there are potentially two workarounds available.

Note: This issue is fixed in Dbvisit Standby Version 10, where it provides an option to choose Oracle Instant Client version 12.1 or 12.2 

Steps Performed

Workaround 1:  

Go to %DBVISIT_BASE%/standby/lib directory

rename file orannzsbb12.dll to orannzsbb12.dll_norun

Workaround 2:

Replace the Instant client libraries in %DBVISIT_BASE%/standby/lib with the 12.2 instant client equivalent files.

For more detail on the instant client please see:

For more detail on the the Oracle Client / Server Interoperability Support Matrix please see the Oracle Support document - Doc ID: 207303.1





Have more questions? Submit a request