“Cannot create an instance of OLE DB provider” error as Windows Authentication user

后端 未结 7 1287
借酒劲吻你
借酒劲吻你 2020-12-24 02:47

I am trying to run openrowset from MS SQL Server on an Oracle server.

When i execute the following command:

select * from
OPENROWSET(\'OraOLEDB.Oracl         


        
7条回答
  •  感动是毒
    2020-12-24 03:45

    For error 7302 in particular, I discovered, in my registry, when looking for OraOLEDB.Oracle that the InprocServer32 location was wrong.

    If that's the case, or you can't find that string in the registry, then you'll have to install or re-register the component.

    I had to delete the key from the GUID level, and then find the ProgID (OraOLEDB.Oracle) key, and delete that too. (The ProgID links to the CLSID as a pair).

    Then I re-registered OraOLEDB.Oracle by calling regsvr32.exe on ORAOLEDB*.dll.

    Just re-registering alone didn't solve the problem, I had to delete the registry keys to make it point to the correct location. Alternatively, hack the InprocServer32 location.

    Now I have error 7308, about single threaded apartments; rolling on!

提交回复
热议问题