Puede usar, por ejemplo, la herramienta RegDllView. Busque "OraOLEDB", el resultado podría ser este:
Un enfoque más simple sería navegar a su ORACE_HOME\bin
directorio y localice el archivo OraOLEDB??.dll
. Verifique la versión haciendo clic con el botón derecho del mouse -> Propiedades -> Detalles.
Sin embargo, solo obtiene la versión del archivo, no significa necesariamente que esta DLL también esté registrada y lista para usar.
O use este VBScript:
Option Explicit
Const HKEY_CLASSES_ROOT = &H80000000
Dim Key, strComputer, objRegistry, strPath, arrKeys, fso
Dim strKeyPath, strValueName, strValue, uValue, ver
Set fso = CreateObject("Scripting.FileSystemObject")
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
objRegistry.enumKey HKEY_CLASSES_ROOT, "CLSID", arrKeys
For Each key In arrKeys
strKeyPath = "CLSID\" & key
strValueName = "OLEDB_SERVICES"
If objRegistry.GetDWordValue (HKEY_CLASSES_ROOT, strKeyPath, strValueName, uValue) = 0 Then
'get the (Default) value which is the name of the provider
objRegistry.GetStringValue HKEY_CLASSES_ROOT, strKeyPath, "", strValue
If InStr(1, strValue, "OraOLEDB.Oracle", vbTextCompare) > 0 Then
' get expanded location
objRegistry.GetStringValue HKEY_CLASSES_ROOT, strKeyPath & "\InprocServer32", "", strPath
ver = fso.GetFileVersion(strPath)
Wscript.Echo strValue & " @ " & strPath & " -> " & ver
End If
End If
Next
El proveedor OLE DB puede existir en 32 bits y/o en 64 bits, por lo que puede ejecutar el script dos veces:
C:\Windows\System32\cscript.exe Print_OLE.vbs
C:\Windows\SysWOW64\cscript.exe Print_OLE.vbs